/* ZAD Spectra Olimpade — Utilities & Accessibility */

/* Accessible skip-link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 10px;
  background: var(--color-primary);
  color: var(--color-primary-content);
  padding: 8px 16px;
  z-index: 1000;
  border-radius: var(--radius-selector);
  font-weight: 600;
  transition: top 0.2s ease-in-out;
}

.skip-link:focus {
  top: 10px;
}

/* Smooth thin scrollbar */
.smooth-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: var(--color-base-300) transparent;
}

.smooth-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.smooth-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.smooth-scrollbar::-webkit-scrollbar-thumb {
  background-color: var(--color-base-300);
  border-radius: 9999px;
}

.smooth-scrollbar::-webkit-scrollbar-thumb:hover {
  background-color: var(--color-neutral);
}

/* Subtle pulse for timer & SSE */
@keyframes softPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.02);
  }
}

.animate-soft-pulse {
  animation: softPulse 1.5s infinite ease-in-out;
}

/* Timer warning animation */
@keyframes urgentPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.75;
    transform: scale(1.04);
  }
}

.animate-urgent-pulse {
  animation: urgentPulse 0.8s infinite ease-in-out;
}

/* SSE indicator dots */
.sse-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  display: inline-block;
}

.sse-dot-connected {
  background-color: #10b981;
}

.sse-dot-connecting {
  background-color: #f59e0b;
  animation: softPulse 1s infinite;
}

.sse-dot-error {
  background-color: #ef4444;
}

/* Exam Option Card active state */
.exam-option-card {
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.exam-option-card:hover {
  border-color: rgba(37, 99, 235, 0.4);
}

.exam-option-card.selected {
  border-color: #2563eb;
  background-color: rgba(37, 99, 235, 0.05);
}

/* Loading overlay */
.overlay-backdrop {
  background-color: rgba(26, 26, 46, 0.6);
  backdrop-filter: blur(2px);
}
