/* ==========================================================================
   VIBE CODING CHALLENGE 2026 - LIVE PROJECTOR DASHBOARD & ADMIN PANEL
   Powered by SCIRIAN
   Style Sheet (style.css)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS VARIABLES & COLOR PALETTE
   -------------------------------------------------------------------------- */
:root {
    --bg-dark: #050814;
    --bg-card: rgba(12, 19, 36, 0.78);
    --bg-card-hover: rgba(18, 28, 52, 0.88);
    --border-color: rgba(0, 240, 255, 0.18);
    --border-glow: rgba(0, 240, 255, 0.4);
    
    /* Scirian Brand Colors */
    --scirian-blue: #1b64f2;
    --scirian-blue-glow: rgba(27, 100, 242, 0.6);
    --scirian-teal: #00b8a9;
    --cyan-accent: #00f0ff;
    --cyan-glow: rgba(0, 240, 255, 0.6);
    --navy-dark: #162456;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Status Colors */
    --status-registered: #64748b;
    --status-building: #10b981;
    --status-testing: #f59e0b;
    --status-submitted: #3b82f6;
    --status-completed: #a855f7;
    
    /* Timer State Colors */
    --timer-normal: #00f0ff;
    --timer-warning: #f59e0b;
    --timer-danger: #ef4444;
    
    /* Font Families */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* --------------------------------------------------------------------------
   2. GLOBAL RESET & BASE STYLES
   -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    user-select: none;
}

/* Background Cyber Grid */
.cyber-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.grid-overlay {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image: 
        linear-gradient(to right, rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(15deg);
}

.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
}

.glow-1 { top: -10%; left: 20%; width: 600px; height: 600px; background: var(--scirian-blue); }
.glow-2 { bottom: -10%; right: 15%; width: 500px; height: 500px; background: var(--cyan-accent); }
.glow-3 { top: 40%; left: 50%; transform: translate(-50%, -50%); width: 700px; height: 700px; background: var(--scirian-teal); opacity: 0.08; }

/* Dashboard Container (16:9 Grid Layout) */
.dashboard-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
    padding: 1rem 1.5rem;
    gap: 0.75rem;
}

/* Card Box */
.card-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4), inset 0 0 12px 0 rgba(0, 240, 255, 0.03);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card-box:hover {
    border-color: rgba(0, 240, 255, 0.35);
}

/* --------------------------------------------------------------------------
   3. HEADER BAR
   -------------------------------------------------------------------------- */
.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 1.25rem;
    background: rgba(10, 16, 30, 0.85);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.scirian-logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.scirian-logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(27, 100, 242, 0.5));
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-brand {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.15rem;
    letter-spacing: 2px;
    color: #fff;
    background: linear-gradient(135deg, #fff 0%, var(--cyan-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-sub {
    font-size: 0.58rem;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-weight: 700;
    margin-top: 0.15rem;
}

.header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.header-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--text-primary);
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.year-badge {
    color: var(--cyan-accent);
    text-shadow: 0 0 10px var(--cyan-glow);
}

.header-sponsor {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--text-secondary);
    font-weight: 600;
}

.highlight-scirian {
    color: var(--cyan-accent);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.live-status-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.4);
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #10b981;
}

.live-pulse {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.header-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-btn:hover {
    color: var(--cyan-accent);
    border-color: var(--cyan-accent);
    background: rgba(0, 240, 255, 0.12);
}

.btn-admin-toggle {
    background: var(--scirian-blue);
    border-color: var(--scirian-blue);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(27, 100, 242, 0.4);
}

.btn-admin-toggle:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   4. MAIN CONTENT AREA (3-COLUMN GRID)
   -------------------------------------------------------------------------- */
.main-content {
    display: grid;
    grid-template-columns: 220px 1fr 420px;
    gap: 0.75rem;
    flex: 1;
    min-height: 0;
}

/* LEFT SECTION: Event Branding */
.left-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem 1rem;
    background: radial-gradient(circle at top left, rgba(27, 100, 242, 0.15) 0%, rgba(12, 19, 36, 0.78) 70%);
}

.branding-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    justify-content: space-between;
}

.vibe-badge {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--cyan-accent);
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.25);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
}

.branding-titles {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    margin: 1rem 0;
}

.brand-huge {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 2.1rem;
    letter-spacing: 3px;
}

.brand-vibe { color: #ffffff; text-shadow: 0 0 20px rgba(255, 255, 255, 0.3); }
.brand-coding { color: var(--cyan-accent); text-shadow: 0 0 20px var(--cyan-glow); }
.brand-challenge { color: var(--scirian-blue); text-shadow: 0 0 20px var(--scirian-blue-glow); font-size: 1.35rem; }

.branding-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan-accent), transparent);
    margin: 0.5rem 0;
}

.branding-tagline {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
}

.branding-tagline .arrow { color: var(--scirian-blue); font-size: 0.7rem; }
.branding-tagline .impact { color: var(--cyan-accent); }

.branding-sponsor-footer {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-top: 1rem;
}

.small-label { font-size: 0.6rem; letter-spacing: 1.5px; color: var(--text-muted); }
.scirian-bold { font-family: var(--font-heading); font-weight: 800; font-size: 0.9rem; letter-spacing: 2px; color: var(--text-primary); }

.cyber-accent-line {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--scirian-blue), var(--cyan-accent));
    border-radius: 2px;
}

/* CENTER SECTION: Primary Card (Timer / Times Up / Winner Reveal) */
.center-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    background: radial-gradient(ellipse at center, rgba(27, 100, 242, 0.15) 0%, rgba(5, 8, 20, 0.88) 75%);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 40px rgba(27, 100, 242, 0.15), inset 0 0 20px rgba(0, 240, 255, 0.05);
}

.center-view-block {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.center-view-block.hidden {
    display: none !important;
}

/* TIMER VIEW */
.center-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 240, 255, 0.06);
    border: 1px solid rgba(0, 240, 255, 0.2);
    padding: 0.4rem 1.25rem;
    border-radius: 50px;
}

.timer-label-icon { font-size: 1rem; }
.timer-label { font-family: var(--font-heading); font-size: 1rem; font-weight: 800; letter-spacing: 3px; color: var(--cyan-accent); }

.timer-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: auto 0;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-num {
    font-family: var(--font-mono);
    font-size: 5.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--cyan-accent);
    text-shadow: 0 0 30px var(--cyan-glow), 0 0 10px rgba(0, 240, 255, 0.8);
    background: rgba(0, 240, 255, 0.03);
    border: 1px solid rgba(0, 240, 255, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    min-width: 140px;
    text-align: center;
    transition: color 0.5s ease, text-shadow 0.5s ease, border-color 0.5s ease;
}

.time-colon {
    font-family: var(--font-mono);
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--scirian-blue);
    line-height: 1;
    margin-bottom: 1.5rem;
    animation: colonBlink 1s infinite;
}

@keyframes colonBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.time-sub {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Timer Warning / Danger Colors */
.center-section.timer-warning-state .time-num {
    color: var(--timer-warning);
    text-shadow: 0 0 30px rgba(245, 158, 11, 0.6);
    border-color: rgba(245, 158, 11, 0.4);
}
.center-section.timer-warning-state .timer-label { color: var(--timer-warning); }

.center-section.timer-danger-state .time-num {
    color: var(--timer-danger);
    text-shadow: 0 0 35px rgba(239, 68, 68, 0.8);
    border-color: rgba(239, 68, 68, 0.6);
    animation: dangerPulse 1s infinite alternate;
}
.center-section.timer-danger-state .timer-label { color: var(--timer-danger); }

@keyframes dangerPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.02); }
}

.center-motto {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 4px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.motto-dot { color: var(--scirian-blue); }
.motto-word.highlight { color: var(--cyan-accent); text-shadow: 0 0 10px var(--cyan-glow); }

.timer-progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 0.75rem;
}

.timer-progress-bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--scirian-blue), var(--cyan-accent));
    border-radius: 10px;
    box-shadow: 0 0 10px var(--cyan-accent);
    transition: width 1s linear, background 0.5s ease;
}

/* TIMES UP VIEW */
.times-up-container {
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
}

.times-up-flag {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 900;
    color: var(--timer-danger);
    text-shadow: 0 0 35px rgba(239, 68, 68, 0.9);
    letter-spacing: 4px;
    animation: flashAlert 0.8s infinite alternate;
}

.times-up-sub {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 3px;
}

.winner-soon-pill {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--cyan-accent);
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--cyan-accent);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 0 20px var(--cyan-glow);
    margin-top: 1rem;
}

@keyframes flashAlert {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0.6; transform: scale(0.98); }
}

/* WINNER REVEAL SCREEN */
.winner-screen-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.winner-event-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--text-primary);
}

.winner-title-badge {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--cyan-accent);
    background: rgba(0, 240, 255, 0.1);
    padding: 0.2rem 0.75rem;
    border-radius: 50px;
    border: 1px solid rgba(0, 240, 255, 0.3);
}

.winner-podium-cards {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 600px;
    margin: auto 0;
}

.champion-card {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(12, 19, 36, 0.9) 100%);
    border: 2px solid #f59e0b;
    border-radius: 16px;
    padding: 1.25rem 2rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 0 35px rgba(245, 158, 11, 0.35);
    animation: goldGlow 2s infinite alternate;
}

@keyframes goldGlow {
    0% { box-shadow: 0 0 25px rgba(245, 158, 11, 0.3); }
    100% { box-shadow: 0 0 45px rgba(245, 158, 11, 0.6); }
}

.champ-crown { font-size: 3.5rem; line-height: 1; }
.champ-title { font-family: var(--font-heading); font-size: 0.85rem; font-weight: 800; letter-spacing: 3px; color: #f59e0b; }
.champ-team-name { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 900; color: #ffffff; letter-spacing: 2px; text-shadow: 0 0 20px rgba(255, 255, 255, 0.5); margin: 0.25rem 0; }
.champ-score-pill { font-family: var(--font-mono); font-size: 1rem; font-weight: 800; color: var(--cyan-accent); background: rgba(0, 240, 255, 0.1); border: 1px solid rgba(0, 240, 255, 0.3); padding: 0.25rem 0.85rem; border-radius: 50px; }
.champ-sponsor { font-size: 0.65rem; font-family: var(--font-heading); letter-spacing: 1.5px; color: var(--text-muted); margin-top: 0.5rem; }

.runners-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    width: 100%;
}

.runner-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.runner-card.silver { border-color: rgba(148, 163, 184, 0.5); background: linear-gradient(90deg, rgba(148, 163, 184, 0.12) 0%, rgba(12, 19, 36, 0.8) 100%); }
.runner-card.bronze { border-color: rgba(217, 119, 6, 0.5); background: linear-gradient(90deg, rgba(217, 119, 6, 0.12) 0%, rgba(12, 19, 36, 0.8) 100%); }

.runner-medal { font-size: 1.5rem; }
.runner-info { display: flex; flex-direction: column; flex: 1; }
.runner-label { font-size: 0.6rem; font-family: var(--font-heading); font-weight: 700; color: var(--text-muted); letter-spacing: 1px; }
.runner-team { font-weight: 700; font-size: 0.95rem; color: #ffffff; }
.runner-score { font-family: var(--font-mono); font-size: 1rem; font-weight: 800; color: var(--cyan-accent); }

/* RIGHT SECTION: Leaderboard & Teams List */
.right-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 0;
}

.leaderboard-card {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    padding: 0.85rem;
    min-height: 0;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 0.4rem;
}

.card-title { font-family: var(--font-heading); font-size: 0.95rem; font-weight: 800; letter-spacing: 2px; color: var(--text-primary); }

.badge-live {
    font-size: 0.6rem;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--cyan-accent);
    background: rgba(0, 240, 255, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border: 1px solid rgba(0, 240, 255, 0.3);
}

.table-header {
    display: flex;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    padding: 0.25rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.col-rank { width: 45px; text-align: center; }
.col-team { flex: 1; text-align: left; padding-left: 0.5rem; }
.col-score { width: 60px; text-align: right; }

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    overflow-y: auto;
    flex: 1;
    padding-right: 0.2rem;
}

.leaderboard-list::-webkit-scrollbar,
.teams-grid::-webkit-scrollbar { width: 4px; }
.leaderboard-list::-webkit-scrollbar-thumb,
.teams-grid::-webkit-scrollbar-thumb { background: rgba(0, 240, 255, 0.2); border-radius: 4px; }

.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 0.4rem 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.leaderboard-item.rank-1 { background: linear-gradient(90deg, rgba(245, 158, 11, 0.15) 0%, rgba(255, 255, 255, 0.02) 100%); border-color: rgba(245, 158, 11, 0.4); }
.leaderboard-item.rank-2 { background: linear-gradient(90deg, rgba(148, 163, 184, 0.15) 0%, rgba(255, 255, 255, 0.02) 100%); border-color: rgba(148, 163, 184, 0.4); }
.leaderboard-item.rank-3 { background: linear-gradient(90deg, rgba(217, 119, 6, 0.15) 0%, rgba(255, 255, 255, 0.02) 100%); border-color: rgba(217, 119, 6, 0.4); }

.rank-badge { width: 45px; font-family: var(--font-heading); font-weight: 800; font-size: 0.9rem; text-align: center; }
.team-name { flex: 1; font-weight: 600; font-size: 0.85rem; padding-left: 0.5rem; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-score { width: 60px; font-family: var(--font-mono); font-weight: 700; font-size: 0.95rem; text-align: right; color: var(--cyan-accent); }

/* ALL TEAMS STATUS CARD */
.teams-card {
    display: flex;
    flex-direction: column;
    padding: 0.85rem;
    height: 275px;
    min-height: 275px;
    position: relative;
    overflow: hidden;
}

.teams-count { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-secondary); font-weight: 700; }

.teams-scroll-viewport {
    position: relative;
    overflow: hidden;
    height: 215px;
    min-height: 215px;
    max-height: 215px;
    margin-top: 0.4rem;
}

.teams-grid {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    width: 100% !important;
    gap: 0.45rem !important;
    will-change: transform;
    transform: translateZ(0);
    animation: scrollTeamsContinuous var(--scroll-duration, 20s) linear infinite;
}

/* Pause scroll when hovering over card viewport */
.teams-scroll-viewport:hover .teams-grid {
    animation-play-state: paused;
}

@keyframes scrollTeamsContinuous {
    0% {
        transform: translateY(-50%);
    }
    100% {
        transform: translateY(0%);
    }
}

.team-status-chip {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    min-width: 100% !important;
    box-sizing: border-box !important;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    backdrop-filter: blur(4px);
    transition: all 0.25s ease;
}

.team-status-chip:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 0 4px 14px rgba(6, 182, 212, 0.15);
    transform: translateX(4px);
}

.team-chip-info {
    display: flex;
    align-items: center;
    overflow: hidden;
    gap: 0.6rem;
    flex: 1;
}

.team-num { 
    font-family: var(--font-mono); 
    font-size: 0.7rem; 
    font-weight: 700;
    color: var(--cyan-accent); 
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.25);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    flex-shrink: 0;
}

.team-chip-name { font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    line-height: 1;
    flex-shrink: 0;
}

.status-dot { width: 6px; height: 6px; border-radius: 50%; }

/* Status Color Badges */
.status-registered { color: var(--status-registered); background: rgba(100, 116, 139, 0.15); border: 1px solid rgba(100, 116, 139, 0.3); }
.status-registered .status-dot { background: var(--status-registered); box-shadow: 0 0 6px var(--status-registered); }

.status-building { color: var(--status-building); background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.3); }
.status-building .status-dot { background: var(--status-building); box-shadow: 0 0 6px var(--status-building); }

.status-testing { color: var(--status-testing); background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.3); }
.status-testing .status-dot { background: var(--status-testing); box-shadow: 0 0 6px var(--status-testing); }

.status-submitted { color: var(--status-submitted); background: rgba(59, 130, 246, 0.12); border: 1px solid rgba(59, 130, 246, 0.3); }
.status-submitted .status-dot { background: var(--status-submitted); box-shadow: 0 0 6px var(--status-submitted); }

.status-completed { color: var(--status-completed); background: rgba(168, 85, 247, 0.12); border: 1px solid rgba(168, 85, 247, 0.3); }
.status-completed .status-dot { background: var(--status-completed); box-shadow: 0 0 6px var(--status-completed); }

/* --------------------------------------------------------------------------
   5. BOTTOM SECTION (TIMELINE + ANNOUNCEMENT + FOOTER)
   -------------------------------------------------------------------------- */
.bottom-section {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.timeline-card { padding: 0.6rem 1.25rem; }

.timeline-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.timeline-stage {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.timeline-icon { font-size: 0.85rem; }

.timeline-stage.completed { color: var(--scirian-blue); }

.timeline-stage.active {
    color: var(--cyan-accent);
    text-shadow: 0 0 10px var(--cyan-glow);
    font-size: 0.8rem;
}

.timeline-stage.active .timeline-icon {
    animation: activePulse 1.2s infinite alternate;
}

@keyframes activePulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.3); }
}

.timeline-connector {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 0.5rem;
}

.timeline-connector.completed { background: var(--scirian-blue); }

.bottom-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 0.75rem;
}

.announcement-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.65rem 1.25rem;
    background: linear-gradient(90deg, rgba(0, 240, 255, 0.08) 0%, rgba(12, 19, 36, 0.75) 100%);
    border-color: rgba(0, 240, 255, 0.25);
}

.announcement-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.announcement-icon { font-size: 1.1rem; }
.announcement-title { font-family: var(--font-heading); font-size: 0.75rem; font-weight: 800; letter-spacing: 2px; color: var(--cyan-accent); }

.announcement-content {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.5px;
}

.info-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1rem;
}

.info-stats { display: flex; align-items: center; gap: 0.6rem; }
.info-stat-item { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.stat-value { font-family: var(--font-mono); font-size: 0.85rem; font-weight: 800; color: var(--cyan-accent); }
.stat-label { font-size: 0.55rem; font-family: var(--font-heading); color: var(--text-muted); letter-spacing: 1px; margin-top: 0.15rem; }
.info-stat-divider { width: 1px; height: 20px; background: rgba(255, 255, 255, 0.1); }
.info-motto { font-family: var(--font-heading); font-size: 0.7rem; font-weight: 800; letter-spacing: 2px; color: var(--text-secondary); }

/* Updated Footer Bar */
.footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.footer-left { display: flex; align-items: center; gap: 0.5rem; }
.footer-brand { font-family: var(--font-heading); font-weight: 800; color: #ffffff; letter-spacing: 1.5px; }
.footer-sep { color: var(--scirian-blue); }
.footer-sponsor { font-size: 0.7rem; color: var(--text-secondary); font-weight: 600; letter-spacing: 1px; }

.footer-link {
    color: var(--cyan-accent);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
}
.footer-link:hover { text-decoration: underline; }

.footer-tag {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--text-secondary);
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   6. ORGANIZER ADMIN PANEL MODAL
   -------------------------------------------------------------------------- */
.admin-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(3, 5, 12, 0.88);
    backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.admin-modal-overlay.hidden { display: none !important; }

.admin-modal-container {
    background: #0b1222;
    border: 1px solid var(--cyan-accent);
    box-shadow: 0 0 50px rgba(0, 240, 255, 0.3);
    border-radius: 14px;
    width: 100%;
    max-width: 850px;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.admin-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: rgba(0, 240, 255, 0.05);
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
}

.admin-title { display: flex; align-items: center; gap: 0.75rem; }
.admin-logo-img { height: 28px; width: auto; object-fit: contain; filter: drop-shadow(0 0 8px rgba(27, 100, 242, 0.5)); }
.admin-title h3 { font-family: var(--font-heading); font-size: 1.1rem; letter-spacing: 2px; color: #ffffff; }
.admin-sub { font-size: 0.65rem; color: var(--text-secondary); letter-spacing: 1px; }

.admin-close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.75rem;
    cursor: pointer;
    line-height: 1;
}
.admin-close-btn:hover { color: #ffffff; }

.admin-modal-body {
    padding: 1.25rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.admin-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 1rem;
}

.winner-control-section {
    border-color: rgba(245, 158, 11, 0.4);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.admin-section-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    color: var(--cyan-accent);
    margin-bottom: 0.75rem;
}

.admin-btn-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.admin-btn {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.45rem 0.9rem;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary { background: var(--scirian-blue); color: #fff; }
.btn-primary:hover { background: #2563eb; }

.btn-success { background: #10b981; color: #fff; }
.btn-success:hover { background: #059669; }

.btn-warning { background: #f59e0b; color: #fff; }
.btn-warning:hover { background: #d97706; }

.btn-danger { background: #ef4444; color: #fff; }
.btn-danger:hover { background: #dc2626; }

.btn-info { background: rgba(0, 240, 255, 0.15); color: var(--cyan-accent); border-color: rgba(0, 240, 255, 0.3); }
.btn-info:hover { background: rgba(0, 240, 255, 0.3); }

.btn-gold { background: #f59e0b; color: #000; font-family: var(--font-heading); font-weight: 800; box-shadow: 0 0 15px rgba(245, 158, 11, 0.4); }
.btn-gold:hover { background: #fbbf24; }

.btn-secondary { background: rgba(255, 255, 255, 0.1); color: var(--text-primary); border-color: rgba(255, 255, 255, 0.2); }

.admin-input-group { display: flex; gap: 0.5rem; align-items: center; }
.admin-input-group label { font-size: 0.8rem; color: var(--text-secondary); }

.admin-input-group input[type="text"],
.admin-input-group input[type="number"],
.admin-input-group select,
.admin-input-row input,
.admin-input-row select,
.form-group-sm select {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 0.45rem 0.65rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-family: var(--font-body);
}

.admin-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.form-group-sm {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.form-group-sm label {
    font-size: 0.65rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-secondary);
}

.mt-2 { margin-top: 0.5rem; }

.admin-teams-table-wrapper {
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
}

.admin-teams-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.admin-teams-table th,
.admin-teams-table td {
    padding: 0.45rem 0.6rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-teams-table th {
    background: rgba(0, 0, 0, 0.5);
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.65rem;
}

.admin-teams-table input,
.admin-teams-table select {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 0.25rem 0.4rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

.admin-input-row { display: flex; gap: 0.5rem; }

.admin-modal-footer {
    padding: 0.75rem 1.25rem;
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-tip { font-size: 0.7rem; color: var(--text-muted); }
.btn-text-reset { background: none; border: none; color: #ef4444; font-size: 0.7rem; cursor: pointer; text-decoration: underline; }

/* Responsive adjustments */
@media (max-width: 1280px) {
    .main-content { grid-template-columns: 180px 1fr 360px; }
    .time-num { font-size: 4rem; min-width: 100px; }
    .time-colon { font-size: 3.5rem; }
    .brand-huge { font-size: 1.6rem; }
}

/* --------------------------------------------------------------------------
   LIGHT MINIMAL THEME OVERRIDES
   -------------------------------------------------------------------------- */
[data-theme="light"] {
    --bg-dark: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --border-color: #cbd5e1;
    --border-glow: rgba(27, 100, 242, 0.3);
    
    --scirian-blue: #1b64f2;
    --scirian-blue-glow: rgba(27, 100, 242, 0.25);
    --scirian-teal: #0d9488;
    --cyan-accent: #0284c7;
    --cyan-glow: rgba(2, 132, 199, 0.25);
    --navy-dark: #0f172a;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    --timer-normal: #0284c7;
}

[data-theme="light"] body {
    background-color: #f1f5f9;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(27, 100, 242, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(13, 148, 136, 0.05) 0%, transparent 40%);
    color: #0f172a;
}

[data-theme="light"] .dashboard-container {
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .header-bar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

[data-theme="light"] .header-title {
    color: #0f172a;
    text-shadow: none;
}

[data-theme="light"] .year-badge {
    background: #eff6ff;
    color: #1b64f2;
    border: 1px solid #bfdbfe;
    box-shadow: none;
}

[data-theme="light"] .highlight-scirian {
    color: #1b64f2;
    text-shadow: none;
}

[data-theme="light"] .logo-brand {
    color: #0f172a;
    background: linear-gradient(135deg, #0f172a 0%, #1b64f2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .card-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .card-box:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
}

[data-theme="light"] .section-title {
    color: #1e293b;
}

[data-theme="light"] .section-title::after {
    background: linear-gradient(90deg, #1b64f2, transparent);
}

[data-theme="light"] .timer-display {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #0284c7;
    text-shadow: none;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .timer-num {
    color: #0f172a;
    text-shadow: none;
}

[data-theme="light"] .timer-colon {
    color: #0284c7;
    text-shadow: none;
}

[data-theme="light"] .time-box {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

[data-theme="light"] .time-label {
    color: #64748b;
}

[data-theme="light"] .announcement-banner {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0369a1;
}

[data-theme="light"] .announcement-icon {
    color: #0284c7;
}

[data-theme="light"] .announcement-text {
    color: #0f172a;
}

[data-theme="light"] .leaderboard-table th {
    background: #f8fafc;
    color: #475569;
    border-bottom: 2px solid #e2e8f0;
}

[data-theme="light"] .leaderboard-table td {
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}

[data-theme="light"] .leaderboard-table tr:hover {
    background: #f8fafc;
}

[data-theme="light"] .team-name {
    color: #0f172a;
}

[data-theme="light"] .team-score-num {
    color: #0f172a;
}

[data-theme="light"] .team-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

[data-theme="light"] .team-card:hover {
    background: #ffffff;
    border-color: #1b64f2;
    box-shadow: 0 4px 16px rgba(27, 100, 242, 0.08);
}

[data-theme="light"] .team-card-number {
    color: #64748b;
}

[data-theme="light"] .team-card-title {
    color: #0f172a;
}

[data-theme="light"] .stage-step {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

[data-theme="light"] .stage-step.active {
    background: #eff6ff;
    color: #1b64f2;
    border-color: #1b64f2;
    box-shadow: 0 2px 8px rgba(27, 100, 242, 0.15);
}

[data-theme="light"] .stage-step.completed {
    background: #f0fdf4;
    color: #166534;
    border-color: #86efac;
}

[data-theme="light"] .header-btn {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
}

[data-theme="light"] .header-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #94a3b8;
}

[data-theme="light"] .live-status-pill {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #059669;
}

[data-theme="light"] .footer-bar {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
}

[data-theme="light"] .admin-modal-container {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .admin-modal-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

[data-theme="light"] .admin-title h3 {
    color: #0f172a;
}

[data-theme="light"] .admin-sub {
    color: #64748b;
}

[data-theme="light"] .admin-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

[data-theme="light"] .admin-section-title {
    color: #1b64f2;
}

[data-theme="light"] .admin-input-group label,
[data-theme="light"] .form-group-sm label,
[data-theme="light"] .admin-table th {
    color: #475569;
}

[data-theme="light"] .admin-input-group input,
[data-theme="light"] .admin-input-group select,
[data-theme="light"] .form-group-sm select,
[data-theme="light"] .admin-table input,
[data-theme="light"] .admin-table select {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
}

[data-theme="light"] .admin-table th {
    background: #f1f5f9;
}

[data-theme="light"] .admin-table td {
    border-bottom: 1px solid #e2e8f0;
    color: #1e293b;
}

[data-theme="light"] .stat-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

[data-theme="light"] .stat-val {
    color: #0f172a;
}

[data-theme="light"] .stat-lbl {
    color: #64748b;
}

[data-theme="light"] .winner-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

