/* ============================================================
   VACANCY ENGLISH TEST SIMULATOR — Stylesheet
   Design: Neon purple / glass — themed from platform brand mark
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #250057;
  --navy2:   #31075b;
  --navy3:   #4d167b;
  --gold:    #a653ce;
  --gold2:   #b95feb;
  --cream:   #f8f6f0;
  --white:   #ffffff;
  --gray1:   #f0f2f5;
  --gray2:   #e2e5ec;
  --gray3:   #b0b7c6;
  --gray4:   #6e7a95;
  --text:    #1c2333;
  --green:   #1a9e60;
  --red:     #d63031;
  --shadow:  0 4px 24px rgba(37,0,87,0.10);
  --radius:  12px;
  --radius-sm: 8px;
  --transition: 0.2s ease;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--gray1);
  color: var(--text);
  min-height: 100vh;
  position: relative;
}

/* ── Screen System ─────────────────────────────────────── */
.screen { display: none; min-height: 100vh; }
.screen.active { display: flex; flex-direction: column; }

/* ── Shared Header ─────────────────────────────────────── */
.app-header {
  background: var(--navy);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(37,0,87,0.25);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo {
  width: 36px;
  height: 36px;
  background: var(--gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  font-family: 'Playfair Display', serif;
}

.header-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.header-sub {
  font-size: 0.7rem;
  color: var(--gray3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 1px;
}

.header-module-badge {
  background: var(--gold);
  color: var(--navy);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover { background: var(--gold2); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(166,83,206,0.35); }

.btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}
.btn-secondary:hover { background: rgba(166,83,206,0.08); }

.btn-ghost {
  background: var(--gray2);
  color: var(--gray4);
}
.btn-ghost:hover { background: var(--gray3); color: var(--text); }

.btn-danger {
  background: #fff0f0;
  color: var(--red);
  border: 1px solid #ffc5c5;
}
.btn-danger:hover { background: #ffd6d6; }

.btn-sm { padding: 8px 16px; font-size: 0.82rem; }
.btn-lg { padding: 15px 32px; font-size: 1rem; }

/* ── Welcome Screen ────────────────────────────────────── */
#screen-welcome {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 60%, var(--navy3) 100%);
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

#screen-welcome::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(166,83,206,0.12) 0%, transparent 70%);
  border-radius: 50%;
}

#screen-welcome::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(166,83,206,0.07) 0%, transparent 70%);
  border-radius: 50%;
}

.welcome-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 56px 48px;
  max-width: 520px;
  width: 90%;
  text-align: center;
  position: relative;
  z-index: 1;
}

.welcome-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.welcome-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 10px;
}

.welcome-title span { color: var(--gold); }

.welcome-sub {
  color: var(--gray3);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 32px;
}

.welcome-input-group {
  margin-bottom: 24px;
  text-align: left;
}

.welcome-input-group label {
  display: block;
  color: var(--gray3);
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.welcome-input-group input {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  transition: border-color var(--transition);
}

.welcome-input-group input::placeholder { color: rgba(255,255,255,0.3); }
.welcome-input-group input:focus {
  outline: none;
  border-color: var(--gold);
}

.welcome-actions { display: flex; flex-direction: column; gap: 12px; }

.welcome-module-list {
  margin-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  text-align: left;
}

.welcome-module-item {
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 10px 14px;
}

.wmi-num {
  font-size: 0.65rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wmi-name {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
  line-height: 1.3;
}

/* ── Typing Screen ─────────────────────────────────────── */
#screen-typing { background: var(--gray1); }

.typing-main {
  flex: 1;
  max-width: 800px;
  width: 90%;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.typing-stats {
  display: flex;
  gap: 16px;
}

.typing-stat {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 28px;
  flex: 1;
  text-align: center;
  box-shadow: var(--shadow);
}

.typing-stat-value {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--navy);
  font-family: 'Playfair Display', serif;
}

.typing-stat-label {
  font-size: 0.75rem;
  color: var(--gray4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

#typing-timer { color: var(--gold); }

.typing-passage-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--gray4);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--gold);
}

.typing-input-area textarea {
  width: 100%;
  height: 140px;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--gray2);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  resize: none;
  transition: border-color var(--transition);
}

.typing-input-area textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.typing-actions { display: flex; gap: 12px; justify-content: flex-end; }

/* ── MCQ Screen ────────────────────────────────────────── */
#screen-mcq { background: var(--gray1); }

.mcq-main {
  flex: 1;
  max-width: 760px;
  width: 90%;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mcq-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mcq-module-label {
  font-size: 0.8rem;
  color: var(--gray4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.mcq-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mcq-progress-text {
  font-size: 0.85rem;
  color: var(--gray4);
  white-space: nowrap;
}

.progress-bar-track {
  flex: 1;
  height: 6px;
  background: var(--gray2);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold2));
  border-radius: 3px;
  transition: width 0.4s ease;
}

.mcq-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.mcq-question-text {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--navy);
  margin-bottom: 28px;
}

.mcq-options { display: flex; flex-direction: column; gap: 10px; }

.option-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--gray2);
  background: var(--gray1);
  cursor: pointer;
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  color: var(--text);
  transition: all var(--transition);
  width: 100%;
}

.option-btn:hover {
  border-color: var(--gold);
  background: rgba(166,83,206,0.05);
}

.option-btn.selected {
  border-color: var(--navy);
  background: rgba(37,0,87,0.06);
  color: var(--navy);
  font-weight: 500;
}

.opt-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gray2);
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: all var(--transition);
}

.option-btn.selected .opt-letter {
  background: var(--navy);
  color: var(--white);
}

.mcq-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ── Reading Screen ────────────────────────────────────── */
#screen-reading { background: var(--gray1); }

.reading-main {
  flex: 1;
  display: flex;
  gap: 24px;
  max-width: 1200px;
  width: 95%;
  margin: 32px auto;
  align-items: flex-start;
}

.reading-passage-panel {
  flex: 1.2;
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  position: sticky;
  top: 80px;
}

.passage-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gold);
}

.passage-text {
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--text);
  white-space: pre-wrap;
}

.reading-questions-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.reading-q-header {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.reading-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.reading-question-text {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--navy);
  margin-bottom: 20px;
}

.reading-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ── Module Result Screen ──────────────────────────────── */
#screen-module-result { background: var(--gray1); }

.mr-main {
  flex: 1;
  max-width: 800px;
  width: 90%;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mr-score-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  text-align: center;
}

.mr-module-name {
  font-size: 0.8rem;
  color: var(--gray4);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 12px;
}

.mr-big-score {
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}

.mr-status {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.mr-status.passed { color: var(--green); }
.mr-status.failed { color: var(--red); }

.mr-pass-threshold {
  font-size: 0.82rem;
  color: var(--gray4);
}

.mr-review-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.mr-review-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray2);
}

.review-item {
  padding: 14px 16px;
  border-radius: 8px;
  margin-bottom: 10px;
  border-left: 4px solid;
}

.review-item.correct {
  background: #f0faf5;
  border-color: var(--green);
}

.review-item.incorrect {
  background: #fff5f5;
  border-color: var(--red);
}

.review-q {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
}

.review-num {
  font-weight: 700;
  color: var(--navy);
  margin-right: 4px;
}

.review-answers { font-size: 0.82rem; }
.review-your { color: var(--gray4); }
.review-correct { color: var(--green); margin-top: 4px; }
.review-exp {
  color: #7a6500;
  background: #fffbeb;
  padding: 6px 10px;
  border-radius: 5px;
  margin-top: 6px;
  line-height: 1.4;
}

.mr-nav { display: flex; gap: 12px; justify-content: flex-end; }

/* ── Transition Screen ─────────────────────────────────── */
#screen-transition {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  justify-content: center;
  align-items: center;
}

.transition-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 56px 48px;
  max-width: 520px;
  width: 90%;
  text-align: center;
}

.trans-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.trans-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--white);
  margin-bottom: 14px;
}

.trans-desc {
  color: var(--gray3);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 8px;
}

.trans-skip-note {
  color: rgba(166,83,206,0.7);
  font-size: 0.8rem;
  margin-bottom: 32px;
}

.transition-actions { display: flex; flex-direction: column; gap: 12px; }

/* ── Final Results Screen ──────────────────────────────── */
#screen-final { background: var(--gray1); }

.final-main {
  flex: 1;
  max-width: 720px;
  width: 90%;
  margin: 48px auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.final-hero {
  background: linear-gradient(135deg, var(--navy), var(--navy2));
  border-radius: var(--radius);
  padding: 48px 40px;
  text-align: center;
  color: var(--white);
}

.final-name-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.final-level-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.final-level-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  max-width: 400px;
  margin: 0 auto;
}

.final-summary-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.final-summary-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.final-module-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray2);
}

.final-module-row:last-child { border-bottom: none; }

.final-mod-name {
  font-size: 0.88rem;
  color: var(--text);
}

.final-mod-status {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}

.final-mod-status.passed { background: #e6f9f0; color: var(--green); }
.final-mod-status.failed { background: #ffeaea; color: var(--red); }
.final-mod-status.skipped { background: #f0f2f5; color: var(--gray4); }

.final-actions { display: flex; gap: 12px; justify-content: flex-end; }

/* ── Dashboard Screen ──────────────────────────────────── */
#screen-dashboard { background: var(--gray1); }

.dashboard-header {
  background: var(--navy);
  padding: 20px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dashboard-header-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--white);
}

.dashboard-main {
  flex: 1;
  max-width: 1200px;
  width: 95%;
  margin: 32px auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.dash-stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow);
  text-align: center;
}

.dash-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--navy);
}

.dash-stat-label {
  font-size: 0.78rem;
  color: var(--gray4);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 4px;
}

.dash-filters {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.dash-filter-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dash-filter-item label {
  font-size: 0.72rem;
  color: var(--gray4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.dash-filter-item input,
.dash-filter-item select {
  padding: 9px 12px;
  border-radius: 7px;
  border: 1.5px solid var(--gray2);
  font-size: 0.88rem;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--gray1);
  min-width: 160px;
}

.dash-filter-item input:focus,
.dash-filter-item select:focus {
  outline: none;
  border-color: var(--gold);
}

.dash-table-wrap {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
}

.dash-table th {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 14px 16px;
  text-align: left;
}

.dash-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--gray2);
  font-size: 0.88rem;
}

.dash-table tr:last-child td { border-bottom: none; }
.dash-table tr:hover td { background: var(--gray1); cursor: pointer; }

.dash-name { font-weight: 600; color: var(--navy); }

.dash-cell { text-align: center; font-weight: 600; }
.dash-cell.pass { color: var(--green); }
.dash-cell.fail { color: var(--red); }
.dash-cell.skipped { color: var(--gray4); }
.dash-cell.empty { color: var(--gray3); }

.dash-level-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.empty-row { text-align: center; color: var(--gray4); padding: 32px; }

/* ── User Detail Screen ────────────────────────────────── */
#screen-user-detail { background: var(--gray1); }

.detail-header {
  background: var(--navy);
  padding: 28px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.detail-header-left h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--white);
}

.detail-header-level {
  font-size: 0.9rem;
  margin-top: 4px;
  font-weight: 600;
}

.detail-main {
  flex: 1;
  max-width: 900px;
  width: 90%;
  margin: 32px auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-module-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow);
}

.detail-mod-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.detail-mod-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
}

.tag-passed { background: #e6f9f0; color: var(--green); padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.tag-failed { background: #ffeaea; color: var(--red); padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.tag-skipped { background: var(--gray2); color: var(--gray4); padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.tag-notstarted { background: var(--gray1); color: var(--gray3); padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }

.detail-review { margin-top: 12px; }

/* ── Credits ───────────────────────────────────────────── */
.credits-corner {
  position: fixed;
  bottom: 14px;
  right: 18px;
  font-size: 0.7rem;
  color: rgba(0,0,0,0.3);
  z-index: 999;
  pointer-events: none;
  letter-spacing: 0.03em;
}

#screen-welcome .credits-corner,
#screen-typing .credits-corner {
  color: rgba(255,255,255,0.25);
}

/* ── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray1); }
::-webkit-scrollbar-thumb { background: var(--gray3); border-radius: 3px; }

/* ── Supervisor Access FAB ─────────────────────────────── */
.supervisor-fab {
  position: fixed;
  bottom: 50px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(185,95,235,0.35);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  transition: all var(--transition);
  backdrop-filter: blur(6px);
}

.supervisor-fab:hover {
  color: var(--white);
  border-color: var(--gold2);
  box-shadow: 0 0 16px rgba(185,95,235,0.55);
  background: rgba(185,95,235,0.12);
}

/* ── Supervisor Login Screen ───────────────────────────── */
#screen-login {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 60%, var(--navy3) 100%);
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.login-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 48px 40px;
  max-width: 380px;
  width: 90%;
  text-align: center;
  position: relative;
  z-index: 1;
}

.login-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(185,95,235,0.12);
  border: 1.5px solid rgba(185,95,235,0.4);
  color: var(--gold2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 0 20px rgba(185,95,235,0.3);
}

.login-title {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.login-sub {
  color: var(--gray3);
  font-size: 0.85rem;
  margin-bottom: 28px;
}

.login-input-group { margin-bottom: 18px; text-align: left; }

.login-input-group label {
  display: block;
  color: var(--gray3);
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.login-input-group input {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  transition: border-color var(--transition);
}

.login-input-group input::placeholder { color: rgba(255,255,255,0.3); }
.login-input-group input:focus { outline: none; border-color: var(--gold); }

.login-error {
  min-height: 20px;
  color: #ff8080;
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.login-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
  .reading-main { flex-direction: column; }
  .reading-passage-panel { position: static; max-height: 40vh; }
  .dash-stats { grid-template-columns: 1fr; }
  .welcome-module-list { grid-template-columns: 1fr; }
  .welcome-card { padding: 36px 24px; }
  .mcq-card { padding: 24px; }
  .app-header { padding: 12px 20px; }
}
