/**
 * Virtual Microscope Laboratory & Simulation Stylesheet
 * High-precision optical simulator, reticle overlays, and responsive laboratory layout
 */

:root {
  --optic-lens-bg: #090d16;
  --optic-reticle-color: #f59e0b;
  --optic-glow: 0 0 25px rgba(56, 189, 248, 0.25);
  --glass-panel-bg: rgba(22, 27, 34, 0.85);
  --glass-panel-border: rgba(255, 255, 255, 0.1);
  --accent-blue: #38bdf8;
  --accent-amber: #f59e0b;
  --accent-emerald: #10b981;
}

/* Stage Wrapper */
.simulation-stage-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  padding: 12px;
  box-sizing: border-box;
  gap: 12px;
}

/* Viewport Mode Tabs */
.viewport-mode-tabs {
  display: flex;
  gap: 8px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--glass-panel-border);
  border-radius: 10px;
  padding: 4px;
}

.mode-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: #94a3b8;
  border: none;
  padding: 8px 14px;
  border-radius: 7px;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mode-tab-btn:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.05);
}

.mode-tab-btn.active {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.4);
}

/* Simulation Header Badge */
.sim-header-badge {
  background: rgba(30, 41, 59, 0.7);
  border-right: 4px solid var(--accent-blue);
  border-radius: 8px;
  padding: 8px 12px;
}

.badge-title {
  color: #e2e8f0;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-subtitle {
  color: #94a3b8;
  font-size: 0.8rem;
  margin-top: 2px;
}

/* Anatomy Screen 1 */
.microscope-anatomy-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
  border-radius: 12px;
  border: 1px solid var(--glass-panel-border);
  padding: 16px;
}

.microscope-3d-model {
  max-width: 480px;
  width: 100%;
}

.anatomy-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

.anatomy-pin {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.anatomy-pin:hover {
  transform: scale(1.15);
}

/* Virtual Microscope Lab Layout (Screens 2, 3, 4) */
.virtual-microscope-lab-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 16px;
  flex: 1;
  min-height: 0;
}

.optical-eyepiece-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #1a2234 0%, #0b0f19 100%);
  border-radius: 12px;
  border: 1px solid var(--glass-panel-border);
  padding: 14px;
  position: relative;
}

.eyepiece-lens-housing {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: #020617;
  border: 10px solid #1e293b;
  box-shadow: 0 0 0 4px #475569, inset 0 0 30px rgba(0, 0, 0, 0.9), var(--optic-glow);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eyepiece-lens-housing.large {
  width: 290px;
  height: 290px;
}

.lens-glow-field {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: opacity 0.2s ease;
}

.specimen-render-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: filter 0.25s ease, transform 0.3s ease;
}

.reticle-grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reticle-unit-badge {
  position: absolute;
  bottom: 14px;
  background: rgba(0, 0, 0, 0.7);
  color: #f59e0b;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.optical-status-bar {
  display: flex;
  justify-content: space-around;
  width: 100%;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--glass-panel-border);
  border-radius: 8px;
  padding: 6px 12px;
  margin-top: 12px;
  color: #cbd5e1;
  font-size: 0.82rem;
}

/* Controls Column */
.optical-controls-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(15, 23, 42, 0.75);
  border-radius: 12px;
  border: 1px solid var(--glass-panel-border);
  padding: 14px;
  justify-content: center;
}

.ctrl-block {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--glass-panel-border);
  border-radius: 8px;
  padding: 10px 12px;
}

.ctrl-block.focus-block {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(14, 116, 144, 0.15);
}

.ctrl-heading {
  font-size: 0.85rem;
  font-weight: 700;
  color: #e2e8f0;
}

.ctrl-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.ctrl-val {
  color: #38bdf8;
  font-weight: 700;
  font-size: 0.9rem;
}

.objective-pills {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.btn-obj-pill {
  flex: 1;
  background: #1e293b;
  border: 1px solid #475569;
  color: #cbd5e1;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-obj-pill:hover {
  background: #334155;
  color: #fff;
}

.btn-obj-pill.active {
  background: #f59e0b;
  border-color: #d97706;
  color: #000;
  font-weight: 700;
}

/* Sliders */
.lab-slider {
  width: 100%;
  accent-color: #38bdf8;
  cursor: pointer;
  margin: 6px 0;
}

.focus-slider {
  accent-color: #38bdf8;
  height: 8px;
}

.focus-slider-track-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.track-edge-label {
  font-size: 0.75rem;
  color: #94a3b8;
}

.focus-badge-tag {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.focus-instruction-sub {
  font-size: 0.78rem;
  color: #94a3b8;
  margin: 6px 0 0 0;
  line-height: 1.3;
}

/* Deductive Reasoning Screen 5 */
.deductive-reasoning-canvas {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex: 1;
  background: rgba(15, 23, 42, 0.8);
  border-radius: 12px;
  border: 1px solid var(--glass-panel-border);
  padding: 20px;
}

.evidence-single-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #1e293b;
  border: 2px solid #38bdf8;
  border-radius: 10px;
  padding: 12px;
  width: 170px;
}

.card-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 8px;
}

.mini-eyepiece {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #020617;
  border: 4px solid #475569;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-caption {
  font-size: 0.75rem;
  color: #cbd5e1;
  margin-top: 8px;
  text-align: center;
}

.scientific-inquiry-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #f59e0b;
  font-weight: 600;
  font-size: 0.85rem;
  text-align: center;
  max-width: 140px;
}

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

.ref-item {
  background: #1e293b;
  border: 1px solid var(--glass-panel-border);
  border-radius: 8px;
  padding: 10px 14px;
  color: #f1f5f9;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Dual Microscope Stage (Screen 6) */
.dual-microscope-lab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  flex: 1;
}

.micro-station-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--glass-panel-border);
  border-radius: 10px;
  padding: 12px;
  justify-content: space-between;
}

.station-title {
  font-size: 0.88rem;
  color: #f1f5f9;
  margin: 0 0 10px 0;
  font-weight: 700;
}

.eyepiece-circle-sm {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: #020617;
  border: 6px solid #334155;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.station-slider-box {
  width: 100%;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.station-status {
  font-size: 0.78rem;
}

/* Reticle Stage (Screen 7) */
.reticle-stage-view {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  background: radial-gradient(circle at center, #1a2234 0%, #0b0f19 100%);
  border-radius: 12px;
  border: 1px solid var(--glass-panel-border);
  padding: 16px;
}

/* Final Specimens Trio (Screens 8 & 9) */
.final-specimens-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  flex: 1;
}

.trio-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--glass-panel-border);
  border-radius: 10px;
  padding: 12px;
}

.trio-card.highlighted {
  border-color: #38bdf8;
  background: rgba(14, 116, 144, 0.15);
}

.trio-tag {
  font-size: 0.82rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 8px;
}

.mini-eyepiece-sm {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #020617;
  border: 4px solid #334155;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trio-traits {
  margin-top: 8px;
  font-size: 0.75rem;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Video Walkthrough Player */
.video-player-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  background: #0b0f19;
  border-radius: 12px;
  border: 1px solid var(--glass-panel-border);
  overflow: hidden;
}

.video-mock-screen {
  flex: 1;
  position: relative;
  background: radial-gradient(circle at center, #1e293b 0%, #020617 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.video-simulation-underlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.45;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-animated-cursor {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 6px;
  color: #f59e0b;
  font-weight: 700;
  font-size: 0.85rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  pointer-events: none;
  animation: cursorFloat 3s infinite ease-in-out;
}

@keyframes cursorFloat {
  0% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-45%, -55%) scale(1.1); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

.video-play-overlay-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(2, 132, 199, 0.9);
  color: #fff;
  border: 3px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(2, 132, 199, 0.6);
  transition: transform 0.2s ease;
  z-index: 5;
}

.video-play-overlay-btn:hover {
  transform: scale(1.1);
}

.video-caption-bar {
  position: absolute;
  bottom: 12px;
  left: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 6px 12px;
  color: #f8fafc;
  font-size: 0.85rem;
  text-align: center;
  z-index: 5;
}

.video-player-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0f172a;
  padding: 8px 14px;
  border-top: 1px solid var(--glass-panel-border);
}

.video-control-btn {
  background: transparent;
  border: none;
  color: #e2e8f0;
  font-size: 1rem;
  cursor: pointer;
}

.video-time-tag {
  color: #94a3b8;
  font-size: 0.78rem;
  font-family: monospace;
}

.video-progress-bar {
  flex: 1;
  height: 6px;
  background: #334155;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
}

.video-progress-fill {
  height: 100%;
  background: #38bdf8;
  transition: width 0.1s linear;
}

/* Form inputs & cards in Question Pane */
.task-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--glass-panel-border);
  border-radius: 12px;
  padding: 18px;
}

.task-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.domain-tag {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}

.cognitive-tag {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}

.score-tag {
  margin-right: auto;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 600;
}

.task-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 10px 0;
}

.task-text {
  color: #cbd5e1;
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0 0 14px 0;
}

.prompt-box {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--glass-panel-border);
  border-radius: 8px;
  padding: 12px 14px;
}

.prompt-label {
  display: block;
  color: #f1f5f9;
  font-size: 0.92rem;
  line-height: 1.5;
}

.options-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.option-pill-label {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--glass-panel-border);
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #e2e8f0;
  font-size: 0.88rem;
}

.option-pill-label:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(56, 189, 248, 0.4);
}

.option-pill-label.selected {
  background: rgba(14, 116, 144, 0.25);
  border-color: #38bdf8;
  color: #ffffff;
}

.tip-card, .info-bubble, .instruction-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(30, 41, 59, 0.5);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.82rem;
  color: #94a3b8;
}

.highlight-notice-card {
  display: flex;
  gap: 10px;
  background: rgba(2, 132, 199, 0.12);
  border: 1px solid rgba(2, 132, 199, 0.3);
  border-radius: 8px;
  padding: 10px 14px;
  color: #e2e8f0;
  font-size: 0.85rem;
}

/* Radio choice rows */
.radio-choices-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.choice-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--glass-panel-border);
  border-radius: 6px;
  padding: 8px 12px;
  color: #cbd5e1;
  font-size: 0.88rem;
  cursor: pointer;
}

.choice-row.selected {
  background: rgba(14, 116, 144, 0.25);
  border-color: #38bdf8;
  color: #fff;
}

.form-control-timss {
  width: 100%;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 8px 12px;
  color: #f8fafc;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 0.88rem;
  box-sizing: border-box;
}

.form-control-timss:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.current-setting-display, .focus-current-status-box {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: #e2e8f0;
}

.setting-badge-value, .position-tag {
  background: #0284c7;
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
}

.tag-optimal, .clarity-sharp {
  color: #10b981;
  font-weight: 700;
}

.tag-suboptimal, .clarity-blurred {
  color: #f59e0b;
  font-weight: 700;
}

/* Dual Status Grid */
.dual-status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.status-col {
  background: rgba(15, 23, 42, 0.6);
  border-radius: 6px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.col-title {
  font-size: 0.82rem;
  color: #94a3b8;
}

.col-badge {
  font-size: 0.85rem;
  font-weight: 700;
}

.badge-success { color: #10b981; }
.badge-warning { color: #f59e0b; }

/* Measurement inputs */
.measure-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 260px;
}

.measure-input {
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
}

.measure-unit-tag {
  color: #38bdf8;
  font-weight: 700;
  font-size: 0.9rem;
}

.measure-help-text {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 6px;
}

/* Evidence Inputs */
.input-group-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.input-number-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #334155;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Submission Alerts */
.submission-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 14px;
  font-size: 0.88rem;
}

.alert-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fde68a;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.alert-measurement {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #bae6fd;
}

/* Diagnostic Report (Screen 9) */
.diagnostic-report-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.report-header-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #0369a1, #0f172a);
  border-radius: 12px;
  padding: 18px 24px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.banner-icon {
  font-size: 2.2rem;
  color: #f59e0b;
}

.banner-text h2 {
  font-size: 1.25rem;
  color: #fff;
  margin: 0 0 4px 0;
}

.banner-text p {
  font-size: 0.82rem;
  color: #cbd5e1;
  margin: 0;
}

.report-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 14px;
}

.hero-score-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--glass-panel-border);
  border-radius: 10px;
  padding: 16px;
}

.hero-label {
  font-size: 0.85rem;
  color: #94a3b8;
}

.hero-score-val {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 8px 0;
}

.score-num {
  font-size: 2.8rem;
  font-weight: 800;
  color: #38bdf8;
}

.score-den {
  font-size: 1.2rem;
  color: #64748b;
}

.hero-percentage {
  font-size: 1.1rem;
  font-weight: 700;
  color: #10b981;
}

.hero-benchmark-badge {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  margin-top: 8px;
  text-align: center;
}

.hero-meta-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--glass-panel-border);
  border-radius: 10px;
  padding: 16px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #cbd5e1;
}

.meta-k {
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.meta-v {
  font-weight: 600;
}

.session-id-text {
  font-family: monospace;
  font-size: 0.75rem;
  color: #38bdf8;
}

.report-section-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--glass-panel-border);
  border-radius: 10px;
  padding: 16px;
}

.section-title {
  font-size: 0.95rem;
  color: #f8fafc;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.competencies-progress-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.competency-progress-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.comp-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #cbd5e1;
}

.comp-bar-track {
  height: 8px;
  background: #1e293b;
  border-radius: 4px;
  overflow: hidden;
}

.comp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0284c7, #38bdf8);
}

.cognitive-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.cog-stat-box {
  background: #1e293b;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}

.cog-title {
  font-size: 0.78rem;
  color: #94a3b8;
  display: block;
}

.cog-score-val {
  font-size: 1.2rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 4px 0;
}

.cog-bar {
  height: 5px;
  background: #334155;
  border-radius: 3px;
  overflow: hidden;
  margin: 4px 0;
}

.cog-fill {
  height: 100%;
  background: #f59e0b;
}

.cog-pct {
  font-size: 0.75rem;
  color: #cbd5e1;
}

.audit-table-wrap {
  overflow-x: auto;
}

.audit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.audit-table th, .audit-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #1e293b;
  text-align: right;
  color: #cbd5e1;
}

.audit-table th {
  background: #1e293b;
  color: #94a3b8;
  font-weight: 600;
}

.badge-status {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
}

.badge-ok { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.badge-part { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.badge-err { background: rgba(239, 68, 68, 0.2); color: #ef4444; }

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

.btn-report-action {
  padding: 8px 16px;
  border-radius: 6px;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
}

.btn-print {
  background: #0284c7;
  color: #fff;
}

.btn-restart {
  background: #334155;
  color: #cbd5e1;
}

.btn-portal, .btn-portal-primary {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
  transition: all 0.2s ease;
}

.btn-portal:hover, .btn-portal-primary:hover {
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  transform: translateY(-1px);
  color: #fff;
}

.btn-track-select {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  transition: all 0.2s ease;
}

.btn-track-select:hover {
  background: rgba(16, 185, 129, 0.35);
  color: #fff;
  transform: translateY(-1px);
}

/* ==========================================================================
   TIMSS 2019 Item 11A & 11B Dedicated Styles
   ========================================================================== */

/* Item 11A Focus Lab Layout */
.microscope-focus-lab-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  flex: 1;
  min-height: 0;
  align-items: stretch;
  direction: rtl;
}

.eyepiece-lens-housing.lens-sharp-glow {
  box-shadow: 0 0 0 4px #10b981, 0 0 35px rgba(16, 185, 129, 0.4), inset 0 0 30px rgba(0, 0, 0, 0.9);
  border-color: #065f46;
}

.lens-glass-reflection {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 50%, rgba(2, 132, 199, 0.08) 100%);
}

.eyepiece-optical-status {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 290px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--glass-panel-border);
  border-radius: 8px;
  padding: 6px 12px;
  margin-top: 10px;
  font-size: 0.82rem;
  color: #cbd5e1;
}

.status-clarity.clarity-sharp {
  color: #10b981;
  font-weight: 700;
}

.status-clarity.clarity-blurry {
  color: #f59e0b;
}

/* ==========================================================================
   Authentic TIMSS Vertical Microscope Slider (Exact Reference Matching)
   ========================================================================== */
.timss-slider-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.authentic-slider-card {
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  padding: 24px 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 2px 10px rgba(0, 0, 0, 0.25);
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  min-width: 170px;
}

.slider-title-header {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 19px;
  font-weight: 800;
  color: #000000;
  letter-spacing: -0.2px;
  margin-bottom: 22px;
  text-align: center;
  white-space: nowrap;
}

/* Vertical Capsule Slider Track */
.authentic-vertical-track {
  position: relative;
  width: 36px;
  height: 310px;
  border-radius: 20px;
  background: linear-gradient(to right, #d4eaf7 0%, #eef7fc 40%, #e4f2fa 100%);
  border: 3.5px solid #2e9cd8;
  box-shadow: 
    inset 2px 3px 6px rgba(0, 0, 0, 0.22),
    inset -2px -2px 6px rgba(255, 255, 255, 0.9),
    0 1px 3px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  touch-action: none;
  margin: 0 auto;
}

/* Authentic Horizontal Divider Notch Lines (at 25% and 75%) */
.v-notch-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: #12749d;
  pointer-events: none;
  z-index: 2;
  box-shadow: 0 1px 1px rgba(255, 255, 255, 0.4);
}

/* 5 Clickable Hit Zones */
.v-hit-zone {
  position: absolute;
  left: -12px;
  right: -12px;
  z-index: 4;
  cursor: pointer;
}

/* Authentic Blue Circle Knob (الدائرة الزرقاء المطابقة للصورة) */
.authentic-blue-circle {
  position: absolute;
  left: 50%;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 45% 38%, #0e7697 0%, #035b75 62%, #013f52 100%);
  border: 1px solid rgba(1, 45, 59, 0.7);
  box-shadow: 
    0 4px 10px rgba(0, 0, 0, 0.45),
    0 1px 3px rgba(0, 0, 0, 0.35);
  cursor: grab;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: top 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.2), transform 0.15s ease, box-shadow 0.2s ease;
  outline: none;
}

.authentic-blue-circle:hover {
  box-shadow: 
    0 5px 14px rgba(0, 0, 0, 0.55),
    0 0 10px rgba(46, 156, 216, 0.5);
  transform: translate(-50%, -50%) scale(1.05);
}

.authentic-blue-circle.dragging {
  cursor: grabbing;
  transition: none;
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 
    0 8px 20px rgba(0, 0, 0, 0.6),
    0 0 14px rgba(46, 156, 216, 0.7);
}

.authentic-blue-circle:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 3px;
}

/* Inner 3D Concentric Ring of the Blue Knob */
.circle-3d-highlight {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #014b61;
  box-shadow: 
    inset 1px 2px 4px rgba(0, 0, 0, 0.65),
    0 1px 1px rgba(255, 255, 255, 0.22);
  pointer-events: none;
}

/* Indicator Pill below track */
.v-slider-indicator-pill {
  margin-top: 18px;
  background: #0f172a;
  color: #38bdf8;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Bottom Focus Control Bar Under Side-by-Side Screens */
.sim-bottom-focus-bar {
  margin-top: 4px;
  background: rgba(15, 23, 42, 0.9);
  border: 1.5px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.sim-horizontal-slider-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  background: rgba(30, 41, 59, 0.75);
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.h-slider-edge-label {
  font-size: 0.85rem;
  font-weight: 800;
  color: #38bdf8;
  min-width: 18px;
  text-align: center;
}

.sim-horizontal-focus-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(to left, #d4eaf7 0%, #eef7fc 50%, #d4eaf7 100%);
  border: 2px solid #2e9cd8;
  outline: none;
  cursor: pointer;
}

.sim-horizontal-focus-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 45% 38%, #0e7697 0%, #035b75 62%, #013f52 100%);
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  cursor: grab;
}

.sim-horizontal-focus-slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 45% 38%, #0e7697 0%, #035b75 62%, #013f52 100%);
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  cursor: grab;
}

/* ==========================================================================
   Item 11B Deductive Investigation Styles
   ========================================================================== */
.deductive-investigation-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 16px;
  flex: 1;
  min-height: 0;
  align-items: stretch;
}

@media (max-width: 900px) {
  .deductive-investigation-layout {
    grid-template-columns: 1fr;
  }
}

.garden-hair-showcase-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--glass-panel-border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.showcase-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.showcase-tag {
  font-size: 0.78rem;
  color: #38bdf8;
  font-weight: 600;
}

.specimen-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f8fafc;
}

.mini-eyepiece-housing {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: #020617;
  border: 8px solid #1e293b;
  box-shadow: 0 0 0 3px #475569, 0 0 20px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-eyepiece-circle {
  width: 100%;
  height: 100%;
}

.showcase-desc {
  font-size: 0.82rem;
  color: #94a3b8;
  text-align: center;
  line-height: 1.5;
  margin: 0;
}

.suspects-comparison-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--glass-panel-border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}

.suspects-header {
  font-size: 0.92rem;
  font-weight: 700;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 8px;
}

.suspects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.suspect-animal-pill {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid #475569;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
}

.suspect-animal-pill:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: #38bdf8;
  transform: translateY(-2px);
}

.animal-avatar {
  font-size: 2.2rem;
}

.animal-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.animal-name {
  font-weight: 700;
  color: #f8fafc;
  font-size: 0.95rem;
}

.animal-role {
  font-size: 0.75rem;
  color: #94a3b8;
}

.hair-question {
  font-size: 0.72rem;
  color: #38bdf8;
  font-weight: 600;
}

.inquiry-insight-box {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #fde68a;
  font-size: 0.84rem;
  line-height: 1.5;
}

.inquiry-insight-box strong {
  display: block;
  margin-bottom: 4px;
  color: #fbbf24;
}

.inquiry-insight-box p {
  margin: 0;
  color: #e2e8f0;
}

/* TIMSS Benchmark Comparison Cards in Report */
.timss-benchmark-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 12px;
}

@media (max-width: 768px) {
  .timss-benchmark-cards-grid {
    grid-template-columns: 1fr;
  }
}

.benchmark-item-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--glass-panel-border);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.b-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
}

.b-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #f8fafc;
}

.b-score {
  font-size: 0.85rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
}

.b-score.score-pass {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.b-score.score-fail {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.b-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.82rem;
  color: #cbd5e1;
}

.b-comparison-bar-wrap {
  background: rgba(30, 41, 59, 0.6);
  border-radius: 6px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.b-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #94a3b8;
}

.b-bar-track {
  height: 18px;
  background: #1e293b;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.b-bar-fill.fill-intl {
  height: 100%;
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  padding: 0 8px;
}

.b-bar-fill.fill-intl-low {
  height: 100%;
  background: linear-gradient(90deg, #d97706, #f59e0b);
  color: #000;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  padding: 0 8px;
}

.b-feedback-note {
  font-size: 0.8rem;
  line-height: 1.4;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

/* ==========================================================================
   Enhanced Question Cards & User Experience Styles
   ========================================================================== */

/* Enhanced Task Card */
.task-card {
  background: linear-gradient(145deg, rgba(19, 34, 56, 0.95), rgba(12, 21, 36, 0.98));
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 16px;
  padding: 24px 26px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.task-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.item-tag-badge {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.25), rgba(2, 132, 199, 0.4));
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #38bdf8;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.domain-tag {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cognitive-tag {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.score-tag {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.task-card-title {
  font-size: 1.28rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.45;
  margin: 0;
  letter-spacing: -0.01em;
}

/* Scenario Briefing Card */
.scenario-brief-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 4px solid var(--accent-blue);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.scenario-header-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #38bdf8;
}

.scenario-text {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.65;
  margin: 0;
}

.scenario-text strong {
  color: #f8fafc;
}

/* Mission Directive Box */
.mission-directive-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mission-pill-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mission-pill {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3);
}

.mission-pill.reasoning {
  background: linear-gradient(135deg, #d97706, #b45309);
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.3);
}

.mission-prompt-text {
  font-size: 1.02rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.55;
  margin: 0;
}

/* Interactive Focus Gauge (Item 11A) */
.interactive-focus-gauge-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gauge-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.gauge-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.gauge-state-badge {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
}

.gauge-state-badge.state-neutral {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #7dd3fc;
}

.gauge-state-badge.state-sharp {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid #10b981;
  color: #34d399;
}

.gauge-state-badge.state-blurry {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.focus-steps-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 6px 0;
}

.gauge-step-pill {
  background: #0f172a;
  border: 1.5px solid #334155;
  color: #94a3b8;
  border-radius: 8px;
  padding: 10px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
}

.gauge-step-pill:hover {
  border-color: #38bdf8;
  color: #f8fafc;
  transform: translateY(-2px);
}

.gauge-step-pill.active {
  background: rgba(2, 132, 199, 0.25);
  border-color: #38bdf8;
  color: #38bdf8;
  font-weight: 700;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.35);
}

.step-num {
  font-size: 1.05rem;
  font-weight: 800;
}

.step-desc {
  font-size: 0.72rem;
  white-space: nowrap;
}

.gauge-hint-text {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.5;
}

/* Rich Choice Cards (Item 11B) */
.rich-choices-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.choice-card-rich {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(15, 23, 42, 0.75);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px 20px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.choice-card-rich:hover {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(56, 189, 248, 0.45);
  transform: translateY(-1px);
}

.choice-card-rich.selected {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.22), rgba(15, 23, 42, 0.95));
  border-color: #38bdf8;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.25), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.choice-radio-indicator {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.2s ease;
  background: #0f172a;
}

.choice-card-rich.selected .choice-radio-indicator {
  border-color: #38bdf8;
  background: rgba(2, 132, 199, 0.3);
}

.radio-inner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #38bdf8;
  transform: scale(0);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.choice-card-rich.selected .radio-inner-dot {
  transform: scale(1);
}

.choice-content-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.choice-top-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.choice-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.choice-badge.badge-deny {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.choice-badge.badge-direct {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.choice-main-text {
  font-size: 0.96rem;
  color: #f8fafc;
  line-height: 1.5;
}

.choice-sub-desc {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
}

/* Reasoning Textarea & Assistance */
.reasoning-section-box {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.reasoning-label-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f1f5f9;
  font-size: 0.92rem;
  font-weight: 700;
}

.reasoning-textarea {
  width: 100%;
  background: #090e17;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 12px 14px;
  color: #f8fafc;
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.6;
  resize: vertical;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.reasoning-textarea:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2), 0 4px 12px rgba(0, 0, 0, 0.4);
}

.reasoning-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
  color: #94a3b8;
}

.counter-pill {
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.rubric-hint {
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Inline Assistance Banner */
.help-assist-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(217, 119, 6, 0.05));
  border: 1px dashed rgba(245, 158, 11, 0.35);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.assist-info-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.assist-info-box strong {
  display: block;
  font-size: 0.85rem;
  color: #fbbf24;
}

.assist-info-box p {
  font-size: 0.78rem;
  color: #cbd5e1;
  margin: 0;
}

.btn-assist-trigger {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  color: #1e1b4b;
  border: none;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
  transition: all 0.2s ease;
}

.btn-assist-trigger:hover {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.45);
}

/* Quick Term Chips */
.scaffolding-chips-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  background: rgba(15, 23, 42, 0.6);
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.15);
}

.scaffolding-label {
  font-size: 0.78rem;
  color: #fbbf24;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
}

.quick-term-chip {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #7dd3fc;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.quick-term-chip:hover {
  background: rgba(2, 132, 199, 0.35);
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-1px);
}

/* TIMSS Official Criteria / Notice Card */
.timss-rubric-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.rubric-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.rubric-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rubric-content strong {
  font-size: 0.84rem;
  color: #e2e8f0;
}

.rubric-content p {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
}

/* Animated Submission Alerts */
.submission-alert {
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.86rem;
  line-height: 1.5;
}

.submission-alert.success-alert {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 95, 70, 0.3));
  border: 1px solid #10b981;
  color: #d1fae5;
}

.submission-alert.success-alert i {
  color: #34d399;
  font-size: 1.3rem;
  margin-top: 2px;
}

.submission-alert.notice-alert {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(180, 83, 9, 0.25));
  border: 1px solid #f59e0b;
  color: #fef3c7;
}

.submission-alert.notice-alert i {
  color: #fbbf24;
  font-size: 1.3rem;
  margin-top: 2px;
}

.submission-alert.danger-alert {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.22), rgba(153, 27, 27, 0.35));
  border: 1px solid #ef4444;
  color: #fee2e2;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.25);
}

.submission-alert.danger-alert i {
  color: #f87171;
  font-size: 1.35rem;
  margin-top: 2px;
}

.submission-alert.measurement-alert {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
  border: 1px solid #475569;
  color: #cbd5e1;
}

.submission-alert.measurement-alert i {
  color: #38bdf8;
  font-size: 1.3rem;
  margin-top: 2px;
}


