/* 1. GLOBAL VARIABLES & THEME */
:root {
    --bg-dark: #0f172a;
    --panel-bg: #1e293b;
    --card-bg: #0f172a;
    --accent: #3b82f6;
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --success: #22c55e;
    --danger: #ef4444;
    --orange: #f59e0b;
    --border: #334155;
}

/* 2. BASE STYLES */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Inter', 'Hind Siliguri', sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

/* 3. ADMIN DASHBOARD LAYOUT */
.admin-wrapper {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    padding: 20px;
    height: 100vh;
}

.control-panel, .score-panel {
    background: var(--panel-bg);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border);
    overflow-y: auto;
}

/* 4. TEAM GRID (2-Column Admin List) */
.team-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr);
    gap: 15px; 
}

.team-card { 
    background: var(--card-bg); 
    padding: 15px; 
    border-radius: 10px; 
    border: 1px solid var(--border); 
}

.team-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-bottom: 1px solid var(--panel-bg);
    padding-bottom: 5px;
}

.team-name { font-weight: 700; flex: 1; font-size: 1.1rem; }
.team-score { 
    color: var(--accent); 
    font-weight: 900; 
    font-size: 2.5rem; /* Large Right-Aligned Score */
    text-align: right;
}

/* 5. PROJECTOR / PUBLIC DISPLAY */
#presentation-wrapper {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
}

#q-text { font-size: 3.5rem; text-align: center; margin-bottom: 30px; }

/* Dynamic Leaderboard Scaling (Public) */
#score-ticker { display: flex; justify-content: center; gap: 15px; }
.team-score-box { background: var(--panel-bg); border-radius: 10px; flex: 1; padding: 15px; text-align: center; }

.count-8 .team-points { font-size: 1.8rem; }
.count-4 .team-points { font-size: 3rem; }

/* 6. BUTTONS & UI */
.btn { padding: 10px 15px; border-radius: 6px; border: none; cursor: pointer; font-weight: 700; color: white; }
.btn-success { background: var(--success); border: 2px solid #bef264; }
.btn-primary { background: #475569; }
.btn-blue { background: var(--accent); }