/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
}
::-webkit-scrollbar-thumb {
  background: rgba(51, 65, 85, 0.8);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(6, 182, 212, 0.8);
}

/* Animations */
@keyframes pulseSlow {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.08); }
}

@keyframes bounceSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spinReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes scanLine {
  0% { top: 0%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 96%; opacity: 0; }
}

@keyframes micPulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

.animate-pulse-slow {
  animation: pulseSlow 8s ease-in-out infinite;
}

.animate-bounce-slow {
  animation: bounceSlow 3s ease-in-out infinite;
}

.animate-spin-slow {
  animation: spinSlow 12s linear infinite;
}

.animate-spin-reverse {
  animation: spinReverse 2.5s linear infinite;
}

/* Scanner Bar Effect for Camera Preview */
.scanner-bar {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #06b6d4, #f59e0b, transparent);
  box-shadow: 0 0 15px #06b6d4, 0 0 30px #f59e0b;
  animation: scanLine 2s ease-in-out infinite;
  pointer-events: none;
  z-index: 10;
}

/* Mic Wave Rings */
.mic-wave-ring {
  position: absolute;
  inset: -12px;
  border-radius: 9999px;
  border: 2px solid rgba(6, 182, 212, 0.6);
  background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, transparent 70%);
  animation: micPulse 1.8s cubic-bezier(0.25, 1, 0.5, 1) infinite;
  pointer-events: none;
}

/* Mode Tab Buttons */
.mode-tab {
  user-select: none;
  border: 1px solid transparent;
}
.mode-tab.active-tab {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(30, 41, 59, 0.9));
  color: #22d3ee;
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.15);
}

/* Step Card Hover & Active State */
.step-card {
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.step-card:hover {
  transform: translateY(-2px);
  border-color: rgba(6, 182, 212, 0.4);
}
.step-card.completed {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.05);
}

/* Toast Popups */
.toast-popup {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(6, 182, 212, 0.4);
  backdrop-filter: blur(12px);
  color: #f8fafc;
  padding: 10px 20px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 15px rgba(6, 182, 212, 0.2);
  z-index: 9999;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Disable selection on interactive buttons */
button, label {
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}