/* Custom Styles for NIST Biometric Auto-Capture */

.glass-panel {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card {
  background: rgba(30, 41, 59, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

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

.glow-emerald {
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.45);
}

.glow-amber {
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.35);
}

.glow-rose {
  box-shadow: 0 0 25px rgba(244, 63, 94, 0.4);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
}
::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.5);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.8);
}

/* Flash animation for camera capture */
@keyframes shutterFlash {
  0% { opacity: 0; }
  25% { opacity: 0.95; background: #ffffff; }
  100% { opacity: 0; }
}

.flash-active {
  animation: shutterFlash 0.35s ease-out forwards;
}

/* Radar scan animation */
@keyframes radarScan {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(1000%); }
}

.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, rgba(6, 182, 212, 0.8) 50%, transparent 100%);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.9);
  animation: radarScan 3s linear infinite;
  pointer-events: none;
}

/* Target Reticle Pulsing */
@keyframes reticlePulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.03); opacity: 1; }
}

.reticle-pulse {
  animation: reticlePulse 2s ease-in-out infinite;
}

/* Certificate Badge */
.cert-watermark {
  background-image: radial-gradient(rgba(14, 165, 233, 0.08) 1px, transparent 1px);
  background-size: 16px 16px;
}

/* Mirror mode for front-facing webcam preview */
.mirrored {
  transform: scaleX(-1);
}
