/* Custom overrides for Tailwind */
.view-section {
    display: none !important;
}
.view-section.active {
    display: flex !important; /* For landing and receptionist/booth */
}
#view-admin.active {
    display: block !important; /* Admin needs block layout */
}

/* Fix topbar display to flex when not hidden */
#topbar:not(.hidden) {
    display: flex !important;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1; 
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1; 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8; 
}

/* Real-time camera QR scanner styles */
#booth-camera-scanner video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

@keyframes laser {
    0% { top: 4%; }
    50% { top: 96%; }
    100% { top: 4%; }
}

.scanner-laser-line {
    position: absolute;
    left: 4%;
    right: 4%;
    height: 3px;
    background-color: #ef4444;
    box-shadow: 0 0 10px #ef4444, 0 0 20px #ef4444;
    z-index: 10;
    pointer-events: none;
    border-radius: 9999px;
    animation: laser 2.5s infinite linear;
}
