/* ============================================================
   MedTrack HMS — Hospital Timekeeping System Stylesheet
   ============================================================ */

:root {
  --primary: #1a5f7a;
  --primary-dark: #144d65;
  --primary-light: #e8f4f8;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --purple: #8b5cf6;
  --teal: #14b8a6;
  --indigo: #6366f1;
  --bg: #f0f4f8;
  --sidebar-bg: #0f3d52;
  --sidebar-text: #c8dde7;
  --sidebar-active: #1a5f7a;
  --card-bg: #fff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --shadow-lg: 0 4px 24px rgba(0,0,0,.12);
  --sidebar-width: 240px;
  --topbar-h: 60px;
}

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

body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; font-size: 14px; color: var(--text); background: var(--bg); }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Login ─────────────────────────────────────────── */
.login-body { background: linear-gradient(135deg, #0f3d52 0%, #1a5f7a 50%, #2d8fad 100%); min-height: 100vh; display: flex; align-items: center; justify-content: center; }

.login-wrapper { display: flex; width: 100%; max-width: 900px; min-height: 520px; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.3); }

.login-card { background: #fff; width: 380px; flex-shrink: 0; padding: 48px 40px; display: flex; flex-direction: column; justify-content: center; }

.login-brand { text-align: center; margin-bottom: 32px; }
.login-brand .brand-icon { width: 60px; height: 60px; background: var(--primary); border-radius: 16px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.login-brand .brand-icon svg { width: 30px; height: 30px; stroke: #fff; }
.login-brand h1 { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.login-brand p { color: var(--text-muted); font-size: .85rem; margin-top: 4px; }

.login-form .form-group { margin-bottom: 16px; }
.login-form label { display: flex; align-items: center; gap: 6px; font-weight: 600; color: #374151; margin-bottom: 6px; font-size: .85rem; }
.login-form label svg { width: 14px; height: 14px; }
.login-form input { width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: .95rem; transition: border-color .2s; }
.login-form input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,95,122,.12); }

.input-eye { position: relative; }
.input-eye input { padding-right: 44px; }
.eye-toggle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; padding: 4px; color: var(--text-muted); }
.eye-toggle svg { width: 18px; height: 18px; }

.btn-login { width: 100%; padding: 13px; background: var(--primary); color: #fff; border: none; border-radius: var(--radius-sm); font-size: 1rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background .2s, transform .1s; margin-top: 8px; }
.btn-login:hover { background: var(--primary-dark); }
.btn-login:active { transform: scale(.98); }
.btn-login svg { width: 18px; height: 18px; }

.login-footer { text-align: center; margin-top: 20px; font-size: .8rem; color: var(--text-muted); }
.login-footer p { margin-bottom: 4px; }

.login-bg { flex: 1; background: linear-gradient(135deg, #0f3d52, #2d8fad); padding: 48px; display: flex; flex-direction: column; justify-content: center; color: #fff; }
.login-bg h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 12px; }
.login-bg p { opacity: .8; margin-bottom: 32px; }
.feature-list { list-style: none; }
.feature-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: .9rem; opacity: .9; }
.feature-list li:last-child { border: none; }
.feature-list li svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ── App Layout ─────────────────────────────────────── */
.app-layout { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar { width: var(--sidebar-width); background: var(--sidebar-bg); color: var(--sidebar-text); display: flex; flex-direction: column; position: fixed; top: 0; left: 0; height: 100vh; z-index: 100; transition: transform .3s; }

.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 20px 16px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 1rem; font-weight: 700; color: #fff; }
.brand-icon-sm { width: 32px; height: 32px; background: var(--primary); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.brand-icon-sm svg { width: 18px; height: 18px; stroke: #fff; }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 12px 0; }
.nav-section { margin-bottom: 8px; }
.nav-label { display: block; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: rgba(200,221,231,.5); padding: 8px 16px 4px; }

.nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 16px; color: var(--sidebar-text); border-radius: 0; transition: background .15s, color .15s; font-size: .875rem; }
.nav-item:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.nav-item.active { background: var(--primary); color: #fff; }
.nav-item svg { width: 17px; height: 17px; flex-shrink: 0; }

.sidebar-footer { padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; gap: 10px; }
.user-info { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.user-avatar { width: 32px; height: 32px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; color: #fff; flex-shrink: 0; }
.user-details { min-width: 0; }
.user-name { display: block; font-weight: 600; color: #fff; font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { display: block; font-size: .7rem; color: rgba(200,221,231,.6); text-transform: capitalize; }
.btn-logout { color: var(--sidebar-text); padding: 6px; border-radius: 6px; flex-shrink: 0; transition: background .15s; }
.btn-logout:hover { background: rgba(239,68,68,.2); color: #ef4444; }
.btn-logout svg { width: 18px; height: 18px; display: block; }

/* Main Content */
.main-content { margin-left: var(--sidebar-width); flex: 1; display: flex; flex-direction: column; min-height: 100vh; }

.topbar { height: var(--topbar-h); background: #fff; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 16px; padding: 0 24px; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--border); }
.sidebar-toggle { background: none; border: none; cursor: pointer; padding: 6px; border-radius: 8px; color: var(--text-muted); display: none; }
.sidebar-toggle svg { width: 22px; height: 22px; display: block; }
.topbar-title h2 { font-size: 1rem; font-weight: 600; color: var(--text); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.datetime-display { font-size: .85rem; color: var(--text-muted); font-variant-numeric: tabular-nums; font-weight: 500; }

.content-area { padding: 24px; flex: 1; }

/* ── Cards ──────────────────────────────────────────── */
.card { background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 20px; }
.card-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.card-header h3 { font-size: .95rem; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 8px; }
.card-body { padding: 20px; overflow-x: auto; }

/* ── Dashboard ──────────────────────────────────────── */
.stats-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-bottom: 20px; }
@media (max-width: 1200px) { .stats-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .stats-row { grid-template-columns: repeat(2, 1fr); } }

.stat-card { background: #fff; border-radius: var(--radius); padding: 16px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow); border-left: 4px solid transparent; }
.stat-blue  { border-left-color: var(--primary); }
.stat-green { border-left-color: var(--success); }
.stat-orange{ border-left-color: var(--warning); }
.stat-purple{ border-left-color: var(--purple); }
.stat-teal  { border-left-color: var(--teal); }
.stat-indigo{ border-left-color: var(--indigo); }

.stat-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-blue  .stat-icon { background: rgba(26,95,122,.12); color: var(--primary); }
.stat-green .stat-icon { background: rgba(34,197,94,.12); color: var(--success); }
.stat-orange.stat-icon, .stat-orange .stat-icon { background: rgba(245,158,11,.12); color: var(--warning); }
.stat-purple .stat-icon { background: rgba(139,92,246,.12); color: var(--purple); }
.stat-teal  .stat-icon { background: rgba(20,184,166,.12); color: var(--teal); }
.stat-indigo .stat-icon { background: rgba(99,102,241,.12); color: var(--indigo); }
.stat-icon svg { width: 20px; height: 20px; }

.stat-value { display: block; font-size: 1.6rem; font-weight: 700; color: var(--text); line-height: 1; }
.stat-label { display: block; font-size: .75rem; color: var(--text-muted); margin-top: 2px; }

.dashboard-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
@media (max-width: 900px) { .dashboard-row-2 { grid-template-columns: 1fr; } }

/* Bar chart */
.bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 160px; padding: 0 8px; }
.bar-chart-item { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; }
.bar-chart-bar { width: 100%; background: var(--primary); border-radius: 4px 4px 0 0; min-height: 4px; transition: height .4s ease; }
.bar-chart-label { font-size: .7rem; color: var(--text-muted); }
.bar-chart-val { font-size: .7rem; font-weight: 600; color: var(--text); }

.progress-bar-wrap { display: flex; align-items: center; gap: 6px; background: var(--bg); border-radius: 99px; height: 6px; position: relative; overflow: hidden; }
.progress-bar-fill { height: 100%; background: var(--primary); border-radius: 99px; }
.progress-bar-wrap span { font-size: .75rem; color: var(--text-muted); margin-left: auto; white-space: nowrap; position: absolute; right: -32px; }

/* ── Tables ──────────────────────────────────────────── */
.table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.table th { padding: 10px 14px; text-align: left; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table-hover tr:hover td { background: var(--bg); }
.table-sm th, .table-sm td { padding: 8px 12px; }

/* ── Badges ──────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 99px; font-size: .72rem; font-weight: 600; white-space: nowrap; }
.badge-green  { background: rgba(34,197,94,.12); color: #16a34a; }
.badge-orange { background: rgba(245,158,11,.12); color: #d97706; }
.badge-red    { background: rgba(239,68,68,.12); color: #dc2626; }
.badge-blue   { background: rgba(26,95,122,.12); color: var(--primary); }
.badge-purple { background: rgba(139,92,246,.12); color: #7c3aed; }
.badge-gray   { background: rgba(100,116,139,.12); color: var(--text-muted); }

/* ── Buttons ──────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: var(--radius-sm); font-size: .85rem; font-weight: 500; cursor: pointer; border: none; transition: all .15s; text-decoration: none; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #16a34a; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-outline { background: #fff; color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.btn-icon { padding: 7px; width: 34px; height: 34px; justify-content: center; }
.btn-icon svg { width: 15px; height: 15px; }
.btn-sm { padding: 6px 12px; font-size: .8rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-fingerprint { background: linear-gradient(135deg, var(--primary) 0%, #2d8fad 100%); color: #fff; padding: 14px 20px; font-size: .95rem; font-weight: 600; border-radius: 10px; }
.btn-fingerprint:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(26,95,122,.3); }
.btn-fingerprint svg { width: 20px; height: 20px; }

.action-btns { display: flex; gap: 4px; }

/* ── Alerts ──────────────────────────────────────────── */
.alert { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: .875rem; }
.alert svg { width: 18px; height: 18px; flex-shrink: 0; }
.alert-success { background: rgba(34,197,94,.1); color: #166534; border: 1px solid rgba(34,197,94,.3); }
.alert-error { background: rgba(239,68,68,.1); color: #991b1b; border: 1px solid rgba(239,68,68,.3); }

/* ── Forms ──────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; color: #374151; margin-bottom: 6px; font-size: .85rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 9px 12px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: .9rem; background: #fff; color: var(--text); transition: border-color .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,95,122,.1); }

.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-grid-2 { grid-template-columns: 1fr; } }

.form-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.form-group-inline { display: flex; align-items: center; gap: 8px; }
.form-group-inline label { white-space: nowrap; font-size: .85rem; color: var(--text-muted); margin: 0; }
.form-group-inline input { width: auto; }

.form-page { max-width: 800px; }
.form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.form-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.form-card-header h3 { font-size: 1.1rem; font-weight: 600; }

/* Fingerprint status banner */
.fingerprint-status-banner { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: .875rem; }
.fingerprint-status-banner svg { width: 18px; height: 18px; flex-shrink: 0; }
.fingerprint-status-banner.enrolled { background: rgba(34,197,94,.1); color: #166534; border: 1px solid rgba(34,197,94,.25); }
.fingerprint-status-banner.not-enrolled { background: rgba(245,158,11,.1); color: #92400e; border: 1px solid rgba(245,158,11,.25); }

/* ── Filter / Search ─────────────────────────────────── */
.page-actions { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.filter-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; flex: 1; }
.search-box { display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 8px 12px; flex: 1; min-width: 200px; }
.search-box svg { width: 16px; height: 16px; color: var(--text-muted); flex-shrink: 0; }
.search-box input { border: none; outline: none; width: 100%; font-size: .875rem; background: transparent; }
.select-filter { padding: 9px 12px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: .85rem; background: #fff; cursor: pointer; }

/* Employee name cell */
.employee-name-cell { display: flex; align-items: center; gap: 10px; }
.employee-name-cell strong { display: block; font-size: .875rem; }
.employee-name-cell small { display: block; color: var(--text-muted); font-size: .75rem; }
.avatar-sm { width: 32px; height: 32px; background: var(--primary-light); color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; flex-shrink: 0; }
.avatar-xs { width: 28px; height: 28px; background: var(--primary-light); color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; flex-shrink: 0; }
.avatar-lg { width: 56px; height: 56px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 700; flex-shrink: 0; }

/* ── Modals ──────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; max-width: 440px; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.modal-header h3 { font-size: 1rem; font-weight: 600; }
.modal-close { background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--text-muted); width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 6px; }
.modal-close:hover { background: var(--bg); }
.modal form { padding: 20px; }
.modal .form-actions { border-top: none; padding-top: 0; margin-top: 16px; }

/* ── Clock In/Out Page ──────────────────────────────── */
.timein-layout { display: grid; grid-template-columns: 380px 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .timein-layout { grid-template-columns: 1fr; } }

.scanner-panel {}
.scanner-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.scanner-header { margin-bottom: 20px; }
.scanner-header h3 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.scanner-header p { font-size: .8rem; color: var(--text-muted); }

.fingerprint-scanner { display: flex; flex-direction: column; align-items: center; padding: 20px 0; }
.scanner-ring { width: 120px; height: 120px; border-radius: 50%; background: var(--primary-light); border: 3px solid var(--primary); display: flex; align-items: center; justify-content: center; position: relative; animation: scanPulse 2s infinite; }
@keyframes scanPulse { 0%,100%{box-shadow:0 0 0 0 rgba(26,95,122,.3)} 50%{box-shadow:0 0 0 16px rgba(26,95,122,.0)} }
.scanner-inner { width: 90px; height: 90px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.fp-icon { width: 50px; height: 50px; color: var(--primary); }
.scanner-status { margin-top: 12px; font-size: .85rem; color: var(--text-muted); font-weight: 500; }
.scanner-ring.scanning { border-color: var(--warning); background: rgba(245,158,11,.1); animation: scanProgress 1.5s infinite; }
@keyframes scanProgress { 0%{transform:scale(1)} 50%{transform:scale(1.04)} 100%{transform:scale(1)} }
.scanner-ring.success { border-color: var(--success); background: rgba(34,197,94,.1); }
.scanner-ring.error { border-color: var(--danger); background: rgba(239,68,68,.1); }

.or-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--text-muted); font-size: .8rem; }
.or-divider::before, .or-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.emp-list { max-height: 240px; overflow-y: auto; border: 1.5px solid var(--border); border-radius: var(--radius-sm); }
.emp-list-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; transition: background .12s; border-bottom: 1px solid var(--border); }
.emp-list-item:last-child { border-bottom: none; }
.emp-list-item:hover { background: var(--primary-light); }
.emp-list-item.selected { background: var(--primary-light); border-left: 3px solid var(--primary); }
.emp-avatar-xs { width: 28px; height: 28px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; flex-shrink: 0; }
.emp-info { flex: 1; min-width: 0; }
.emp-info strong { display: block; font-size: .8rem; }
.emp-info small { color: var(--text-muted); font-size: .7rem; }
.fp-badge { font-size: .75rem; }

.selected-employee { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--primary-light); border-radius: var(--radius-sm); margin-bottom: 14px; }
.sel-avatar { width: 36px; height: 36px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .9rem; font-weight: 700; flex-shrink: 0; }
#selName { font-weight: 600; font-size: .875rem; display: block; }
#selCode { font-size: .75rem; color: var(--text-muted); display: block; }

.today-log .card { height: 100%; }

/* ── Fingerprint Enroll ──────────────────────────────── */
.enroll-layout { display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .enroll-layout { grid-template-columns: 1fr; } }

.enroll-emp-list { max-height: calc(100vh - 260px); overflow-y: auto; }
.enroll-emp-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background .12s; border-left: 3px solid transparent; }
.enroll-emp-item:hover { background: var(--primary-light); }
.enroll-emp-item.active { background: var(--primary-light); border-left-color: var(--primary); }
.enroll-emp-item:last-child { border-bottom: none; }
.enroll-emp-info { flex: 1; min-width: 0; }
.enroll-emp-info strong { display: block; font-size: .85rem; }
.enroll-emp-info small { color: var(--text-muted); font-size: .75rem; }

.enroll-emp-banner { display: flex; align-items: center; gap: 16px; padding: 16px; background: var(--bg); border-radius: var(--radius-sm); margin-bottom: 24px; }
.enroll-emp-banner h4 { font-size: 1rem; font-weight: 600; margin-bottom: 2px; }
.enroll-emp-banner p { font-size: .8rem; color: var(--text-muted); }

.enroll-steps { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step-num { width: 28px; height: 28px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; flex-shrink: 0; }
.step-body h4 { font-size: .875rem; font-weight: 600; margin-bottom: 2px; }
.step-body p { font-size: .8rem; color: var(--text-muted); }

.enroll-status-box { padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: .875rem; font-weight: 500; }
.enroll-status-box.loading { background: rgba(245,158,11,.1); color: #92400e; }
.enroll-status-box.success { background: rgba(34,197,94,.1); color: #166534; }
.enroll-status-box.error { background: rgba(239,68,68,.1); color: #991b1b; }

.enroll-actions { margin-bottom: 16px; }
.enroll-info-box { display: flex; gap: 10px; padding: 12px; background: rgba(99,102,241,.06); border-radius: var(--radius-sm); color: var(--text-muted); font-size: .8rem; border: 1px solid rgba(99,102,241,.15); }

.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state svg { margin-bottom: 16px; color: var(--border); }
.empty-state h3 { font-size: 1rem; margin-bottom: 8px; color: var(--text); }
.empty-state p { font-size: .85rem; }

/* ── Departments ──────────────────────────────────────── */
.dept-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.dept-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.dept-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.dept-card-top { display: flex; gap: 12px; padding: 16px; align-items: flex-start; }
.dept-icon { width: 40px; height: 40px; background: var(--primary-light); color: var(--primary); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dept-icon svg { width: 20px; height: 20px; }
.dept-info h4 { font-size: .9rem; font-weight: 600; margin-bottom: 4px; }
.dept-info p { font-size: .78rem; color: var(--text-muted); }
.dept-card-bottom { padding: 10px 16px; border-top: 1px solid var(--border); background: var(--bg); display: flex; align-items: center; justify-content: space-between; }
.dept-stat { display: flex; align-items: center; gap: 5px; font-size: .78rem; color: var(--text-muted); }
.dept-actions { display: flex; gap: 4px; }

/* ── Reports ──────────────────────────────────────────── */
.daily-bar-chart { display: flex; gap: 4px; align-items: flex-end; min-height: 120px; flex-wrap: wrap; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-toggle { display: flex; }
  .main-content { margin-left: 0; }
  .login-bg { display: none; }
  .login-card { width: 100%; border-radius: 0; }
  .login-wrapper { border-radius: 0; }
}
