:root {
  --bg-primary: #0b0f19;
  --bg-secondary: #131b2e;
  --bg-card: rgba(19, 27, 46, 0.85);
  --bg-card-hover: rgba(28, 39, 66, 0.95);
  --border-color: rgba(255, 255, 255, 0.1);
  --border-active: #00d2ff;
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-highlight: #38bdf8;
  
  --accent-knx-blue: #0088cc;
  --accent-knx-cyan: #00e5ff;
  --accent-knx-green: #10b981;
  --accent-knx-purple: #8b5cf6;
  --accent-glow: rgba(0, 229, 255, 0.35);
  
  --font-sans: 'Outfit', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --shadow-main: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(0, 229, 255, 0.4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background: radial-gradient(circle at 10% 20%, #0d1527 0%, var(--bg-primary) 90%);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Header */
header {
  height: 68px;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-badge {
  background: linear-gradient(135deg, #0088cc, #00e5ff);
  color: #0b0f19;
  font-weight: 900;
  font-size: 1.1rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  letter-spacing: 1px;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.5);
}

.logo-title {
  font-size: 1.2rem;
  font-weight: 700;
  background: linear-gradient(90deg, #fff, #93c5fd);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.btn-header {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 7px 14px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-header:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-knx-cyan);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.25);
}

.btn-header.active {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  border-color: var(--accent-knx-cyan);
}

/* Layout : Séparation stricte en deux volets indépendants */
html, body {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

header {
  height: 60px;
  min-height: 60px;
  max-height: 60px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  flex-shrink: 0;
  z-index: 100;
}

.app-container {
  display: flex;
  flex: 1;
  height: calc(100vh - 60px);
  max-height: calc(100vh - 60px);
  width: 100vw;
  overflow: hidden;
  position: relative;
}

/* Volet Gauche : Liste des Écrans (Indépendant avec son propre scroll) */
.sidebar {
  width: 330px;
  min-width: 330px;
  max-width: 330px;
  height: 100%;
  max-height: 100%;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow: hidden;
  z-index: 50;
}

.sidebar-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.2);
}

.sidebar-header h2 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-knx-cyan);
  font-weight: 700;
}

.screen-list {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.screen-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

.screen-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 229, 255, 0.4);
  transform: translateX(3px);
}

.screen-item.active {
  background: linear-gradient(135deg, rgba(0, 136, 204, 0.25), rgba(16, 185, 129, 0.1));
  border-color: var(--accent-knx-cyan);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.15);
}

.screen-item-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-main);
}

.screen-item-badge {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-count {
  background: rgba(56, 189, 248, 0.2);
  color: var(--accent-knx-cyan);
  padding: 2px 6px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.7rem;
}

/* Volet Droit : Main Viewer (Indépendant et Toujours Centré) */
.viewer-container {
  flex: 1;
  height: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  background: #080c14;
  overflow: hidden;
}

.viewer-toolbar {
  height: 52px;
  min-height: 52px;
  max-height: 52px;
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  flex-shrink: 0;
  z-index: 10;
}

.current-screen-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.screen-tag {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.current-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Stepper de navigation de chantier direct */
.workflow-stepper-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(30, 41, 59, 0.7);
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.body.light-mode .workflow-stepper-nav,
.light-mode .workflow-stepper-nav {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}

.btn-step-nav {
  background: rgba(51, 65, 85, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f8fafc;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.light-mode .btn-step-nav {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

.btn-step-nav:hover:not(:disabled) {
  background: #0284c7;
  border-color: #38bdf8;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.btn-step-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-step-next {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  border-color: #38bdf8;
  color: #ffffff !important;
}

.workflow-badge {
  font-size: 0.82rem;
  font-weight: 700;
  color: #38bdf8;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(2, 132, 199, 0.15);
}

.light-mode .workflow-badge {
  color: #0369a1 !important;
  background: #e0f2fe !important;
}

/* Zone d'affichage : Centrage Parfait et Scroll Dédié */
.stage-wrapper {
  flex: 1;
  height: calc(100% - 52px);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: auto;
  position: relative;
  box-sizing: border-box;
}

.image-canvas-container {
  position: relative;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 229, 255, 0.1);
  overflow: hidden;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.main-screen-img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 160px);
  object-fit: contain;
  width: auto;
  height: auto;
  border-radius: var(--radius-md);
}

/* Default Placeholder if image is missing */
.image-placeholder {
  width: 1000px;
  height: 600px;
  background: linear-gradient(135deg, #131b2e 0%, #1e293b 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(56, 189, 248, 0.3);
  position: relative;
  color: var(--text-muted);
  gap: 16px;
}

.placeholder-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Hotspots */
.hotspot-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0088cc, #00e5ff);
  color: #0b0f19;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.6);
  border: 2px solid #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hotspot-marker::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid #00e5ff;
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.7); opacity: 1; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

.hotspot-marker:hover {
  transform: translate(-50%, -50%) scale(1.25);
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.9);
  z-index: 20;
}

.hotspot-marker.active {
  background: linear-gradient(135deg, #10b981, #34d399);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.9);
  transform: translate(-50%, -50%) scale(1.3);
}

/* Tooltip / Modal Bubble */
.bubble-modal {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 440px;
  max-width: calc(100vw - 48px);
  background: rgba(19, 27, 46, 0.96);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 229, 255, 0.4);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), var(--shadow-glow);
  z-index: 200;
  display: none;
  flex-direction: column;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

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

.bubble-header {
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.bubble-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  overflow: hidden;
}

.bubble-category-badge {
  font-size: 0.70rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(0, 229, 255, 0.15);
  color: var(--accent-knx-cyan);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-header-jump {
  background: linear-gradient(135deg, #0284c7, #00e5ff);
  color: #0b0f19;
  border: none;
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.5);
  transition: var(--transition);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 250px;
}

.btn-header-jump:hover {
  transform: scale(1.03);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.85);
  background: linear-gradient(135deg, #0369a1, #38bdf8);
}

.btn-close-bubble {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 1.3rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

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

.bubble-body {
  padding: 20px;
  overflow-y: auto;
  max-height: 380px;
}

.bubble-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.bubble-num {
  background: var(--accent-knx-cyan);
  color: #000;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
}

.bubble-short-desc {
  color: #93c5fd;
  font-size: 0.9rem;
  margin-bottom: 14px;
  font-weight: 500;
}

.bubble-html-content {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #cbd5e1;
}

.bubble-html-content p {
  margin-bottom: 10px;
}

.bubble-html-content ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.bubble-html-content li {
  margin-bottom: 6px;
}

.bubble-html-content code {
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent-knx-cyan);
  font-family: monospace;
  font-size: 0.85rem;
}

.tip-box {
  background: rgba(16, 185, 129, 0.15);
  border-left: 3px solid #10b981;
  padding: 10px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 14px;
  font-size: 0.84rem;
  color: #a7f3d0;
}

/* Bouton d'action interactif pour changer d'écran */
.btn-nav-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 16px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #0284c7, #00e5ff);
  color: #0b0f19;
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 229, 255, 0.4);
  transition: var(--transition);
}

.btn-nav-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 229, 255, 0.6);
  background: linear-gradient(135deg, #0369a1, #38bdf8);
}

.btn-nav-action span.icon {
  font-size: 1.2rem;
}

/* Indicateur hotspot interactif avec lien */
.hotspot-marker.has-link {
  border-color: #00e5ff;
}

.hotspot-marker.has-link::after {
  content: '↗';
  position: absolute;
  top: -6px;
  right: -6px;
  background: #0284c7;
  color: white;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.bubble-footer {
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.step-indicator {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Calibration helper overlay */
.calibration-banner {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(220, 38, 38, 0.9);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  display: none;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
}

.calibration-panel {
  position: fixed;
  bottom: 24px;
  left: 344px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  z-index: 300;
  display: none;
  font-size: 0.85rem;
  max-width: 400px;
}

.calibration-panel pre {
  background: #000;
  padding: 8px;
  border-radius: 4px;
  margin-top: 6px;
  font-family: monospace;
  color: var(--accent-knx-cyan);
  user-select: all;
  font-size: 0.78rem;
}

/* ==========================================================================
   Modale & Composants du Guide Pas-à-Pas (10 Étapes - Haute Lisibilité & Contraste)
   ========================================================================== */

.btn-tour-highlight {
  background: linear-gradient(135deg, #0284c7, #00e5ff) !important;
  color: #0b0f19 !important;
  font-weight: 700 !important;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.4);
  border-color: rgba(0, 229, 255, 0.6) !important;
}

.btn-tour-highlight:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.8);
}

.tour-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 16, 0.88);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.25s ease-out;
}

.tour-modal {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(0, 229, 255, 0.25);
  overflow: hidden;
}

.tour-header {
  padding: 22px 28px;
  background: #1e293b;
  border-bottom: 2px solid #334155;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.tour-badge {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #00e5ff;
  background: rgba(0, 229, 255, 0.15);
  border: 1px solid rgba(0, 229, 255, 0.35);
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.tour-title-box h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.tour-title-box p {
  font-size: 0.95rem;
  color: #cbd5e1;
}

.btn-close-tour {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid #475569;
  color: #ffffff;
  font-size: 1.5rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.btn-close-tour:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #f87171;
  border-color: #ef4444;
}

.tour-progress-bar-container {
  padding: 16px 28px;
  background: #162032;
  border-bottom: 1px solid #334155;
}

.tour-progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.90rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 10px;
}

.tour-progress-track {
  width: 100%;
  height: 10px;
  background: #334155;
  border-radius: 6px;
  overflow: hidden;
}

.tour-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #00e5ff);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.7);
}

.tour-steps-list {
  padding: 24px 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  background: #090e1a;
}

.tour-step-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.tour-step-card:hover {
  border-color: #38bdf8;
  background: #24344d;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.tour-step-card.completed {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.08);
}

.tour-step-check {
  margin-top: 4px;
}

.tour-step-check input[type="checkbox"] {
  width: 24px;
  height: 24px;
  accent-color: #10b981;
  cursor: pointer;
}

.tour-step-content {
  flex: 1;
}

.tour-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.tour-step-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-num-pill {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #00e5ff);
  color: #0b0f19;
  font-weight: 900;
  font-size: 0.90rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
  flex-shrink: 0;
}

.tour-step-card.completed .tour-step-title {
  text-decoration: line-through;
  color: #94a3b8;
}

.tour-step-desc {
  font-size: 0.92rem;
  color: #e2e8f0;
  line-height: 1.5;
  margin-bottom: 12px;
}

.tour-step-rule {
  font-size: 0.88rem;
  background: rgba(245, 158, 11, 0.15);
  border-left: 4px solid #f59e0b;
  padding: 8px 14px;
  border-radius: 0 6px 6px 0;
  color: #fef08a;
  font-weight: 600;
  margin-bottom: 6px;
}

.btn-jump-step {
  background: linear-gradient(135deg, #0284c7, #00e5ff);
  color: #0b0f19;
  border: none;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 229, 255, 0.4);
  transition: var(--transition);
}

.btn-jump-step:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 229, 255, 0.8);
  background: linear-gradient(135deg, #0369a1, #38bdf8);
}

.tour-footer {
  padding: 18px 28px;
  background: #1e293b;
  border-top: 2px solid #334155;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.btn-secondary-action {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid #475569;
  color: #e2e8f0;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.90rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary-action:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.btn-primary-action {
  background: linear-gradient(135deg, #2563eb, #0284c7);
  color: #ffffff;
  border: none;
  padding: 10px 26px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.5);
  transition: var(--transition);
}

.btn-primary-action:hover {
  background: linear-gradient(135deg, #1d4ed8, #0369a1);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.7);
}

/* ==========================================================================
   Modale & Composants du Cours KNX Basic & QCM
   ========================================================================== */

.btn-course-highlight {
  background: linear-gradient(135deg, #8b5cf6, #3b82f6) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.4);
  border-color: rgba(139, 92, 246, 0.6) !important;
}

.btn-course-highlight:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.8);
}

.course-modal.full-screen-modal {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: var(--radius-lg);
  max-width: 1400px;
  width: 96vw;
  height: 94vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(139, 92, 246, 0.3);
  overflow: hidden;
}

.course-modal-header {
  padding: 18px 28px;
  background: #1e293b;
  border-bottom: 2px solid #334155;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
}

/* Organisation en 2 volets : Sidebar Verticale à gauche + Contenu à droite */
.course-body-layout {
  flex: 1;
  display: flex;
  overflow: hidden;
  height: calc(100% - 130px);
}

.course-sidebar-tabs {
  width: 310px;
  min-width: 310px;
  max-width: 310px;
  background: #162032;
  border-right: 2px solid #334155;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  flex-shrink: 0;
}

.course-sidebar-title {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 8px;
  padding-left: 6px;
}

.course-sidebar-divider {
  height: 1px;
  background: #334155;
  margin: 10px 0;
}

.course-tab-btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid #334155;
  color: #cbd5e1;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  transition: var(--transition);
  flex-shrink: 0;
}

.course-tab-btn .tab-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.course-tab-btn .tab-text {
  flex: 1;
}

.course-tab-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: #64748b;
  transform: translateX(4px);
}

.course-tab-btn.active {
  background: linear-gradient(135deg, #0284c7, #00e5ff);
  color: #0b0f19;
  font-weight: 800;
  border-color: #00e5ff;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.45);
  transform: translateX(4px);
}

.course-tab-btn.quiz-tab-btn {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fde68a;
  font-weight: 700;
}

.course-tab-btn.quiz-tab-btn:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: #f59e0b;
}

.course-tab-btn.quiz-tab-btn.active {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0b0f19;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.6);
  transform: translateX(4px);
}

.course-tab-content {
  flex: 1;
  overflow-y: auto;
  padding: 32px 40px;
  background: #090e1a;
  color: #e2e8f0;
  font-size: 0.96rem;
  line-height: 1.7;
}

.course-tab-content h3 {
  font-size: 1.18rem;
  font-weight: 800;
  color: #38bdf8;
  margin-top: 22px;
  margin-bottom: 12px;
  border-left: 4px solid #00e5ff;
  padding-left: 10px;
}

.course-tab-content h3:first-child {
  margin-top: 0;
}

.course-tab-content ul, .course-tab-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.course-tab-content li {
  margin-bottom: 8px;
}

.course-highlight-box {
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.35);
  border-left: 4px solid #00e5ff;
  padding: 16px 20px;
  border-radius: 8px;
  margin: 16px 0;
  color: #f0f9ff;
}

.course-rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.rule-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.rule-card.danger {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
}

.rule-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 900;
  color: #00e5ff;
  margin-bottom: 6px;
}

.rule-card.danger .rule-num {
  color: #f87171;
}

.rule-label {
  font-size: 0.82rem;
  color: #cbd5e1;
  font-weight: 600;
  line-height: 1.35;
}

.course-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  background: #1e293b;
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.88rem;
}

.course-table th {
  background: #334155;
  color: #ffffff;
  text-align: left;
  padding: 12px 16px;
  font-weight: 700;
}

.course-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #293548;
  color: #e2e8f0;
}

.course-table tr:last-child td {
  border-bottom: none;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 18px 0;
}

.media-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.media-card h4 {
  font-size: 0.98rem;
  font-weight: 800;
  color: #38bdf8;
  margin-bottom: 8px;
}

.media-card p {
  font-size: 0.86rem;
  color: #cbd5e1;
  line-height: 1.45;
}

/* Questionnaire QCM Interactif */
.quiz-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.quiz-score-banner {
  background: #1e293b;
  border: 2px solid #00e5ff;
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.25);
}

.quiz-score-text {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
}

.quiz-question-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.quiz-question-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 14px;
}

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

.quiz-option-btn {
  background: #0f172a;
  border: 1px solid #334155;
  color: #e2e8f0;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 0.90rem;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 12px;
}

.quiz-option-btn:hover:not(:disabled) {
  background: #1e293b;
  border-color: #38bdf8;
  transform: translateX(4px);
}

.quiz-option-btn.active-draft {
  background: rgba(0, 229, 255, 0.15);
  border-color: #00e5ff;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.quiz-option-btn.correct {
  background: rgba(16, 185, 129, 0.2) !important;
  border-color: #10b981 !important;
  color: #6ee7b7 !important;
  font-weight: 700;
}

.quiz-option-btn.wrong {
  background: rgba(239, 68, 68, 0.2) !important;
  border-color: #ef4444 !important;
  color: #fca5a5 !important;
  font-weight: 700;
}

.quiz-explain-box {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 0.86rem;
  background: rgba(14, 165, 233, 0.15);
  border-left: 4px solid #00e5ff;
  color: #bae6fd;
  display: none;
}

/* ==========================================================================
   Thème Mode Clair (Jour) / Light Theme
   ========================================================================== */

body.light-mode {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --border-color: #e2e8f0;
  --border-active: #0284c7;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-highlight: #0284c7;
  
  --accent-knx-blue: #0284c7;
  --accent-knx-cyan: #0284c7;
  --accent-knx-green: #059669;
  --accent-knx-purple: #7c3aed;
  --accent-glow: rgba(2, 132, 199, 0.2);
  
  --shadow-main: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(2, 132, 199, 0.2);

  background: #f1f5f9;
  color: #0f172a;
}

body.light-mode header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

body.light-mode .logo-title {
  background: linear-gradient(90deg, #0f172a, #0284c7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-mode .btn-header {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #334155;
  box-shadow: 0 2px 5px rgba(0,0,0,0.04);
}

body.light-mode .btn-header:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #94a3b8;
}

body.light-mode .btn-theme-toggle {
  background: #fef3c7 !important;
  color: #92400e !important;
  border-color: #fcd34d !important;
  font-weight: 700;
}

body.light-mode .sidebar {
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
}

body.light-mode .sidebar-header {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

body.light-mode .sidebar-header h2 {
  color: #0f172a;
  font-weight: 800;
}

body.light-mode .screen-category-title {
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
}

body.light-mode .screen-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

body.light-mode .screen-item:hover {
  background: #f8fafc;
  border-color: #0284c7;
  color: #0f172a;
}

body.light-mode .screen-item.active {
  background: #e0f2fe;
  border-color: #0284c7;
  color: #0369a1;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.15);
}

body.light-mode .screen-item-title {
  color: #0f172a !important;
  font-weight: 700;
}

body.light-mode .screen-item.active .screen-item-title {
  color: #0369a1 !important;
  font-weight: 800;
}

body.light-mode .screen-item-badge {
  color: #64748b;
}

body.light-mode .badge-count {
  background: #e0f2fe;
  color: #0284c7;
  border: 1px solid #bae6fd;
  font-weight: 700;
}

body.light-mode .screen-item.active .badge-count {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

body.light-mode .viewer-container {
  background: #f1f5f9;
}

body.light-mode .viewer-toolbar {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

body.light-mode .current-title {
  color: #0f172a !important;
  font-weight: 800;
}

body.light-mode .screen-tag {
  background: #dcfce7;
  color: #15803d;
  border-color: #86efac;
  font-weight: 700;
}

body.light-mode .stage-wrapper {
  background: #e2e8f0;
}

body.light-mode .stage-container {
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

/* Modale Bulle Hotspot en mode clair */
body.light-mode .bubble-modal {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15), 0 0 25px rgba(2, 132, 199, 0.15);
}

body.light-mode .bubble-header {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

body.light-mode .bubble-title {
  color: #0f172a;
}

body.light-mode .bubble-short-desc {
  color: #475569;
}

body.light-mode .bubble-html-content {
  color: #334155;
}

body.light-mode .bubble-html-content strong {
  color: #0f172a;
}

body.light-mode .bubble-html-content code {
  background: #f1f5f9;
  color: #0284c7;
  border: 1px solid #cbd5e1;
}

body.light-mode .bubble-html-content .tip-box {
  background: #fefce8;
  border-left-color: #eab308;
  color: #854d0e;
}

body.light-mode .bubble-footer {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

body.light-mode .btn-ctrl {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #334155;
}

body.light-mode .btn-ctrl:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* Modale Guide Pas-à-Pas en mode clair */
body.light-mode .tour-modal {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

body.light-mode .tour-badge {
  background: #e0f2fe !important;
  color: #0369a1 !important;
  border: 1.5px solid #bae6fd !important;
  font-weight: 800;
}

body.light-mode .tour-title-box h2 {
  color: #0f172a !important;
  font-weight: 800;
}

body.light-mode .tour-title-box p {
  color: #475569 !important;
  font-weight: 500;
}

body.light-mode .btn-close-tour {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
  font-weight: 800;
}

body.light-mode .btn-close-tour:hover {
  background: #fee2e2;
  border-color: #ef4444;
  color: #dc2626;
}

body.light-mode .course-chapter-title {
  color: #0f172a !important;
  font-weight: 800;
  font-size: 1.35rem;
  margin-top: 4px;
}

body.light-mode .tour-header {
  background: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
}

body.light-mode .tour-header h2 {
  color: #0f172a;
}

body.light-mode .tour-header p {
  color: #64748b;
}

body.light-mode .tour-progress-bar-container {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

body.light-mode .tour-progress-text {
  color: #334155;
}

body.light-mode .tour-progress-track {
  background: #e2e8f0;
}

body.light-mode .tour-step-card {
  background: #f8fafc;
  border-color: #e2e8f0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

body.light-mode .tour-step-card:hover {
  background: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

body.light-mode .tour-step-card.completed {
  background: #f0fdf4;
  border-color: #86efac;
}

body.light-mode .tour-step-title {
  color: #0f172a;
}

body.light-mode .tour-step-desc {
  color: #475569;
}

body.light-mode .tour-step-rule {
  background: #fffbeb;
  border-left-color: #f59e0b;
  color: #92400e;
}

body.light-mode .tour-footer {
  background: #f8fafc;
  border-top: 2px solid #e2e8f0;
}

body.light-mode .btn-secondary-action {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #334155;
}

body.light-mode .btn-secondary-action:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* Modale Cours KNX & QCM en mode clair */
body.light-mode .course-modal,
body.light-mode .tour-modal {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2) !important;
}

body.light-mode .course-modal-header,
body.light-mode .tour-header {
  background: #f8fafc !important;
  border-bottom: 2px solid #e2e8f0 !important;
}

body.light-mode .course-modal-header h2,
body.light-mode .tour-header h2,
body.light-mode .tour-title-box h2,
body.light-mode .course-modal h2,
body.light-mode .tour-modal h2 {
  color: #0f172a !important;
  font-weight: 800 !important;
}

body.light-mode .course-modal-header p,
body.light-mode .tour-header p,
body.light-mode .tour-title-box p,
body.light-mode .course-modal p,
body.light-mode .tour-modal p {
  color: #334155 !important;
  font-weight: 500 !important;
}

body.light-mode .tour-badge {
  background: #e0f2fe !important;
  color: #0369a1 !important;
  border: 1.5px solid #bae6fd !important;
  font-weight: 800 !important;
}

body.light-mode .course-chapter-title {
  color: #0f172a !important;
  font-weight: 800 !important;
  font-size: 1.4rem !important;
  margin-top: 6px !important;
  margin-bottom: 12px !important;
}

body.light-mode .btn-close-tour {
  background: #f1f5f9 !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
  font-weight: 900 !important;
}

body.light-mode .btn-close-tour:hover {
  background: #fee2e2 !important;
  border-color: #ef4444 !important;
  color: #dc2626 !important;
}

body.light-mode .course-sidebar-tabs {
  background: #f8fafc !important;
  border-right: 2px solid #e2e8f0 !important;
}

body.light-mode .course-sidebar-title {
  color: #64748b !important;
}

body.light-mode .course-sidebar-divider {
  background: #e2e8f0 !important;
}

body.light-mode .course-tab-btn {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #334155 !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03) !important;
}

body.light-mode .course-tab-btn:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

body.light-mode .course-tab-btn.active {
  background: linear-gradient(135deg, #0284c7, #38bdf8) !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3) !important;
}

body.light-mode .course-tab-btn.quiz-tab-btn {
  background: #fffbeb !important;
  border-color: #fde68a !important;
  color: #b45309 !important;
}

body.light-mode .course-tab-btn.quiz-tab-btn.active {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: #ffffff !important;
}

body.light-mode .course-tab-content {
  background: #ffffff !important;
  color: #1e293b !important;
}

body.light-mode .course-tab-content h3 {
  color: #0369a1 !important;
  border-left: 4px solid #0284c7 !important;
  font-weight: 800 !important;
}

body.light-mode .course-tab-content strong {
  color: #0f172a !important;
  font-weight: 800 !important;
}

body.light-mode .course-tab-content li {
  color: #334155 !important;
}

body.light-mode .course-highlight-box {
  background: #f0f9ff !important;
  border: 1.5px solid #bae6fd !important;
  border-left: 4px solid #0284c7 !important;
  color: #0f172a !important;
}

body.light-mode .course-highlight-box strong {
  color: #0369a1 !important;
}

body.light-mode .course-highlight-box li {
  color: #1e293b !important;
}

body.light-mode .rule-card {
  background: #f8fafc;
  border-color: #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

body.light-mode .rule-card .rule-num {
  color: #0284c7;
}

body.light-mode .rule-card.danger {
  background: #fef2f2;
  border-color: #fecaca;
}

body.light-mode .rule-card.danger .rule-num {
  color: #dc2626;
}

body.light-mode .rule-card .rule-label {
  color: #475569;
}

body.light-mode .course-table {
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

body.light-mode .course-table th {
  background: #f1f5f9;
  color: #0f172a;
}

body.light-mode .course-table td {
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

body.light-mode .media-card {
  background: #f8fafc;
  border-color: #e2e8f0;
}

body.light-mode .media-card h4 {
  color: #0369a1;
}

body.light-mode .media-card p {
  color: #475569;
}

body.light-mode .quiz-score-banner {
  background: #f0f9ff;
  border-color: #0284c7;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.15);
}

body.light-mode .quiz-score-text {
  color: #0c4a6e;
}

body.light-mode .quiz-question-card {
  background: #f8fafc;
  border-color: #e2e8f0;
}

body.light-mode .quiz-question-title {
  color: #0f172a;
}

body.light-mode .quiz-option-btn {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #334155;
}

body.light-mode .quiz-option-btn:hover:not(:disabled) {
  background: #f1f5f9;
  border-color: #0284c7;
}

body.light-mode .quiz-option-btn.active-draft {
  background: #e0f2fe;
  border-color: #0284c7;
  color: #0369a1;
}

body.light-mode .quiz-explain-box {
  background: #f0f9ff;
  border-left-color: #0284c7;
  color: #0369a1;
}
