/* Custom Base & Utilities for Saudi Driving Academy Web App */
:root {
  --color-saudi: #006C35;
  --color-saudi-dark: #004d25;
  --color-gold: #C59B27;
  --color-gold-bg: #FDF8EC;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* View Panels Animation */
.view-panel {
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s cubic-bezier(0.22, 1, 0.36, 1), transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.view-panel.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Micro interaction active states */
button:active {
  transform: scale(0.97);
}

/* SVG Traffic Signs Styling */
.traffic-sign-svg {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.12));
  transition: transform 0.2s ease;
}
.traffic-sign-svg:hover {
  transform: scale(1.05);
}

/* Traffic Sign Card Styling */
.sign-card {
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.sign-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -5px rgba(0, 108, 53, 0.1);
  border-color: #006C35;
}

/* Option Button Select Styles */
.exam-option-btn {
  transition: all 0.18s ease;
}
.exam-option-btn:hover:not(:disabled) {
  border-color: #006C35;
  background-color: #F4F9F5;
}
.exam-option-btn.selected {
  border-color: #006C35;
  background-color: #E8F5EC;
  box-shadow: 0 0 0 2px #006C35;
}
.exam-option-btn.correct {
  border-color: #10b981 !important;
  background-color: #ecfdf5 !important;
  color: #065f46 !important;
  box-shadow: 0 0 0 2px #10b981;
}
.exam-option-btn.wrong {
  border-color: #f43f5e !important;
  background-color: #fff1f2 !important;
  color: #9f1239 !important;
  box-shadow: 0 0 0 2px #f43f5e;
}

/* Animation Utilities */
@keyframes fadeInPop {
  0% { opacity: 0; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}

.animate-in {
  animation: fadeInPop 0.22s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Road Simulation SVG Canvas */
.road-bg {
  fill: #1e293b;
}
.road-line {
  stroke: #ffffff;
  stroke-dasharray: 8 6;
  stroke-width: 2;
}
.road-line-yellow {
  stroke: #f59e0b;
  stroke-width: 3;
}
.roundabout-island {
  fill: #006C35;
  stroke: #e2e8f0;
  stroke-width: 4;
}

/* Haptic active tap feedback */
.tap-highlight {
  -webkit-tap-highlight-color: rgba(0, 108, 53, 0.1);
}