:root {
    --navy: #0B2447;
    --navy2: #19376D;
    --teal: #0A6E74;
    --teal-light: #12B8C2;
    --gold: #D4A017;
    --gold-light: #F5C842;
    --bg: #F4F7FB;
    --surface: #FFFFFF;
    --surface2: #EEF3FA;
    --text: #0B1F3A;
    --text2: #4A5A72;
    --text3: #8A97AB;
    --border: #D8E2EF;
    --green: #0E7A5A;
    --green-bg: #E6F7F2;
    --red: #C0392B;
    --red-bg: #FDECEB;
    --amber: #B8710A;
    --amber-bg: #FDF3E0;
    --blue: #1659A8;
    --blue-bg: #EBF2FF;
    --sidebar-w: 250px;
    --header-h: 60px;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  body { font-family: 'Plus Jakarta Sans', sans-serif; background: var(--bg); color: var(--text); font-size: 14px; }
  
  /* ── LOGIN ── */
  #login-screen {
    min-height: 100vh; display: flex; flex-direction: column;
    background:
      linear-gradient(135deg, rgba(11,36,71,0.30) 0%, rgba(25,55,109,0.24) 48%, rgba(10,110,116,0.26) 100%),
      url('../images/background.png') center center / cover no-repeat;
    position: relative; overflow: hidden;
  }
  #login-screen::before {
    content: ''; position: absolute; top: -150px; right: -150px;
    width: 500px; height: 500px; border-radius: 50%;
    background: rgba(212,160,23,0.04); pointer-events: none;
  }
  #login-screen::after {
    content: ''; position: absolute; bottom: -100px; left: -100px;
    width: 400px; height: 400px; border-radius: 50%;
    background: rgba(18,184,194,0.04); pointer-events: none;
  }
  .login-header {
    width: min(100%, 1280px); margin: 0 auto; padding: 24px 40px 12px;
    display: flex; align-items: center; gap: 16px;
  }
  .login-logo {
    width: 52px; height: 52px; border-radius: 12px;
    object-fit: cover; flex-shrink: 0;
    box-shadow: 0 8px 18px rgba(0,0,0,0.14);
  }
  .login-brand { display: flex; flex-direction: column; justify-content: center; }
  .login-brand h1 { font-size: 18px; font-weight: 700; color: #fff; line-height: 1.2; }
  .login-brand p { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 2px; }
  .login-body {
    flex: 1; display: flex; align-items: center; justify-content: center;
    padding: 18px 20px 42px;
  }
  .login-card {
    background: rgba(255,255,255,0.03); backdrop-filter: blur(3px);
    border: 1px solid rgba(255,255,255,0.15); border-radius: 24px;
    padding: 36px 42px 28px; width: min(100%, 660px); max-width: 660px;
    margin: 0 auto; box-shadow: 0 14px 30px rgba(2,16,34,0.10);
  }
  .login-title { font-size: 24px; font-weight: 700; color: #fff; margin-bottom: 6px; text-align: center; }
  .login-sub { font-size: 14px; color: rgba(255,255,255,0.6); margin-bottom: 30px; text-align: center; }
  .role-label { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.5); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; }
  .role-select-wrap { position: relative; margin-bottom: 28px; }
  .role-select {
    width: 100%; padding: 14px 44px 14px 18px; border-radius: 12px; font-size: 15px;
    background: rgba(255,255,255,0.1); border: 1.5px solid rgba(255,255,255,0.25);
    color: #fff; font-family: 'Plus Jakarta Sans', sans-serif; outline: none;
    cursor: pointer; appearance: none; -webkit-appearance: none; transition: border-color 0.2s, background 0.2s;
  }
  .role-select:focus { border-color: var(--gold-light); background: rgba(255,255,255,0.15); }
  .role-select option { background: var(--navy2); color: #fff; font-size: 14px; padding: 8px; }
  .role-select-arrow {
    position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
    color: rgba(255,255,255,0.5); font-size: 14px; pointer-events: none;
  }
  .login-fields { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
  .field-label { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.6); margin-bottom: 6px; }
  .field-input {
    width: 100%; padding: 12px 16px; border-radius: 10px; font-size: 14px;
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
    color: #fff; font-family: 'Plus Jakarta Sans', sans-serif; outline: none;
    transition: border-color 0.2s;
  }
  .field-input::placeholder { color: rgba(255,255,255,0.35); }
  .field-input:focus { border-color: var(--gold-light); }
  .btn-login {
    width: 100%; padding: 14px; border-radius: 12px; border: none; cursor: pointer;
    font-size: 15px; font-weight: 700; font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--gold); color: var(--navy); transition: all 0.2s;
  }
  .btn-login:hover { background: var(--gold-light); transform: translateY(-1px); }
  .btn-login:active { transform: translateY(0); }
  .btn-login:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

  /* ── APP LAYOUT ── */
  #app { display: none; min-height: 100vh; }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; width: var(--sidebar-w);
    background: var(--navy); display: flex; flex-direction: column; z-index: 100;
  }
  .sb-logo {
    padding: 20px; display: flex; align-items: center; gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .sb-logo-icon {
    width: 38px; height: 38px; border-radius: 8px;
    object-fit: cover; flex-shrink: 0;
  }
  .sb-logo-text { font-size: 13px; font-weight: 700; color: #fff; line-height: 1.3; }
  .sb-logo-sub { font-size: 10px; color: rgba(255,255,255,0.45); }
  .sb-nav { flex: 1; padding: 16px 12px; overflow-y: auto; }
  .sb-section { font-size: 10px; font-weight: 600; color: rgba(255,255,255,0.35); letter-spacing: 0.1em; text-transform: uppercase; padding: 0 8px; margin: 16px 0 8px; }
  .sb-item {
    display: flex; align-items: center; gap: 10px; padding: 9px 12px;
    border-radius: 8px; cursor: pointer; transition: all 0.15s; margin-bottom: 2px;
    color: rgba(255,255,255,0.65); font-size: 13px; font-weight: 500;
  }
  .sb-item:hover { background: rgba(255,255,255,0.08); color: #fff; }
  .sb-item.active { background: rgba(212,160,23,0.2); color: var(--gold-light); }
  .sb-item .sb-icon { font-size: 16px; width: 20px; text-align: center; }
  .sb-badge {
    margin-left: auto; background: var(--red); color: #fff;
    font-size: 10px; font-weight: 700; border-radius: 10px; padding: 2px 7px;
  }
  .sb-footer {
    padding: 16px 12px; border-top: 1px solid rgba(255,255,255,0.1);
  }
  .sb-user {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px;
    border-radius: 8px; background: rgba(255,255,255,0.06);
    cursor: pointer; transition: background 0.2s ease, transform 0.2s ease;
  }
  .sb-user:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-1px);
  }
  .sb-avatar {
    width: 34px; height: 34px; border-radius: 50%; background: var(--teal-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; color: #fff; flex-shrink: 0;
  }
  .sb-user-name { font-size: 13px; font-weight: 600; color: #fff; }
  .sb-user-role { font-size: 11px; color: rgba(255,255,255,0.45); }
  .sb-logout {
    margin-top: 8px; width: 100%; padding: 8px; border-radius: 8px;
    background: none; border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5); font-size: 12px; cursor: pointer;
    font-family: 'Plus Jakarta Sans', sans-serif; transition: all 0.15s;
  }
  .sb-logout:hover { background: rgba(255,255,255,0.06); color: #fff; }
  .main-area { margin-left: var(--sidebar-w); min-height: 100vh; }
  .topbar {
    height: var(--header-h); background: var(--surface); border-bottom: 1px solid var(--border);
    display: flex; align-items: center; padding: 0 28px; gap: 20px; position: sticky; top: 0; z-index: 50;
  }
  .topbar-title { font-size: 17px; font-weight: 700; color: var(--text); }
  .topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; position: relative; }
  .topbar-notifications { position: relative; }
  .topbar-notif-btn {
    position: relative; width: 42px; height: 42px; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--border); background: var(--surface);
  }
  .topbar-notif-btn:hover { background: var(--surface2); }
  .topbar-notif-count {
    position: absolute; top: -4px; right: -2px; min-width: 18px; height: 18px;
    background: var(--red); color: #fff; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 700; padding: 0 5px;
  }
  .topbar-notif-dropdown {
    position: absolute; right: 0; top: calc(100% + 10px); width: 420px;
    background: #fff; border: 1px solid rgba(15, 23, 42, 0.08); border-radius: 16px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12); z-index: 100; overflow: hidden;
  }
  .topbar-notif-dropdown.hidden { display: none; }
  .notif-panel-header,
  .notif-panel-footer {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 14px 16px; background: #fff;
  }
  .notif-panel-title {
    font-size: 15px; font-weight: 700; color: var(--text);
  }
  .notif-panel-subtitle {
    font-size: 12px; color: var(--text3); margin-top: 2px;
  }
  .notif-list { max-height: 360px; overflow-y: auto; background: #fff; }
  .notif-list-empty {
    padding: 18px 16px; color: var(--text3); font-size: 13px; text-align: center;
  }
  .notif-item {
    display: flex; gap: 12px; padding: 12px 16px; cursor: pointer;
    border-top: 1px solid rgba(15, 23, 42, 0.06); align-items: flex-start;
  }
  .notif-item:first-child { border-top: none; }
  .notif-item:hover { background: #f8fbff; }
  .notif-item.unread {
    background: #f2f8ff;
    border-left: 3px solid var(--blue);
  }
  .notif-icon {
    width: 38px; height: 38px; border-radius: 12px; display: flex;
    align-items: center; justify-content: center; font-size: 16px;
    flex-shrink: 0; color: #fff;
  }
  .notif-icon.info { background: var(--blue); }
  .notif-icon.success { background: var(--green); }
  .notif-icon.warning { background: var(--gold); color: var(--navy); }
  .notif-icon.error { background: var(--red); }
  .notif-content { flex: 1; min-width: 0; }
  .notif-title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
  .notif-title { font-size: 13px; font-weight: 700; color: var(--text); }
  .notif-message { font-size: 12px; color: var(--text2); line-height: 1.4; margin-bottom: 6px; }
  .notif-meta { font-size: 11px; color: var(--text3); }
  .notif-unread-dot {
    width: 8px; height: 8px; border-radius: 999px; background: var(--blue); flex-shrink: 0;
  }
  .notif-empty-state {
    padding: 32px 16px; text-align: center; color: var(--text3);
  }
  .notif-empty-icon {
    font-size: 30px; margin-bottom: 8px;
  }
  .notif-empty-title {
    font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 4px;
  }
  .notif-empty-text {
    font-size: 12px; color: var(--text3);
  }
  .topbar-notif-dropdown::before {
    content: '';
    position: absolute; top: -8px; right: 20px;
    width: 14px; height: 14px; background: #fff; transform: rotate(45deg);
    border-left: 1px solid rgba(15, 23, 42, 0.08); border-top: 1px solid rgba(15, 23, 42, 0.08);
  }
  .notif-panel-footer { border-top: 1px solid rgba(15, 23, 42, 0.06); }

  .content { padding: 28px; }
  
  /* ── PAGES (hidden by default) ── */
  .page { display: none; }
  .page.active { display: block; }

  /* ── COMMON COMPONENTS ── */
  .stats-row { display: grid; gap: 16px; margin-bottom: 24px; }
  .stats-row.cols4 { grid-template-columns: repeat(4,1fr); }
  .stats-row.cols3 { grid-template-columns: repeat(3,1fr); }
  .stat-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
    padding: 20px; position: relative; overflow: hidden;
  }
  .stat-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  }
  .stat-card.blue::before { background: var(--blue); }
  .stat-card.green::before { background: var(--green); }
  .stat-card.amber::before { background: var(--amber); }
  .stat-card.red::before { background: var(--red); }
  .stat-card.teal::before { background: var(--teal); }
  .stat-icon { font-size: 20px; margin-bottom: 12px; }
  .stat-val { font-size: 28px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
  .stat-label { font-size: 12px; color: var(--text3); font-weight: 500; }
  .stat-trend { font-size: 11px; margin-top: 6px; font-weight: 600; }
  .stat-trend.up { color: var(--green); }
  .stat-trend.down { color: var(--red); }
  .card {
    background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
    overflow: hidden;
  }
  .card-header {
    padding: 18px 22px; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
  }
  .card-title { font-size: 14px; font-weight: 700; color: var(--text); }
  .card-body { padding: 22px; }
  .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
  .three-col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; margin-bottom: 24px; }
  .btn {
    padding: 9px 18px; border-radius: 8px; border: none; cursor: pointer;
    font-size: 13px; font-weight: 600; font-family: 'Plus Jakarta Sans', sans-serif;
    transition: all 0.15s; display: inline-flex; align-items: center; gap: 6px;
  }
  .btn-primary { background: var(--navy); color: #fff; }
  .btn-primary:hover { background: var(--navy2); }
  .btn-teal { background: var(--teal); color: #fff; }
  .btn-teal:hover { background: var(--teal-light); }
  .btn-gold { background: var(--gold); color: var(--navy); }
  .btn-gold:hover { background: var(--gold-light); }
  .btn-outline {
    background: none; border: 1px solid var(--border); color: var(--text2);
  }
  .btn-outline:hover { background: var(--surface2); }
  .btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 6px; }
  .btn-icon {
    width: 34px; height: 34px; min-width: 34px; padding: 0; border-radius: 8px;
    font-size: 16px; justify-content: center; text-align: center;
  }
  .btn-icon:hover { background: var(--surface2); }
  .btn-danger { background: var(--red-bg); color: var(--red); border: 1px solid #f0b0a8; }
  .tag {
    display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 6px;
    font-size: 11px; font-weight: 600;
  }
  .tag-green { background: var(--green-bg); color: var(--green); }
  .tag-red { background: var(--red-bg); color: var(--red); }
  .tag-amber { background: var(--amber-bg); color: var(--amber); }
  .tag-blue { background: var(--blue-bg); color: var(--blue); }
  .tag-teal { background: #E0F4F5; color: var(--teal); }
  .tag-gray { background: var(--surface2); color: var(--text2); }
  table { width: 100%; border-collapse: collapse; }
  th {
    text-align: left; font-size: 11px; font-weight: 600; color: var(--text3);
    padding: 10px 16px; background: var(--surface2); text-transform: uppercase;
    letter-spacing: 0.06em; border-bottom: 1px solid var(--border);
  }
  td {
    padding: 13px 16px; border-bottom: 1px solid var(--border);
    font-size: 13px; color: var(--text); vertical-align: middle;
  }
  tr:last-child td { border-bottom: none; }
  tr:hover td { background: var(--surface2); }
  .avatar {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0;
  }
  .av-blue { background: var(--blue-bg); color: var(--blue); }
  .av-teal { background: #E0F4F5; color: var(--teal); }
  .av-gold { background: #FDF3E0; color: var(--amber); }
  .av-green { background: var(--green-bg); color: var(--green); }
  .user-cell { display: flex; align-items: center; gap: 10px; }
  .user-cell-name { font-size: 13px; font-weight: 600; color: var(--text); }
  .user-cell-sub { font-size: 11px; color: var(--text3); }
  .progress-bar-outer {
    background: var(--surface2); border-radius: 99px; height: 8px; overflow: hidden;
  }
  .progress-bar-inner { height: 100%; border-radius: 99px; background: var(--teal); transition: width 0.3s; }
  .section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 14px; }
  .section-head h2 { font-size: 20px; font-weight: 800; }
  .section-head-actions { display: flex; gap: 12px; flex-wrap: wrap; }
  .breadcrumb { font-size: 12px; color: var(--text3); margin-bottom: 18px; }

  .profile-hero {
    background: linear-gradient(135deg, rgba(10,110,116,0.95), rgba(21,95,149,0.95));
    border-radius: 18px;
    color: #fff;
    padding: 28px 30px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
  .profile-hero-left {
    display: flex;
    align-items: center;
    gap: 18px;
  }
  .profile-avatar-large {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 800;
    background: rgba(255,255,255,0.18);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.22);
    overflow: hidden;
  }
  .profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .profile-name { font-size: 24px; font-weight: 900; margin-bottom: 6px; }
  .profile-role { font-size: 14px; color: rgba(255,255,255,0.78); }
  .profile-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
  .profile-overview-card { border: none; box-shadow: 0 18px 40px rgba(0,0,0,0.06); }
  .profile-overview-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
  .profile-overview-label { font-size: 11px; color: var(--text3); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.06em; }
  .profile-overview-value { font-size: 18px; font-weight: 700; color: var(--text); }

  /* ── FACE SCAN ── */
  .face-modal-backdrop {
    position: fixed; inset: 0; background: rgba(11,36,71,0.7); backdrop-filter: blur(4px);
    z-index: 1000; display: flex; align-items: center; justify-content: center;
  }
  .face-modal {
    background: var(--surface); border-radius: 20px; padding: 32px;
    width: 380px; text-align: center; position: relative;
  }
  .face-modal h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
  .face-modal p { font-size: 13px; color: var(--text2); margin-bottom: 24px; }
  .camera-view {
    width: 100%; aspect-ratio: 4/3; border-radius: 14px; overflow: hidden;
    background: #0a0f1a; position: relative; margin-bottom: 20px;
  }
  .camera-feed { width: 100%; height: 100%; object-fit: cover; }
  .scan-overlay {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  }
  .scan-frame {
    width: 180px; height: 200px; position: relative;
  }
  .scan-frame::before, .scan-frame::after {
    content: ''; position: absolute; width: 40px; height: 40px;
    border-color: var(--gold-light); border-style: solid;
  }
  .scan-frame::before { top: 0; left: 0; border-width: 3px 0 0 3px; border-radius: 4px 0 0 0; }
  .scan-frame::after { bottom: 0; right: 0; border-width: 0 3px 3px 0; border-radius: 0 0 4px 0; }
  .scan-corners-br::before { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 40px; border-bottom: 3px solid var(--gold-light); border-left: 3px solid var(--gold-light); border-radius: 0 0 0 4px; }
  .scan-corners-br::after { content: ''; position: absolute; top: 0; right: 0; width: 40px; height: 40px; border-top: 3px solid var(--gold-light); border-right: 3px solid var(--gold-light); border-radius: 0 4px 0 0; }
  .scan-line {
    position: absolute; left: 4px; right: 4px; height: 2px;
    background: linear-gradient(to right, transparent, var(--gold-light), transparent);
    animation: scanMove 2s linear infinite;
  }
  @keyframes scanMove { 0%{top:4px} 100%{top:calc(100% - 6px)} }
  .scan-status { font-size: 13px; font-weight: 600; padding: 8px 20px; border-radius: 8px; margin-bottom: 16px; }
  .scan-status.scanning { background: var(--blue-bg); color: var(--blue); }
  .scan-status.success { background: var(--green-bg); color: var(--green); }
  .scan-status.error { background: var(--red-bg); color: var(--red); }
  .btn-close-modal {
    position: absolute; top: 16px; right: 16px; width: 28px; height: 28px;
    border-radius: 50%; border: 1px solid var(--border); background: var(--surface);
    cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center;
    color: var(--text2);
  }

  /* ── OJT PROGRESS ── */
  .ojt-progress-ring { display: flex; align-items: center; gap: 24px; padding: 20px 0; }
  .ring-wrap { position: relative; width: 120px; height: 120px; flex-shrink: 0; }
  .ring-wrap svg { transform: rotate(-90deg); }
  .ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
  .ring-pct { font-size: 22px; font-weight: 800; color: var(--navy); }
  .ring-label { font-size: 10px; color: var(--text3); font-weight: 600; }

  /* ── TASK CARDS ── */
  .task-item {
    display: flex; align-items: flex-start; gap: 14px; padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }
  .task-item:last-child { border-bottom: none; }
  .task-check {
    width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border);
    flex-shrink: 0; margin-top: 2px; cursor: pointer; transition: all 0.2s;
    display: flex; align-items: center; justify-content: center; font-size: 10px;
  }
  .task-check.done { background: var(--green); border-color: var(--green); color: #fff; }
  .task-name { font-size: 13px; font-weight: 600; color: var(--text); }
  .task-due { font-size: 11px; color: var(--text3); margin-top: 2px; }
  .task-meta { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

  /* ── ATTENDANCE LOG ── */
  .log-item {
    display: flex; align-items: center; gap: 12px; padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  .log-item:last-child { border-bottom: none; }
  .log-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
  .log-icon.in { background: var(--green-bg); }
  .log-icon.out { background: var(--red-bg); }
  .log-time { font-family: 'DM Mono', monospace; font-size: 14px; font-weight: 500; color: var(--text); }
  .log-date { font-size: 11px; color: var(--text3); }

  /* ── FILE SUBMISSION ── */
  .upload-zone {
    border: 2px dashed var(--border); border-radius: 12px; padding: 32px;
    text-align: center; cursor: pointer; transition: all 0.2s; background: var(--surface2);
  }
  .upload-zone:hover { border-color: var(--teal-light); background: #E8F8F9; }
  .upload-icon { font-size: 32px; margin-bottom: 10px; }
  .upload-text { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
  .upload-sub { font-size: 12px; color: var(--text3); }

  /* ── CHARTS PLACEHOLDER ── */
  .chart-bar-group { display: flex; align-items: flex-end; gap: 8px; height: 100px; margin-bottom: 8px; }
  .chart-bar { flex: 1; border-radius: 6px 6px 0 0; background: var(--navy2); opacity: 0.8; min-width: 16px; }
  .chart-labels { display: flex; gap: 8px; }
  .chart-label { flex: 1; text-align: center; font-size: 10px; color: var(--text3); }
  .chart-bar:hover { opacity: 1; }

  /* SCROLLBAR */
  ::-webkit-scrollbar { width: 5px; height: 5px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }

  /* ── RESPONSIVE / UTILITY ── */
  .mt-0 { margin-top: 0; } .mb-4 { margin-bottom: 4px; } .mb-8 { margin-bottom: 8px; }
  .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
  .flex { display: flex; } .items-center { align-items: center; }
  .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
  .ml-auto { margin-left: auto; }
  .text-muted { color: var(--text2); }
  .text-sm { font-size: 12px; }
  .font-bold { font-weight: 700; }
  .hidden { display: none !important; }

  /* modal overlay inline form */
  .modal-overlay {
    position: fixed; inset: 0; background: rgba(11,36,71,0.5); z-index: 500;
    display: flex; align-items: center; justify-content: center;
  }
  .modal-box {
    background: var(--surface); border-radius: 16px; padding: 28px;
    width: 460px; max-width: 95vw; max-height: 85vh; overflow-y: auto;
  }
  .modal-title { font-size: 17px; font-weight: 700; margin-bottom: 20px; }
  .form-row { margin-bottom: 16px; }
  .form-label { font-size: 12px; font-weight: 600; color: var(--text2); margin-bottom: 6px; display: block; }
  .form-input, .form-select {
    width: 100%; padding: 10px 14px; border-radius: 8px; font-size: 13px;
    border: 1px solid var(--border); font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text); background: var(--surface); outline: none;
  }
  .form-input:focus, .form-select:focus { border-color: var(--teal-light); }
  .reports-filter-grid { grid-template-columns: repeat(2, minmax(0, 360px)); gap: 10px 16px !important; }
  .reports-filter-grid .form-row { margin-bottom: 10px; }
  .reports-filter-grid .form-select { padding: 8px 12px; min-height: 38px; }
  .alert {
    padding: 14px 16px; border-radius: 14px; font-size: 13px; line-height: 1.5;
    border: 1px solid transparent; margin-top: 16px;
  }
  .alert-success { background: rgba(14,122,90,0.12); color: var(--green); border-color: rgba(14,122,90,0.28); }
  .alert-warning { background: rgba(212,160,23,0.12); color: var(--amber); border-color: rgba(212,160,23,0.28); }
  .alert-danger { background: rgba(192,57,43,0.12); color: var(--red); border-color: rgba(192,57,43,0.28); }
  .badge { display: inline-flex; align-items: center; justify-content: center; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
  .admin-user-action-group {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-width: 170px; margin: 0 auto;
  }
  .admin-user-action-btn {
    width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 10px;
    background: #F4F7FB; color: var(--text2); display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    box-shadow: 0 1px 2px rgba(11, 36, 71, 0.04);
  }
  .admin-user-action-btn:hover {
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 8px 16px rgba(11, 36, 71, 0.08);
  }
  .admin-user-action-view { color: var(--blue); }
  .admin-user-action-view:hover { color: var(--blue); background: var(--blue-bg); }
  .admin-user-action-edit { color: var(--amber); }
  .admin-user-action-edit:hover { color: var(--amber); background: #FDF3E0; }
  .admin-user-action-reset { color: #6B4FD6; }
  .admin-user-action-reset:hover { color: #6B4FD6; background: #F3EEFF; }
  .admin-user-action-deactivate { color: var(--red); }
  .admin-user-action-deactivate:hover { color: var(--red); background: var(--red-bg); }
  .admin-user-action-group .admin-user-action-icon { font-size: 16px; }
  .admin-user-action-icon { font-size: 18px; line-height: 1; }
  .academic-year-actions { text-align: center; vertical-align: middle; }
  .academic-year-action-group {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  }
  .academic-year-action-group .admin-user-action-btn {
    width: 32px; height: 32px; padding: 0;
  }
  .camera-stage { position: relative; border-radius: 18px; overflow: hidden; background: #000; min-height: 300px; display: flex; align-items: center; justify-content: center; }
  .camera-stage video { width: 100%; height: 100%; object-fit: cover; }
  .face-guide-overlay {
    position: absolute; inset: 0; pointer-events: none; display: flex; align-items: center; justify-content: center;
  }
  .face-guide-frame {
    width: 60%; aspect-ratio: 4 / 5; border: 2px dashed rgba(255,255,255,0.8); border-radius: 20px;
    box-shadow: 0 0 0 999px rgba(0,0,0,0.18);
  }
  .face-preview-img-large { width: 100%; border-radius: 16px; max-height: 320px; object-fit: cover; }
  .info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
  .info-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--text2); font-size: 14px; }
  .info-list li::before { content: '•'; color: var(--teal); margin-top: 3px; }
  .modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
