/* ═══════════════════════════════════════════════════════════════════
   GTD Academy — Main Stylesheet
   Light, clean, professional. Green accent = GTD brand.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* ── Palette ─────────────────────────────────────────────────── */
  --gtd-green:       #1f8a4c;
  --gtd-green-dark:  #176b3b;
  --gtd-green-light: #e7f5ec;
  --primary-blue:    #2563eb;
  --primary-blue-dk: #1d4ed8;

  --text-dark:       #1f2937;
  --text-mid:        #4b5563;
  --text-light:      #6b7280;

  --bg-page:         #f9fafb;
  --bg-card:         #ffffff;
  --bg-subtle:       #f3f4f6;

  --border:          #e5e7eb;
  --border-strong:   #d1d5db;

  --danger:          #dc2626;
  --danger-bg:       #fee2e2;
  --warn:            #d97706;
  --warn-bg:         #fef3c7;
  --success:         #059669;
  --success-bg:      #d1fae5;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: var(--primary-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Base ──────────────────────────────────────────────────────── */
html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Oxygen, Ubuntu, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-dark);
  background: var(--bg-page);
  min-height: 100vh;
}

/* ═══════════════════════════════════════════════════════════════════
   AUTH PAGES (login, NDA)
   ═══════════════════════════════════════════════════════════════════ */

.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(135deg, var(--gtd-green-light) 0%, #f0f9f4 100%);
}

.auth-card {
  background: var(--bg-card);
  width: 100%;
  max-width: 420px;
  padding: 40px 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.logo-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  background: var(--gtd-green);
  color: white;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.5px;
  border-radius: 50%;
  margin-bottom: 16px;
  box-shadow: var(--shadow-md);
}

.auth-header h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.auth-subtitle {
  color: var(--text-light);
  font-size: 14px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-form label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: -10px;
}

.auth-form input[type="text"],
.auth-form input[type="password"] {
  padding: 12px 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  font-size: 15px;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: white;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--gtd-green);
  box-shadow: 0 0 0 3px rgba(31, 138, 76, 0.15);
}

.auth-footer {
  text-align: center;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-light);
  font-size: 13px;
}

.auth-footer p { margin-bottom: 8px; }

.confidential {
  font-size: 11px;
  color: var(--text-light);
  opacity: 0.85;
  margin-top: 12px;
}

/* ═══════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all 0.15s;
  border: 1.5px solid transparent;
}

.btn-primary {
  background: var(--primary-blue);
  color: white;
}
.btn-primary:hover { background: var(--primary-blue-dk); }

.btn-success {
  background: var(--gtd-green);
  color: white;
}
.btn-success:hover { background: var(--gtd-green-dark); }

.btn-secondary {
  background: white;
  color: var(--text-dark);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--text-light);
}

.btn-danger {
  background: var(--danger);
  color: white;
}
.btn-danger:hover { background: #b91c1c; }

.btn-block { width: 100%; }

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ═══════════════════════════════════════════════════════════════════
   FLASH MESSAGES
   ═══════════════════════════════════════════════════════════════════ */

.flash {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
  border-left: 4px solid;
}

.flash-error   { background: var(--danger-bg);  border-color: var(--danger);  color: #991b1b; }
.flash-success { background: var(--success-bg); border-color: var(--success); color: #065f46; }
.flash-warning { background: var(--warn-bg);    border-color: var(--warn);    color: #92400e; }
.flash-info    { background: #dbeafe;           border-color: var(--primary-blue); color: #1e3a8a; }

/* ═══════════════════════════════════════════════════════════════════
   APP SHELL (dashboard + inner pages)
   ═══════════════════════════════════════════════════════════════════ */

.app-nav {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.app-nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-nav-logo {
  width: 36px;
  height: 36px;
  background: var(--gtd-green);
  color: white;
  font-weight: 700;
  font-size: 13px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.app-nav-title {
  font-weight: 700;
  font-size: 17px;
}

.app-nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--text-mid);
}

.app-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 24px 60px;
}

/* ═══════════════════════════════════════════════════════════════════
   DASHBOARD
   ═══════════════════════════════════════════════════════════════════ */

.dash-header {
  margin-bottom: 28px;
}

.dash-header h1 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 4px;
}

.dash-header p {
  color: var(--text-light);
}

.progress-summary {
  background: white;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.progress-summary-text strong {
  font-size: 20px;
  color: var(--gtd-green);
}

.progress-bar-wrap {
  flex: 1 1 300px;
  max-width: 400px;
  background: var(--bg-subtle);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.progress-bar-fill {
  background: var(--gtd-green);
  height: 100%;
  transition: width 0.4s ease;
}

/* ── Section Cards ────────────────────────────────────────────── */

.section-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
  overflow: hidden;
}

.section-header {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}

.section-header:hover { background: var(--bg-subtle); }

.section-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-number {
  width: 34px;
  height: 34px;
  background: var(--gtd-green-light);
  color: var(--gtd-green-dark);
  font-weight: 700;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
}

.section-count {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 2px;
}

.section-toggle {
  color: var(--text-light);
  transition: transform 0.2s;
  font-size: 18px;
}

.section-card.expanded .section-toggle { transform: rotate(90deg); }

.section-modules {
  display: none;
  border-top: 1px solid var(--border);
}

.section-card.expanded .section-modules { display: block; }

/* ── Module Row ───────────────────────────────────────────────── */

.module-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background 0.12s;
}

.module-row:last-child { border-bottom: none; }
.module-row:hover { background: var(--bg-subtle); text-decoration: none; }

.module-status {
  font-size: 20px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.module-info { flex: 1; min-width: 0; }

.module-title {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.module-meta {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 2px;
}

.module-code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  color: var(--text-light);
  background: var(--bg-subtle);
  padding: 2px 7px;
  border-radius: 4px;
  flex-shrink: 0;
}

.badge-critical {
  background: var(--danger-bg);
  color: var(--danger);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

.module-duration {
  color: var(--text-light);
  font-size: 12px;
}

/* ═══════════════════════════════════════════════════════════════════
   ERROR PAGE
   ═══════════════════════════════════════════════════════════════════ */

.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  text-align: center;
}

.error-page h1 {
  font-size: 72px;
  color: var(--gtd-green);
  margin-bottom: 8px;
}

.error-page p {
  color: var(--text-mid);
  margin-bottom: 24px;
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 600px) {
  .auth-card { padding: 32px 24px; }
  .app-main { padding: 24px 16px 40px; }
  .app-nav { padding: 12px 16px; }
  .module-row { padding: 12px 16px; }
  .section-header { padding: 14px 16px; }
  .progress-summary { padding: 16px 18px; }
}

/* ═══════════════════════════════════════════════════════════════════
   CARDS (used on admin pages)
   ═══════════════════════════════════════════════════════════════════ */

.card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px 28px;
  margin-bottom: 20px;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.card-desc {
  color: var(--text-light);
  margin-bottom: 18px;
  font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════════════════════════ */

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px 24px;
}

.form-field { display: flex; flex-direction: column; gap: 6px; }

.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
}

.form-field .req { color: var(--danger); }

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field select {
  padding: 10px 12px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  font-size: 14.5px;
  background: white;
  font-family: inherit;
}

.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--gtd-green);
  box-shadow: 0 0 0 3px rgba(31, 138, 76, 0.15);
}

.form-field .hint {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 2px;
}

/* ═══════════════════════════════════════════════════════════════════
   PRESET BUTTONS + ASSIGNMENT GRID
   ═══════════════════════════════════════════════════════════════════ */

.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.btn-preset {
  background: var(--gtd-green-light);
  color: var(--gtd-green-dark);
  border: 1.5px solid transparent;
  padding: 10px 16px;
  font-size: 13.5px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-preset:hover {
  background: #d1ecdb;
  border-color: var(--gtd-green);
}

.btn-preset-active {
  background: var(--gtd-green);
  color: white;
  border-color: var(--gtd-green-dark);
}

.preset-count {
  font-weight: 400;
  opacity: 0.75;
  margin-left: 3px;
}

.assign-summary {
  background: var(--bg-subtle);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  margin-bottom: 16px;
  color: var(--text-mid);
}

.assign-summary #selected-count {
  font-weight: 700;
  color: var(--gtd-green);
  font-size: 16px;
}

/* ── Module sections with checkboxes ────────────────────────── */

.module-section {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  overflow: hidden;
}

.module-section-header {
  background: var(--bg-subtle);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.section-toggle-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-weight: 600;
  user-select: none;
}

.section-toggle-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--gtd-green);
}

.section-num-badge {
  width: 26px;
  height: 26px;
  background: var(--gtd-green);
  color: white;
  font-size: 12px;
  font-weight: 700;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.section-name { flex: 1; }

.section-counts {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 500;
}

.sec-selected {
  font-weight: 700;
  color: var(--gtd-green);
}

.module-checkbox-list {
  background: white;
}

.module-checkbox-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 24px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.12s;
}

.module-checkbox-row:last-child { border-bottom: none; }
.module-checkbox-row:hover { background: var(--bg-subtle); }

.module-checkbox-row input[type="checkbox"] {
  width: 17px;
  height: 17px;
  cursor: pointer;
  accent-color: var(--gtd-green);
  flex-shrink: 0;
}

.mc-code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  color: var(--text-light);
  background: var(--bg-subtle);
  padding: 2px 7px;
  border-radius: 4px;
  flex-shrink: 0;
  min-width: 50px;
  text-align: center;
}

.mc-title {
  flex: 1;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mc-duration {
  font-size: 12px;
  color: var(--text-light);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   STICKY SUBMIT BAR
   ═══════════════════════════════════════════════════════════════════ */

.submit-bar {
  position: sticky;
  bottom: 0;
  background: white;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 12px rgba(0,0,0,0.06);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 24px -24px -60px;
  flex-wrap: wrap;
}

.submit-bar-left { color: var(--text-mid); font-size: 14px; }
.submit-bar-right { display: flex; gap: 10px; }

/* ═══════════════════════════════════════════════════════════════════
   NDA PAGE
   ═══════════════════════════════════════════════════════════════════ */

.nda-text {
  background: var(--bg-subtle);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  max-height: 340px;
  overflow-y: auto;
  border: 1px solid var(--border);
}

.nda-text h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
}

.nda-text p,
.nda-text li {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-mid);
  margin-bottom: 10px;
}

.nda-text ol {
  padding-left: 22px;
  list-style: decimal;
}

.checkbox-agree {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px;
  background: var(--gtd-green-light);
  border: 1.5px solid var(--gtd-green);
  border-radius: var(--radius-md);
  cursor: pointer;
  user-select: none;
  font-size: 14px;
}

.checkbox-agree input {
  width: 18px;
  height: 18px;
  accent-color: var(--gtd-green);
  margin-top: 1px;
  flex-shrink: 0;
}

.sig-box {
  background: white;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sig-label { font-size: 12px; color: var(--text-light); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.sig-name  { font-size: 22px; font-family: "Brush Script MT", cursive; color: var(--text-dark); }
.sig-timestamp { font-size: 11px; color: var(--text-light); font-style: italic; }

.link-cancel {
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
  margin-top: 10px;
}

/* ═══════════════════════════════════════════════════════════════════
   NAV USER
   ═══════════════════════════════════════════════════════════════════ */

.nav-user { color: var(--text-mid); font-size: 14px; }
.nav-role { color: var(--text-light); font-size: 13px; }

/* ═══════════════════════════════════════════════════════════════════
   MODULE PLAYER
   ═══════════════════════════════════════════════════════════════════ */

.mod-header { margin-bottom: 20px; }

.mod-breadcrumb {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mod-code-big {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  background: var(--bg-subtle);
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--text-mid);
  font-weight: 600;
}

.mod-header h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.mod-meta {
  color: var(--text-light);
  font-size: 14px;
}

.mod-passed { color: var(--gtd-green); font-weight: 600; }

.video-wrap {
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
}

.video-placeholder {
  text-align: center;
  padding: 80px 20px;
  color: white;
  background: linear-gradient(135deg, #1f2937, #374151);
}

.video-placeholder p:first-of-type { font-size: 56px; margin-bottom: 12px; }
.video-placeholder .muted { color: #9ca3af; margin-top: 8px; font-size: 14px; }

.script-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dark);
  white-space: pre-wrap;
}

/* ═══════════════════════════════════════════════════════════════════
   QUIZ
   ═══════════════════════════════════════════════════════════════════ */

.quiz-question {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px 12px;
  margin: 0 0 16px;
}

.quiz-question legend {
  font-weight: 600;
  padding: 0 8px;
  font-size: 14.5px;
  color: var(--text-dark);
}

.quiz-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.12s;
  margin-top: 6px;
}

.quiz-option:hover { background: var(--bg-subtle); }

.quiz-option input[type="radio"] {
  margin-top: 3px;
  width: 17px;
  height: 17px;
  accent-color: var(--gtd-green);
  flex-shrink: 0;
}

.quiz-opt-letter {
  font-weight: 700;
  color: var(--gtd-green-dark);
  min-width: 18px;
}

.quiz-opt-text { flex: 1; font-size: 14px; }

/* Quiz review */
.quiz-review { margin-top: 20px; margin-bottom: 20px; }

.quiz-review-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.qr-icon { font-size: 20px; flex-shrink: 0; }
.qr-q { font-weight: 600; margin-bottom: 4px; font-size: 14px; }
.qr-ans { font-size: 13.5px; color: var(--text-mid); margin-bottom: 4px; }
.qr-exp {
  font-size: 13px;
  color: var(--text-light);
  font-style: italic;
  background: var(--bg-subtle);
  padding: 8px 10px;
  border-radius: 6px;
  margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════════════════
   ADMIN TABLE + ALERTS
   ═══════════════════════════════════════════════════════════════════ */

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table thead th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}

.data-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--bg-subtle); }

.cell-name { font-weight: 600; }
.cell-sub  { font-size: 12px; color: var(--text-light); margin-top: 2px; }
.cell-muted { color: var(--text-light); font-size: 13px; }

.progress-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 200px;
}

.progress-cell-text  { font-size: 13px; color: var(--text-mid); min-width: 50px; }
.progress-cell-pct   { font-size: 13px; color: var(--gtd-green); font-weight: 600; min-width: 36px; }

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

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

.alert-msg {
  color: var(--text-mid);
  font-size: 13px;
  margin-top: 3px;
}

/* Mobile table fallback */
@media (max-width: 700px) {
  .data-table thead { display: none; }
  .data-table tbody tr { display: block; padding: 14px 16px; border-bottom: 6px solid var(--bg-page); }
  .data-table tbody td { display: block; padding: 4px 0; border: none; }
  .progress-cell { min-width: unset; }
}

/* ═══ Karaoke v2 — bigger, bolder, paragraph spacing ═══ */
.karaoke-container {
  max-height: 420px !important;
  padding: 28px 32px !important;
}
.karaoke-text {
  font-size: 19px !important;
  line-height: 1.9 !important;
}
.kw {
  padding: 2px 4px !important;
  border-radius: 4px !important;
  transition: all 0.15s ease !important;
}
.kw-active {
  background: #1f8a4c !important;
  color: white !important;
  font-weight: 700 !important;
  box-shadow: 0 3px 12px rgba(31, 138, 76, 0.5) !important;
}
.kw-read {
  color: #111827 !important;
}
.kw-para-break {
  display: block;
  height: 18px;
  content: '';
}


/* Force karaoke text to stay inside its box */
.karaoke-container {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  position: relative !important;
  z-index: 1 !important;
}
.karaoke-text {
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  white-space: normal !important;
}
.kw {
  display: inline !important;
  vertical-align: baseline !important;
}
.kw-active {
  display: inline !important;
  background: #1f8a4c !important;
  color: white !important;
  font-weight: 700 !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  box-shadow: 0 2px 6px rgba(31, 138, 76, 0.4) !important;
}
/* Keep quiz card from colliding */
#quiz-card {
  position: relative !important;
  z-index: 0 !important;
  margin-top: 20px !important;
}
