:root {
    --primary: #C0392B;
    --primary-dark: #A93226;
    --primary-light: #FDEAEA;
    --bg: #F4F6F8;
    --card: #FFFFFF;
    --text-main: #2C3E50;
    --text-muted: #7F8C8D;
    --border: #E1E4E8;
    
    --badge-full: #3498DB;
    --badge-part: #9B59B6;
    --badge-intern: #F1C40F;
    --badge-contract: #E67E22;
    --badge-active: #2ECC71;
    --badge-inactive: #95A5A6;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; background: var(--bg); color: var(--text-main); line-height: 1.5; }
a { text-decoration: none; color: var(--primary); }

/* Layout */
.app-container { display: flex; min-height: 100vh; }
.sidebar { width: 250px; background: var(--card); border-right: 1px solid var(--border); padding: 20px 0; display: flex; flex-direction: column; }
.sidebar-header { padding: 0 20px 20px; border-bottom: 1px solid var(--border); margin-bottom: 20px; font-weight: bold; font-size: 1.2rem; color: var(--primary); }
.nav-links { display: flex; flex-direction: column; gap: 5px; }
.nav-links a { padding: 12px 20px; color: var(--text-main); font-weight: 500; transition: all 0.2s; }
.nav-links a:hover, .nav-links a.active { background: var(--primary-light); color: var(--primary); border-right: 3px solid var(--primary); }

.main-content { flex: 1; padding: 30px; overflow-y: auto; }
.header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.header h1 { font-size: 1.8rem; font-weight: 600; }

/* Cards */
.card { background: var(--card); border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); padding: 20px; margin-bottom: 20px; }
.card-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; }
.stat-card { text-align: center; }
.stat-card h3 { font-size: 1rem; color: var(--text-muted); font-weight: 500; margin-bottom: 10px; }
.stat-card .value { font-size: 2rem; font-weight: bold; color: var(--primary); }

/* Tables */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 15px; text-align: left; border-bottom: 1px solid var(--border); }
th { color: var(--text-muted); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; }
tr:hover { background: #fafafa; }

/* Badges */
.badge { padding: 4px 10px; border-radius: 50px; font-size: 0.8rem; font-weight: 600; color: white; display: inline-block; }
.badge.type-full-time { background: var(--badge-full); }
.badge.type-part-time { background: var(--badge-part); color: white; }
.badge.type-intern { background: var(--badge-intern); color: #333; }
.badge.type-contract { background: var(--badge-contract); }
.badge.status-active { background: var(--badge-active); }
.badge.status-inactive { background: var(--badge-inactive); }

/* Forms & Inputs */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; }
.form-control { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 4px; font-size: 1rem; }
.form-control:focus { outline: none; border-color: var(--primary); }
.flex-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* Buttons */
.btn { display: inline-block; padding: 10px 20px; background: var(--card); border: 1px solid var(--border); color: var(--text-main); border-radius: 4px; cursor: pointer; transition: all 0.2s; font-size: 0.9rem; font-weight: 500; }
.btn-primary { background: var(--primary); color: white; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-sm { padding: 5px 10px; font-size: 0.8rem; }
.btn-danger { color: #e74c3c; border-color: #e74c3c; }
.btn-danger:hover { background: #e74c3c; color: white; }

/* Utilities */
.hidden { display: none !important; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.mb-20 { margin-bottom: 20px; }

/* Login Page Only */
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-card { width: 400px; padding: 40px; }
.login-card h2 { text-align: center; color: var(--primary); margin-bottom: 30px; }

/* Danger Zone and Alerts */
.danger-zone { border: 1px solid #f5b7b1; background-color: #fdfdfd; }
.danger-zone-title { color: #c0392b; border-bottom: 1px solid #f5b7b1 !important; }
.alert-error { background: #fdeaea; color: #e74c3c; padding: 15px; border: 1px solid #f5b7b1; border-radius: 4px; margin-bottom: 20px; }

/* Modal Overlay and Window */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.25s ease;
    padding: 20px;
}
.modal-overlay.active {
    display: flex;
    opacity: 1;
}
.modal-card {
    background: var(--card);
    width: 100%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 30px;
    transform: translateY(-30px);
    transition: transform 0.25s ease;
}
.modal-overlay.active .modal-card {
    transform: translateY(0);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.modal-header h3 {
    margin: 0;
    color: #c0392b;
    font-size: 1.4rem;
}
.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}
.modal-close:hover {
    color: var(--text-main);
}
.modal-body {
    margin-bottom: 25px;
}
.modal-body p {
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 15px;
    line-height: 1.6;
}
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid var(--border);
    padding-top: 15px;
}
.btn-danger-filled {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}
.btn-danger-filled:hover {
    background: #c0392b;
    border-color: #c0392b;
}

