/*
 * NOTE: Body base styles (background, font, padding) are intentionally
 * NOT set here — they are fully handled by landing.css which is loaded
 * before this file. Duplicating them here would override the dark theme.
 */

/* Neutralise browser defaults that conflict with landing.css layout */
h1 {
  margin-top: 0;
}

/* Modern Action Button */
.btn-modern-primary {
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
  color: white;
  border: none;
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-modern-primary:hover {
  background: linear-gradient(135deg, #0b5ed7 0%, #084298 100%);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(13, 110, 253, 0.3);
}

.btn-modern-primary:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(13, 110, 253, 0.2);
}

.btn-modern-primary i {
  transition: transform 0.3s ease;
}

.btn-modern-primary:hover i {
  transform: scale(1.1) rotate(-5deg);
}

#cameraContainer {
  max-width: 500px;
  margin: 10px auto;
}

#cameraContainer video, #cameraContainer img {
  max-height: 300px;
  width: 100%;
  max-width: 500px;
  object-fit: cover;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
  display: block;
}

video {
  border: 3px solid #0d6efd; /* Blue border for active scanning */
}

img#preview {
  border: 3px solid #198754; /* Green border for captured preview */
}

#result {
  margin-top: 20px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

#captureButton,
#stopCameraButton {
  border-radius: 12px;
  transition: all 0.2s ease;
}

#captureButton:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

#stopCameraButton:hover {
  background-color: #6c757d;
  color: white;
  transform: scale(1.05);
}

#securityDisclaimer {
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  transition: all 0.3s ease;
}

#securityDisclaimer h6 {
  font-size: 1.1rem;
}

#securityDisclaimer .badge {
  min-width: 100px;
  font-weight: 600;
}

/* Removed old modern-alert-popup to use swal-dark-popup instead */

/* ============================================================
   LOADING SPINNER — #2 fix: fc-spinner (replaces Bootstrap's
   spinner-border which is unavailable on this page)
   Color: --cyan-400 (#00D4FF) matching the design system
   ============================================================ */
.fc-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2.5px solid rgba(0, 212, 255, 0.25);
  border-top-color: #00D4FF;
  border-radius: 50%;
  animation: fc-spin 0.65s linear infinite;
  vertical-align: middle;
  margin-inline-end: 6px;
  flex-shrink: 0;
}

@keyframes fc-spin {
  to { transform: rotate(360deg); }
}

/* Reduced-motion: keep the spinner visible but stop rotating */
@media (prefers-reduced-motion: reduce) {
  .fc-spinner {
    animation: none;
    border-top-color: #00D4FF;
    opacity: 0.7;
  }
}

