﻿.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

@media (max-width: 767px) {
    .mobile-only {
        display: block;
    }

    .desktop-only {
        display: none;
    }
}

.ticket-scanner {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

.ticket-scanner__camera {
    width: 100%;
    height: 100%;
}


/* ============================== */
/* SCAN FRAME                      */
/* ============================== */

.scan-frame {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.scan-frame__box {
    width: min(70vw, 320px);
    height: min(70vw, 320px);
    border: 3px solid rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.25);
}

.scan-frame__hint {
    margin-top: 28px;
    padding: 10px 18px;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}


/* ============================== */
/* SUCCESS                        */
/* ============================== */

.scanner-success {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: #16a34a;
    color: white;
    text-align: center;
}

.scanner-success__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 110px;
    height: 110px;
    margin-bottom: 32px;
    border: 5px solid white;
    border-radius: 50%;
    font-size: 72px;
    font-weight: 700;
    line-height: 1;
}

.scanner-success__status {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.1;
}

.scanner-success__name {
    margin-top: 24px;
    font-size: 26px;
    font-weight: 700;
}

.scanner-success__ticket {
    margin-top: 8px;
    font-size: 18px;
    opacity: 0.9;
}

.scanner-success__message {
    margin-top: 32px;
    font-size: 20px;
    font-weight: 600;
}


/* ============================== */
/* ERROR                          */
/* ============================== */

.scanner-error {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: #dc2626;
    color: white;
    text-align: center;
}

.scanner-error__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 110px;
    height: 110px;
    margin-bottom: 32px;
    border: 5px solid white;
    border-radius: 50%;
    font-size: 72px;
    font-weight: 700;
    line-height: 1;
}

.scanner-error__status {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.1;
}

.scanner-error__message {
    max-width: 400px;
    margin-top: 24px;
    font-size: 20px;
    font-weight: 600;
}
