/* ═══════════════════════════════════════════════════════════
   Online Exam System — Complete Stylesheet
   ═══════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --navy:     #0f2044;
  --navy2:    #1a3560;
  --navy3:    #234680;
  --gold:     #c9a84c;
  --gold2:    #e8c96a;
  --gold-bg:  #fdf8ec;
  --teal:     #0d9488;
  --teal2:    #14b8a6;
  --green:    #16a34a;
  --green-bg: #f0fdf4;
  --red:      #dc2626;
  --red-bg:   #fef2f2;
  --amber:    #d97706;
  --amber-bg: #fffbeb;
  --blue:     #2563eb;
  --white:    #ffffff;
  --g50:      #f8fafc;
  --g100:     #f1f5f9;
  --g200:     #e2e8f0;
  --g300:     #cbd5e1;
  --g400:     #94a3b8;
  --g500:     #64748b;
  --g600:     #475569;
  --g700:     #334155;
  --g800:     #1e293b;
  --r4:       4px;
  --r8:       8px;
  --r12:      12px;
  --r16:      16px;
  --r24:      24px;
  --s1:       0 1px 3px rgba(0,0,0,.1);
  --s2:       0 4px 12px rgba(0,0,0,.1);
  --s3:       0 8px 24px rgba(0,0,0,.14);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--g50);
  color: var(--g800);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

/* ── TYPOGRAPHY ────────────────────────────────────── */
h1, h2, h3 { font-family: 'Playfair Display', serif; font-weight: 700; }
h1 { font-size: 2rem; line-height: 1.2; }
h2 { font-size: 1.5rem; line-height: 1.3; }
h3 { font-size: 1.2rem; line-height: 1.4; }
h4 { font-size: 1rem; font-weight: 600; }
p  { line-height: 1.7; }
a  { color: var(--navy); text-decoration: none; }

/* ── LAYOUT ────────────────────────────────────────── */
.container   { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm{ max-width: 820px;  margin: 0 auto; padding: 0 24px; }
.container-xs{ max-width: 520px;  margin: 0 auto; padding: 0 24px; }
.page-pad    { padding: 32px 24px; }

/* ── TOP NAV ────────────────────────────────────────── */
.topnav {
  background: var(--navy);
  height: 58px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.nav-logo {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700; color: var(--navy); font-size: 13px;
}
.nav-title  { color: #fff; font-weight: 700; font-size: 1rem; letter-spacing: .01em; }
.nav-sub    { color: var(--g400); font-size: 10px; letter-spacing: .05em; }
.nav-links  { display: flex; align-items: center; gap: 4px; }
.nav-link {
  color: var(--g300); font-size: 13.5px; font-weight: 500;
  padding: 6px 12px; border-radius: var(--r8);
  display: flex; align-items: center; gap: 6px;
  transition: all .15s;
}
.nav-link:hover, .nav-link.active { color: #fff; background: rgba(255,255,255,.1); }
.nav-user {
  display: flex; align-items: center; gap: 8px;
  color: var(--g300); font-size: 13.5px;
}
.nav-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--navy2); border: 1.5px solid var(--navy3);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--gold2);
}
.notif-wrap { position: relative; }
.notif-btn {
  background: none; border: none; cursor: pointer;
  color: var(--g400); padding: 6px 10px; border-radius: var(--r8);
  transition: .15s; font-size: 16px;
}
.notif-btn:hover { color: #fff; background: rgba(255,255,255,.1); }
.notif-badge {
  position: absolute; top: 1px; right: 2px;
  background: var(--red); color: #fff;
  font-size: 10px; font-weight: 700;
  min-width: 17px; height: 17px; border-radius: 9px; padding: 0 3px;
  display: flex; align-items: center; justify-content: center;
}
.notif-drop {
  position: absolute; top: 48px; right: 0;
  width: 340px; background: #fff;
  border: 1px solid var(--g200); border-radius: var(--r12);
  box-shadow: var(--s3); z-index: 300; display: none; overflow: hidden;
}
.notif-drop.open { display: block; }
.notif-drop-hd {
  padding: 12px 16px; border-bottom: 1px solid var(--g100);
  font-weight: 600; font-size: 14px; color: var(--navy);
}
.notif-item { padding: 12px 16px; border-bottom: 1px solid var(--g100); transition: .15s; }
.notif-item:hover { background: var(--g50); }
.notif-item-title { font-weight: 600; font-size: 13px; margin-bottom: 2px; }
.notif-item-body  { font-size: 12px; color: var(--g500); line-height: 1.4; }
.notif-item-time  { font-size: 11px; color: var(--g400); margin-top: 3px; }

/* ── MESSAGES ───────────────────────────────────────── */
.msgs { max-width: 1200px; margin: 12px auto 0; padding: 0 24px; }
.alert {
  padding: 12px 16px; border-radius: var(--r8);
  margin-bottom: 10px; font-size: 14px; line-height: 1.5;
  display: flex; align-items: flex-start; gap: 10px;
  border: 1px solid transparent;
}
.alert i { margin-top: 1px; flex-shrink: 0; }
.alert-success { background: var(--green-bg); border-color: #86efac; color: #14532d; }
.alert-danger,
.alert-error   { background: var(--red-bg);   border-color: #fca5a5; color: #7f1d1d; }
.alert-warning { background: var(--amber-bg); border-color: #fde68a; color: #78350f; }
.alert-info    { background: #eff6ff;          border-color: #bfdbfe; color: #1e3a5f; }

/* ── CARDS ──────────────────────────────────────────── */
.card {
  background: #fff;
  border: 1px solid var(--g200);
  border-radius: var(--r16);
  box-shadow: var(--s1);
}
.card-body { padding: 24px; }
.card-hd   { padding: 16px 24px; border-bottom: 1px solid var(--g100); }
.card-ft   { padding: 16px 24px; border-top: 1px solid var(--g100); }

/* ── BUTTONS ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: var(--r8);
  font-size: 14px; font-weight: 500; cursor: pointer;
  border: none; outline: none; transition: all .18s;
  text-decoration: none; white-space: nowrap; line-height: 1;
}
.btn-sm  { padding: 7px 14px; font-size: 13px; border-radius: var(--r8); }
.btn-lg  { padding: 13px 28px; font-size: 15px; border-radius: var(--r12); }
.btn-xl  { padding: 15px 36px; font-size: 16px; font-weight: 600; border-radius: var(--r12); }
.btn-block { width: 100%; justify-content: center; }
.btn-navy   { background: var(--navy);  color: #fff; }
.btn-navy:hover { background: var(--navy2); transform: translateY(-1px); box-shadow: var(--s2); }
.btn-gold   { background: var(--gold);  color: var(--navy); font-weight: 600; }
.btn-gold:hover { background: var(--gold2); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(201,168,76,.4); }
.btn-outline { background: transparent; border: 1.5px solid var(--g300); color: var(--g700); }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); background: var(--g50); }
.btn-danger { background: var(--red);   color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-success{ background: var(--green); color: #fff; }
.btn-success:hover { background: #15803d; }
.btn-teal   { background: var(--teal);  color: #fff; }
.btn-teal:hover { background: #0f766e; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ── FORMS ──────────────────────────────────────────── */
.form-group  { margin-bottom: 18px; }
.form-label  { display: block; font-size: 13px; font-weight: 500; color: var(--g700); margin-bottom: 5px; }
.form-input,
input.form-input,
textarea.form-input,
select.form-input {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--g200); border-radius: var(--r8);
  font-family: 'Inter', sans-serif; font-size: 14px; color: var(--g800);
  background: #fff; transition: border .15s, box-shadow .15s;
  appearance: none;
}
.form-input:focus {
  outline: none; border-color: var(--navy2);
  box-shadow: 0 0 0 3px rgba(26,53,96,.12);
}
.form-input::placeholder { color: var(--g400); }
textarea.form-input { resize: vertical; min-height: 100px; line-height: 1.6; }
select.form-input   { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 36px; }
.form-error { color: var(--red); font-size: 12px; margin-top: 4px; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-check { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.form-check input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--navy); cursor: pointer; flex-shrink: 0; }

/* ── PILLS / BADGES ─────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
  border: 1px solid transparent;
}
.pill-green  { background: var(--green-bg); color: var(--green);   border-color: #86efac; }
.pill-red    { background: var(--red-bg);   color: var(--red);     border-color: #fca5a5; }
.pill-gold   { background: var(--gold-bg);  color: #8b6914;        border-color: #e8d5a0; }
.pill-navy   { background: #eef1f7;         color: var(--navy); }
.pill-teal   { background: #f0fdfa;         color: var(--teal);    border-color: #99f6e4; }
.pill-gray   { background: var(--g100);     color: var(--g600); }
.pill-amber  { background: var(--amber-bg); color: var(--amber);   border-color: #fde68a; }

/* ── STATS GRID ─────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 14px; margin-bottom: 28px; }
.stat-card  {
  background: #fff; border: 1px solid var(--g200); border-radius: var(--r12); padding: 18px;
  box-shadow: var(--s1);
}
.stat-icon  { width: 36px; height: 36px; border-radius: var(--r8); display: flex; align-items: center; justify-content: center; font-size: 1rem; margin-bottom: 10px; }
.stat-label { font-size: 11px; font-weight: 500; color: var(--g500); text-transform: uppercase; letter-spacing: .05em; }
.stat-val   { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 700; margin-top: 2px; }

/* ── TABLE ──────────────────────────────────────────── */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th {
  background: var(--g50); padding: 10px 14px;
  text-align: left; font-size: 11.5px; font-weight: 600; color: var(--g500);
  text-transform: uppercase; letter-spacing: .05em;
  border-bottom: 1px solid var(--g200);
}
.tbl td    { padding: 12px 14px; border-bottom: 1px solid var(--g100); vertical-align: middle; }
.tbl tr:hover td { background: var(--g50); }
.tbl tr:last-child td { border-bottom: none; }

/* ── DIVIDER ────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--g200); margin: 20px 0; }

/* ── UTILS ──────────────────────────────────────────── */
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap    { flex-wrap: wrap; }
.gap-1 { gap: 6px; }  .gap-2 { gap: 12px; } .gap-3 { gap: 20px; }
.mt-1  { margin-top: 6px; }  .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 20px; } .mt-4 { margin-top: 32px; }
.mb-1  { margin-bottom: 6px; } .mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 20px; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--g500); }
.text-sm     { font-size: 13px; }
.text-xs     { font-size: 12px; }
.fw-600      { font-weight: 600; }
.fw-700      { font-weight: 700; }
.hidden      { display: none !important; }
.w-full      { width: 100%; }

/* ── AUTH PAGES ─────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f2044 0%, #1a3560 50%, #0d9488 100%);
  display: flex; align-items: center; justify-content: center; padding: 32px 16px;
}
.auth-box  { width: 100%; max-width: 480px; }
.auth-logo-wrap { text-align: center; margin-bottom: 28px; }
.auth-logo {
  width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: var(--navy);
  box-shadow: 0 8px 24px rgba(201,168,76,.4);
}
.auth-title { color: #fff; font-size: 1.6rem; margin-bottom: 4px; }
.auth-sub   { color: rgba(255,255,255,.6); font-size: .9rem; }
.auth-card  { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.auth-tabs  { display: flex; border-bottom: 1px solid var(--g100); }
.auth-tab {
  flex: 1; padding: 14px; text-align: center;
  font-size: 14px; font-weight: 500; color: var(--g500);
  text-decoration: none; border-bottom: 2.5px solid transparent;
  transition: .2s;
}
.auth-tab.active { color: var(--navy); border-bottom-color: var(--gold); background: var(--gold-bg); font-weight: 600; }
.auth-body  { padding: 28px; }
.auth-footer{ color: rgba(255,255,255,.4); font-size: 12px; text-align: center; margin-top: 20px; }

/* ── EXAM SECTION LAYOUT ────────────────────────────── */
html.exam-mode, body.exam-mode { overflow: hidden; height: 100%; }
.exam-shell  { display: flex; flex-direction: column; height: 100vh; overflow: hidden; background: var(--g50); }
.exam-topbar {
  background: var(--navy); height: 56px;
  display: flex; align-items: center; padding: 0 20px; gap: 14px;
  flex-shrink: 0; z-index: 50;
  border-bottom: 2px solid var(--navy2);
}
.exam-topbar-title { color: #fff; font-family: 'Playfair Display', serif; font-size: .95rem; font-weight: 700; }
.exam-sec-badge {
  padding: 4px 12px; border-radius: 20px;
  background: var(--gold); color: var(--navy); font-size: 12px; font-weight: 700;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: lv 1.4s infinite; }
@keyframes lv { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(1.4)} }

/* Section steps bar */
.sec-steps {
  background: var(--navy2); border-bottom: 1px solid var(--navy3);
  padding: 6px 20px; display: flex; align-items: center; gap: 6px; flex-shrink: 0;
}
.sec-step {
  display: flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 500;
  color: var(--g400); white-space: nowrap;
}
.sec-step.current { background: rgba(201,168,76,.2); color: var(--gold2); }
.sec-step.done    { color: var(--teal2); }
.sec-sep { color: var(--navy3); font-size: 10px; }

/* Main exam layout */
.exam-body  { display: flex; flex: 1; overflow: hidden; }
.exam-qpanel { flex: 1; overflow-y: auto; padding: 20px; }
.exam-qpanel::-webkit-scrollbar { width: 4px; }
.exam-qpanel::-webkit-scrollbar-thumb { background: var(--g300); border-radius: 2px; }

/* Proctor sidebar */
.proctor-bar {
  width: 200px; flex-shrink: 0; background: var(--navy2);
  border-left: 1px solid var(--navy3);
  display: flex; flex-direction: column; padding: 12px; gap: 8px;
  overflow-y: auto;
}
.proctor-bar h6 { color: var(--gold); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
#webcam-el {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: 8px; border: 2px solid var(--navy3);
  transform: scaleX(-1); background: #000;
}
.p-row { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--g400); }
.p-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.p-dot-green { background: var(--green); }
.p-dot-red   { background: var(--red); }
.p-dot-gray  { background: var(--g500); }
.p-sep { border-top: 1px solid var(--navy3); margin: 2px 0; }
.p-count-label { font-size: 10px; color: var(--g500); text-transform: uppercase; letter-spacing: .04em; }
.p-count-val   { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: var(--gold2); }

/* Exam footer */
.exam-footer {
  background: #fff; border-top: 1px solid var(--g200);
  padding: 10px 20px; display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}

/* Timer */
.exam-timer { text-align: right; }
.timer-label{ font-size: 9px; color: var(--g400); text-transform: uppercase; letter-spacing: .06em; }
.timer-val  { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; color: var(--gold2); letter-spacing: .03em; }
.timer-val.urgent { color: var(--red); animation: bl .7s infinite; }
@keyframes bl { 0%,100%{opacity:1} 50%{opacity:.3} }

/* Save flash */
.save-flash {
  position: fixed; top: 68px; right: 215px;
  background: var(--green); color: #fff; padding: 5px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 600; z-index: 200; display: none;
}

/* Anti-cheat overlay */
#ac-overlay {
  position: fixed; inset: 0;
  background: rgba(185,28,28,.97); z-index: 9999;
  display: none; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 32px;
}
#ac-overlay.show { display: flex; }
#ac-overlay h2 { color: #fff; font-size: 2rem; margin-bottom: 12px; }
#ac-overlay p  { color: rgba(255,255,255,.85); font-size: 1rem; margin-bottom: 20px; max-width: 500px; }
.ac-count { font-size: 3rem; font-weight: 700; color: #fff; margin: 8px 0; }

/* ── QUESTION CARDS ─────────────────────────────────── */
.q-card {
  background: #fff; border: 1px solid var(--g200); border-radius: var(--r12);
  margin-bottom: 16px; overflow: hidden; box-shadow: var(--s1);
}
.q-card-hd {
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy2) 100%);
  padding: 10px 18px; display: flex; align-items: center; justify-content: space-between;
}
.q-num  { color: var(--gold2); font-family: 'Playfair Display', serif; font-size: .95rem; font-weight: 700; }
.q-type { background: rgba(255,255,255,.12); color: var(--g300); font-size: 11px; padding: 2px 8px; border-radius: 10px; }
.q-body { padding: 18px; }
.q-text { font-size: 15px; line-height: 1.75; color: var(--g800); margin-bottom: 14px; }
.q-passage {
  background: var(--g50); border-left: 3px solid var(--gold);
  padding: 12px 14px; border-radius: 0 var(--r8) var(--r8) 0;
  font-size: 13.5px; line-height: 1.85; color: var(--g700);
  margin-bottom: 14px; max-height: 240px; overflow-y: auto;
}

/* MCQ */
.mcq-list { display: grid; gap: 8px; }
.mcq-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border: 1.5px solid var(--g200); border-radius: var(--r8);
  cursor: pointer; transition: all .15s; font-size: 14px; user-select: none;
}
.mcq-opt:hover { border-color: var(--navy2); background: #f0f4ff; }
.mcq-opt.selected { border-color: var(--navy); background: #eef1f7; }
.mcq-opt input[type=radio] { width: 15px; height: 15px; accent-color: var(--navy); cursor: pointer; }
.mcq-letter {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--g100); color: var(--navy);
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.mcq-opt.selected .mcq-letter { background: var(--navy); color: #fff; }

/* Writing word count */
.wc-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 10px; background: var(--g50);
  border: 1px solid var(--g200); border-top: none;
  border-radius: 0 0 var(--r8) var(--r8); font-size: 12px; color: var(--g500);
}
.wc-num { font-weight: 700; color: var(--navy); }
.wc-num.ok  { color: var(--green); }
.wc-num.low { color: var(--red); }

/* Speaking recorder */
.speak-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  border-radius: var(--r12); padding: 20px; text-align: center;
}
.speak-box h5 { color: var(--gold2); font-size: .95rem; font-weight: 600; margin-bottom: 12px; }
.waveform     { display: flex; align-items: center; justify-content: center; gap: 3px; height: 36px; margin: 8px 0; }
.wbar { width: 4px; border-radius: 2px; background: var(--gold); animation: wv 1.1s ease-in-out infinite; }
.wbar:nth-child(1){height:10px;animation-delay:0s}
.wbar:nth-child(2){height:18px;animation-delay:.1s}
.wbar:nth-child(3){height:28px;animation-delay:.2s}
.wbar:nth-child(4){height:34px;animation-delay:.1s}
.wbar:nth-child(5){height:28px;animation-delay:.2s}
.wbar:nth-child(6){height:18px;animation-delay:.1s}
.wbar:nth-child(7){height:10px;animation-delay:0s}
@keyframes wv { 0%,100%{transform:scaleY(1)} 50%{transform:scaleY(1.7)} }
.wbar.idle { animation: none; height: 4px !important; background: var(--g500); }
.rec-timer { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 700; color: #fff; letter-spacing: .04em; margin: 6px 0; }
.rec-status { font-size: 12px; color: var(--g400); margin-bottom: 10px; }
.speak-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.rec-saved  { font-size: 12px; color: var(--teal2); margin-top: 8px; }

/* Listening banner */
.listen-banner {
  background: linear-gradient(90deg, var(--navy), var(--navy2));
  border-radius: var(--r12); padding: 14px 20px;
  display: flex; align-items: center; gap: 14px; margin-bottom: 18px;
}
.listen-banner audio { flex: 1; max-width: 280px; }

/* ── ADMIN PANEL ─────────────────────────────────────── */
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.qform-card { position: sticky; top: 80px; }

/* ── FOOTER ──────────────────────────────────────────── */
.footer { margin-top: 48px; padding: 20px 24px; border-top: 1px solid var(--g200); text-align: center; font-size: 13px; color: var(--g400); }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 768px) {
  .topnav { padding: 0 14px; }
  .nav-link span { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-grid { grid-template-columns: 1fr; }
  .proctor-bar { width: 160px; }
  .exam-topbar { padding: 0 12px; }
}
@media (max-width: 480px) {
  .auth-body { padding: 20px 16px; }
  .proctor-bar { display: none; }
}
