/**
 * TIMSS Cherry Tomato Lab - Ultra-Premium Design System & Styling
 * Cutting-edge RTL Glassmorphic Design System adhering to international eAssessment standards.
 */

:root {
  /* Rich Harmonious Agricultural & Scientific Palette */
  --primary-hue: 156;
  --primary: hsl(var(--primary-hue), 84%, 38%);
  --primary-hover: hsl(var(--primary-hue), 88%, 32%);
  --primary-light: hsl(var(--primary-hue), 70%, 94%);
  --primary-glow: hsla(var(--primary-hue), 84%, 42%, 0.35);

  --secondary-hue: 216;
  --secondary: hsl(var(--secondary-hue), 92%, 52%);
  --secondary-hover: hsl(var(--secondary-hue), 92%, 45%);
  --secondary-light: hsl(var(--secondary-hue), 85%, 95%);
  --secondary-glow: hsla(var(--secondary-hue), 92%, 52%, 0.35);

  --accent-gold: #f59e0b;
  --accent-gold-light: #fef3c7;
  --accent-gold-glow: rgba(245, 158, 11, 0.35);

  --tomato-red: #ef4444;
  --tomato-crimson: #e11d48;
  --tomato-glow: rgba(239, 68, 68, 0.35);

  --danger: #ef4444;
  --danger-light: #fee2e2;
  --success: #10b981;
  --success-light: #d1fae5;

  /* Sleek Dark Mesh & Glassmorphism Surfaces */
  --bg-main: #0a111e;
  --bg-surface: rgba(18, 29, 48, 0.85);
  --bg-card: rgba(23, 38, 63, 0.85);
  --bg-card-hover: rgba(30, 50, 82, 0.95);
  --bg-card-light: #1e3355;
  --bg-glass-input: rgba(11, 20, 36, 0.7);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-sub: #cbd5e1;

  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-card: rgba(255, 255, 255, 0.12);
  --border-focus: rgba(16, 185, 129, 0.6);

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px -5px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 48px -10px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px var(--primary-glow);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --header-height: 72px;
  --actions-height: 76px;
  --stepper-height: 48px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  direction: rtl;
  text-align: right;
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(16, 185, 129, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(59, 130, 246, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 85%, rgba(245, 158, 11, 0.05) 0%, transparent 45%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ==========================================================================
   Ambient Background Glows
   ========================================================================== */
.ambient-glow {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  filter: blur(90px);
  opacity: 0.55;
  border-radius: 50%;
}

.glow-top-left {
  top: -120px;
  right: -80px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, transparent 70%);
}

.glow-top-right {
  top: -100px;
  left: -100px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.22) 0%, transparent 70%);
}

.glow-bottom-center {
  bottom: -150px;
  left: 30%;
  width: 500px;
  height: 400px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.15) 0%, transparent 70%);
}

/* ==========================================================================
   Header & Navigation Bar
   ========================================================================== */
.lab-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(14, 23, 38, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

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

.brand-icon-box {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  box-shadow: 0 4px 16px var(--primary-glow);
  position: relative;
  overflow: hidden;
}

.brand-icon-box::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

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

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-title {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
}

.brand-version-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  letter-spacing: 0.5px;
}

.brand-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

.header-center-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 320px;
}

.progress-info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-sub);
}

.header-screen-label {
  font-weight: 600;
  color: #e2e8f0;
}

.header-step-number {
  font-weight: 700;
  color: #38bdf8;
  font-family: 'Outfit', monospace;
  background: rgba(56, 189, 248, 0.1);
  padding: 1px 7px;
  border-radius: 6px;
}

.header-progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

.header-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #34d399 50%, #38bdf8 100%);
  border-radius: 999px;
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.5);
}

.track-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge-learning {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge-measurement {
  background: rgba(59, 130, 246, 0.16);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.clickable-badge {
  cursor: pointer;
  transition: all 0.2s ease;
}

.clickable-badge:hover {
  transform: translateY(-1px);
  filter: brightness(1.2);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

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

.btn-exit-tracks {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e2e8f0;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-exit-tracks i {
  color: #38bdf8;
  font-size: 13px;
  transition: transform 0.2s ease;
}

.btn-exit-tracks:hover {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.45);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.25);
}

.btn-exit-tracks:hover i {
  transform: scale(1.15);
  color: #38bdf8;
}

.btn-exit-tracks:active {
  transform: translateY(0);
}

/* Reset Experiments Button in Header */
.btn-reset-session {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fde68a;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.btn-reset-session i {
  color: #fbbf24;
  font-size: 13px;
  transition: transform 0.4s ease;
}

.btn-reset-session:hover {
  background: rgba(245, 158, 11, 0.22);
  border-color: rgba(245, 158, 11, 0.65);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.btn-reset-session:hover i {
  transform: rotate(-180deg);
}

.btn-reset-session:active {
  transform: translateY(0);
}

/* Reset Experiments Modal Overlay & Dialog */
.reset-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 10, 20, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease-out;
}

.reset-modal-dialog {
  background: linear-gradient(145deg, #111e33 0%, #0a1322 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 30px rgba(245, 158, 11, 0.15);
  width: 100%;
  max-width: 520px;
  padding: 28px;
  position: relative;
  direction: rtl;
  color: #f8fafc;
  animation: scaleIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reset-modal-close-btn {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.reset-modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #fff;
  transform: scale(1.1);
}

.reset-modal-header {
  text-align: center;
  margin-bottom: 22px;
}

.reset-modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15);
  border: 2px solid #f59e0b;
  color: #f59e0b;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.35);
}

.reset-modal-title {
  font-size: 19px;
  font-weight: 800;
  color: #f8fafc;
  margin: 0 0 6px 0;
}

.reset-modal-subtitle {
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
}

.reset-modal-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.reset-option-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: right;
}

.reset-option-card:hover {
  background: rgba(245, 158, 11, 0.12);
  border-color: #f59e0b;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.2);
}

.reset-option-card.danger:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: #ef4444;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.2);
}

.reset-option-icon {
  font-size: 22px;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.reset-option-text {
  flex: 1;
}

.reset-option-text h4 {
  font-size: 14px;
  font-weight: 800;
  color: #f8fafc;
  margin: 0 0 4px 0;
}

.reset-option-text p {
  font-size: 12px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.4;
}

.reset-option-arrow {
  font-size: 14px;
  color: #64748b;
  transition: transform 0.2s ease, color 0.2s ease;
}

.reset-option-card:hover .reset-option-arrow {
  transform: translateX(-4px);
  color: #f8fafc;
}

.reset-modal-footer {
  display: flex;
  justify-content: center;
}

.btn-cancel-reset {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #cbd5e1;
  padding: 8px 24px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cancel-reset:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.header-timer-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #38bdf8;
  font-family: 'Outfit', monospace;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
}

.header-timer-chip i {
  color: #38bdf8;
  animation: pulseTimer 2s infinite ease-in-out;
}

@keyframes pulseTimer {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

.btn-tool {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-sub);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.btn-tool:hover {
  background: var(--bg-card-hover);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-tool:active {
  transform: translateY(0);
}

.dropdown-menu-content {
  display: none;
  position: absolute;
  left: 0;
  top: 52px;
  background: rgba(18, 29, 48, 0.98);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  z-index: 1100;
  padding: 8px;
  animation: dropdownFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-menu-content.show {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: #e2e8f0;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background 0.18s ease;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.dropdown-item.danger {
  color: #fca5a5;
}

.dropdown-item.danger:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

/* ==========================================================================
   Phase Stepper Navigation Bar
   ========================================================================== */
.phase-stepper-bar {
  background: rgba(11, 20, 36, 0.75);
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 28px;
  backdrop-filter: blur(10px);
  z-index: 800;
}

.phase-stepper-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1720px;
  margin: 0 auto;
}

.phase-step {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.55;
  transition: all 0.3s ease;
  user-select: none;
}

.phase-step.active {
  opacity: 1;
}

.phase-step.completed {
  opacity: 0.9;
}

.phase-step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-muted);
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.phase-step-dot svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: currentColor;
}

.phase-step.active .phase-step-dot {
  background: var(--primary);
  border-color: #34d399;
  color: #fff;
  box-shadow: 0 0 12px var(--primary-glow);
  transform: scale(1.08);
}

.phase-step.completed .phase-step-dot {
  background: #059669;
  border-color: #10b981;
  color: #fff;
}

.phase-step-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-sub);
}

.phase-step.active .phase-step-title {
  color: #fff;
  font-weight: 700;
}

.phase-step-connector {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0 14px;
}

/* ==========================================================================
   Main Layout Container (Two Column: Simulation vs Task)
   ========================================================================== */
.lab-main-container {
  flex: 1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
  padding: 24px 28px;
  max-width: 1720px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 10;
}

.simulation-viewport-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
  min-height: 600px;
  overflow: hidden;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.3s ease;
}

.task-question-panel {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  min-height: 600px;
}

/* ==========================================================================
   Task Question Cards
   ========================================================================== */
.task-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: fadeInCard 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInCard {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.domain-tag {
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cognitive-tag {
  background: rgba(59, 130, 246, 0.14);
  color: #60a5fa;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(59, 130, 246, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.score-tag {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(245, 158, 11, 0.3);
  margin-right: auto;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
}

.task-card-title {
  font-size: 21px;
  font-weight: 800;
  color: #fff;
  line-height: 1.45;
  letter-spacing: -0.3px;
}

.task-text {
  font-size: 15.5px;
  color: var(--text-sub);
  line-height: 1.75;
}

.prompt-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

.prompt-label {
  display: block;
  font-size: 15.5px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.6;
}

/* Scientific Keyword Scaffolding Chips */
.scaffolding-chips-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.scaffolding-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.quick-term-chip {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #93c5fd;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.quick-term-chip:hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: #60a5fa;
  color: #fff;
  transform: translateY(-1px);
}

/* Inline Scaffolding Help Trigger in Learning Track */
.scaffold-help-prompt {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 8px 14px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px dashed rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-md);
  transition: all 0.25s ease;
}

.scaffold-help-prompt:hover {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.55);
}

.btn-trigger-inline-help {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #d97706, #f59e0b);
  color: #1e1b4b;
  border: none;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.btn-trigger-inline-help:hover {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.btn-trigger-inline-help i {
  font-size: 14px;
  color: #78350f;
}

.scaffold-help-desc {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.textarea-footer-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--text-muted);
}

/* Radio Option Rows */
.options-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  position: relative;
}

.option-row:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateX(-3px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.option-row.selected {
  background: rgba(16, 185, 129, 0.12);
  border-color: var(--primary);
  box-shadow: 0 0 16px var(--primary-glow);
}

.option-row input[type="radio"] {
  display: none;
}

.option-marker {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: var(--text-sub);
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.option-row.selected .option-marker {
  background: var(--primary);
  border-color: #34d399;
  color: #fff;
  box-shadow: 0 0 10px var(--primary-glow);
  transform: scale(1.05);
}

.option-text {
  font-size: 15px;
  color: var(--text-main);
  line-height: 1.6;
  font-weight: 500;
}

/* Textareas & Inputs */
.form-control-timss {
  width: 100%;
  background: var(--bg-glass-input);
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 14.5px;
  font-family: inherit;
  color: #fff;
  resize: vertical;
  line-height: 1.7;
  transition: all 0.2s ease;
}

.form-control-timss:focus {
  outline: none;
  background: rgba(15, 27, 48, 0.95);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-control-timss:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  background: rgba(0, 0, 0, 0.25);
}

.factors-inputs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.input-group-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.input-number-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #059669);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
  box-shadow: 0 2px 8px var(--primary-glow);
}

/* Guidance & Alert Banners */
.guidance-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  color: #93c5fd;
  font-size: 14px;
  line-height: 1.6;
}

.guidance-banner i {
  font-size: 18px;
  margin-top: 2px;
  color: #60a5fa;
}

.submission-alert {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  margin-top: 18px;
  font-size: 14.5px;
  line-height: 1.65;
  box-shadow: var(--shadow-sm);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.submission-alert i {
  font-size: 22px;
  margin-top: 2px;
  flex-shrink: 0;
}

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

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

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

.alert-measurement {
  background: rgba(100, 116, 139, 0.18);
  border: 1.5px solid rgba(100, 116, 139, 0.35);
  color: #e2e8f0;
}

.btn-retry-inline {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.btn-retry-inline:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.5);
}

/* Status Tables */
.current-tanks-table-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-card);
  background: var(--bg-card);
}

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

.tanks-status-table th {
  background: rgba(15, 27, 48, 0.95);
  padding: 12px 16px;
  text-align: right;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-card);
  font-weight: 700;
  font-size: 13px;
}

.tanks-status-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
  vertical-align: middle;
}

.badge-fert {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 12.5px;
}

.badge-fert.x {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-fert.y {
  background: rgba(59, 130, 246, 0.18);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.badge-fert.water {
  background: rgba(14, 165, 233, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.35);
}

.btn-table-edit {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-table-edit:hover {
  background: var(--primary);
  border-color: #34d399;
  transform: translateY(-1px);
}

/* ==========================================================================
   Fixed Bottom Actions Bar
   ========================================================================== */
.lab-actions-bar {
  position: sticky;
  bottom: 0;
  z-index: 900;
  height: var(--actions-height);
  background: rgba(14, 23, 38, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-card);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  padding: 0 28px;
}

.actions-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1720px;
  margin: 0 auto;
}

.actions-left, .actions-center, .actions-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-action-nav, .btn-action-submit, .btn-action-help, .btn-action-retry {
  height: 46px;
  padding: 0 22px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  user-select: none;
}

.btn-action-nav.btn-prev {
  background: var(--bg-card);
  color: var(--text-sub);
  border: 1px solid var(--border-card);
}

.btn-action-nav.btn-prev:hover {
  background: var(--bg-card-hover);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateX(2px);
}

.btn-action-nav.btn-next.ready {
  background: linear-gradient(135deg, var(--secondary) 0%, #1d4ed8 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.btn-action-nav.btn-next.ready:hover {
  transform: translateX(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.btn-action-submit.ready {
  background: linear-gradient(135deg, var(--primary) 0%, #059669 100%);
  color: #fff;
  box-shadow: 0 4px 16px var(--primary-glow);
}

.btn-action-submit.ready:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px var(--primary-glow);
}

.btn-action-submit.disabled {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.3);
  cursor: not-allowed;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-action-help {
  background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
  color: #fff;
  box-shadow: 0 4px 16px var(--accent-gold-glow);
}

.btn-action-help:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-gold-glow);
}

.btn-action-retry {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
}

.btn-action-retry:hover {
  background: var(--bg-card-hover);
}

/* ==========================================================================
   Track Selection Modal
   ========================================================================== */
.track-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5, 10, 20, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}

.track-modal-dialog {
  position: relative;
  background: #132238;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-xl);
  max-width: 860px;
  width: 100%;
  max-height: 94vh;
  overflow-y: auto;
  padding: 32px 36px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: #f8fafc;
  animation: modalScale 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.track-modal-header {
  text-align: center;
}

.track-modal-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #10B981, #059669);
  color: #fff;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.28);
}

.track-modal-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 0 0 6px 0;
}

.track-modal-subtitle {
  font-size: 0.9rem;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.55;
}

/* Compact Resume Session Button */
.track-resume-btn-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 2px 0 6px;
}

.btn-resume-session {
  width: 100%;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border: none;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-resume-session:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.45);
}

.btn-resume-session:active {
  transform: translateY(0);
}

.track-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.track-card {
  background: #182b47;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 22px 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: all 0.22s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
}

.track-card:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: #20375a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.38);
}

.track-card.selected {
  border-color: #10B981;
  background: rgba(16, 185, 129, 0.14);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22);
}

.track-card.card-measurement.selected {
  border-color: #3B82F6;
  background: rgba(59, 130, 246, 0.14);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22);
}

.track-card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.track-card-badge {
  position: static;
  background: rgba(16, 185, 129, 0.22);
  color: #6ee7b7;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.track-card-badge.official {
  background: rgba(59, 130, 246, 0.22);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.track-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.track-card-icon.learning {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.track-card-icon.measurement {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.track-card-name {
  font-size: 1.12rem;
  font-weight: 800;
  color: #f8fafc;
  text-align: right;
  margin: 2px 0;
}

.track-card-desc {
  font-size: 0.84rem;
  color: #cbd5e1;
  line-height: 1.55;
  text-align: right;
  margin: 0 0 4px 0;
}

.track-card-features {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 10px;
  margin-top: 2px;
  list-style: none;
  font-size: 0.82rem;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.track-card-features li {
  font-size: 0.82rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}

.track-card-features i {
  color: #10B981;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-left: 0;
}

.track-select-status {
  margin-top: 8px;
  width: 100%;
  height: 42px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0c1524;
  color: #94a3b8;
  padding: 0 14px;
}

.track-card.selected .track-select-status {
  background: #10B981 !important;
  color: #FFFFFF !important;
  border-color: #10B981 !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.28);
}

.track-card.card-measurement.selected .track-select-status {
  background: #3B82F6 !important;
  color: #FFFFFF !important;
  border-color: #3B82F6 !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.28);
}

.track-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 6px;
}

.btn-portal-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  background: #182b47;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-portal-back:hover {
  background: #20375a;
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.track-modal-close-btn {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #182b47;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #94a3b8;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.track-modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.45);
  color: #f87171;
  transform: rotate(90deg);
}

.btn-start-track {
  flex: 1;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #10B981, #059669);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: all 0.2s ease;
}

.btn-start-track:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
}

.btn-start-track.measurement-mode {
  background: linear-gradient(135deg, #3B82F6, #1D4ED8);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.btn-start-track.measurement-mode:hover {
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.45);
}

/* ==========================================================================
   Help Drawer & Scaffolding
   ========================================================================== */
.help-drawer {
  position: fixed;
  bottom: var(--actions-height);
  left: 28px;
  z-index: 950;
  max-width: 500px;
  width: calc(100% - 56px);
  background: rgba(18, 29, 48, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(245, 158, 11, 0.5);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(245, 158, 11, 0.2);
  display: none;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.help-drawer.open {
  display: block;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.help-drawer-content {
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.help-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.help-title-box {
  display: flex;
  align-items: center;
  gap: 14px;
}

.help-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 2px 8px var(--accent-gold-glow);
}

.help-main-title {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
}

.help-sub-title {
  font-size: 12px;
  color: var(--text-muted);
}

.btn-close-help {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-close-help:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.help-levels-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.help-level-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  color: var(--text-muted);
  font-family: inherit;
  transition: all 0.2s ease;
}

.help-level-btn:hover {
  background: var(--bg-card-hover);
  color: #fff;
}

.help-level-btn .lvl-num {
  font-size: 15px;
  font-weight: 800;
}

.help-level-btn .lvl-text {
  font-size: 10.5px;
  font-weight: 600;
}

.help-level-btn.active {
  background: rgba(245, 158, 11, 0.22);
  border-color: #f59e0b;
  color: #fbbf24;
  box-shadow: 0 0 12px var(--accent-gold-glow);
}

.help-body-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 18px;
}

.help-level-badge {
  font-size: 12.5px;
  font-weight: 800;
  color: #fbbf24;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.help-text-content {
  font-size: 14.5px;
  color: var(--text-main);
  line-height: 1.7;
}

.btn-next-hint {
  width: 100%;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-next-hint:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   Tank Configuration Modal
   ========================================================================== */
.tank-config-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: rgba(5, 10, 20, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.tank-config-modal-overlay.show {
  display: flex;
}

.tank-modal-dialog {
  background: rgba(18, 29, 48, 0.98);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  max-width: 660px;
  width: 100%;
  padding: 26px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modalScale 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.tank-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
}

.tank-modal-header-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tank-modal-badge {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
}

.tank-modal-title {
  font-size: 21px;
  font-weight: 800;
  color: #fff;
}

/* ======================================================================
   TIMSS 2019 Interactive Glass Droppers Apparatus
   ====================================================================== */
.droppers-intro {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 14px;
}

.droppers-intro-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.droppers-intro-title {
  font-size: 14px;
  font-weight: 800;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 8px;
}

.droppers-intro-desc {
  font-size: 12.5px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.5;
}

.droppers-stage {
  background: radial-gradient(ellipse at top, rgba(30, 41, 59, 0.65), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 18px 14px 12px;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  position: relative;
  gap: 16px;
}

.dropper-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  max-width: 280px;
}

.dropper-header {
  margin-bottom: 12px;
}

.dropper-pill-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 800;
}

.dropper-pill-label.pill-x {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.dropper-pill-label.pill-y {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.dropper-assembly-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.dropper-buttons-col {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between;
  height: 165px;
  margin: 0;
  gap: 0 !important;
}

.dropper-btn {
  width: 64px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #cbd5e1;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  padding: 0 6px;
}

.dropper-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  transform: scale(1.05);
}

.dropper-btn .val-txt {
  font-size: 15px;
  font-weight: 800;
}

.dropper-btn .unit-txt {
  font-size: 11px;
  opacity: 0.8;
}

.dropper-btn .pointer-arrow {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  transition: all 0.2s ease;
}

#fert-x-pills .dropper-btn.active {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(220, 38, 38, 0.5));
  border-color: #ef4444;
  color: #fff;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.5);
}

#fert-x-pills .dropper-btn.active .pointer-arrow {
  color: #ef4444;
  transform: scale(1.3);
}

#fert-y-pills .dropper-btn.active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(37, 99, 235, 0.5));
  border-color: #3b82f6;
  color: #fff;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.5);
}

#fert-y-pills .dropper-btn.active .pointer-arrow {
  color: #3b82f6;
  transform: scale(1.3);
}

/* Glass Dropper Visual */
.glass-dropper {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  cursor: pointer;
  user-select: none;
}

.dropper-bulb {
  width: 44px;
  height: 50px;
  border-radius: 50% 50% 35% 35% / 60% 60% 30% 30%;
  position: relative;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
}

.dropper-bulb.bulb-red {
  background: radial-gradient(circle at 35% 30%, #fca5a5 0%, #ef4444 45%, #b91c1c 85%, #7f1d1d 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.dropper-bulb.bulb-blue {
  background: radial-gradient(circle at 35% 30%, #93c5fd 0%, #3b82f6 45%, #1d4ed8 85%, #1e3a8a 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.dropper-bulb.squeezed {
  transform: scale(0.88, 0.82) translateY(3px);
}

.bulb-highlight {
  position: absolute;
  top: 7px;
  left: 9px;
  width: 10px;
  height: 14px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  filter: blur(1.5px);
}

.dropper-neck {
  width: 22px;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 2px;
  margin-top: -1px;
}

.dropper-tube {
  width: 32px;
  height: 165px;
  background: linear-gradient(90deg, rgba(255,255,255,0.18), rgba(255,255,255,0.05) 40%, rgba(255,255,255,0.22) 90%);
  border-left: 2px solid rgba(255, 255, 255, 0.45);
  border-right: 2px solid rgba(255, 255, 255, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.12);
}

.tube-glass-shine {
  position: absolute;
  top: 0;
  left: 4px;
  width: 3px;
  bottom: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0.15));
  z-index: 4;
  pointer-events: none;
}

.tube-fluid {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  transition: height 0.45s cubic-bezier(0.2, 0.85, 0.3, 1.15);
  z-index: 2;
}

.tube-fluid.fluid-x {
  background: linear-gradient(180deg, #f59e0b, #ef4444 45%, #b91c1c);
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.55), inset 0 0 6px rgba(255, 255, 255, 0.35);
}

.tube-fluid.fluid-y {
  background: linear-gradient(180deg, #38bdf8, #3b82f6 45%, #1d4ed8);
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.55), inset 0 0 6px rgba(255, 255, 255, 0.35);
}

.fluid-meniscus {
  position: absolute;
  top: -3px;
  left: 0;
  right: 0;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.9);
}

.tube-graduations {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px 3px;
}

.grad-mark {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.grad-line {
  width: 8px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

.dropper-nozzle {
  width: 10px;
  height: 28px;
  clip-path: polygon(20% 0%, 80% 0%, 65% 100%, 35% 100%);
  background: rgba(255, 255, 255, 0.25);
  border-left: 1px solid rgba(255, 255, 255, 0.4);
  border-right: 1px solid rgba(255, 255, 255, 0.4);
  margin-top: -1px;
  position: relative;
}

.droplet {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 8px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  opacity: 0;
}

.droplet.drip-x {
  background: #ef4444;
  box-shadow: 0 0 6px #ef4444;
}

.droplet.drip-y {
  background: #3b82f6;
  box-shadow: 0 0 6px #3b82f6;
}

.droplet.dripping {
  animation: dripFall 0.5s ease-in forwards;
}

@keyframes dripFall {
  0% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  75% { opacity: 1; transform: translate(-50%, 18px) scale(0.9); }
  100% { opacity: 0; transform: translate(-50%, 24px) scale(0.5); }
}

/* Canister / Beaker */
.beaker-canister {
  width: 70px;
  height: 64px;
  margin-top: 8px;
  border-radius: 6px 6px 12px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.canister-a {
  background: linear-gradient(180deg, #b91c1c, #991b1b 60%, #7f1d1d);
  border: 2px solid rgba(248, 113, 113, 0.5);
}

.canister-b {
  background: linear-gradient(180deg, #1d4ed8, #1e40af 60%, #1e3a8a);
  border: 2px solid rgba(96, 165, 250, 0.5);
}

.canister-label-en {
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.canister-label-ar {
  font-size: 13px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
}

/* Dropper Lab Bench with 3 Tanks Grid */
.dropper-lab-bench {
  margin-top: 14px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px 14px;
  width: 100%;
}

.bench-tanks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
}

.bench-tank-card {
  background: rgba(30, 41, 59, 0.75);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.bench-tank-card * {
  cursor: pointer;
}

.bench-tank-card:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: #38bdf8;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.bench-tank-card:active {
  transform: scale(0.985);
}

.bench-tank-card.active-target-tank {
  background: rgba(16, 185, 129, 0.12);
  border: 2.5px solid #10b981;
  box-shadow: 0 0 22px rgba(16, 185, 129, 0.4), 0 4px 14px rgba(0, 0, 0, 0.45);
}

.bench-tank-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tank-title-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tank-cube-icon {
  color: #64748b;
  font-size: 13px;
}

.tank-cube-icon.active {
  color: #10b981;
}

.tank-name-text {
  font-size: 13px;
  font-weight: 800;
  color: #f8fafc;
}

.tank-select-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  line-height: 1.2;
}

.tank-select-tag.tag-selected {
  background: #10b981;
  color: #fff;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
}

.tank-select-tag.tag-choose {
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.bench-tank-visual {
  height: 95px;
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.5);
}

.bench-tank-metrics {
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.tank-metric-badge,
.tank-metric-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 11.5px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.tank-metric-btn:hover {
  transform: translateY(-1.5px) scale(1.02);
  filter: brightness(1.2);
}

.tank-metric-btn:active {
  transform: translateY(0) scale(0.98);
}

.tank-metric-badge.metric-x,
.tank-metric-btn.metric-x {
  background: rgba(239, 68, 68, 0.18);
  border: 1.5px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.tank-metric-btn.metric-x:hover {
  background: rgba(239, 68, 68, 0.32);
  border-color: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.tank-metric-badge.metric-y,
.tank-metric-btn.metric-y {
  background: rgba(59, 130, 246, 0.18);
  border: 1.5px solid rgba(59, 130, 246, 0.4);
  color: #93c5fd;
}

.tank-metric-btn.metric-y:hover {
  background: rgba(59, 130, 246, 0.32);
  border-color: #3b82f6;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.tank-metric-badge .m-val,
.tank-metric-btn .m-val {
  font-weight: 800;
}

/* ======================================================================
   Interactive Dropper Rig Viewport Styles (Screen 4 Main Sim)
   ====================================================================== */
.simulation-dropper-rig-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.dropper-rig-header {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dropper-stage-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.dropper-badge-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-num-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #10b981;
  color: #fff;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.dropper-badge-title strong {
  font-size: 15px;
  color: #fff;
  display: block;
}

.dropper-badge-title .sub-en {
  font-size: 11.5px;
  color: #94a3b8;
  display: block;
}

.tank-selector-tabs {
  display: flex;
  gap: 6px;
}

.tank-tab-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 6px 14px;
  color: #cbd5e1;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tank-tab-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.tank-tab-btn.active {
  background: rgba(16, 185, 129, 0.22);
  border-color: #10b981;
  color: #34d399;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
}

.dropper-rig-instruction-box {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 12px;
}

.dropper-rig-instruction-box .inst-ar {
  font-size: 13px;
  color: #f1f5f9;
  margin: 0 0 4px;
  line-height: 1.5;
}

.dropper-rig-instruction-box .inst-en {
  font-size: 11.5px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.4;
  direction: ltr;
  text-align: left;
}

.sim-viewport-stage {
  padding: 16px 20px 10px;
}

.sim-viewport-bench {
  padding: 10px 14px;
}

.sim-big-tank {
  max-width: 320px;
}

.tanks-status-table tr.active-table-row {
  background: rgba(16, 185, 129, 0.15) !important;
  outline: 1.5px solid rgba(16, 185, 129, 0.45);
}

.modal-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-section-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.modal-pill {
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  text-align: center;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-sub);
  cursor: pointer;
  transition: all 0.22s ease;
}

.modal-pill:hover {
  background: var(--bg-card-hover);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.modal-pill.active {
  background: rgba(16, 185, 129, 0.22);
  border-color: var(--primary);
  color: #34d399;
  box-shadow: 0 0 16px var(--primary-glow);
}

.btn-save-modal {
  width: 100%;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary) 0%, #059669 100%);
  color: #fff;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px var(--primary-glow);
  transition: all 0.2s ease;
}

.btn-save-modal:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

/* ==========================================================================
   Embedded Floating Calculator
   ========================================================================== */
.floating-calculator {
  position: fixed;
  top: 90px;
  left: 30px;
  z-index: 1200;
  background: rgba(15, 25, 42, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 290px;
  display: none;
  overflow: hidden;
  animation: fadeInCard 0.25s ease;
}

.floating-calculator.show {
  display: block;
}

.calc-header {
  background: rgba(25, 42, 71, 0.9);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  cursor: move;
}

.calc-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
}

.calc-display {
  background: #070d18;
  padding: 18px 16px;
  text-align: left;
  font-family: 'JetBrains Mono', 'Outfit', monospace;
  font-size: 24px;
  font-weight: 700;
  color: #34d399;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  word-break: break-all;
  min-height: 64px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.5);
}

.calc-keypad {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.calc-key {
  background: #132037;
  border: none;
  color: #fff;
  padding: 15px 0;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.calc-key:hover {
  background: #1c3052;
}

.calc-key.op {
  background: #172c4c;
  color: #60a5fa;
}

.calc-key.clear {
  background: #3b1820;
  color: #f87171;
}

.calc-key.equals {
  background: #047857;
  color: #a7f3d0;
}

/* ==========================================================================
   Report Card & Diagnostic Certificate (Screen 14)
   ========================================================================== */
.report-card {
  padding: 32px 36px;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

.report-header-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14) 0%, rgba(59, 130, 246, 0.14) 50%, rgba(139, 92, 246, 0.12) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.report-header-banner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 140px;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(251, 191, 36, 0.15), transparent 70%);
  pointer-events: none;
}

.report-brand {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.report-emblem-wrap {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(217, 119, 6, 0.35);
  flex-shrink: 0;
}

.report-badge-icon {
  font-size: 32px;
  color: #fff;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

.report-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.report-top-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.report-org-badge {
  font-size: 11.5px;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 2px 9px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.report-track-pill {
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.report-track-pill.pill-learning {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.report-track-pill.pill-measurement {
  background: rgba(59, 130, 246, 0.16);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.report-title {
  font-size: 21px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
  margin: 0;
}

.report-sub {
  font-size: 13.5px;
  color: var(--text-sub);
  margin: 0;
}

.report-score-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(11, 20, 36, 0.88);
  border: 1.5px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-md);
  padding: 14px 22px;
  min-width: 145px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.score-box-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.score-num-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.score-num {
  font-size: 26px;
  font-weight: 900;
  color: #34d399;
  font-family: 'JetBrains Mono', 'IBM Plex Sans Arabic', sans-serif;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.score-pct-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 5px;
  background: rgba(16, 185, 129, 0.18);
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.score-pct-val {
  font-size: 13px;
  font-weight: 800;
  color: #a7f3d0;
  font-family: 'JetBrains Mono', monospace;
}

.score-pct-label {
  font-size: 11px;
  font-weight: 600;
  color: #6ee7b7;
}

/* Session Meta Strip */
.report-meta-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px 18px;
}

.meta-strip-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
}

.meta-strip-item .lbl {
  color: var(--text-muted);
  font-weight: 500;
}

.meta-strip-item .val {
  color: #e2e8f0;
  font-weight: 700;
}

.meta-strip-item .val.mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #38bdf8;
}

/* TIMSS International Benchmark Alert */
.benchmark-alert {
  border-radius: var(--radius-md);
  padding: 16px 22px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.3s ease;
}

.benchmark-alert.bench-advanced {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(245, 158, 11, 0.14));
  border: 1.5px solid rgba(16, 185, 129, 0.45);
}

.benchmark-alert.bench-high {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(14, 165, 233, 0.14));
  border: 1.5px solid rgba(59, 130, 246, 0.45);
}

.benchmark-alert.bench-intermediate {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.18), rgba(245, 158, 11, 0.12));
  border: 1.5px solid rgba(20, 184, 166, 0.45);
}

.benchmark-alert.bench-low {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(249, 115, 22, 0.12));
  border: 1.5px solid rgba(245, 158, 11, 0.45);
}

.benchmark-alert.bench-below-low {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.14), rgba(245, 158, 11, 0.12));
  border: 1.5px solid rgba(239, 68, 68, 0.35);
}

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

.benchmark-label {
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.benchmark-val {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  padding: 4px 14px;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.benchmark-val.bench-advanced {
  background: linear-gradient(135deg, #059669, #10b981);
}

.benchmark-val.bench-high {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
}

.benchmark-val.bench-intermediate {
  background: linear-gradient(135deg, #0d9488, #14b8a6);
}

.benchmark-val.bench-low {
  background: linear-gradient(135deg, #d97706, #f59e0b);
}

.benchmark-val.bench-below-low {
  background: linear-gradient(135deg, #dc2626, #ef4444);
}

.benchmark-desc {
  font-size: 13px;
  color: var(--text-sub);
  margin: 0;
  line-height: 1.5;
}

/* Breakdown Grid & Cards */
.breakdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.breakdown-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.breakdown-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
}

.breakdown-card-head h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.breakdown-weight-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 4px;
}

.breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.breakdown-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.breakdown-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-sub);
}

.pts-group {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', 'IBM Plex Sans Arabic', monospace;
  font-weight: 700;
}

.pts-ratio {
  color: #fff;
}

.pts-pct {
  color: var(--text-muted);
  font-size: 12px;
}

.progress-bar-sm {
  height: 9px;
  background: rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.progress-bar-sm .fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-bar-sm .fill.fill-cognitive {
  background: linear-gradient(90deg, #10b981 0%, #38bdf8 100%);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}

.progress-bar-sm .fill.fill-practices {
  background: linear-gradient(90deg, #059669 0%, #10b981 100%);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

/* Pedagogical Actionable Insights */
.insight-card-strengths {
  border-right: 4px solid #10b981;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(15, 23, 42, 0.4) 100%);
}

.insight-card-recommendations {
  border-right: 4px solid #3b82f6;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(15, 23, 42, 0.4) 100%);
}

.insight-head {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
}

.insight-head h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.insight-list {
  list-style: none;
  font-size: 13.5px;
  color: var(--text-sub);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.insight-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.insight-list li i {
  margin-top: 3px;
  flex-shrink: 0;
}

/* Telemetry & Matrix Table Section */
.report-table-section {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 20px 22px;
}

.table-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.table-section-header h4 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-items-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 10px;
  border-radius: 999px;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.report-table th {
  background: rgba(15, 27, 48, 0.95);
  padding: 12px 14px;
  text-align: right;
  color: var(--text-muted);
  font-weight: 700;
  border-bottom: 1px solid var(--border-card);
}

.report-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  vertical-align: middle;
}

.report-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.item-title {
  color: #f1f5f9;
  font-weight: 600;
}

.cog-badge {
  font-size: 12px;
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

.pts-bold {
  color: #34d399;
  font-family: 'JetBrains Mono', 'IBM Plex Sans Arabic', monospace;
  font-size: 14px;
}

.badge-success {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.badge-danger {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

/* Official Certification Footer - TIMSS Official e-Assessment Verified */
.report-official-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.85) 100%);
  border: 1px solid rgba(245, 158, 11, 0.28);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.report-official-footer::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 160px;
  height: 100%;
  background: radial-gradient(circle at 100% 50%, rgba(245, 158, 11, 0.1), transparent 70%);
  pointer-events: none;
}

.cert-seal {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1 1 380px;
}

.cert-seal-icon-box {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22) 0%, rgba(217, 119, 6, 0.4) 100%);
  border: 2px solid rgba(245, 158, 11, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fbbf24;
  font-size: 24px;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.25);
}

.cert-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cert-title-badge-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cert-title {
  font-size: 15.5px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.2px;
}

.cert-verified-pill {
  font-size: 11px;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  padding: 3px 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.cert-subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
}

.cert-signatures {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.sig-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sig-title {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sig-val {
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sig-val.mono {
  font-family: 'JetBrains Mono', monospace;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 12px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.text-emerald {
  color: #10b981 !important;
}

.text-cyan {
  color: #38bdf8 !important;
}

/* Report Action Buttons - Unified Symmetric Row */
.report-actions-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
  width: 100%;
}

@media (max-width: 860px) {
  .report-actions-row {
    grid-template-columns: 1fr;
  }
}

.btn-report-action {
  height: 50px;
  padding: 0 20px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-report-action i {
  font-size: 16px;
  transition: transform 0.25s ease;
}

/* 1. Primary Print Button */
.btn-report-action.btn-print-primary {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  border-color: #34d399;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}

.btn-report-action.btn-print-primary:hover {
  background: linear-gradient(135deg, #047857 0%, #059669 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.5);
  border-color: #6ee7b7;
}

.btn-report-action.btn-print-primary:active {
  transform: translateY(0);
}

/* 2. Export JSON Button */
.btn-report-action.btn-export-json,
.btn-report-action#btn-export-json {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
  border-color: rgba(56, 189, 248, 0.35);
  color: #e0f2fe;
}

.btn-report-action.btn-export-json:hover,
.btn-report-action#btn-export-json:hover {
  background: linear-gradient(135deg, rgba(51, 65, 85, 0.95) 0%, rgba(30, 41, 59, 1) 100%);
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.3);
}

.btn-report-action.btn-export-json:hover i,
.btn-report-action#btn-export-json:hover i {
  transform: translateY(2px);
}

/* 3. Restart Session Button */
.btn-report-action.btn-restart {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(153, 27, 27, 0.22) 100%);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  margin-right: 0;
}

.btn-report-action.btn-restart:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.28) 0%, rgba(185, 28, 28, 0.4) 100%);
  border-color: #ef4444;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.35);
}

.btn-report-action.btn-restart:hover i {
  transform: rotate(-180deg);
}

/* ==========================================================================
   TIMSS Authentic Interactive Water Rig Viewport (Screen 6)
   Matches the video walkthrough layout: 3 interactive columns with
   graduated water reservoirs, buttons (800, 400, 0 ml), dripping animation,
   and soil moisture sync.
   ========================================================================== */
.simulation-water-rig-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 520px;
  background: radial-gradient(circle at 50% 20%, rgba(14, 165, 233, 0.08) 0%, transparent 60%),
              radial-gradient(circle at 10% 80%, rgba(16, 185, 129, 0.06) 0%, transparent 50%),
              rgba(11, 20, 36, 0.94);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: 18px 20px;
  overflow-y: auto;
  gap: 16px;
  position: relative;
}

.water-rig-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(18, 32, 54, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  backdrop-filter: blur(10px);
}

.water-header-timss-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-num-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
  color: #fff;
  font-weight: 900;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.5);
  flex-shrink: 0;
}

.water-header-titles {
  display: flex;
  flex-direction: column;
}

.water-title-ar {
  font-size: 16px;
  font-weight: 800;
  color: #f0fdf4;
  margin: 0;
  line-height: 1.3;
}

.water-title-en {
  font-size: 12px;
  color: #38bdf8;
  font-weight: 600;
  letter-spacing: 0.3px;
  direction: ltr;
  text-align: right;
}

.water-header-instructions {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 8px;
}

.water-instruction-ar {
  font-size: 13px;
  color: #cbd5e1;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.water-instruction-en {
  font-size: 11px;
  color: #94a3b8;
  margin: 0;
  direction: ltr;
  text-align: right;
}

/* 3 Columns Grid */
.water-rig-columns-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
  flex: 1;
}

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

/* Individual Tank Column (Matching Video Box) */
.water-tank-column {
  background: rgba(15, 26, 44, 0.85);
  border: 2px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.water-tank-column:hover {
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 12px 30px rgba(14, 165, 233, 0.2);
  transform: translateY(-2px);
}

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

.col-tank-num {
  font-weight: 800;
  font-size: 15px;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 6px;
}

.col-tank-en {
  font-size: 12px;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Water Dispenser Unit */
.water-dispenser-unit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(8, 15, 27, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  position: relative;
}

/* Water Buttons Column */
.water-buttons-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 90px;
}

.water-pill-btn {
  background: rgba(23, 38, 63, 0.9);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.water-pill-btn .w-arrow {
  color: rgba(255, 255, 255, 0.3);
  font-size: 11px;
  transition: all 0.2s ease;
}

.water-pill-btn .w-val {
  font-weight: 800;
  font-size: 14px;
}

.water-pill-btn .w-unit {
  font-size: 10px;
  color: #94a3b8;
}

.water-pill-btn:hover {
  border-color: #38bdf8;
  color: #fff;
  background: rgba(14, 165, 233, 0.2);
  transform: scale(1.03);
}

.water-pill-btn.active {
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
  border-color: #7dd3fc;
  color: #fff;
  box-shadow: 0 0 14px rgba(14, 165, 233, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.water-pill-btn.active .w-arrow {
  color: #fff;
  transform: translateX(-2px);
}

.water-pill-btn.active .w-unit {
  color: #e0f2fe;
}

/* Glass Water Cylinder / Reservoir */
.glass-water-cylinder {
  width: 58px;
  height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  cursor: pointer;
  user-select: none;
}

.water-cylinder-top {
  width: 44px;
  height: 8px;
  background: linear-gradient(to bottom, #94a3b8, #475569);
  border-radius: 4px 4px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.water-cylinder-body {
  width: 48px;
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(56, 189, 248, 0.4);
  border-top: none;
  border-radius: 0 0 8px 8px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 12px rgba(56, 189, 248, 0.15), 0 4px 12px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
}

.cylinder-glass-shine {
  position: absolute;
  top: 0;
  left: 4px;
  width: 6px;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
  z-index: 5;
  pointer-events: none;
}

.cylinder-fluid {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 50%, #0369a1 100%);
  transition: height 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.5);
  z-index: 2;
}

.water-surface-wave {
  position: absolute;
  top: -3px;
  left: 0;
  right: 0;
  height: 6px;
  background: #7dd3fc;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.water-bubbles span {
  position: absolute;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: bubbleRise 2s infinite ease-in;
}

.water-bubbles span:nth-child(1) {
  width: 4px;
  height: 4px;
  left: 12px;
  bottom: 4px;
  animation-duration: 2.2s;
}

.water-bubbles span:nth-child(2) {
  width: 3px;
  height: 3px;
  right: 14px;
  bottom: 8px;
  animation-duration: 1.8s;
  animation-delay: 0.5s;
}

@keyframes bubbleRise {
  0% { transform: translateY(0); opacity: 0; }
  50% { opacity: 0.8; }
  100% { transform: translateY(-70px); opacity: 0; }
}

.cylinder-graduations {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 3px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 0 12px 0;
  z-index: 6;
  pointer-events: none;
}

.c-grad {
  display: flex;
  align-items: center;
  gap: 3px;
  direction: ltr;
}

.c-line {
  width: 8px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.c-num {
  font-size: 9px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

/* Water Nozzle & Drips */
.water-cylinder-nozzle {
  width: 14px;
  height: 10px;
  background: #475569;
  border-radius: 0 0 6px 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top: none;
  position: relative;
  display: flex;
  justify-content: center;
}

.water-drip {
  width: 6px;
  height: 10px;
  background: #38bdf8;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  position: absolute;
  top: 8px;
  opacity: 0;
  box-shadow: 0 0 6px #38bdf8;
}

.water-drip.dripping {
  animation: waterDripFall 1.3s infinite cubic-bezier(0.4, 0, 1, 1);
}

@keyframes waterDripFall {
  0% {
    top: 6px;
    opacity: 0;
    transform: scale(0.6);
  }
  20% {
    opacity: 1;
    transform: scale(1);
  }
  80% {
    top: 36px;
    opacity: 1;
    transform: scale(1.1);
  }
  100% {
    top: 48px;
    opacity: 0;
    transform: scale(1.4);
  }
}

/* Water Tank Card (Glass container with plants) */
.water-tank-card {
  background: rgba(10, 18, 32, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 10px 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
  user-select: none;
}

.water-tank-card:hover {
  background: rgba(14, 25, 45, 0.95);
  border-color: #38bdf8;
}

.water-tank-svg-box {
  width: 100%;
  height: 110px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
}

.water-column-footer {
  display: flex;
  justify-content: center;
  align-items: center;
}

.water-metric-pill {
  font-size: 13px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.water-metric-pill.has-water {
  background: rgba(14, 165, 233, 0.18);
  border: 1px solid #38bdf8;
  color: #7dd3fc;
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.3);
}

.water-metric-pill.dry {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
}

/* Footer notice matching TIMSS video instructions */
.water-rig-footer-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-size: 13px;
  color: #a7f3d0;
  flex-wrap: wrap;
}

.water-rig-footer-notice .sub-en {
  font-size: 11px;
  color: #6ee7b7;
  direction: ltr;
  text-align: right;
  opacity: 0.85;
}

/* ==========================================================================
   TIMSS Screen 7: Authentic Final Check Station Viewport
   Mirrors the video: Digital Water Controller, Dual Fertilizer Droppers (A & B),
   Lab workbench, glass tank with seedlings, flexible hose, and tank tabs.
   ========================================================================== */
.simulation-final-check-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 540px;
  background: radial-gradient(circle at 70% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 60%),
              radial-gradient(circle at 20% 80%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
              rgba(10, 18, 32, 0.96);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: 18px 20px;
  overflow-y: auto;
  gap: 16px;
  position: relative;
}

/* Header & Tank Tabs */
.final-check-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(18, 32, 54, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  backdrop-filter: blur(10px);
}

.final-check-title-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.final-check-main-title {
  font-size: 16px;
  font-weight: 800;
  color: #f8fafc;
  margin: 0;
  line-height: 1.3;
}

.final-check-sub-title {
  font-size: 12px;
  color: #38bdf8;
  font-weight: 600;
  letter-spacing: 0.3px;
  direction: ltr;
  text-align: right;
}

.final-check-tank-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.fc-tank-tab-btn {
  background: rgba(14, 25, 45, 0.9);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  color: #cbd5e1;
  text-align: right;
}

.fc-tank-tab-btn:hover {
  border-color: rgba(56, 189, 248, 0.6);
  background: rgba(20, 36, 64, 0.95);
  transform: translateY(-1px);
}

.fc-tank-tab-btn.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(6, 95, 70, 0.35) 100%);
  border-color: #10b981;
  color: #fff;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.tab-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.tab-tank-name {
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.tab-active-indicator {
  font-size: 10px;
  color: #64748b;
  font-weight: 700;
}

.fc-tank-tab-btn.active .tab-active-indicator {
  color: #34d399;
  text-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
}

.tab-metrics-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
}

.tab-metric {
  background: rgba(0, 0, 0, 0.35);
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.tab-metric.fert-a {
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.tab-metric.fert-b {
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.tab-metric.water {
  color: #67e8f9;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

/* Main Laboratory Rig Stage Layout */
.final-check-stage-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 16px;
  align-items: flex-start;
  position: relative;
  z-index: 2;
}

@media (max-width: 800px) {
  .final-check-stage-layout {
    grid-template-columns: 1fr;
  }
}

/* Right Column: Digital Water Control Box */
.fc-water-control-station {
  background: linear-gradient(145deg, #0d3434 0%, #062325 100%);
  border: 2px solid #14b8a6;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 15px rgba(20, 184, 166, 0.25);
  position: relative;
}

.fc-station-box-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
  color: #99f6e4;
  line-height: 1.2;
  text-align: center;
}

.fc-station-box-label small {
  font-size: 10px;
  color: #5eead4;
  font-weight: 600;
}

.fc-lcd-display-unit {
  width: 100%;
  background: #021718;
  border: 2px solid #0f766e;
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.7);
}

.fc-lcd-screen {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.lcd-glow-val {
  font-family: 'Courier New', monospace;
  font-size: 24px;
  font-weight: 900;
  color: #2dd4bf;
  text-shadow: 0 0 10px rgba(45, 212, 191, 0.7);
}

.lcd-unit-lbl {
  font-size: 11px;
  font-weight: 700;
  color: #14b8a6;
}

.fc-lcd-status-led {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #334155;
  transition: all 0.3s ease;
}

.fc-lcd-status-led.active {
  background: #2dd4bf;
  box-shadow: 0 0 10px #2dd4bf;
  animation: ledPulse 1.5s infinite alternate;
}

@keyframes ledPulse {
  0% { opacity: 0.6; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1.15); }
}

.fc-control-buttons-row {
  display: flex;
  gap: 6px;
  width: 100%;
}

.fc-btn-val {
  flex: 1;
  background: rgba(15, 118, 110, 0.35);
  border: 1px solid #14b8a6;
  color: #ccfbf1;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.fc-btn-val:hover {
  background: #0f766e;
  color: #fff;
  transform: translateY(-1px);
}

.fc-btn-val.active {
  background: #14b8a6;
  color: #042f2e;
  font-weight: 900;
  box-shadow: 0 0 12px rgba(20, 184, 166, 0.6);
}

.fc-pipe-outlet-joint {
  width: 22px;
  height: 9px;
  background: #475569;
  border-radius: 0 0 5px 5px;
  border: 1.5px solid #94a3b8;
  margin-top: -4px;
}

/* Left Column: Dual Fertilizer Droppers Apparatus */
.fc-fert-dispensers-station {
  background: rgba(15, 26, 44, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.fc-fert-header-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: #e2e8f0;
}

.fc-fert-header-label small {
  font-size: 11px;
  color: #94a3b8;
}

.fc-droppers-pair {
  display: flex;
  justify-content: center;
  gap: 36px;
  width: 100%;
}

.fc-dropper-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
}

.fc-dropper-bulb {
  width: 32px;
  height: 32px;
  border-radius: 50% 50% 40% 40%;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.4), 0 3px 8px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.fc-dropper-bulb:hover {
  transform: scale(1.08);
}

.red-bulb {
  background: radial-gradient(circle at 35% 30%, #f87171 0%, #dc2626 70%, #991b1b 100%);
}

.blue-bulb {
  background: radial-gradient(circle at 35% 30%, #818cf8 0%, #4f46e5 70%, #312e81 100%);
}

.fc-dropper-tube-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fc-dropper-tube {
  width: 24px;
  height: 105px;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 0 0 6px 6px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.fc-fluid-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  transition: height 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.red-fluid {
  background: linear-gradient(180deg, #f87171 0%, #ef4444 50%, #b91c1c 100%);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.blue-fluid {
  background: linear-gradient(180deg, #818cf8 0%, #6366f1 50%, #4338ca 100%);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.fc-tube-shine {
  position: absolute;
  top: 0;
  left: 2px;
  width: 4px;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.35), transparent);
  pointer-events: none;
}

.fc-grad-marks {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.fc-grad-btn {
  background: rgba(23, 38, 63, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.fc-grad-btn:hover {
  border-color: #38bdf8;
  color: #fff;
  transform: scale(1.08);
}

.fc-dropper-A .fc-grad-btn.active {
  background: #dc2626;
  border-color: #f87171;
  color: #fff;
  box-shadow: 0 0 8px rgba(220, 38, 38, 0.6);
}

.fc-dropper-B .fc-grad-btn.active {
  background: #4f46e5;
  border-color: #818cf8;
  color: #fff;
  box-shadow: 0 0 8px rgba(79, 70, 229, 0.6);
}

.fc-dropper-nozzle {
  width: 8px;
  height: 10px;
  background: #64748b;
  border-radius: 0 0 4px 4px;
  position: relative;
  display: flex;
  justify-content: center;
}

.fc-fert-drip {
  width: 5px;
  height: 8px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  position: absolute;
  top: 6px;
  opacity: 0;
}

.red-drip {
  background: #ef4444;
  box-shadow: 0 0 6px #ef4444;
}

.blue-drip {
  background: #6366f1;
  box-shadow: 0 0 6px #6366f1;
}

.fc-fert-drip.dripping {
  animation: fertDripFall 1.4s infinite cubic-bezier(0.4, 0, 1, 1);
}

@keyframes fertDripFall {
  0% { top: 4px; opacity: 0; transform: scale(0.6); }
  25% { opacity: 1; transform: scale(1); }
  80% { top: 26px; opacity: 1; }
  100% { top: 36px; opacity: 0; }
}

/* Beakers at bottom */
.fc-beaker {
  width: 48px;
  height: 38px;
  border-radius: 0 0 8px 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  margin-top: 4px;
}

.red-beaker {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.2) 0%, rgba(185, 28, 28, 0.8) 100%);
  border-color: #ef4444;
}

.blue-beaker {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.2) 0%, rgba(55, 48, 163, 0.8) 100%);
  border-color: #6366f1;
}

.beaker-letter {
  font-weight: 900;
  font-size: 14px;
  color: #fff;
  line-height: 1;
}

.beaker-sub {
  font-size: 8px;
  color: rgba(255, 255, 255, 0.85);
}

/* Lower Section: Master Laboratory Rig SVG Container */
.final-check-bench-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  margin-top: -6px;
  width: 100%;
}

.fc-master-apparatus-svg {
  width: 100%;
  height: auto;
  max-height: 250px;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.5));
}

/* Water Pipe Flow Pulse */
.fc-water-pipe-main.flowing {
  stroke-dasharray: 10, 5;
  animation: pipeFlowPulse 0.9s linear infinite;
}

@keyframes pipeFlowPulse {
  0% { stroke-dashoffset: 30; }
  100% { stroke-dashoffset: 0; }
}

/* Mist Cones & Droplets Animation */
.fc-mist-cone {
  transform-origin: top center;
  animation: mistPulseAnim 1.4s ease-in-out infinite alternate;
}

.fc-mist-cone.heavy {
  opacity: 0.8;
}

.fc-mist-cone.light {
  opacity: 0.45;
}

@keyframes mistPulseAnim {
  0% { opacity: 0.35; transform: scaleX(0.88); }
  100% { opacity: 0.85; transform: scaleX(1.12); }
}

.fc-drop-p1 { animation: dropFallCycle 1.2s infinite ease-in; }
.fc-drop-p2 { animation: dropFallCycle 1.2s infinite ease-in 0.4s; }
.fc-drop-p3 { animation: dropFallCycle 1.2s infinite ease-in 0.8s; }

@keyframes dropFallCycle {
  0% { opacity: 0; transform: translateY(-8px); }
  35% { opacity: 0.9; }
  85% { opacity: 0.9; }
  100% { opacity: 0; transform: translateY(28px); }
}

/* Footer Notice Bar */
.final-check-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-size: 13px;
  color: #a7f3d0;
  flex-wrap: wrap;
}

.fc-summary-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.fc-chip-item {
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-fc-run-sim {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: 1px solid #34d399;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
  transition: all 0.25s ease;
  font-family: inherit;
}

.btn-fc-run-sim:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

/* Ready Confirmation Box with Start Button on Left */
.ready-confirmation-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(16, 185, 129, 0.1);
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  flex-wrap: wrap;
}

.ready-info-text {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #e2e8f0;
  line-height: 1.5;
  flex: 1;
}

.btn-start-growth-s7 {
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  color: #ffffff;
  border: 1px solid #6ee7b7;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 13.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
  transition: all 0.25s ease;
  font-family: inherit;
  white-space: nowrap;
}

.btn-start-growth-s7:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.55);
  background: linear-gradient(135deg, #34d399 0%, #059669 100%);
}

/* Selected row highlight in left table */
.fc-table-row.selected-row {
  background: rgba(16, 185, 129, 0.18) !important;
  border-right: 4px solid #10b981 !important;
}

.fc-row-active-tag {
  display: none;
  font-size: 10px;
  background: #10b981;
  color: #042f2e;
  padding: 1px 6px;
  border-radius: 4px;
  margin-right: 6px;
  font-weight: 800;
}

.fc-row-active-tag.visible {
  display: inline-block;
}

