/* ==========================================================================
   ExamPathway — CBT Exam Simulation Engine Stylesheet
   Authentic NTA-Style Computer Based Test Interface
   ========================================================================== */

.cbt-container {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--background);
  color: var(--foreground);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* CBT Header Bar */
.cbt-header {
  height: 4rem;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.cbt-title-area {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cbt-test-name {
  font-size: 1.15rem;
  font-weight: 700;
  font-family: var(--font-display);
}

.cbt-timer-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid rgba(22, 42, 92, 0.2);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.cbt-timer-badge.warning {
  background: #fef2f2;
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.cbt-user-tag {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.cbt-user-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.cbt-user-meta {
  display: none;
}

@media (min-width: 640px) {
  .cbt-user-meta {
    display: block;
  }
}

/* Section Tabs */
.cbt-sections-bar {
  background: var(--muted);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0.5rem 1.5rem;
  gap: 0.5rem;
  overflow-x: auto;
  flex-shrink: 0;
}

.cbt-section-btn {
  padding: 0.45rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.cbt-section-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(22, 42, 92, 0.25);
}

.cbt-section-count {
  font-size: 0.75rem;
  opacity: 0.85;
}

/* Main CBT Workspace: Split Screen */
.cbt-workspace {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 340px;
  overflow: hidden;
}

@media (max-width: 900px) {
  .cbt-workspace {
    grid-template-columns: 1fr;
  }
}

/* Left: Question Pane */
.cbt-question-pane {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 1.5rem;
  border-right: 1px solid var(--border);
  background: var(--background);
}

.cbt-question-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.85rem;
  margin-bottom: 1.25rem;
}

.cbt-q-number {
  font-size: 1.15rem;
  font-weight: 700;
  font-family: var(--font-display);
}

.cbt-q-marks {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  font-weight: 600;
}

.cbt-marks-pos {
  color: var(--success);
  background: var(--success-soft);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

.cbt-marks-neg {
  color: var(--destructive);
  background: var(--destructive-soft);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

.cbt-question-body {
  flex: 1;
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.cbt-question-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-dark);
}

.exam-text-line {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.exam-statement-line {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin: 0.45rem 0 0.45rem 0.75rem;
  line-height: 1.65;
}

.exam-statement-label {
  display: inline-block;
  font-weight: 700;
  color: var(--primary, #2563eb);
  min-width: 1.6rem;
  flex-shrink: 0;
}

.exam-statement-content {
  flex: 1;
}

.exam-statement-directive {
  margin-top: 0.85rem;
  font-weight: 600;
  color: var(--text-dark, #1e293b);
  display: block;
}

.cbt-options-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.cbt-option-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.975rem;
}

.cbt-option-item:hover {
  border-color: var(--primary);
  background: var(--muted);
}

.cbt-option-item.selected {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 0 1.5px var(--primary);
}

.cbt-option-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--radius-sm);
  background: var(--muted);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.cbt-option-item.selected .cbt-option-badge {
  background: var(--primary);
  color: #fff;
}

/* CBT Action Buttons Footer */
.cbt-actions-bar {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.cbt-actions-left, .cbt-actions-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Right: Question Palette & Legend */
.cbt-palette-pane {
  display: flex;
  flex-direction: column;
  background: var(--card);
  overflow-y: auto;
  padding: 1.25rem;
}

@media (max-width: 900px) {
  .cbt-palette-pane {
    display: none;
  }
  .cbt-palette-pane.mobile-open {
    display: flex;
    position: fixed;
    inset: 4rem 0 0;
    z-index: 1010;
  }
}

.cbt-legend-box {
  background: var(--muted);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.cbt-legend-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.legend-dot {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: #fff;
  font-weight: 800;
  flex-shrink: 0;
}

.legend-answered { background: #10b981; }
.legend-not-answered { background: #ef4444; }
.legend-marked { background: #8b5cf6; }
.legend-marked-answered { background: #8b5cf6; position: relative; }
.legend-marked-answered::after {
  content: "";
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  border: 1px solid #fff;
}
.legend-not-visited { background: #94a3b8; }

.cbt-palette-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
}

.cbt-palette-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.cbt-palette-btn {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease;
  color: #ffffff;
}

.cbt-palette-btn:hover {
  transform: scale(1.08);
}

.cbt-palette-btn.current {
  outline: 3px solid #2563eb !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.4) !important;
  z-index: 2;
  font-weight: 900;
}

.cbt-palette-btn.btn-answered {
  background: #10b981 !important;
  color: #ffffff !important;
  border-color: #059669 !important;
}

.cbt-palette-btn.btn-not-answered {
  background: #ef4444 !important;
  color: #ffffff !important;
  border-color: #dc2626 !important;
}

.cbt-palette-btn.btn-marked {
  background: #8b5cf6 !important;
  color: #ffffff !important;
  border-color: #7c3aed !important;
}

.cbt-palette-btn.btn-marked-answered {
  background: #8b5cf6 !important;
  color: #ffffff !important;
  border-color: #7c3aed !important;
  position: relative;
}

.cbt-palette-btn.btn-marked-answered::after {
  content: "";
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  border: 1.5px solid #fff;
}

.cbt-palette-btn.btn-not-visited {
  background: var(--muted) !important;
  color: var(--muted-foreground) !important;
  border-color: var(--border) !important;
}

/* Submit Modal & Scorecard */
.scorecard-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.scorecard-banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  padding: 1.25rem;
  background: var(--muted);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  text-align: center;
}

.score-metric-val {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.score-metric-lbl {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  font-weight: 600;
}

.scorecard-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.scorecard-table th, .scorecard-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.scorecard-table th {
  background: var(--muted);
  font-weight: 700;
}

/* High-Precision Math & Science Typography Styles */
.math-integral-wrap {
  display: inline-flex;
  align-items: center;
  vertical-align: -0.32em;
  margin: 0 0.25rem;
  line-height: 1;
}

.math-integral-symbol {
  font-size: 1.85em;
  line-height: 0.9;
  font-family: "Cambria Math", Cambria, "Times New Roman", serif;
  font-weight: 400;
  color: var(--primary, #1e3a8a);
}

.math-integral-limits {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  height: 2em;
  font-size: 0.68em;
  line-height: 1;
  font-weight: 700;
  vertical-align: middle;
  margin-left: 1px;
  margin-right: 3px;
  text-align: left;
}

.math-integral-sup {
  margin-bottom: auto;
  transform: translateY(-2px);
}

.math-integral-sub {
  margin-top: auto;
  transform: translateY(2px);
}

.math-trig-sup {
  font-size: 0.7em !important;
  line-height: 0.8 !important;
  vertical-align: 0.52em !important;
  font-weight: 700 !important;
  margin: 0 1px 0 0.5px !important;
  display: inline-block !important;
}

.math-sup {
  font-size: 0.72em;
  line-height: 1;
  vertical-align: 0.45em;
  font-weight: 700;
  margin: 0 1px 0 0.5px;
  display: inline-block;
  color: inherit;
}

.math-sub {
  font-size: 0.72em;
  line-height: 1;
  vertical-align: -0.25em;
  font-weight: 600;
  margin: 0 1px 0 0.5px;
  display: inline-block;
  color: inherit;
}

.math-sqrt {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin: 0 0.2rem;
  line-height: 1;
}

.math-radical {
  font-size: 1.3em;
  line-height: 1;
  margin-right: -1px;
  font-weight: 400;
  font-family: Cambria, "Times New Roman", serif, sans-serif;
  color: inherit;
}

.math-radicand {
  border-top: 2px solid currentColor;
  padding: 2px 4px 1px 2px;
  line-height: 1.25;
  display: inline-flex;
  align-items: center;
  margin-top: -2px;
}

.math-fraction {
  display: inline-flex;
  flex-direction: column;
  vertical-align: middle;
  text-align: center;
  padding: 0 0.25rem;
  font-size: 0.92em;
  line-height: 1.1;
  margin: 0 0.25rem;
}

.math-fraction .math-num {
  border-bottom: 1.5px solid currentColor;
  padding: 0 0.25rem 2px 0.25rem;
  display: block;
  font-weight: 600;
}

.math-fraction .math-den {
  padding: 2px 0.25rem 0 0.25rem;
  display: block;
  font-weight: 600;
}

.math-line {
  margin-bottom: 0.35rem;
  line-height: 1.85;
}
.math-line:last-child {
  margin-bottom: 0;
}

.math-derivation-container {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0.65rem 0;
}

.math-substep {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3.5px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}

.math-substep-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

/* KaTeX High-Precision Mathematical & Scientific Typography */
.katex {
  font-size: 1.08em;
  text-rendering: geometricPrecision;
}

.math-equation-display .katex,
.cbt-solution-step .katex,
.solution-step-body .katex,
.cbt-question-text .katex {
  font-size: 1.12em;
}

.katex .mfrac .frac-line {
  border-bottom-width: 0.08em !important;
  opacity: 0.95;
}

.katex .mfrac {
  margin: 0 0.15em;
  vertical-align: -0.42em;
}

.katex .msupsub {
  font-size: 0.82em;
  font-weight: 500;
}

.katex .sqrt > .sqrt-line {
  border-top-width: 0.085em !important;
}

.math-equation-display {
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--foreground);
  line-height: 2.35;
  overflow-x: auto;
  overflow-y: visible;
  padding: 0.85rem 0.5rem 1.15rem 0.5rem;
}

/* Solution Box & Structured Step Cards */
.solution-box {
  margin-top: 1.25rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--muted);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  font-size: 0.925rem;
  line-height: 1.65;
}

.solution-step {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  margin-bottom: 0.85rem;
}

.solution-step-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--muted);
  border-bottom: 1px solid var(--border);
}

.solution-step-concept .solution-step-header { color: #8b5cf6; border-left: 4px solid #8b5cf6; }
.solution-step-formula .solution-step-header { color: #3b82f6; border-left: 4px solid #3b82f6; }
.solution-step-calc .solution-step-header { color: #10b981; border-left: 4px solid #10b981; }
.solution-step-tip .solution-step-header { color: #f59e0b; border-left: 4px solid #f59e0b; }

.solution-step-body {
  padding: 1rem 1.15rem;
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Modal Dialog for CBT Submission */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  padding: 1.5rem;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: var(--card, #ffffff);
  color: var(--foreground, #0f172a);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius, 1rem);
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  transform: scale(0.95);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .modal-box {
  transform: scale(1);
}

/* ========================================================
   CBT Numerical Value Question (NVQ) Styling & Keypad
   ======================================================== */
.cbt-numerical-pane {
  background: var(--card, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius-sm, 0.5rem);
  padding: 1.75rem;
  margin: 1.5rem 0;
  max-width: 520px;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.05));
}

.cbt-numerical-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cbt-numerical-input-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.cbt-numerical-input {
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 800;
  padding: 0.65rem 1rem;
  border: 2px solid var(--primary, #2563eb);
  border-radius: var(--radius-sm, 0.5rem);
  background: var(--background, #f8fafc);
  color: var(--foreground, #0f172a);
  width: 220px;
  outline: none;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
}

.cbt-numerical-input:focus {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.cbt-keypad-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.cbt-keypad-btn {
  font-size: 1.15rem;
  font-weight: 700;
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius-sm, 0.5rem);
  background: var(--muted, #f1f5f9);
  border: 1px solid var(--border, #e2e8f0);
  color: var(--foreground, #0f172a);
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.cbt-keypad-btn:hover {
  background: var(--primary, #2563eb);
  color: #fff;
  border-color: var(--primary, #2563eb);
}

.cbt-keypad-btn:active {
  transform: scale(0.95);
}

.cbt-keypad-btn.action-btn {
  font-size: 0.8rem;
  font-weight: 800;
  background: #e2e8f0;
  color: #334155;
}

.cbt-keypad-btn.action-btn:hover {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
}

/* Exam Markdown Tables inside CBT Pane */
.cbt-question-body .exam-table-wrap,
.cbt-solution-derivation .exam-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 1.25rem 0;
  border-radius: var(--radius-sm, 0.5rem);
  border: 1px solid var(--border, #e2e8f0);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  background: var(--card, #ffffff);
}

.cbt-question-body .exam-markdown-table,
.cbt-solution-derivation .exam-markdown-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.6;
}

.cbt-question-body .exam-markdown-table th,
.cbt-question-body .exam-markdown-table td,
.cbt-solution-derivation .exam-markdown-table th,
.cbt-solution-derivation .exam-markdown-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border, #e2e8f0);
}

.cbt-question-body .exam-markdown-table th,
.cbt-solution-derivation .exam-markdown-table th {
  background: var(--muted, #f8fafc);
  color: var(--foreground, #0f172a);
  font-weight: 800;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 2px solid var(--border, #cbd5e1);
}

.cbt-question-body .exam-markdown-table tbody tr:hover,
.cbt-solution-derivation .exam-markdown-table tbody tr:hover {
  background: rgba(37, 99, 235, 0.05);
}

/* ========================================================
   Mock Test Mode Selector Modal (Subject Test vs Full-Length)
   ======================================================== */
.test-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.test-modal-dialog {
  background: var(--card, #ffffff);
  color: var(--foreground, #0f172a);
  width: 100%;
  max-width: 860px;
  border-radius: 1rem;
  border: 1px solid var(--border, #e2e8f0);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.35);
  padding: 2rem;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.test-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border, #e2e8f0);
}

.test-modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--foreground, #0f172a);
  margin: 0.35rem 0 0.25rem 0;
}

.test-modal-desc {
  font-size: 0.95rem;
  color: var(--muted-foreground, #64748b);
  margin: 0;
}

.test-modal-close {
  background: transparent;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--muted-foreground, #64748b);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  transition: all 0.15s ease;
}

.test-modal-close:hover {
  color: var(--foreground, #0f172a);
  background: var(--muted, #f1f5f9);
}

.test-mode-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.test-mode-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--card, #ffffff);
  border: 2px solid var(--border, #e2e8f0);
  border-radius: 0.85rem;
  padding: 1.5rem;
  transition: all 0.2s ease;
  position: relative;
}

.test-mode-card:hover {
  border-color: var(--primary, #2563eb);
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.12);
}

.test-mode-card.test-mode-card-highlighted {
  border-color: var(--primary, #2563eb);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.03) 0%, rgba(37, 99, 235, 0.01) 100%);
}

.test-mode-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.test-mode-icon-badge {
  font-size: 1.8rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem;
  background: var(--muted, #f1f5f9);
}

.test-mode-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--primary, #2563eb);
  text-transform: uppercase;
}

.test-mode-heading {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0;
  color: var(--foreground, #0f172a);
}

.test-mode-card-desc {
  font-size: 0.9rem;
  color: var(--muted-foreground, #64748b);
  line-height: 1.5;
  margin-bottom: 1.15rem;
}

.test-mode-specs {
  background: var(--muted, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  color: var(--foreground, #1e293b);
  font-weight: 600;
}

.subject-picker-group {
  margin-bottom: 1.25rem;
}

.subject-picker-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--foreground, #0f172a);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.subject-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.subject-pill-btn {
  background: var(--card, #ffffff);
  border: 1.5px solid var(--border, #cbd5e1);
  color: var(--foreground, #334155);
  padding: 0.45rem 0.95rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.subject-pill-btn:hover {
  border-color: var(--primary, #2563eb);
  color: var(--primary, #2563eb);
  background: rgba(37, 99, 235, 0.05);
}

.subject-pill-btn.active {
  background: var(--primary, #2563eb);
  color: #ffffff;
  border-color: var(--primary, #2563eb);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.full-test-sections-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.full-section-chip {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.35rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 700;
}

/* Card Quick-Launch Action Buttons */
.mock-card-actions-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mock-quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

