/* =========================
   EVENT SYSTEM UI 2026
   DESIGN SYSTEM CORE
========================= */

:root {
    --primary: #ff7a00;
    --bg-dark: #0b0b0b;
    --bg-dark-2: #151515;
    --text: #ffffff;
    --glass: rgba(255,255,255,0.06);
    --border: rgba(255,255,255,0.08);
}

/* LIGHT MODE */
body.light {
    --bg-dark: #f5f5f5;
    --bg-dark-2: #ffffff;
    --text: #111;
    --glass: rgba(255,255,255,0.7);
    --border: rgba(0,0,0,0.08);
}

/* BASE */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial;
    background: radial-gradient(circle at top, var(--bg-dark-2), var(--bg-dark));
    color: var(--text);
    transition: all 0.3s ease;
}

/* GLASS CARD */
.card {
    background: var(--glass);
    border: 1px solid var(--border);
    backdrop-filter: blur(18px);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* BUTTON */
button {
    background: var(--primary);
    border: none;
    color: white;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
}

button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* INPUT */
input {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--glass);
    color: var(--text);
    outline: none;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: center;
    gap: 18px;
    padding: 14px;
    background: var(--glass);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
}

.navbar a {
    color: var(--text);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 10px;
}

.navbar a:hover {
    background: rgba(255,122,0,0.15);
}

.navbar a.active {
    color: var(--primary);
    font-weight: bold;
}

/* =========================
   MOBILE EVENT SYSTEM
========================= */

@media (max-width: 768px) {

    body {
        font-size: 14px;
    }

    /* NAVBAR MOBILE */
    .navbar {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px;
    }

    .navbar a {
        font-size: 13px;
        padding: 6px 10px;
    }

    /* CARDS */
    .card {
        padding: 15px;
        border-radius: 14px;
    }

    /* INPUTS */
    input {
        width: 100%;
        font-size: 14px;
    }

    button {
        width: 100%;
        font-size: 14px;
        margin-top: 5px;
    }

    /* GRID (dashboard) */
    .grid {
        grid-template-columns: 1fr !important;
        padding: 10px;
    }

    /* PROTOCOLO SCANNER */
    #reader {
        width: 100% !important;
    }

    #statusBox {
        font-size: 16px;
        padding: 15px;
    }

    /* GUEST LIST */
    .guest-row {
        font-size: 13px;
        padding: 8px;
    }
}

.hamburger {
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    color: var(--primary);
}

/* MENU LATERAL */
.side-menu {
    position: fixed;
    top: 0;
    left: -260px;
    width: 250px;
    height: 100%;
    background: rgba(20,20,20,0.95);
    backdrop-filter: blur(12px);
    padding: 20px;
    transition: 0.3s;
    z-index: 1001;
}

.side-menu a {
    display: block;
    padding: 12px;
    color: white;
    text-decoration: none;
}

/* OVERLAY BLUR */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(6px);
    display: none;
    z-index: 1000;
}

/* ACTIVE */
.side-menu.active {
    left: 0;
}

.overlay.active {
    display: block;
}

.status {
    margin: 20px;
    padding: 25px;
    border-radius: 18px;
    text-align: center;
    transition: 0.3s;
    backdrop-filter: blur(10px);
}

.status-title {
    font-size: 22px;
    font-weight: bold;
}

.status-sub {
    font-size: 14px;
    opacity: 0.7;
    margin-top: 5px;
}

/* IDLE */
.status.idle {
    background: rgba(255, 122, 0, 0.15);
    border: 1px solid rgba(255, 122, 0, 0.3);
}

/* OK */
.status.ok {
    background: rgba(0, 200, 100, 0.2);
    border: 1px solid rgba(0, 200, 100, 0.4);
}

/* ERROR */
.status.error {
    background: rgba(255, 50, 50, 0.2);
    border: 1px solid rgba(255, 50, 50, 0.4);
}

/* WARN */
.status.warn {
    background: rgba(255, 200, 0, 0.2);
    border: 1px solid rgba(255, 200, 0, 0.4);
}

/* =========================
   STATUS PRO CHECK-IN
========================= */

.status {
    margin: 15px;
    padding: 18px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    transition: 0.3s ease;
}

/* estado inicial */
.status.idle {
    background: #1f1f1f;
    color: #aaa;
    border: 1px solid #333;
}

/* sucesso */
.status.ok {
    background: linear-gradient(135deg, #1db954, #14833b);
    color: white;
    box-shadow: 0 0 15px rgba(29,185,84,0.4);
}

/* erro / limite */
.status.error {
    background: linear-gradient(135deg, #ff3b30, #a10000);
    color: white;
    box-shadow: 0 0 15px rgba(255,59,48,0.4);
}

/* aviso */
.status.warn {
    background: linear-gradient(135deg, #ff9500, #b36b00);
    color: white;
    box-shadow: 0 0 15px rgba(255,149,0,0.3);
}

.status {
    text-align: center;
    padding: 25px;
    border-radius: 20px;
    margin: 15px;
    font-size: 18px;
    transition: 0.3s;
}

.status-title {
    font-size: 26px;
    font-weight: bold;
}

.status-sub {
    margin-top: 8px;
    opacity: 0.8;
}

.status.ok {
    background: linear-gradient(135deg, #1db954, #0f5132);
    box-shadow: 0 0 25px rgba(29,185,84,0.4);
    color: white;
    animation: pulseOK 1s ease;
}

.status.error {
    background: linear-gradient(135deg, #ff3b3b, #7a0000);
    box-shadow: 0 0 25px rgba(255,0,0,0.3);
    color: white;
}

.status.warn {
    background: linear-gradient(135deg, #ffb300, #7a5a00);
    box-shadow: 0 0 25px rgba(255,179,0,0.3);
    color: black;
}

.status.idle {
    background: #1e1e1e;
    color: white;
}

@keyframes pulseOK {
    0% { transform: scale(0.98); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}