/* --- FORCED RED THEME (NO BLUE ALLOWED) --- */
:root {
    --bg-color: #0a0a0a;
    --card-bg: #1f1f1f;
    --primary: #d0021b; /* 2K RED */
    --text-main: #f5f5f5;
    --border-color: #d0021b;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Rajdhani', sans-serif;
    margin: 0; 
    min-height: 100vh; 
    display: flex; 
    flex-direction: column;
}

.container { max-width: 1200px; margin: 0 auto; padding: 20px; width: 100%; box-sizing: border-box; flex: 1; }

/* Force Red Borders & Backgrounds */
.card, .navbar, .form-container {
    background-color: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-main);
    border-radius: 8px; padding: 20px; margin-bottom: 20px;
}

.navbar {
    border-bottom: 2px solid var(--primary) !important;
    display: flex; justify-content: space-between; align-items: center; padding: 15px 30px;
}

/* Force Red Text Elements */
.logo, h1, h2, h3, .accent, .nav-item:hover {
    color: var(--primary) !important;
}
.logo { font-weight: 900; font-size: 28px; letter-spacing: 3px; text-shadow: 0 0 10px rgba(208, 2, 27, 0.5); }

.nav-item { color: #fff; text-decoration: none; font-weight: 700; margin-left: 20px; }

/* Force Red Buttons */
.btn-primary, button {
    background-color: var(--primary) !important;
    color: #fff !important;
    font-weight: 800; border: none; padding: 12px 24px;
    border-radius: 4px; cursor: pointer; width: 100%; display: block;
}
.btn-primary:hover { filter: brightness(1.1); box-shadow: 0 0 15px rgba(208, 2, 27, 0.6); }
.btn-primary:disabled { background-color: #444 !important; cursor: not-allowed; box-shadow: none; }

/* Force Inputs */
input, select {
    background: #000 !important; border: 1px solid var(--primary) !important;
    color: #fff !important; padding: 12px; width: 100%; margin-bottom: 15px; border-radius: 4px; box-sizing: border-box;
}

/* Layout */
.dashboard-grid { display: grid; grid-template-columns: 7fr 3fr; gap: 40px; }
@media(max-width:768px){ .dashboard-grid { grid-template-columns: 1fr; } }

/* --- LEADERBOARD & RANKING UPDATES --- */
.leaderboard-card h3 {
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.tabs {
    display: flex; gap: 15px; border-bottom: 1px solid #333; margin-bottom: 15px;
}
.tab-btn {
    background: none !important; border: none !important; color: #888 !important;
    padding: 10px 0 !important; width: auto !important; cursor: pointer;
    font-weight: 700; text-transform: uppercase; font-size: 0.9rem; position: relative;
    transition: color 0.3s;
}
.tab-btn.active { color: var(--primary) !important; }
.tab-btn.active::after {
    content: ''; position: absolute; bottom: -1px; left: 0; width: 100%;
    height: 2px; background-color: var(--primary);
}

.ranking-list li, .entry-row {
    display: flex; justify-content: space-between; padding: 12px 0 8px 0;
    border-bottom: 1px solid var(--primary) !important; list-style: none; font-size: 0.95rem;
}
.ranking-list { padding: 0; margin: 0; }

.footer {
    background-color: #1a1a1a; color: #888; text-align: center;
    padding: 15px; font-size: 0.8rem; border-top: 1px solid var(--primary);
    width: 100%; margin-top: auto;
}

.stat-box { border: 1px solid rgba(255,255,255,0.1); min-width: 100px; text-align: center; }

/* --- MODERN GAME UI SPECIFIC --- */
.game-ui-container {
    background: linear-gradient(135deg, #111 0%, #1a1a1a 100%);
    border: 1px solid var(--primary);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 0 30px rgba(208, 2, 27, 0.15);
    max-width: 700px;
    margin: 40px auto;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.question-text {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    line-height: 1.4;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
}

.option-btn {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid #444 !important;
    padding: 20px !important;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.option-btn:hover {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(208, 2, 27, 0.4);
}

.timer-wrapper {
    margin-bottom: 20px;
    position: relative;
}

.timer-display {
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    display: block;
    margin-bottom: 5px;
}

.timer-bar-bg {
    width: 100%;
    height: 12px;
    background: #333;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    border: 1px solid #555;
}

.timer-fill {
    height: 100%;
    background: var(--primary);
    width: 100%;
    transition: width 0.1s linear;
    position: absolute;
    top: 0; left: 0;
    z-index: 1;
}

.threshold-marker {
    position: absolute;
    top: 0;
    height: 100%;
    width: 3px;
    background: #ffd700; /* Gold/Yellow for Bonus */
    z-index: 10;
    box-shadow: 0 0 5px #ffd700;
}