* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #1a1a2e;
    color: #e0e0e0;
    min-height: 100vh;
}

.navbar {
    background: #16213e;
    border-bottom: 3px solid #0f3460;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 60px;
}

.nav-brand {
    color: #e94560;
    font-size: 1.4em;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-links { display: flex; align-items: center; gap: 5px; }

.nav-links a {
    color: #a0a0b0;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 0.9em;
}

.nav-links a:hover { background: #0f3460; color: #fff; }

.nav-user { color: #e94560; padding: 8px 16px; font-size: 0.9em; font-weight: bold; }

.nav-logout {
    color: #e94560 !important;
    border: 1px solid #e94560;
    cursor: pointer;
}

.nav-logout:hover { background: #e94560 !important; color: #fff !important; }

.container { max-width: 1200px; margin: 0 auto; padding: 30px 20px; }

.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.login-card {
    background: #16213e;
    border-radius: 12px;
    padding: 40px;
    width: 400px;
    border: 1px solid #0f3460;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.login-header { text-align: center; margin-bottom: 30px; }

.badge-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e94560, #c23152);
    border-radius: 50%;
    margin: 0 auto 15px;
    box-shadow: 0 4px 15px rgba(233,69,96,0.3);
}

.login-header h1 { color: #fff; font-size: 1.8em; margin-bottom: 5px; }
.login-header p { color: #a0a0b0; font-size: 0.9em; }

.dashboard-header h1 { color: #fff; font-size: 2em; }
.dashboard-header p { color: #a0a0b0; margin-top: 5px; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: #16213e;
    border-radius: 10px;
    padding: 25px;
    border-left: 4px solid;
}

.stat-blue { border-color: #0f3460; }
.stat-green { border-color: #2ecc71; }
.stat-red { border-color: #e94560; }
.stat-yellow { border-color: #f39c12; }

.stat-number { font-size: 2.5em; font-weight: bold; color: #fff; }
.stat-label { color: #a0a0b0; font-size: 0.9em; margin-top: 5px; }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h1 { color: #fff; font-size: 1.8em; }

.table {
    width: 100%;
    border-collapse: collapse;
    background: #16213e;
    border-radius: 10px;
    overflow: hidden;
}

.table th {
    background: #0f3460;
    color: #a0a0b0;
    padding: 14px 16px;
    text-align: left;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.table td {
    padding: 12px 16px;
    border-bottom: 1px solid #1a1a3e;
}

.table tr:hover td { background: #1a1a3e; }
.table tr:last-child td { border-bottom: none; }
.text-center { text-align: center; color: #888; padding: 30px !important; }

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
}

.badge-Active, .badge-Open { background: #1a3a2e; color: #2ecc71; }
.badge-Under\ Investigation { background: #1a2a3a; color: #f39c12; }
.badge-Closed, .badge-Suspended { background: #3a1a1a; color: #e94560; }
.badge-Archived, .badge-Inactive { background: #2a2a2a; color: #888; }
.badge-On\ Leave { background: #1a2a3a; color: #3498db; }

.priority {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
}

.priority-Low { background: #1a3a2e; color: #2ecc71; }
.priority-Medium { background: #1a2a3a; color: #f39c12; }
.priority-High { background: #3a1a1a; color: #e94560; }
.priority-Critical { background: #4a0a0a; color: #ff4444; }

.actions { display: flex; gap: 5px; }

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-primary { background: #0f3460; color: #fff; }
.btn-primary:hover { background: #1a4a7a; }
.btn-edit { background: #0f3460; color: #fff; }
.btn-edit:hover { background: #1a4a7a; }
.btn-danger { background: #3a1a1a; color: #e94560; }
.btn-danger:hover { background: #4a2a2a; }
.btn-sm { padding: 6px 12px; font-size: 0.8em; }
.btn-full { width: 100%; padding: 12px; font-size: 1em; }

.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #a0a0b0;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    background: #1a1a3e;
    border: 1px solid #0f3460;
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 0.95em;
    transition: border 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e94560;
}

.form-group textarea { resize: vertical; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.alert {
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9em;
}

.alert-success { background: #1a3a2e; color: #2ecc71; border: 1px solid #2ecc71; }
.alert-error { background: #3a1a1a; color: #e94560; border: 1px solid #e94560; }

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    overflow: auto;
}

.modal-content {
    background: #16213e;
    margin: 60px auto;
    padding: 30px;
    width: 90%;
    max-width: 550px;
    border-radius: 12px;
    border: 1px solid #0f3460;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.modal-content h2 { color: #fff; margin-bottom: 20px; }

.close {
    color: #a0a0b0;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover { color: #e94560; }

input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(0.7); }
select option { background: #16213e; color: #e0e0e0; }

@media (max-width: 768px) {
    .nav-container { flex-direction: column; height: auto; padding: 10px; }
    .nav-links { flex-wrap: wrap; justify-content: center; margin-top: 10px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .table { font-size: 0.85em; }
    .modal-content { margin: 20px auto; width: 95%; padding: 20px; }
}
