:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-card: #1a2235;
    --bg-sidebar: #0d1526;
    --bg-hover: #1e2d45;
    --accent-primary: #4f8ef7;
    --accent-secondary: #7c3aed;
    --accent-success: #10b981;
    --accent-warning: #f59e0b;
    --accent-danger: #ef4444;
    --accent-info: #06b6d4;
    --accent-gradient: linear-gradient(135deg, #4f8ef7, #7c3aed);
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: rgba(255, 255, 255, 0.08);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(79, 142, 247, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --sidebar-width: 260px;
    --topbar-height: 64px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a { color: var(--accent-primary); text-decoration: none; transition: var(--transition); }
a:hover { color: #7aabff; }

/* ======= LAYOUT ======= */
.app-wrapper { display: flex; min-height: 100vh; }

/* SIDEBAR */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: var(--transition);
}

.sidebar-brand {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-brand .brand-icon {
    width: 38px; height: 38px;
    background: var(--accent-gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.sidebar-brand .brand-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.sidebar-brand .brand-sub {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-nav { padding: 16px 0; flex: 1; }

.nav-section-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 24px 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 24px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border-left: 3px solid transparent;
    text-decoration: none;
}

.nav-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-left-color: var(--accent-primary);
}

.nav-item.active {
    background: rgba(79, 142, 247, 0.1);
    color: var(--accent-primary);
    border-left-color: var(--accent-primary);
}

.nav-item .nav-icon { width: 20px; height: 20px; flex-shrink: 0; opacity: 0.8; }
.nav-item.active .nav-icon, .nav-item:hover .nav-icon { opacity: 1; }

.sidebar-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
}

.user-info-sidebar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 36px; height: 36px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.user-name-small { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.user-role-small { font-size: 11px; color: var(--text-muted); text-transform: capitalize; }

/* MAIN CONTENT */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* TOPBAR */
.topbar {
    height: var(--topbar-height);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 50;
    gap: 16px;
}

.topbar-title { font-size: 18px; font-weight: 700; flex: 1; }

.topbar-actions { display: flex; align-items: center; gap: 12px; }

.btn-icon {
    width: 36px; height: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
}
.btn-icon:hover { color: var(--text-primary); border-color: var(--accent-primary); }

/* PAGE CONTENT */
.page-content { padding: 28px; flex: 1; }

/* ======= CARDS ======= */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.card-header {
    padding: 20px 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.card-subtitle { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.card-body { padding: 20px 24px; }
.card-footer { padding: 16px 24px; border-top: 1px solid var(--border-color); }

/* STAT CARDS */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-bottom: 24px; }

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--accent-gradient);
}

.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }

.stat-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.stat-icon.blue { background: rgba(79, 142, 247, 0.15); color: var(--accent-primary); }
.stat-icon.purple { background: rgba(124, 58, 237, 0.15); color: var(--accent-secondary); }
.stat-icon.green { background: rgba(16, 185, 129, 0.15); color: var(--accent-success); }
.stat-icon.orange { background: rgba(245, 158, 11, 0.15); color: var(--accent-warning); }
.stat-icon.red { background: rgba(239, 68, 68, 0.15); color: var(--accent-danger); }
.stat-icon.cyan { background: rgba(6, 182, 212, 0.15); color: var(--accent-info); }

.stat-info { flex: 1; min-width: 0; }
.stat-value { font-size: 26px; font-weight: 800; color: var(--text-primary); line-height: 1; }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ======= BUTTONS ======= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 142, 247, 0.3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(79, 142, 247, 0.4); color: white; }

.btn-success { background: var(--accent-success); color: white; }
.btn-success:hover { background: #059669; transform: translateY(-1px); color: white; }

.btn-warning { background: var(--accent-warning); color: #1a1a1a; }
.btn-warning:hover { background: #d97706; transform: translateY(-1px); }

.btn-danger { background: var(--accent-danger); color: white; }
.btn-danger:hover { background: #dc2626; transform: translateY(-1px); color: white; }

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}
.btn-outline:hover { background: var(--bg-hover); color: var(--text-primary); border-color: var(--accent-primary); }

.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 13px 28px; font-size: 15px; }

/* ======= FORMS ======= */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.form-label .required { color: var(--accent-danger); margin-left: 2px; }

.form-control, .form-select {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(79, 142, 247, 0.15);
    background: var(--bg-card);
}

.form-control::placeholder { color: var(--text-muted); }
.form-select option { background: var(--bg-card); color: var(--text-primary); }
textarea.form-control { resize: vertical; min-height: 90px; }

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.7;
    cursor: pointer;
}
input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.col-span-2 { grid-column: span 2; }
.col-span-3 { grid-column: span 3; }

.form-hint { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* ======= TABLES ======= */
.table-container { overflow-x: auto; border-radius: var(--radius-lg); }

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.table thead tr {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-color);
}

.table thead th {
    padding: 12px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    white-space: nowrap;
}

.table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition);
}

.table tbody tr:hover { background: var(--bg-hover); }
.table tbody tr:last-child { border-bottom: none; }
.table tbody td { padding: 14px 16px; color: var(--text-primary); vertical-align: middle; }

.table-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ======= BADGES ======= */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.badge-success { background: rgba(16, 185, 129, 0.15); color: var(--accent-success); }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: var(--accent-warning); }
.badge-danger  { background: rgba(239, 68, 68, 0.15);  color: var(--accent-danger); }
.badge-info    { background: rgba(6, 182, 212, 0.15);   color: var(--accent-info); }
.badge-secondary { background: rgba(100, 116, 139, 0.15); color: var(--text-muted); }
.badge-primary { background: rgba(79, 142, 247, 0.15);  color: var(--accent-primary); }

/* ======= ALERTS / FLASH ======= */
.alert {
    padding: 12px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease;
}
.alert-success { background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.3); color: var(--accent-success); }
.alert-error   { background: rgba(239, 68, 68, 0.12);  border: 1px solid rgba(239, 68, 68, 0.3);  color: var(--accent-danger); }
.alert-warning { background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.3); color: var(--accent-warning); }
.alert-info    { background: rgba(79, 142, 247, 0.12); border: 1px solid rgba(79, 142, 247, 0.3); color: var(--accent-primary); }

/* ======= MODAL ======= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.active { display: flex; }

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    animation: modalIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-lg { max-width: 760px; }

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title { font-size: 16px; font-weight: 700; }
.modal-close { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 20px; line-height: 1; padding: 2px; transition: var(--transition); }
.modal-close:hover { color: var(--text-primary); }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border-color); display: flex; justify-content: flex-end; gap: 10px; }

/* ======= TABS ======= */
.tabs { display: flex; border-bottom: 1px solid var(--border-color); margin-bottom: 24px; }
.tab-btn {
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-family: inherit;
}
.tab-btn:hover { color: var(--text-primary); }
.tab-btn.active { color: var(--accent-primary); border-bottom-color: var(--accent-primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ======= SEARCH BAR ======= */
.search-bar { position: relative; }
.search-bar input { padding-left: 36px; }
.search-bar .search-icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 14px; }

/* ======= PAGE HEADER ======= */
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.page-header-left h1 { font-size: 22px; font-weight: 800; }
.page-header-left p { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* ======= PROGRESS BAR ======= */
.progress-bar-wrap { background: rgba(255,255,255,0.05); border-radius: 100px; height: 6px; overflow: hidden; }
.progress-bar { height: 100%; border-radius: 100px; background: var(--accent-gradient); transition: width 0.5s; }

/* ======= EMPTY STATE ======= */
.empty-state { text-align: center; padding: 48px 24px; color: var(--text-muted); }
.empty-state .icon { font-size: 48px; margin-bottom: 12px; opacity: 0.4; }
.empty-state h3 { font-size: 16px; color: var(--text-secondary); margin-bottom: 6px; }
.empty-state p { font-size: 13px; }

/* ======= LOGIN PAGE ======= */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(79, 142, 247, 0.08) 0%, transparent 70%);
    top: -200px; left: -200px;
}

.login-page::after {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
    bottom: -200px; right: -200px;
}

.login-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1;
    animation: fadeUp 0.4s ease;
}

.login-logo { text-align: center; margin-bottom: 28px; }
.login-logo .logo-icon {
    width: 60px; height: 60px;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 12px;
    box-shadow: 0 8px 24px rgba(79, 142, 247, 0.3);
}
.login-logo h1 { font-size: 22px; font-weight: 800; }
.login-logo p { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ======= ATTENDANCE GRID ======= */
.attendance-grid { display: grid; gap: 8px; }
.attendance-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--bg-secondary); border-radius: var(--radius-sm); }
.attendance-student-name { flex: 1; font-size: 13px; font-weight: 600; }
.attendance-radio-group { display: flex; gap: 8px; }
.attendance-radio-group label { display: flex; align-items: center; gap: 5px; font-size: 12px; cursor: pointer; padding: 4px 10px; border-radius: 100px; border: 1px solid var(--border-color); transition: var(--transition); }
.attendance-radio-group input[type="radio"] { display: none; }
.attendance-radio-group input[type="radio"]:checked + span { font-weight: 700; }
label:has(input[value="present"]:checked) { background: rgba(16,185,129,0.15); border-color: var(--accent-success); color: var(--accent-success); }
label:has(input[value="absent"]:checked)  { background: rgba(239,68,68,0.15);  border-color: var(--accent-danger);  color: var(--accent-danger); }
label:has(input[value="late"]:checked)    { background: rgba(245,158,11,0.15); border-color: var(--accent-warning); color: var(--accent-warning); }

/* ======= UTILITIES ======= */
.text-muted { color: var(--text-muted) !important; }
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 20px; } .mt-4 { margin-top: 28px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 20px; }
.gap-3 { gap: 12px; } .gap-2 { gap: 8px; }
.flex { display: flex; } .flex-wrap { flex-wrap: wrap; } .items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.font-bold { font-weight: 700; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.section-divider { height: 1px; background: var(--border-color); margin: 24px 0; }

/* ======= ANIMATIONS ======= */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(-10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ======= RESPONSIVE ======= */
@media (max-width: 768px) {
    :root { --sidebar-width: 0px; }
    .sidebar { transform: translateX(-260px); width: 260px; }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .form-grid, .form-grid-3 { grid-template-columns: 1fr; }
    .col-span-2, .col-span-3 { grid-column: span 1; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .page-content { padding: 16px; }
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.18); }

/* ======= SIDEBAR COLLAPSED ======= */
.sidebar-toggle-btn { display: none; }
@media (max-width: 768px) {
    .sidebar-toggle-btn { display: flex; }
}

/* ═══════════════════════════════════════════
   PAYROLL MODULE STYLES
═══════════════════════════════════════════ */

.payroll-section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    padding: 14px 0 6px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 14px;
}

/* Attendance Calendar */
.att-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}
.att-cal-header {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 6px 0;
    letter-spacing: 0.5px;
}
.att-cal-day {
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    min-height: 52px;
}
.att-cal-day:hover:not(.att-future) {
    filter: brightness(1.2);
    border-color: rgba(255,255,255,0.3);
    transform: scale(1.05);
}
.att-future { cursor: default; opacity: 0.35; }
.att-day-num { font-size: 15px; font-weight: 700; line-height: 1; }
.att-day-status { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 3px; opacity: 0.85; }

.att-present      { background: rgba(16,185,129,0.2);  color: #10b981; }
.att-absent       { background: rgba(239,68,68,0.2);   color: #ef4444; }
.att-paidleave    { background: rgba(6,182,212,0.2);   color: #06b6d4; }
.att-unpaid       { background: rgba(245,158,11,0.2);  color: #f59e0b; }
.att-halfday      { background: rgba(167,139,250,0.2); color: #a78bfa; }
.att-holiday      { background: rgba(79,142,247,0.2);  color: #4f8ef7; }
.att-weekoff      { background: rgba(100,116,139,0.15); color: #94a3b8; }
.att-unmarked     { background: rgba(255,255,255,0.04); color: var(--text-muted); border: 1px dashed var(--border-color); }

.att-legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.att-legend-dot.att-present   { background: #10b981; }
.att-legend-dot.att-absent    { background: #ef4444; }
.att-legend-dot.att-paidleave { background: #06b6d4; }
.att-legend-dot.att-unpaid    { background: #f59e0b; }
.att-legend-dot.att-halfday   { background: #a78bfa; }
.att-legend-dot.att-holiday   { background: #4f8ef7; }
.att-legend-dot.att-weekoff   { background: #94a3b8; }
.att-legend-dot.att-unmarked  { background: rgba(255,255,255,0.15); border: 1px dashed #64748b; }

/* Toggle Switch */
.payroll-toggle-wrap { display: inline-block; cursor: pointer; }
.payroll-toggle {
    width: 46px; height: 26px;
    background: var(--border-color);
    border-radius: 13px;
    position: relative;
    transition: background 0.25s;
}
.payroll-toggle::after {
    content: '';
    position: absolute;
    top: 3px; left: 3px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.25s;
}
.payroll-toggle.on { background: var(--accent-success); }
.payroll-toggle.on::after { transform: translateX(20px); }

/* Helpers */
.form-help { font-size: 12px; color: var(--text-muted); margin-top: 5px; line-height: 1.5; }
.card-footer { padding: 14px 20px; border-top: 1px solid var(--border-color); display: flex; justify-content: flex-end; }
.btn-success { background: var(--accent-success); color: #fff; border-color: var(--accent-success); }
.btn-success:hover { background: #059669; border-color: #059669; color: #fff; }
.pt-slab-row { background: rgba(255,255,255,0.02); border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 8px; }
