/* =========================================================
   CODE GREEN 2026
   8th MIMAROPA Regional IT Congress
   GLASSMORPHISM + NEUMORPHISM UI
   Responsive: Mobile / Tablet / Laptop
========================================================= */

:root {
    /* =========================================
       COLOR PALETTE
    ========================================== */

    --blue-deep: #06152b;
    --blue-dark: #08213b;
    --blue: #086cff;
    --blue-light: #09a9ff;

    --cyan: #00d9d9;
    --teal: #00cfa8;

    --green: #00e676;
    --green-bright: #39ff6a;
    --lime: #9cff57;

    --white: #f4fbff;
    --text-main: #f3f9ff;
    --text-soft: #9db3c8;
    --text-muted: #6f879d;

    --danger: #ff5277;
    --warning: #ffc857;

    /* Glass */
    --glass-bg: rgba(20, 43, 65, 0.68);
    --glass-bg-light: rgba(34, 64, 88, 0.58);
    --glass-border: rgba(255, 255, 255, 0.10);

    /* Neumorphism */
    --neo-dark: rgba(0, 0, 0, 0.35);
    --neo-light: rgba(255, 255, 255, 0.045);

    /* Shadows */
    --shadow-lg:
        18px 18px 45px rgba(0, 0, 0, 0.42),
        -10px -10px 30px rgba(255, 255, 255, 0.025);

    --shadow-md:
        10px 10px 25px rgba(0, 0, 0, 0.35),
        -6px -6px 18px rgba(255, 255, 255, 0.025);

    --shadow-soft:
        6px 6px 15px rgba(0, 0, 0, 0.30),
        -4px -4px 12px rgba(255, 255, 255, 0.025);

    --radius-xl: 26px;
    --radius-lg: 20px;
    --radius-md: 15px;
    --radius-sm: 10px;
}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    width: 100%;
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-height: 100vh;

    font-family:
        "Inter",
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    color: var(--text-main);

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(0, 105, 255, 0.28),
            transparent 32%
        ),
        radial-gradient(
            circle at 85% 15%,
            rgba(0, 255, 120, 0.18),
            transparent 30%
        ),
        radial-gradient(
            circle at 70% 85%,
            rgba(0, 217, 217, 0.18),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #041426 0%,
            #061b30 35%,
            #082a3b 65%,
            #06362f 100%
        );

    background-attachment: fixed;

    overflow-x: hidden;
}


/* =========================================================
   BACKGROUND LIGHT EFFECTS
========================================================= */

body::before {
    content: "";
    position: fixed;

    width: 420px;
    height: 420px;

    top: -180px;
    left: -120px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(0, 174, 255, 0.22),
            transparent 70%
        );

    filter: blur(20px);

    pointer-events: none;
    z-index: -1;
}

body::after {
    content: "";

    position: fixed;

    width: 500px;
    height: 500px;

    right: -200px;
    bottom: -220px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(0, 255, 140, 0.17),
            transparent 70%
        );

    filter: blur(25px);

    pointer-events: none;
    z-index: -1;
}


/* =========================================================
   APP SHELL
========================================================= */

.app-shell {
    width: 100%;
    min-height: 100vh;

    display: flex;
    flex-direction: column;
}


/* =========================================================
   HEADER
========================================================= */

.top-header {
    position: relative;

    width: 100%;

    min-height: 105px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding:
        24px
        clamp(20px, 5vw, 70px);

    background:
        rgba(3, 18, 32, 0.68);

    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);

    border-bottom:
        1px solid rgba(0, 225, 255, 0.12);

    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.28);

    z-index: 10;
}


/* glowing line */

.top-header::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--blue),
            var(--cyan),
            var(--green),
            transparent
        );

    opacity: 0.65;
}


/* header glow */

.header-glow {
    position: absolute;

    top: -80px;
    left: 30%;

    width: 420px;
    height: 160px;

    background:
        radial-gradient(
            ellipse,
            rgba(0, 220, 255, 0.12),
            transparent 70%
        );

    pointer-events: none;
}


/* =========================================================
   BRAND
========================================================= */

.brand-container {
    display: flex;
    align-items: center;

    gap: 18px;

    position: relative;
    z-index: 2;
}

.brand-icon {
    width: 58px;
    height: 58px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            rgba(0, 183, 255, 0.95),
            rgba(0, 220, 170, 0.95)
        );

    color: white;

    font-size: 25px;

    box-shadow:
        8px 8px 18px rgba(0, 0, 0, 0.35),
        -4px -4px 12px rgba(255, 255, 255, 0.08);

    position: relative;
    overflow: hidden;
}

.brand-icon::after {
    content: "";

    position: absolute;

    width: 70px;
    height: 20px;

    transform: rotate(-35deg);

    background:
        rgba(255, 255, 255, 0.15);

    top: -15px;
    left: -30px;
}


.brand-event {
    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.5px;

    color: #63e7c0;

    margin-bottom: 3px;
}


.brand-title {
    font-size: clamp(25px, 3vw, 39px);

    line-height: 1;

    font-weight: 900;

    letter-spacing: -1.5px;

    color: var(--white);
}

.brand-title span {
    background:
        linear-gradient(
            90deg,
            var(--cyan),
            var(--green),
            var(--lime)
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}


.brand-subtitle {
    margin-top: 6px;

    color: var(--text-soft);

    font-size: 11px;

    letter-spacing: 0.3px;
}


/* =========================================================
   SYSTEM STATUS
========================================================= */

.system-status {
    display: flex;
    align-items: center;

    gap: 9px;

    padding: 10px 15px;

    border-radius: 50px;

    background:
        rgba(0, 230, 118, 0.07);

    border:
        1px solid rgba(0, 230, 118, 0.18);

    box-shadow:
        inset 3px 3px 7px rgba(0, 0, 0, 0.25),
        inset -3px -3px 7px rgba(255, 255, 255, 0.025);

    color: #72ffc1;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.7px;

    white-space: nowrap;
}

.status-dot,
.scanner-status-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: var(--green);

    box-shadow:
        0 0 0 4px rgba(0, 230, 118, 0.09),
        0 0 15px rgba(0, 230, 118, 0.9);

    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.45;
    }
}


/* =========================================================
   MAIN CONTAINER
========================================================= */

.main-container {
    width: 100%;

    max-width: 1500px;

    margin: 0 auto;

    padding:
        clamp(25px, 4vw, 50px)
        clamp(15px, 4vw, 45px);

    flex: 1;
}


/* =========================================================
   DASHBOARD GRID
========================================================= */

.dashboard-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(400px, 0.95fr);

    gap: clamp(20px, 3vw, 32px);

    align-items: stretch;
}


/* =========================================================
   GLASS CARDS
========================================================= */

.scanner-card,
.control-card {
    position: relative;

    background:
        linear-gradient(
            145deg,
            rgba(29, 59, 82, 0.68),
            rgba(10, 32, 51, 0.72)
        );

    border:
        1px solid var(--glass-border);

    border-radius: var(--radius-xl);

    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);

    box-shadow: var(--shadow-lg);

    overflow: hidden;
}


/* top glass highlight */

.scanner-card::before,
.control-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 10%;
    right: 10%;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.20),
            transparent
        );
}


/* subtle gradient glow */

.scanner-card::after {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    left: -180px;
    bottom: -180px;

    background:
        radial-gradient(
            circle,
            rgba(0, 174, 255, 0.14),
            transparent 70%
        );

    pointer-events: none;
}


/* =========================================================
   SECTION HEADING
========================================================= */

.section-heading {
    position: relative;
    z-index: 2;

    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    padding:
        clamp(22px, 3vw, 32px);
}

.section-kicker {
    display: flex;
    align-items: center;

    gap: 8px;

    color: #3cffc0;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 1.7px;
}

.section-kicker i {
    color: var(--cyan);
    font-size: 12px;
}

.section-heading h1 {
    margin-top: 8px;

    font-size:
        clamp(25px, 3vw, 34px);

    line-height: 1.05;

    font-weight: 900;

    letter-spacing: -1px;

    color: var(--white);
}

.section-heading p {
    margin-top: 9px;

    color: var(--text-soft);

    font-size: 12px;

    line-height: 1.5;
}


/* =========================================================
   SCANNER STATUS
========================================================= */

.scanner-status {
    flex-shrink: 0;

    display: flex;
    align-items: center;

    gap: 8px;

    padding: 9px 14px;

    border-radius: 50px;

    color: #5cffc0;

    background:
        rgba(0, 230, 118, 0.06);

    border:
        1px solid rgba(0, 230, 118, 0.18);

    font-size: 9px;
    font-weight: 900;

    letter-spacing: 1px;

    box-shadow:
        inset 3px 3px 8px rgba(0, 0, 0, 0.28),
        inset -3px -3px 8px rgba(255, 255, 255, 0.025);
}


/* =========================================================
   SCANNER
========================================================= */

.scanner-wrapper {
    position: relative;

    padding:
        0 clamp(20px, 5vw, 55px)
        clamp(20px, 3vw, 30px);

    display: flex;
    flex-direction: column;

    align-items: center;
}


.scanner-frame {
    position: relative;

    width: 100%;

    max-width: 570px;

    aspect-ratio: 1 / 0.82;

    border-radius: 20px;

    background:
        rgba(0, 6, 13, 0.82);

    border:
        1px solid rgba(0, 216, 255, 0.15);

    overflow: hidden;

    box-shadow:
        inset 10px 10px 25px rgba(0, 0, 0, 0.55),
        inset -6px -6px 20px rgba(255, 255, 255, 0.025),
        0 0 0 8px rgba(0, 204, 255, 0.035);
}


/* scanner inner glow */

.scanner-frame::before {
    content: "";

    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            ellipse at center,
            rgba(0, 217, 217, 0.055),
            transparent 65%
        );

    pointer-events: none;

    z-index: 2;
}


/* =========================================================
   HTML5 QR READER
========================================================= */

#reader {
    position: absolute;

    inset: 0;

    width: 100% !important;
    height: 100% !important;

    border: none !important;

    overflow: hidden;

    border-radius: 18px;
}


/* hide html5-qrcode default UI borders */

#reader > div {
    border: none !important;
}


/* camera video */

#reader video {
    width: 100% !important;
    height: 100% !important;

    object-fit: cover;

    border-radius: 18px;
}


/* hide unnecessary html5 qr UI */

#reader__dashboard_section_csr {
    display: none !important;
}


/* =========================================================
   SCANNER CORNERS
========================================================= */

.corner {
    position: absolute;

    width: 42px;
    height: 42px;

    z-index: 5;

    pointer-events: none;
}

.corner-tl {
    top: 12px;
    left: 12px;

    border-top: 3px solid var(--cyan);
    border-left: 3px solid var(--cyan);

    border-top-left-radius: 12px;
}

.corner-tr {
    top: 12px;
    right: 12px;

    border-top: 3px solid var(--cyan);
    border-right: 3px solid var(--cyan);

    border-top-right-radius: 12px;
}

.corner-bl {
    bottom: 12px;
    left: 12px;

    border-bottom: 3px solid var(--green);
    border-left: 3px solid var(--green);

    border-bottom-left-radius: 12px;
}

.corner-br {
    bottom: 12px;
    right: 12px;

    border-bottom: 3px solid var(--green);
    border-right: 3px solid var(--green);

    border-bottom-right-radius: 12px;
}


/* =========================================================
   SCAN LINE
========================================================= */

.scan-line {
    position: absolute;

    left: 5%;
    right: 5%;

    top: 50%;

    height: 2px;

    z-index: 4;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--cyan),
            var(--green),
            var(--cyan),
            transparent
        );

    box-shadow:
        0 0 14px rgba(0, 240, 200, 0.9);

    animation: scannerLine 2.4s ease-in-out infinite;

    pointer-events: none;
}

@keyframes scannerLine {
    0% {
        transform: translateY(-130px);
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    50% {
        transform: translateY(130px);
        opacity: 1;
    }

    85% {
        opacity: 1;
    }

    100% {
        transform: translateY(-130px);
        opacity: 0;
    }
}


/* =========================================================
   SCANNER HINT
========================================================= */

.scanner-hint {
    display: flex;
    align-items: center;

    gap: 8px;

    margin-top: 14px;

    color: var(--text-muted);

    font-size: 10px;

    text-align: center;
}

.scanner-hint i {
    color: var(--cyan);
}


/* =========================================================
   SCANNER FOOTER
========================================================= */

.scanner-footer {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: clamp(25px, 5vw, 55px);

    margin:
        0 clamp(20px, 3vw, 32px)
        clamp(20px, 3vw, 30px);

    padding-top: 18px;

    border-top:
        1px solid rgba(255, 255, 255, 0.06);
}

.scanner-feature {
    display: flex;
    align-items: center;

    gap: 7px;

    color: var(--text-soft);

    font-size: 9px;
    font-weight: 700;

    white-space: nowrap;
}

.scanner-feature i {
    color: var(--cyan);

    font-size: 14px;
}


/* =========================================================
   CONTROL CARD
========================================================= */

.control-card {
    padding:
        clamp(20px, 3vw, 28px);
}


/* =========================================================
   CONTROL SECTIONS
========================================================= */

.control-section {
    position: relative;

    margin-bottom: 25px;
}

.control-label {
    display: flex;
    align-items: center;

    gap: 11px;

    margin-bottom: 12px;
}

.step-number {
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 9px;

    background:
        linear-gradient(
            145deg,
            rgba(0, 217, 217, 0.15),
            rgba(0, 230, 118, 0.08)
        );

    border:
        1px solid rgba(0, 217, 217, 0.18);

    color: var(--cyan);

    font-size: 9px;
    font-weight: 900;

    box-shadow:
        inset 3px 3px 7px rgba(0, 0, 0, 0.3),
        inset -3px -3px 7px rgba(255, 255, 255, 0.025);
}

.label-title {
    display: block;

    font-size: 11px;

    font-weight: 900;

    letter-spacing: 0.5px;

    color: var(--white);
}

.label-description {
    display: block;

    margin-top: 2px;

    font-size: 9px;

    color: var(--text-muted);
}


/* =========================================================
   STATION GRID
========================================================= */

.station-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 9px;
}

.station-input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}

.station-option {
    min-height: 82px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 10px;

    border-radius: 15px;

    border:
        1px solid rgba(255, 255, 255, 0.08);

    background:
        rgba(13, 36, 55, 0.68);

    color: var(--text-soft);

    cursor: pointer;

    text-align: center;

    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;

    box-shadow:
        6px 6px 15px rgba(0, 0, 0, 0.28),
        -4px -4px 10px rgba(255, 255, 255, 0.025);
}

.station-option:hover {
    transform: translateY(-2px);

    border-color:
        rgba(0, 217, 217, 0.35);

    color: white;
}

.station-option i {
    font-size: 21px;

    color: var(--cyan);

    transition: transform 0.18s ease;
}

.station-option:hover i {
    transform: scale(1.08);
}

.station-option strong {
    display: block;

    font-size: 10px;

    color: var(--white);
}

.station-option small {
    display: block;

    margin-top: 2px;

    font-size: 8px;

    color: var(--text-muted);
}


/* selected */

.station-input:checked + .station-option {
    color: white;

    background:
        linear-gradient(
            145deg,
            rgba(0, 185, 255, 0.17),
            rgba(0, 230, 118, 0.12)
        );

    border-color:
        rgba(0, 217, 217, 0.55);

    box-shadow:
        inset 4px 4px 10px rgba(0, 0, 0, 0.32),
        inset -4px -4px 10px rgba(255, 255, 255, 0.025),
        0 0 22px rgba(0, 217, 217, 0.07);
}

.station-input:checked + .station-option i {
    color: var(--green-bright);

    text-shadow:
        0 0 12px rgba(0, 230, 118, 0.55);
}


/* =========================================================
   ID INPUT
========================================================= */

.id-input-wrapper {
    display: flex;

    align-items: center;

    min-height: 48px;

    padding: 5px;

    border-radius: 13px;

    background:
        rgba(4, 20, 33, 0.72);

    border:
        1px solid rgba(255, 255, 255, 0.08);

    box-shadow:
        inset 6px 6px 14px rgba(0, 0, 0, 0.40),
        inset -4px -4px 10px rgba(255, 255, 255, 0.025);
}

.input-icon {
    width: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--cyan);

    font-size: 16px;
}

.id-input {
    flex: 1;

    min-width: 0;

    border: none;
    outline: none;

    background: transparent;

    color: var(--white);

    font-size: 12px;
    font-weight: 600;

    padding: 10px 5px;
}

.id-input::placeholder {
    color: #536d83;
}

.id-input:focus {
    color: white;
}


/* =========================================================
   SUBMIT BUTTON
========================================================= */

.submit-button {
    min-height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    padding:
        0 16px;

    border: none;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            var(--blue-light),
            var(--cyan),
            var(--teal)
        );

    color: white;

    font-size: 9px;
    font-weight: 900;

    letter-spacing: 0.5px;

    cursor: pointer;

    box-shadow:
        5px 5px 12px rgba(0, 0, 0, 0.30),
        -3px -3px 8px rgba(255, 255, 255, 0.07);

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.submit-button:hover {
    transform: translateY(-1px);

    box-shadow:
        7px 7px 15px rgba(0, 0, 0, 0.34),
        0 0 16px rgba(0, 217, 217, 0.18);
}

.submit-button:active {
    transform: translateY(1px);

    box-shadow:
        inset 4px 4px 9px rgba(0, 0, 0, 0.25);
}


/* =========================================================
   RESULT PANEL
========================================================= */

.result-panel {
    min-height: 135px;

    display: flex;
    align-items: center;

    gap: 15px;

    padding: 20px;

    border-radius: 16px;

    background:
        rgba(8, 27, 43, 0.70);

    border:
        1px solid rgba(255, 255, 255, 0.07);

    box-shadow:
        inset 7px 7px 16px rgba(0, 0, 0, 0.34),
        inset -5px -5px 12px rgba(255, 255, 255, 0.025);

    transition:
        all 0.25s ease;
}


/* idle */

.result-panel.idle {
    border-color:
        rgba(0, 217, 255, 0.14);
}


/* success */

.result-panel.success {
    background:
        linear-gradient(
            145deg,
            rgba(0, 230, 118, 0.11),
            rgba(0, 100, 100, 0.15)
        );

    border-color:
        rgba(0, 230, 118, 0.38);

    box-shadow:
        inset 6px 6px 14px rgba(0, 0, 0, 0.30),
        0 0 25px rgba(0, 230, 118, 0.07);
}


/* already */

.result-panel.already {
    background:
        rgba(255, 200, 87, 0.08);

    border-color:
        rgba(255, 200, 87, 0.35);
}


/* error */

.result-panel.error {
    background:
        rgba(255, 82, 119, 0.08);

    border-color:
        rgba(255, 82, 119, 0.35);
}


/* =========================================================
   RESULT ICON
========================================================= */

.result-icon {
    width: 52px;
    height: 52px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 15px;

    background:
        rgba(0, 217, 217, 0.07);

    border:
        1px solid rgba(0, 217, 217, 0.13);

    color: var(--cyan);

    font-size: 22px;

    box-shadow:
        inset 4px 4px 9px rgba(0, 0, 0, 0.30),
        inset -4px -4px 9px rgba(255, 255, 255, 0.025);
}

.result-panel.success .result-icon {
    color: var(--green);

    background:
        rgba(0, 230, 118, 0.08);

    border-color:
        rgba(0, 230, 118, 0.18);
}

.result-panel.already .result-icon {
    color: var(--warning);
}

.result-panel.error .result-icon {
    color: var(--danger);
}


/* =========================================================
   RESULT CONTENT
========================================================= */

.result-content {
    min-width: 0;
}

.result-title {
    font-size: 10px;

    font-weight: 900;

    letter-spacing: 1px;

    color: var(--cyan);
}

.result-panel.success .result-title {
    color: var(--green-bright);
}

.result-panel.already .result-title {
    color: var(--warning);
}

.result-panel.error .result-title {
    color: var(--danger);
}

.result-name {
    margin-top: 4px;

    font-size: 15px;

    font-weight: 900;

    color: white;

    overflow-wrap: anywhere;
}

.result-time {
    margin-top: 4px;

    color: var(--text-soft);

    font-size: 9px;
}

.result-message {
    margin-top: 7px;

    color: var(--text-muted);

    font-size: 9px;

    line-height: 1.5;
}


/* =========================================================
   MANUAL OVERRIDE BUTTON
========================================================= */

.override-button {
    width: 100%;

    min-height: 48px;

    display: flex;
    align-items: center;

    gap: 10px;

    padding: 0 15px;

    border-radius: 13px;

    border:
        1px solid rgba(255, 200, 87, 0.16);

    background:
        rgba(255, 200, 87, 0.045);

    color: #e9d18d;

    cursor: pointer;

    box-shadow:
        inset 4px 4px 10px rgba(0, 0, 0, 0.24),
        inset -4px -4px 10px rgba(255, 255, 255, 0.018);

    transition:
        all 0.18s ease;
}

.override-button span {
    flex: 1;

    text-align: left;

    font-size: 10px;
    font-weight: 800;
}

.override-button i:first-child {
    font-size: 15px;
}

.override-button i:last-child {
    font-size: 11px;
}

.override-button:hover {
    transform: translateY(-1px);

    border-color:
        rgba(255, 200, 87, 0.38);

    background:
        rgba(255, 200, 87, 0.08);

    color: #ffe8a8;
}


/* =========================================================
   MODALS
========================================================= */

.modal-backdrop.show {
    opacity: 0.78;
}

.modal-content {
    border: none !important;
}

.result-modal,
.override-modal {
    position: relative;

    border:
        1px solid rgba(255, 255, 255, 0.10) !important;

    border-radius: 25px !important;

    background:
        linear-gradient(
            145deg,
            rgba(23, 52, 73, 0.94),
            rgba(6, 26, 43, 0.96)
        ) !important;

    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);

    color: white;

    box-shadow:
        20px 20px 50px rgba(0, 0, 0, 0.55),
        -8px -8px 30px rgba(255, 255, 255, 0.025);

    overflow: hidden;

    padding:
        38px
        30px
        30px;

    text-align: center;
}


/* =========================================================
   MODAL CLOSE
========================================================= */

.modal-close {
    position: absolute;

    top: 15px;
    right: 15px;

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;

    border-radius: 10px;

    background:
        rgba(255, 255, 255, 0.045);

    color: var(--text-soft);

    cursor: pointer;

    transition: all 0.15s ease;
}

.modal-close:hover {
    color: white;

    background:
        rgba(255, 255, 255, 0.09);
}


/* =========================================================
   MODAL RESULT ICON
========================================================= */

.modal-result-icon,
.override-icon {
    width: 75px;
    height: 75px;

    margin: 0 auto 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 22px;

    background:
        rgba(0, 230, 118, 0.09);

    border:
        1px solid rgba(0, 230, 118, 0.25);

    color: var(--green-bright);

    font-size: 32px;

    box-shadow:
        8px 8px 20px rgba(0, 0, 0, 0.35),
        -5px -5px 15px rgba(255, 255, 255, 0.025);
}

.override-icon {
    color: var(--warning);

    background:
        rgba(255, 200, 87, 0.08);

    border-color:
        rgba(255, 200, 87, 0.20);
}


/* =========================================================
   MODAL TEXT
========================================================= */

.modal-status {
    font-size: 12px;

    font-weight: 900;

    letter-spacing: 1.4px;

    color: var(--green-bright);
}

.modal-name {
    margin-top: 8px;

    font-size: 23px;

    font-weight: 900;

    line-height: 1.15;
}

.modal-id {
    margin-top: 5px;

    color: var(--text-soft);

    font-size: 10px;

    letter-spacing: 0.5px;
}

.modal-time-row {
    width: fit-content;

    margin:
        16px auto 0;

    display: flex;
    align-items: center;

    gap: 7px;

    padding: 8px 13px;

    border-radius: 50px;

    background:
        rgba(0, 217, 217, 0.06);

    border:
        1px solid rgba(0, 217, 217, 0.13);

    color: var(--text-soft);

    font-size: 10px;
}

.modal-time-row i {
    color: var(--cyan);
}

.modal-message {
    margin-top: 15px;

    color: var(--text-soft);

    font-size: 11px;

    line-height: 1.5;
}


/* =========================================================
   MODAL ACTION
========================================================= */

.modal-action,
.override-confirm {
    width: 100%;

    min-height: 48px;

    margin-top: 23px;

    border: none;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            var(--blue-light),
            var(--cyan),
            var(--green)
        );

    color: white;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 0.6px;

    cursor: pointer;

    box-shadow:
        7px 7px 18px rgba(0, 0, 0, 0.35),
        -4px -4px 10px rgba(255, 255, 255, 0.05);

    transition: all 0.16s ease;
}

.modal-action:hover,
.override-confirm:hover {
    transform: translateY(-2px);

    box-shadow:
        10px 10px 22px rgba(0, 0, 0, 0.40),
        0 0 20px rgba(0, 217, 217, 0.14);
}


/* =========================================================
   OVERRIDE FORM
========================================================= */

.override-modal h2 {
    font-size: 24px;

    font-weight: 900;
}

.override-modal > p {
    margin-top: 7px;

    color: var(--text-soft);

    font-size: 10px;

    line-height: 1.5;
}

.override-field {
    margin-top: 17px;

    text-align: left;
}

.override-field label {
    display: block;

    margin-bottom: 7px;

    color: var(--text-soft);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 0.4px;
}

.override-input {
    display: flex;
    align-items: center;

    min-height: 48px;

    border-radius: 12px;

    background:
        rgba(3, 18, 30, 0.72);

    border:
        1px solid rgba(255, 255, 255, 0.08);

    box-shadow:
        inset 5px 5px 12px rgba(0, 0, 0, 0.40),
        inset -4px -4px 10px rgba(255, 255, 255, 0.025);
}

.override-input i {
    width: 43px;

    text-align: center;

    color: var(--cyan);
}

.override-input input {
    flex: 1;

    min-width: 0;

    border: none;
    outline: none;

    background: transparent;

    color: white;

    padding: 11px 10px 11px 0;

    font-size: 11px;
}

.override-input input::placeholder {
    color: #536d83;
}


/* =========================================================
   OVERRIDE WARNING
========================================================= */

.override-warning {
    display: flex;
    align-items: flex-start;

    gap: 9px;

    margin-top: 16px;

    padding: 11px 12px;

    border-radius: 11px;

    background:
        rgba(255, 200, 87, 0.055);

    border:
        1px solid rgba(255, 200, 87, 0.15);

    color: #d9c17d;

    font-size: 9px;

    line-height: 1.45;

    text-align: left;
}

.override-warning i {
    color: var(--warning);

    flex-shrink: 0;
}


/* =========================================================
   FOOTER
========================================================= */

.app-footer {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    padding:
        18px 20px 24px;

    color: var(--text-muted);

    font-size: 8px;
    font-weight: 700;

    letter-spacing: 1px;

    text-align: center;
}

.footer-divider {
    width: 3px;
    height: 3px;

    border-radius: 50%;

    background:
        var(--cyan);

    opacity: 0.5;
}


/* =========================================================
   BOOTSTRAP MODAL RESPONSIVENESS
========================================================= */

.modal-dialog {
    max-width: 460px;
    margin: 1rem auto;
}

.modal.fade .modal-dialog {
    transform:
        scale(0.96)
        translateY(10px);
    transition:
        transform 0.2s ease;
}

.modal.show .modal-dialog {
    transform:
        scale(1)
        translateY(0);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .dashboard-grid {
        grid-template-columns:
            1fr;
    }

    .scanner-card {
        min-height: auto;
    }

    .scanner-frame {
        max-width: 650px;
    }

    .control-card {
        width: 100%;
    }
}


/* =========================================================
   TABLET / SMALL LAPTOP
========================================================= */

@media (max-width: 800px) {

    .top-header {
        padding:
            18px 22px;
    }

    .system-status {
        font-size: 8px;
        padding: 8px 11px;
    }

    .brand-icon {
        width: 50px;
        height: 50px;

        border-radius: 14px;
    }

    .brand-event {
        font-size: 8px;
    }

    .brand-title {
        font-size: 26px;
    }

    .brand-subtitle {
        font-size: 9px;
    }

    .main-container {
        padding:
            22px 18px 35px;
    }

    .dashboard-grid {
        gap: 20px;
    }

    .scanner-frame {
        aspect-ratio: 1 / 0.82;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    body {
        background-attachment: scroll;
    }

    .top-header {
        min-height: auto;

        flex-direction: column;

        align-items: flex-start;

        gap: 14px;

        padding:
            17px 16px;
    }

    .brand-container {
        gap: 12px;
    }

    .brand-icon {
        width: 45px;
        height: 45px;

        font-size: 19px;
    }

    .brand-event {
        font-size: 7px;

        letter-spacing: 1px;
    }

    .brand-title {
        font-size: 24px;

        letter-spacing: -1px;
    }

    .brand-subtitle {
        font-size: 8px;

        margin-top: 4px;
    }

    .system-status {
        align-self: flex-start;

        font-size: 7px;
    }

    .main-container {
        padding:
            16px 12px 25px;
    }

    .scanner-card,
    .control-card {
        border-radius: 20px;
    }

    .section-heading {
        padding:
            20px 17px 15px;

        gap: 10px;
    }

    .section-heading h1 {
        font-size: 25px;
    }

    .section-heading p {
        font-size: 10px;
    }

    .scanner-status {
        padding: 7px 9px;

        font-size: 7px;
    }

    .scanner-wrapper {
        padding:
            0 12px 18px;
    }

    .scanner-frame {
        width: 100%;

        aspect-ratio: 1 / 0.92;

        border-radius: 16px;
    }

    #reader,
    #reader video {
        border-radius: 14px;
    }

    .corner {
        width: 30px;
        height: 30px;
    }

    .scanner-footer {
        gap: 10px;

        justify-content: space-between;

        margin:
            0 14px 18px;

        padding-top: 14px;
    }

    .scanner-feature {
        font-size: 7px;

        gap: 4px;
    }

    .scanner-feature i {
        font-size: 11px;
    }

    .control-card {
        padding: 17px;
    }

    .station-grid {
        grid-template-columns: 1fr;
    }

    .station-option {
        min-height: 65px;

        flex-direction: row;

        justify-content: flex-start;

        text-align: left;

        padding: 12px 15px;
    }

    .station-option i {
        width: 30px;

        text-align: center;
    }

    .station-option strong,
    .station-option small {
        text-align: left;
    }

    .id-input-wrapper {
        min-height: 50px;
    }

    .input-icon {
        width: 38px;
    }

    .submit-button {
        padding:
            0 13px;
    }

    .result-panel {
        min-height: 120px;

        padding: 15px;

        gap: 12px;
    }

    .result-icon {
        width: 44px;
        height: 44px;

        border-radius: 12px;

        font-size: 18px;
    }

    .result-name {
        font-size: 13px;
    }

    .result-message {
        font-size: 8px;
    }

    .app-footer {
        flex-wrap: wrap;

        padding:
            14px 15px 20px;

        font-size: 7px;
    }

    .modal-dialog {
        margin:
            12px;
    }

    .result-modal,
    .override-modal {
        padding:
            35px 20px 22px;

        border-radius: 20px !important;
    }

    .modal-result-icon,
    .override-icon {
        width: 65px;
        height: 65px;

        border-radius: 18px;

        font-size: 27px;
    }

    .modal-name {
        font-size: 20px;
    }
}


/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 380px) {

    .brand-title {
        font-size: 21px;
    }

    .brand-event {
        font-size: 6px;
    }

    .brand-subtitle {
        font-size: 7px;
    }

    .section-heading h1 {
        font-size: 22px;
    }

    .scanner-status {
        display: none;
    }

    .scanner-frame {
        aspect-ratio: 1 / 1;
    }

    .scanner-footer {
        gap: 6px;
    }

    .scanner-feature {
        font-size: 6px;
    }

    .submit-button span {
        display: none;
    }

    .submit-button {
        width: 42px;
        padding: 0;
    }
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

button,
label,
.station-option {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
label:focus-visible {
    outline:
        2px solid var(--cyan);

    outline-offset: 2px;
}


/* =========================================================
   REDUCE MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
/* =========================================================
   CODE GREEN EVENT HEADER
   ========================================================= */

.event-header {
    width: 100%;
    position: relative;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 12% 40%,
            rgba(0, 255, 120, 0.20),
            transparent 32%
        ),
        radial-gradient(
            circle at 85% 25%,
            rgba(0, 180, 255, 0.18),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #031b2b 0%,
            #062c39 45%,
            #073b32 100%
        );

    border-bottom: 1px solid rgba(0, 255, 180, 0.18);

    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.25);

    z-index: 10;
}


/* =========================================================
   HEADER INNER
   ========================================================= */

.header-inner {
    width: min(1500px, 94%);
    min-height: 190px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;

    padding: 24px 0;
}


/* =========================================================
   LEFT SIDE
   ========================================================= */

.header-branding {
    display: flex;
    flex-direction: column;

    gap: 15px;

    min-width: 0;
}


/* =========================================================
   ORGANIZATION LOGOS
   ========================================================= */

.organization-logos {
    display: flex;
    align-items: center;

    gap: 24px;

    height: 52px;
}

.organization-logos img {
    display: block;
    object-fit: contain;

    max-height: 52px;
    width: auto;
}


/* Individual logo sizing */

.dwcc-logo {
    width: 230px;
}

.sit-logo {
    width: 185px;
}

.jpcs-logo {
    width: 210px;
}


/* =========================================================
   EVENT TITLE
   ========================================================= */

.event-title {
    display: flex;
    flex-direction: column;

    gap: 3px;
}


.event-series {
    font-size: clamp(12px, 1vw, 17px);

    font-weight: 700;

    letter-spacing: 0.08em;

    color: rgba(255, 255, 255, 0.85);

    text-transform: uppercase;
}


.event-title h1 {
    margin: 0;

    font-size: clamp(38px, 4.2vw, 72px);

    line-height: 0.95;

    font-weight: 900;

    letter-spacing: -0.04em;

    color: #ffffff;

    text-shadow:
        0 4px 18px rgba(0, 0, 0, 0.35);
}


.event-title h1 span {
    background:
        linear-gradient(
            90deg,
            #16c7ff,
            #00e89b,
            #5cff72
        );

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;
}


/* =========================================================
   CODE GREEN THEME
   ========================================================= */

.event-theme {
    display: flex;
    align-items: center;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 5px;
}


.event-theme strong {
    display: inline-flex;

    padding: 7px 15px;

    border-radius: 999px;

    color: #ffffff;

    font-size: clamp(12px, 1vw, 15px);

    letter-spacing: 0.04em;

    background:
        linear-gradient(
            135deg,
            rgba(0, 200, 255, 0.18),
            rgba(0, 255, 150, 0.18)
        );

    border: 1px solid rgba(0, 255, 180, 0.35);

    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.10),
        0 5px 20px rgba(0, 0, 0, 0.15);
}


.event-theme span {
    font-size: clamp(10px, 0.9vw, 14px);

    color: rgba(255, 255, 255, 0.68);

    font-weight: 500;
}


/* =========================================================
   RIGHT EVENT LOGO
   ========================================================= */

.header-event-logo {
    flex: 0 0 auto;

    display: flex;

    align-items: center;
    justify-content: center;
}


.header-event-logo img {
    width: clamp(170px, 20vw, 330px);

    max-height: 150px;

    object-fit: contain;

    filter:
        drop-shadow(
            0 12px 25px rgba(0, 0, 0, 0.35)
        );
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .header-inner {
        min-height: 165px;

        gap: 25px;
    }


    .organization-logos {
        gap: 15px;
    }


    .organization-logos img {
        max-height: 42px;
    }


    .dwcc-logo {
        width: 180px;
    }


    .sit-logo {
        width: 145px;
    }


    .jpcs-logo {
        width: 165px;
    }


    .header-event-logo img {
        width: 220px;
        max-height: 125px;
    }

}


/* =========================================================
   TABLET / SMALL LAPTOP
   ========================================================= */

@media (max-width: 850px) {

    .header-inner {
        min-height: 145px;

        padding: 20px 0;
    }


    .organization-logos {
        height: 36px;

        gap: 12px;
    }


    .organization-logos img {
        max-height: 36px;
    }


    .dwcc-logo {
        width: 150px;
    }


    .sit-logo {
        width: 120px;
    }


    .jpcs-logo {
        width: 135px;
    }


    .header-event-logo img {
        width: 170px;
        max-height: 105px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .header-inner {
        width: 92%;

        min-height: auto;

        padding: 18px 0;

        gap: 15px;

        flex-direction: column;

        align-items: stretch;
    }


    .header-branding {
        align-items: center;

        text-align: center;
    }


    .organization-logos {
        width: 100%;

        height: auto;

        justify-content: center;

        flex-wrap: wrap;

        gap: 12px;
    }


    .organization-logos img {
        max-height: 32px;
    }


    .dwcc-logo {
        width: 130px;
    }


    .sit-logo {
        width: 105px;
    }


    .jpcs-logo {
        width: 115px;
    }


    .event-title {
        align-items: center;
    }


    .event-series {
        font-size: 10px;

        letter-spacing: 0.06em;
    }


    .event-title h1 {
        font-size: clamp(32px, 10vw, 48px);
    }


    .event-theme {
        justify-content: center;

        flex-direction: column;

        gap: 5px;
    }


    .event-theme strong {
        font-size: 11px;

        padding: 6px 12px;
    }


    .event-theme span {
        font-size: 9px;

        line-height: 1.4;
    }


    .header-event-logo {
        order: -1;
    }


    .header-event-logo img {
        width: 130px;

        max-height: 75px;
    }

}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 400px) {

    .header-inner {
        padding: 14px 0;
    }


    .organization-logos {
        gap: 7px;
    }


    .organization-logos img {
        max-height: 27px;
    }


    .dwcc-logo {
        width: 105px;
    }


    .sit-logo {
        width: 90px;
    }


    .jpcs-logo {
        width: 100px;
    }


    .header-event-logo img {
        width: 110px;
    }


    .event-title h1 {
        font-size: 30px;
    }


    .event-theme span {
        max-width: 280px;
    }

}

/* =========================================================
   MOBILE SCAN RESULT MODAL
========================================================= */

.result-modal {
    width: min(92vw, 590px);
    margin: auto;
    border-radius: 28px;
    overflow: hidden;
}


/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (max-width: 768px) {

    .modal-dialog {
        width: 100%;
        max-width: none;
        margin: 0;
        min-height: 100vh;

        display: flex;
        align-items: center;
        justify-content: center;

        padding: 18px;
    }

    .result-modal {
        width: 100%;
        max-width: 430px;
        margin: 0 auto;

        border-radius: 24px;
    }

    .modal-content.result-modal {
        min-height: auto;
    }

    .modal-name {
        font-size: clamp(
            1.35rem,
            6vw,
            2rem
        );

        line-height: 1.15;

        overflow-wrap: anywhere;
    }

    .modal-message {
        font-size: 0.9rem;
        line-height: 1.55;
    }

    .modal-action {
        min-height: 54px;
        width: 100%;
    }

}


/* ---------------------------------------------------------
   SMALL PHONES
--------------------------------------------------------- */

@media (max-width: 420px) {

    .modal-dialog {
        padding: 12px;
    }

    .result-modal {
        border-radius: 20px;
    }

    .modal-result-icon {
        width: 76px;
        height: 76px;
        font-size: 2rem;
    }

    .modal-status {
        font-size: 0.8rem;
        letter-spacing: 0.12em;
    }

    .modal-name {
        font-size: 1.3rem;
    }

    .modal-id {
        font-size: 0.75rem;
        word-break: break-all;
    }

    .modal-time-row {
        font-size: 0.75rem;
    }

    .modal-message {
        font-size: 0.82rem;
    }

}