/* ============================================================
   KnotFolio Event Staff Portal - Clean, Modern, Light Theme
   ============================================================ */

/* Clean Corner Brackets for Scanner Viewfinder */
.scanner-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: #4f46e5;
  pointer-events: none;
}

.scanner-corner-tl {
  top: 16px;
  left: 16px;
  border-top-width: 3px;
  border-left-width: 3px;
  border-top-left-radius: 6px;
}

.scanner-corner-tr {
  top: 16px;
  right: 16px;
  border-top-width: 3px;
  border-right-width: 3px;
  border-top-right-radius: 6px;
}

.scanner-corner-bl {
  bottom: 16px;
  left: 16px;
  border-bottom-width: 3px;
  border-left-width: 3px;
  border-bottom-left-radius: 6px;
}

.scanner-corner-br {
  bottom: 16px;
  right: 16px;
  border-bottom-width: 3px;
  border-right-width: 3px;
  border-bottom-right-radius: 6px;
}

/* Subtle Progress Bar for Auto-dismiss Countdown (3.5s) */
@keyframes countdown-bar {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}

.countdown-progress {
  animation: countdown-bar 3.5s linear forwards;
}

/* Pulse indicator */
@keyframes soft-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.15);
  }
}

.pulse-dot {
  animation: soft-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Clean Custom Scrollbar */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #cbd5e1;
}

/* Clean up Html5Qrcode video element */
#reader video {
  border-radius: 1rem !important;
  object-fit: cover !important;
  width: 100% !important;
  height: 100% !important;
}

#reader __scan_region__ {
  background: transparent !important;
}

#reader {
  border: none !important;
}
