/* Modern Dark Theme with RGB Neon Effects */
@import url('https://fonts.googleapis.com/css2?family=Tahoma:wght@400;700&display=swap');

:root {
  --neon-cyan: 0, 255, 255;
  --neon-magenta: 255, 0, 255;
  --neon-yellow: 255, 255, 0;
  --dark-bg: #000;
  --darker-bg: #111;
  --text-primary: #fff;
  --text-secondary: #aaa;
}

body {
  font-family: 'Tahoma', 'Segoe UI', sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-primary);
  min-height: 100vh;
}

/* RGB Animated Border */
.rgb-border {
  position: relative;
  border: 2px solid transparent;
  background: var(--darker-bg);
  background-clip: padding-box;
  border-radius: 8px;
}

.rgb-border::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    45deg,
    rgba(var(--neon-cyan), 0.8),
    rgba(var(--neon-magenta), 0.8),
    rgba(var(--neon-yellow), 0.8)
  );
  background-size: 200% 200%;
  z-index: -1;
  border-radius: 8px;
  animation: rgbFlow 3s linear infinite;
}

@keyframes rgbFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Header Styles */
header {
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  box-shadow: 0 0 15px rgba(var(--neon-cyan), 0.3);
}

/* Text Effects */
.text-glow {
  text-shadow: 0 0 8px rgba(var(--neon-cyan), 0.7),
               0 0 15px rgba(var(--neon-magenta), 0.5),
               0 0 20px rgba(var(--neon-yellow), 0.3);
}

.text-cyan {
  color: rgb(var(--neon-cyan));
}

.text-magenta {
  color: rgb(var(--neon-magenta));
}

.text-yellow {
  color: rgb(var(--neon-yellow));
}

/* Button Styles */
.btn {
  position: relative;
  overflow: hidden;
  border: none;
  color: white;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(var(--neon-cyan), 0.8),
    rgba(var(--neon-magenta), 0.8),
    rgba(var(--neon-yellow), 0.8)
  );
  background-size: 200% 200%;
  z-index: -1;
  transition: all 0.3s ease;
  animation: rgbFlow 3s linear infinite;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(var(--neon-cyan), 0.4);
}

.btn:hover::before {
  opacity: 0.9;
}

/* Question Card */
.question-card {
  background-color: rgba(20, 20, 20, 0.8);
  backdrop-filter: blur(5px);
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Answer Options */
.answer-option {
  background-color: rgba(30, 30, 30, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.answer-option:hover {
  background-color: rgba(50, 50, 50, 0.8);
  border-color: rgba(var(--neon-cyan), 0.5);
  transform: translateX(5px);
}

.answer-option.selected {
  background-color: rgba(var(--neon-cyan), 0.2);
  border-color: rgba(var(--neon-cyan), 0.8);
  box-shadow: 0 0 10px rgba(var(--neon-cyan), 0.5);
}

/* Timer */
.timer {
  font-family: 'Courier New', monospace;
  font-weight: bold;
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid transparent;
  animation: rgbFlow 3s linear infinite, pulse 2s infinite alternate;
}

@keyframes pulse {
  from { box-shadow: 0 0 5px rgba(var(--neon-cyan), 0.5); }
  to { box-shadow: 0 0 20px rgba(var(--neon-magenta), 0.8); }
}

/* Navigation Buttons */
.nav-btn {
  background: rgba(30, 30, 30, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.nav-btn:hover {
  background: rgba(50, 50, 50, 0.8);
  border-color: rgba(var(--neon-magenta), 0.5);
}

/* Question Navigator */
.question-indicator {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.question-indicator.answered {
  background-color: rgba(var(--neon-cyan), 0.2);
  border: 2px solid rgba(var(--neon-cyan), 0.8);
  box-shadow: 0 0 10px rgba(var(--neon-cyan), 0.5);
}

.question-indicator.skipped {
  background-color: rgba(var(--neon-yellow), 0.2);
  border: 2px solid rgba(var(--neon-yellow), 0.8);
  box-shadow: 0 0 10px rgba(var(--neon-yellow), 0.5);
}

.question-indicator.current {
  background-color: rgba(var(--neon-magenta), 0.2);
  border: 2px solid rgba(var(--neon-magenta), 0.8);
  box-shadow: 0 0 15px rgba(var(--neon-magenta), 0.8);
  transform: scale(1.1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(30, 30, 30, 0.5);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
    to bottom,
    rgb(var(--neon-cyan)),
    rgb(var(--neon-magenta))
  );
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    to bottom,
    rgb(var(--neon-magenta)),
    rgb(var(--neon-yellow))
  );
}

/* Results Page */
.score-card {
  background: rgba(20, 20, 20, 0.8);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.score-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.correct-answer {
  border-left: 4px solid rgba(var(--neon-cyan), 0.8);
}

.wrong-answer {
  border-left: 4px solid rgba(var(--neon-magenta), 0.8);
}

.skipped-answer {
  border-left: 4px solid rgba(var(--neon-yellow), 0.8);
}

/* Loading Animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-spinner {
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top: 4px solid rgb(var(--neon-cyan));
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}