/* Custom CSS for WajutechQR */
:root {
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --accent: #06b6d4;
  --bg-dark: #0f172a;
  --card-dark: #1e293b;
  --border-dark: #334155;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #0b0f19;
  color: #f1f5f9;
}

/* Glassmorphism card effects */
.glass-card {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card-hover {
  transition: all 0.2s ease-in-out;
}

.glass-card-hover:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.1);
}

/* Scanner viewport and laser animation */
#reader {
  width: 100% !important;
  border-radius: 0.75rem;
  overflow: hidden;
  border: none !important;
  background: #000;
}

#reader video {
  border-radius: 0.75rem;
  object-fit: cover;
}

.scanner-overlay-container {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
}

.laser-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #06b6d4, #6366f1, transparent);
  box-shadow: 0 0 12px #06b6d4;
  animation: scanningLaser 2.2s ease-in-out infinite alternate;
  z-index: 10;
  pointer-events: none;
}

@keyframes scanningLaser {
  0% {
    top: 5%;
  }
  100% {
    top: 92%;
  }
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Glow effects */
.glow-primary {
  box-shadow: 0 0 25px -5px rgba(99, 102, 241, 0.4);
}

.glow-cyan {
  box-shadow: 0 0 25px -5px rgba(6, 182, 212, 0.4);
}

/* Pulse animation for active camera */
.pulse-indicator {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulseGreen 1.5s infinite;
}

@keyframes pulseGreen {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

/* Range input thumb styling */
input[type="range"] {
  accent-color: #6366f1;
}
