* { font-family: 'Comfortaa', 'Inter', system-ui, sans-serif; }

body {
    background: #0a0f1e;
    color: white;
    overflow-x: hidden;
    -webkit-user-select: none;
    user-select: none;
}

.glass {
    background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.upload-zone {
    border: 2px dashed rgba(0, 209, 255, 0.25);
    transition: all 0.3s ease;
    cursor: pointer;
    background: rgba(0, 209, 255, 0.02);
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: rgba(0, 209, 255, 0.6);
    background: rgba(0, 209, 255, 0.06);
    transform: scale(1.01);
}

#reader {
    border-radius: 1rem;
    overflow: hidden;
}

#reader video {
    border-radius: 1rem;
}

#reader__dashboard_section_csr button {
    background: linear-gradient(135deg, #00d1ff, #10b981) !important;
    color: #0a0f1e !important;
    border: none !important;
    border-radius: 0.75rem !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 600 !important;
    font-family: 'Comfortaa', 'Inter', sans-serif !important;
    font-size: 0.8rem !important;
}

#reader__dashboard_section_csr {
    padding: 1rem !important;
}

#reader__dashboard_section_csr select {
    background: rgba(255,255,255,0.1) !important;
    color: white !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    border-radius: 0.5rem !important;
    padding: 0.5rem !important;
    font-family: 'Comfortaa', 'Inter', sans-serif !important;
}

#reader__scan_region {
    background: transparent !important;
}

#reader img[alt="Info icon"] {
    display: none !important;
}

#reader__dashboard_section_fsr span,
#reader__dashboard_section_csr span {
    color: #94a3b8 !important;
    font-family: 'Comfortaa', 'Inter', sans-serif !important;
    font-size: 0.75rem !important;
}

.result-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: resultIn 0.3s ease-out;
}

@keyframes resultIn {
    0%   { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes resultOut {
    0%   { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.9); }
}

.result-icon {
    animation: iconBounce 0.5s ease-out;
}

@keyframes iconBounce {
    0%   { transform: scale(0); }
    60%  { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.pulse-ring {
    position: absolute;
    border-radius: 50%;
    animation: pulseRing 1s ease-out infinite;
}

@keyframes pulseRing {
    0%   { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(2); opacity: 0; }
}

.scan-frame { position: relative; }

.scan-frame::after {
    content: '';
    position: absolute;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00d1ff, transparent);
    animation: scanLine 2s ease-in-out infinite;
    z-index: 5;
    pointer-events: none;
}

@keyframes scanLine {
    0%, 100% { top: 20%; opacity: 0; }
    50%      { top: 80%; opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    0%   { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.file-input-hidden {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.scan-progress-bar {
    transition: width 0.5s ease;
    background: linear-gradient(90deg, #00d1ff, #10b981);
}

.result-dialog {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    overflow: visible;
}

.result-dialog::backdrop {
    background: transparent;
}
