/* assets/css/kiosk.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

:root {
    --bg-base: #000000;
    --text-main: #ededed;
    --text-muted: #888888;
    --accent-blue: #0070f3;
    --success-color: #10b981;
    --warning-color: #f59e0b;
}

body { font-family: 'Inter', sans-serif; background-color: var(--bg-base); color: var(--text-main); overflow: hidden; user-select: none; }

.bg-mesh {
    position: fixed; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 112, 243, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 80% 20%, rgba(121, 40, 202, 0.08) 0%, transparent 30%);
    z-index: -1; animation: rotateMesh 60s linear infinite;
}
@keyframes rotateMesh { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.logo-glow { width: 60px; height: 60px; background: rgba(0, 112, 243, 0.1); border: 1px solid rgba(0, 112, 243, 0.3); border-radius: 15px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 20px rgba(0, 112, 243, 0.4); }
.text-accent { color: var(--accent-blue); }
.clock-display { font-size: 4rem; font-weight: 800; font-variant-numeric: tabular-nums; color: #fff; text-shadow: 0 0 30px rgba(255,255,255,0.2); letter-spacing: -2px; }

/* SCANNER BOX - BIG & SQUARE */
.scanner-animation {
    position: relative;
    width: 250px; 
    height: 250px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 15px;
    background: rgba(255,255,255,0.02);
    border: 2px solid rgba(255,255,255,0.1);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
    transition: all 0.3s ease-in-out;
    overflow: hidden; /* Important so photo doesn't spill out */
}

/* BLUE GLOW WHEN SCANNING */
.scanner-animation.is-scanning {
    border-color: var(--accent-blue);
    box-shadow: 0 0 40px rgba(0, 112, 243, 0.6), inset 0 0 30px rgba(0, 112, 243, 0.3);
    background: rgba(0, 112, 243, 0.05);
}

.border-corners { opacity: 0.3; transition: color 0.2s; }
.is-scanning .border-corners { color: var(--accent-blue) !important; opacity: 1; }

/* SCAN LINE */
.scan-line {
    position: absolute;
    width: 100%; height: 4px;
    background-color: var(--accent-blue);
    box-shadow: 0 0 15px var(--accent-blue), 0 0 30px var(--accent-blue);
    top: 0; left: 0;
    display: none; /* Hidden normally */
}

/* ANIMATION PLAYS ONLY DURING SCAN */
.is-scanning .scan-line {
    display: block;
    animation: scan 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes scan {
    0% { top: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 98%; opacity: 0; }
}

/* PHOTO INSIDE SCANNER */
.kiosk-inline-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    animation: popIn 0.4s ease-out;
}
@keyframes popIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

#qr_input { position: absolute; left: -9999px; opacity: 0; }

/* POPUP UI */
.swal2-kiosk-popup { background: #0d0d0d !important; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 0 50px rgba(0, 112, 243, 0.4) !important; }
.kiosk-flash-name { font-size: 1.8rem; font-weight: 800; color: #fff; margin-bottom: 5px; margin-top:10px; }
.kiosk-flash-course { font-size: 1rem; color: #aaa; font-weight: 600; margin-bottom: 5px; }
.kiosk-flash-shift { font-size: 0.95rem; color: #f59e0b; font-weight: 700; margin-bottom: 25px; }
.kiosk-badges-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.kiosk-data-badge { padding: 8px 16px; border-radius: 8px; font-size: 0.9rem; font-weight: 700; display: flex; align-items: center; gap: 8px; border: 1px solid; background: rgba(0,0,0,0.4); }