/* Mobile-first responsive design */

/* CSS Custom Properties for consistent colors and gradients */
:root {
    /* Medal colors (saturated) */
    --gold-color: #ffd700;
    --silver-color: #e5e5e5;
    --bronze-color: #ff8c42;

    /* Dark mode backgrounds */
    --dark-bg-primary: #1a1a2e;
    --dark-bg-secondary: #16213e;
    --dark-card: #0f3460;
    --dark-card-hover: #1a4d7a;

    /* Accent colors */
    --neon-cyan: #00d4ff;
    --neon-blue: #00f2fe;
    --bright-purple: #a855f7;

    /* Text colors */
    --text-primary: #ffffff;
    --text-secondary: #a8b2d1;
    --text-muted: #6b7a99;

    /* Legacy (for draft page compatibility) */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-color: #667eea;
    --primary-dark: #764ba2;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--primary-gradient);
    min-height: 100vh;
    padding: 10px;
    padding-top: 90px;
}

/* Dark mode for leaderboard page */
body.leaderboard-page {
    background: linear-gradient(135deg, var(--dark-bg-primary) 0%, var(--dark-bg-secondary) 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

/* Dark container for leaderboard */
body.leaderboard-page .container {
    background: var(--dark-bg-secondary);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 10px;
    font-size: 24px;
}

body.leaderboard-page h1 {
    color: var(--text-primary);
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
    font-size: 13px;
}

body.leaderboard-page .subtitle {
    color: var(--text-secondary);
}

/* Bookmark button */
.bookmark-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto 20px auto;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.bookmark-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.bookmark-btn:active {
    transform: translateY(0);
}

.bookmark-icon {
    font-size: 16px;
}

.bookmark-text {
    font-size: 14px;
}

/* Dark mode: Bookmark button */
body.leaderboard-page .bookmark-btn {
    background: linear-gradient(135deg, var(--dark-card) 0%, #1a4d7a 100%);
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 2px 8px rgba(0, 212, 255, 0.3);
}

body.leaderboard-page .bookmark-btn:hover {
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.4);
    border-color: var(--neon-blue);
}

/* Countdown timer styles */
.countdown-timer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.countdown-label {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    opacity: 0.9;
}

.countdown-display {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.countdown-number {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 10px;
    font-size: 28px;
    font-weight: bold;
    min-width: 60px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.countdown-text {
    font-size: 12px;
    margin-top: 5px;
    opacity: 0.9;
    font-weight: 500;
}

/* Draft closed banner styles */
.draft-closed-banner {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
}

.draft-closed-banner h2 {
    color: white;
    margin-bottom: 15px;
    font-size: 24px;
}

.draft-closed-banner p {
    font-size: 16px;
    margin-bottom: 10px;
}

.results-link-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.banner-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.results-link {
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 6px;
    display: inline-block;
    transition: background 0.3s;
}

.results-link:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Instructions section styles */
.instructions-section {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid #2196f3;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.instructions-section h2 {
    color: #1565c0;
    margin-bottom: 15px;
    font-size: 20px;
    text-align: center;
}

.instructions-content {
    display: grid;
    gap: 12px;
}

.instruction-item {
    background: white;
    padding: 12px;
    border-radius: 6px;
    border: 2px solid #ddd;
}

.instruction-item strong {
    color: #1976d2;
    font-size: 14px;
    display: block;
    margin-bottom: 5px;
}

.instruction-item p {
    color: #333;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

@media (min-width: 768px) {
    .instructions-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .instruction-item:last-child {
        grid-column: 1 / -1;
    }
}

.view-results-btn {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.view-results-btn:hover {
    background: #5568d3;
}

.form-section {
    margin-bottom: 25px;
}

.form-section h2 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 18px;
}

.input-group {
    margin-bottom: 15px;
}

.input-with-button {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.input-with-button input {
    flex: 1;
}

.generate-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.generate-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.generate-btn:active:not(:disabled) {
    transform: translateY(0);
}

.generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.input-hint {
    margin-top: 6px;
    font-size: 13px;
    color: #666;
    font-style: italic;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
    font-size: 16px;
}

input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
}

input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input[type="email"]:focus {
    outline: none;
    border-color: #667eea;
}

.stats-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.stat {
    text-align: center;
}

.stat-label {
    font-size: 11px;
    color: #666;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.progress-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 15px;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}


.progress-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.progress-bar {
    width: 100%;
    height: 24px;
    background: #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.progress-bar-fill.over-budget {
    background: linear-gradient(90deg, #dc3545 0%, #c82333 100%);
}

.warning-message {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 14px;
}

.warning-message.hidden {
    display: none;
}

.search-box {
    margin-bottom: 15px;
}

.search-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
}

.sort-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
    font-size: 14px;
}

.sort-controls label {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-weight: normal;
}

.sort-controls input[type="radio"] {
    cursor: pointer;
}

.selected-countries-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.clear-all-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.clear-all-btn:hover {
    background: #c82333;
}

.clear-all-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.selected-countries {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 50px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.selected-countries.empty::after {
    content: 'No countries selected yet';
    color: #999;
    font-style: italic;
    font-size: 14px;
}

.selected-chip {
    background: #667eea;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 14px;
}

.selected-chip:hover {
    background: #5568d3;
}

.selected-chip:active {
    transform: scale(0.95);
}

.country-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 30px;
}

.country-card {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
}

.country-card:active:not(.selected):not(.disabled) {
    transform: scale(0.98);
}

.country-card:hover:not(.selected):not(.disabled) {
    border-color: #667eea;
    background: #f8f9ff;
}

.country-card.selected {
    background: #e8e8e8;
    border-color: #999;
    opacity: 0.6;
    cursor: pointer;
}

.country-card.selected:hover {
    opacity: 0.7;
    border-color: #667eea;
}

.country-card.selected:active {
    transform: scale(0.98);
}

.country-card.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.country-name {
    font-weight: 500;
    color: #333;
    font-size: 15px;
}

.country-points {
    background: #667eea;
    color: white;
    padding: 6px 12px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 14px;
    min-width: 40px;
    text-align: center;
}

.country-card.selected .country-points,
.country-card.disabled .country-points {
    background: #999;
}

/* Validation Error Banner */
.validation-error-banner {
    display: none; /* Hidden by default */
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    border: 3px solid #ff0000;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0 20px 0;
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.4);
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.validation-error-banner .error-icon {
    font-size: 48px;
    margin-bottom: 15px;
    text-align: center;
}

.validation-error-banner .error-content h3 {
    color: white;
    font-size: 22px;
    margin: 0 0 15px 0;
    text-align: center;
    font-weight: bold;
}

.validation-error-banner #validationErrorList {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 20px 20px 20px 45px;
    margin: 0;
    list-style-position: outside;
}

.validation-error-banner #validationErrorList li {
    color: #cc0000;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.5;
}

.validation-error-banner #validationErrorList li:last-child {
    margin-bottom: 0;
}

.submit-section {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
}

button[type="submit"] {
    background: #667eea;
    color: white;
    border: none;
    padding: 20px 50px;
    border-radius: 12px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

button[type="submit"]:hover:not(:disabled) {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

button[type="submit"]:active:not(:disabled) {
    transform: scale(0.98);
}

button[type="submit"]:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Visually disabled submit button (button remains clickable for validation errors) */
button[type="submit"].btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #888;
    border-color: #666;
}

button[type="submit"].btn-disabled:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    background: #888;
}

.success-message {
    display: none;
    background: #d4edda;
    border: 2px solid #28a745;
    color: #155724;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-top: 20px;
}

.success-message.show {
    display: block;
}

.success-message h2 {
    color: #155724;
    margin-bottom: 15px;
    font-size: 22px;
}

.success-message p {
    font-size: 16px;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

.confirmation-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.confirmation-overlay.show {
    display: flex;
}

.confirmation-dialog {
    background: white;
    padding: 20px;
    border-radius: 12px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.confirmation-dialog h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 20px;
}

.confirmation-dialog p {
    color: #666;
    margin-bottom: 10px;
    font-size: 14px;
}

.confirmation-dialog .draft-summary {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
}

.confirmation-dialog .draft-summary strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.confirmation-dialog .country-list {
    max-height: 150px;
    overflow-y: auto;
    font-size: 13px;
    color: #555;
}

.confirmation-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.confirmation-buttons button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cancel {
    background: #6c757d;
    color: white;
}

.btn-cancel:hover {
    background: #5a6268;
}

.btn-confirm {
    background: #28a745;
    color: white;
}

.btn-confirm:hover {
    background: #218838;
}

/* Tablet and up */
@media (min-width: 768px) {
    body {
        padding: 20px;
    }

    .container {
        padding: 30px;
    }

    body {
        padding-top: 100px;
    }

    .progress-bar-container {
        padding: 15px 20px;
    }

    h1 {
        font-size: 32px;
    }

    .subtitle {
        font-size: 14px;
    }

    .countdown-label {
        font-size: 16px;
    }

    .countdown-display {
        gap: 20px;
    }

    .countdown-unit {
        min-width: 80px;
    }

    .countdown-number {
        font-size: 36px;
        padding: 12px;
        min-width: 80px;
    }

    .countdown-text {
        font-size: 13px;
        margin-top: 8px;
    }

    .stats-bar {
        grid-template-columns: repeat(3, 1fr);
        padding: 20px;
    }

    .stat-label {
        font-size: 12px;
    }

    .stat-value {
        font-size: 24px;
    }

    .country-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    button[type="submit"] {
        width: auto;
    }
}

/* Desktop and up */
@media (min-width: 1024px) {
    .country-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .country-card:hover:not(.selected):not(.disabled) {
        transform: translateY(-2px);
    }
}

/* Prize pool section styles */
.prize-pool-section {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid #2196f3;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

/* Dark mode: Prize pool section */
body.leaderboard-page .prize-pool-section {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(0, 242, 254, 0.08) 100%);
    border-left: 4px solid var(--neon-cyan);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.15);
}

.prize-pool-section h3 {
    color: #1565c0;
    margin: 0 0 8px 0;
    font-size: 18px;
}

/* Dark mode: Prize pool heading */
body.leaderboard-page .prize-pool-section h3 {
    color: var(--neon-cyan);
}

.prize-description {
    color: #1565c0;
    font-size: 14px;
    margin: 0 0 12px 0;
}

/* Dark mode: Prize description */
body.leaderboard-page .prize-description {
    color: var(--text-secondary);
}

.prize-breakdown {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.prize-place {
    background: rgba(255, 255, 255, 0.7);
    color: #1565c0;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
}

/* Dark mode: Prize places */
body.leaderboard-page .prize-place {
    background: rgba(0, 212, 255, 0.2);
    color: var(--text-primary);
}

.prize-note {
    color: #1976d2;
    font-size: 12px;
    font-style: italic;
    margin: 0;
}

/* Dark mode: Prize note */
body.leaderboard-page .prize-note {
    color: var(--text-muted);
}

/* Donation section styles */
.donation-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
    text-align: center;
}

/* Dark mode: Donation section */
body.leaderboard-page .donation-section {
    border-top: 2px solid rgba(0, 212, 255, 0.3);
}

.donation-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    font-weight: 600;
}

/* Dark mode: Donation title */
body.leaderboard-page .donation-title {
    color: var(--text-secondary);
}

.donation-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.donation-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.donation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.paypal-btn {
    background: #0070ba;
    color: white;
}

.venmo-btn {
    background: #008CFF;
    color: white;
}

/* Leaderboard-specific styles (index.html) */
.last-updated {
    text-align: center;
    color: #999;
    font-size: 11px;
    margin-bottom: 20px;
}

body.leaderboard-page .last-updated {
    color: var(--text-muted);
}

.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 4px;
}

body.leaderboard-page .tabs {
    background: rgba(15, 52, 96, 0.6);
}

.tab {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    border-radius: 8px;
    transition: all 0.3s;
    min-height: 48px;
}

body.leaderboard-page .tab {
    color: var(--text-secondary);
}

.tab.active {
    background: white;
    color: #667eea;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

body.leaderboard-page .tab.active {
    background: var(--dark-card);
    color: var(--text-primary);
    border-bottom: 3px solid var(--neon-cyan);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Medal Progress Text */
.medal-progress-text {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 20px;
    padding: 12px;
}

body.leaderboard-page .medal-progress-text {
    color: var(--neon-cyan);
}

/* Tie-breaker notice section at bottom */
.tie-breaker-notice-section {
    margin-bottom: 20px;
}

.participant-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    border-left: 4px solid #667eea;
    transition: transform 0.3s, box-shadow 0.3s;
}

body.leaderboard-page .participant-card {
    background: var(--dark-card);
    border-left-color: var(--neon-cyan);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.15);
    margin-bottom: 20px;
    padding: 20px;
}

body.leaderboard-page .participant-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 212, 255, 0.25);
}

.participant-card.rank-1 {
    border-left-color: #FFD700;
    border-left-width: 6px;
    background: linear-gradient(135deg, #fff9e6 0%, #fffbf0 50%, #f8f9fa 100%);
    padding: 20px;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
    margin-bottom: 16px;
    animation: goldShimmer 3s ease-in-out infinite;
}

body.leaderboard-page .participant-card.rank-1 {
    background: linear-gradient(135deg, #2d1f0d 0%, #4a3517 100%);
    border-left-color: var(--gold-color);
    border-left-width: 6px;
    padding: 24px;
    margin-bottom: 24px;
    animation: goldShimmerDark 3s ease-in-out infinite;
}

.participant-card.rank-2 {
    border-left-color: #C0C0C0;
    border-left-width: 6px;
    background: linear-gradient(135deg, #f5f5f5 0%, #f8f9fa 100%);
    padding: 18px;
    box-shadow: 0 4px 16px rgba(192, 192, 192, 0.25);
    margin-bottom: 14px;
}

body.leaderboard-page .participant-card.rank-2 {
    background: linear-gradient(135deg, #1f2326 0%, #2d3338 100%);
    border-left-color: var(--silver-color);
    border-left-width: 6px;
    padding: 22px;
    box-shadow: 0 5px 20px rgba(229, 229, 229, 0.3);
    margin-bottom: 22px;
}

.participant-card.rank-3 {
    border-left-color: #CD7F32;
    border-left-width: 6px;
    background: linear-gradient(135deg, #fff4ed 0%, #f8f9fa 100%);
    padding: 18px;
    box-shadow: 0 4px 16px rgba(205, 127, 50, 0.25);
    margin-bottom: 14px;
}

body.leaderboard-page .participant-card.rank-3 {
    background: linear-gradient(135deg, #2d1f17 0%, #4a3527 100%);
    border-left-color: var(--bronze-color);
    border-left-width: 6px;
    padding: 22px;
    box-shadow: 0 5px 20px rgba(255, 140, 66, 0.3);
    margin-bottom: 22px;
}

@keyframes goldShimmer {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow: 0 8px 24px rgba(255, 215, 0, 0.5);
    }
}

@keyframes goldShimmerDark {
    0%, 100% {
        box-shadow: 0 6px 24px rgba(255, 215, 0, 0.4);
    }
    50% {
        box-shadow: 0 8px 28px rgba(255, 215, 0, 0.6);
    }
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.card-rank {
    font-size: 28px;
    font-weight: bold;
    color: #667eea;
    line-height: 1;
}

body.leaderboard-page .card-rank {
    color: var(--neon-cyan);
}

.card-rank.rank-1 { color: #FFD700; }
.card-rank.rank-2 { color: #C0C0C0; }
.card-rank.rank-3 { color: #CD7F32; }

body.leaderboard-page .card-rank.rank-1 { color: var(--gold-color); }
body.leaderboard-page .card-rank.rank-2 { color: var(--silver-color); }
body.leaderboard-page .card-rank.rank-3 { color: var(--bronze-color); }

.card-info {
    flex: 1;
    margin-left: 12px;
}

.team-name {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.6;
}

/* Dynamic font sizing for long team names */
.team-name.long-name {
    font-size: 15px;
}

.team-name.very-long-name {
    font-size: 13px;
}

body.leaderboard-page .team-name.long-name {
    font-size: 17px;
}

body.leaderboard-page .team-name.very-long-name {
    font-size: 15px;
}

.rank-1 .team-name.long-name {
    font-size: 17px;
}

.rank-1 .team-name.very-long-name {
    font-size: 15px;
}

body.leaderboard-page .rank-1 .team-name.long-name {
    font-size: 19px;
}

body.leaderboard-page .rank-1 .team-name.very-long-name {
    font-size: 17px;
}

.rank-2 .team-name.long-name,
.rank-3 .team-name.long-name {
    font-size: 16px;
}

.rank-2 .team-name.very-long-name,
.rank-3 .team-name.very-long-name {
    font-size: 14px;
}

body.leaderboard-page .rank-2 .team-name.long-name,
body.leaderboard-page .rank-3 .team-name.long-name {
    font-size: 18px;
}

body.leaderboard-page .rank-2 .team-name.very-long-name,
body.leaderboard-page .rank-3 .team-name.very-long-name {
    font-size: 16px;
}

/* Long name styling for confirmation and success messages */
#confirmTeamName.long-name,
#successTeamName.long-name {
    font-size: 0.9em;
}

#confirmTeamName.very-long-name,
#successTeamName.very-long-name {
    font-size: 0.8em;
}

body.leaderboard-page .team-name {
    font-size: 20px;
    color: var(--text-primary);
}

.rank-1 .team-name {
    font-size: 20px;
}

body.leaderboard-page .rank-1 .team-name {
    font-size: 22px;
}

.rank-2 .team-name {
    font-size: 19px;
}

body.leaderboard-page .rank-2 .team-name {
    font-size: 21px;
}

.rank-3 .team-name {
    font-size: 19px;
}

body.leaderboard-page .rank-3 .team-name {
    font-size: 21px;
}

.medal-emoji {
    font-size: 22px;
    line-height: 1;
}

.participant-name {
    font-size: 14px;
    color: #666;
}

body.leaderboard-page .participant-name {
    font-size: 15px;
    color: var(--text-secondary);
}

.card-score {
    font-size: 32px;
    font-weight: bold;
    color: #667eea;
    line-height: 1;
}

body.leaderboard-page .card-score {
    color: var(--neon-cyan);
}

.rank-1 .card-score {
    font-size: 40px;
    color: #FFD700;
    text-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
}

body.leaderboard-page .rank-1 .card-score {
    font-size: 44px;
    color: var(--gold-color);
    text-shadow: 0 2px 8px rgba(255, 215, 0, 0.5);
}

.rank-2 .card-score {
    font-size: 36px;
    color: #C0C0C0;
}

body.leaderboard-page .rank-2 .card-score {
    font-size: 40px;
    color: var(--silver-color);
}

.rank-3 .card-score {
    font-size: 36px;
    color: #CD7F32;
}

body.leaderboard-page .rank-3 .card-score {
    font-size: 40px;
    color: var(--bronze-color);
}

.medal-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.medal-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
}

.gold-badge {
    background: #FFD700;
    color: #333;
}

.silver-badge {
    background: #C0C0C0;
    color: #333;
}

.bronze-badge {
    background: #CD7F32;
    color: white;
}

/* Dark mode: Medal badges */
body.leaderboard-page .gold-badge {
    background: linear-gradient(135deg, #b8860b 0%, #ffd700 100%);
    color: #1a1a2e;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

body.leaderboard-page .silver-badge {
    background: linear-gradient(135deg, #a0a0a0 0%, #e5e5e5 100%);
    color: #1a1a2e;
    box-shadow: 0 2px 8px rgba(229, 229, 229, 0.3);
}

body.leaderboard-page .bronze-badge {
    background: linear-gradient(135deg, #a0522d 0%, #ff8c42 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(255, 140, 66, 0.3);
}

.countries-list {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
}

/* Dark mode: Countries list */
body.leaderboard-page .countries-list {
    color: var(--text-muted);
    font-size: 13px;
}

/* Expand/Collapse Button */
.expand-btn {
    width: 100%;
    margin-top: 12px;
    padding: 10px 16px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 8px;
    color: #667eea;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

body.leaderboard-page .expand-btn {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
    color: var(--neon-cyan);
}

.expand-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateY(-1px);
}

body.leaderboard-page .expand-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--neon-cyan);
}

.expand-btn:active {
    transform: translateY(0);
}

.expand-btn.expanded {
    background: rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

body.leaderboard-page .expand-btn.expanded {
    background: rgba(0, 212, 255, 0.15);
    border-color: var(--neon-cyan);
}

.expand-icon {
    font-size: 10px;
    transition: transform 0.3s ease;
}

/* Country Breakdown Section */
.country-breakdown {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0,0,0,0.1);
    animation: slideDown 0.3s ease-out;
}

body.leaderboard-page .country-breakdown {
    border-top-color: rgba(255,255,255,0.1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}

.breakdown-header {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

body.leaderboard-page .breakdown-header {
    color: var(--text-primary);
}

.breakdown-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.breakdown-table thead th {
    background: rgba(102, 126, 234, 0.1);
    padding: 8px 6px;
    text-align: left;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #667eea;
    border-bottom: 2px solid rgba(102, 126, 234, 0.3);
}

body.leaderboard-page .breakdown-table thead th {
    background: rgba(0, 212, 255, 0.1);
    color: var(--neon-cyan);
    border-bottom-color: rgba(0, 212, 255, 0.3);
}

.breakdown-table tbody tr {
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: background 0.2s ease;
}

body.leaderboard-page .breakdown-table tbody tr {
    border-bottom-color: rgba(255,255,255,0.05);
}

.breakdown-table tbody tr:hover {
    background: rgba(102, 126, 234, 0.05);
}

body.leaderboard-page .breakdown-table tbody tr:hover {
    background: rgba(0, 212, 255, 0.05);
}

.breakdown-table tbody tr.has-medals {
    background: rgba(102, 126, 234, 0.03);
}

body.leaderboard-page .breakdown-table tbody tr.has-medals {
    background: rgba(0, 212, 255, 0.03);
}

.breakdown-table tbody tr.no-medals {
    opacity: 0.5;
}

.breakdown-table td {
    padding: 10px 6px;
    vertical-align: middle;
}

.country-name-cell {
    font-weight: 500;
    color: #333;
    font-size: 13px;
}

body.leaderboard-page .country-name-cell {
    color: var(--text-primary);
}

.medals-cell {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    align-items: center;
}

.mini-medal {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.mini-medal.gold {
    background: rgba(255, 215, 0, 0.15);
    color: #b8860b;
}

body.leaderboard-page .mini-medal.gold {
    background: rgba(255, 215, 0, 0.2);
    color: var(--gold-color);
}

.mini-medal.silver {
    background: rgba(192, 192, 192, 0.15);
    color: #808080;
}

body.leaderboard-page .mini-medal.silver {
    background: rgba(192, 192, 192, 0.2);
    color: var(--silver-color);
}

.mini-medal.bronze {
    background: rgba(205, 127, 50, 0.15);
    color: #8b4513;
}

body.leaderboard-page .mini-medal.bronze {
    background: rgba(255, 140, 66, 0.2);
    color: var(--bronze-color);
}

.no-medals-text {
    color: #999;
    font-size: 12px;
}

body.leaderboard-page .no-medals-text {
    color: var(--text-muted);
}

.points-cell {
    text-align: right;
    font-weight: 600;
    color: #999;
    font-size: 14px;
}

body.leaderboard-page .points-cell {
    color: var(--text-muted);
}

.points-cell.has-points {
    color: #667eea;
    font-size: 16px;
}

body.leaderboard-page .points-cell.has-points {
    color: var(--neon-cyan);
}

.medals-col {
    text-align: center;
    width: 90px;
}

.points-col {
    text-align: right;
    width: 50px;
}

/* Mobile responsive adjustments */
@media (max-width: 480px) {
    .breakdown-table {
        font-size: 12px;
    }

    .breakdown-table thead th {
        padding: 6px 4px;
        font-size: 10px;
    }

    .breakdown-table td {
        padding: 8px 4px;
    }

    .country-name-cell {
        font-size: 12px;
    }

    .mini-medal {
        font-size: 10px;
        padding: 2px 4px;
    }

    .points-cell.has-points {
        font-size: 14px;
    }

    .medals-col {
        width: 80px;
    }

    .points-col {
        width: 40px;
    }
}

.country-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.country-card.rank-1 {
    background: linear-gradient(135deg, #fff9e6 0%, #f8f9fa 100%);
}

.country-info {
    flex: 1;
}

.country-rank {
    font-size: 20px;
    font-weight: bold;
    color: #667eea;
    margin-right: 12px;
}

.country-rank.rank-1 { color: #FFD700; }
.country-rank.rank-2 { color: #C0C0C0; }
.country-rank.rank-3 { color: #CD7F32; }

.country-medals {
    display: flex;
    gap: 12px;
    font-size: 13px;
}

.medal-count {
    display: flex;
    align-items: center;
    gap: 4px;
}

.country-total {
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
}

/* Table styles for Medal Count */
.country-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    background: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Dark mode: Table wrapper */
body.leaderboard-page .country-table-wrapper {
    background: var(--dark-card);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.15);
}

.country-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.country-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Dark mode: Table header */
body.leaderboard-page .country-table thead {
    background: linear-gradient(135deg, #0f3460 0%, #1a4d7a 100%);
}

.country-table th {
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    color: white;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.country-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #e9ecef;
}

/* Dark mode: Table cells */
body.leaderboard-page .country-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.country-row:last-child td {
    border-bottom: none;
}

.country-row:hover {
    background: #ffffff;
    cursor: pointer;
}

/* Dark mode: Table row hover */
body.leaderboard-page .country-row:hover {
    background: rgba(0, 212, 255, 0.1);
}

.rank-col, .rank-cell {
    width: 50px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
}

.country-col {
    text-align: left;
}

.country-cell {
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

/* Dark mode: Country cell */
body.leaderboard-page .country-cell {
    color: var(--text-primary);
}

.medal-col, .medal-cell {
    width: 60px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

.medal-col {
    font-size: 16px;
}

.total-col, .total-cell {
    width: 70px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
}

.total-col {
    color: white;
}

.total-cell {
    color: var(--primary-color);
}

/* Dark mode: Total cell */
body.leaderboard-page .total-cell {
    color: var(--neon-cyan);
    font-weight: bold;
}

/* Top 3 styling */
.rank-cell.rank-1 {
    color: var(--gold-color);
    font-size: 18px;
}

.rank-cell.rank-2 {
    color: var(--silver-color);
    font-size: 17px;
}

.rank-cell.rank-3 {
    color: var(--bronze-color);
    font-size: 17px;
}

.country-row.rank-1 {
    background: linear-gradient(135deg, #fff9e6 0%, #fffbf0 100%);
}

.country-row.rank-1:hover {
    background: linear-gradient(135deg, #fff7d6 0%, #fffae0 100%);
}

/* Dark mode: Top ranked country row */
body.leaderboard-page .country-row.rank-1 {
    background: linear-gradient(135deg, #2d1f0d 0%, #4a3517 100%);
}

body.leaderboard-page .country-row.rank-1:hover {
    background: linear-gradient(135deg, #3d2f1d 0%, #5a4527 100%);
}

/* Mobile responsive */
@media (max-width: 500px) {
    .country-table {
        font-size: 12px;
    }

    .country-table th,
    .country-table td {
        padding: 10px 6px;
    }

    .rank-col, .rank-cell {
        width: 40px;
        font-size: 14px;
    }

    .medal-col, .medal-cell {
        width: 45px;
        font-size: 12px;
    }

    .medal-col {
        font-size: 14px;
    }

    .country-cell {
        font-size: 13px;
    }

    .total-col, .total-cell {
        width: 55px;
        font-size: 14px;
    }

    .rank-cell.rank-1 { font-size: 16px; }
    .rank-cell.rank-2,
    .rank-cell.rank-3 { font-size: 15px; }
}

.loading, .error {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

/* Dark mode: Loading and error */
body.leaderboard-page .loading {
    color: var(--text-secondary);
}

.error {
    color: #d32f2f;
}

body.leaderboard-page .error {
    color: #ff6b6b;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
}

/* Dark mode: Empty state */
body.leaderboard-page .empty-state {
    color: var(--text-secondary);
}

.tie-breaker-notice {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid #2196f3;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #1565c0;
    line-height: 1.5;
}

/* Dark mode: Tie-breaker notice */
body.leaderboard-page .tie-breaker-notice {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(0, 242, 254, 0.1) 100%);
    border-left: 4px solid var(--neon-cyan);
    color: var(--neon-blue);
}

.draft-link-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

/* Dark mode: Draft link banner */
body.leaderboard-page .draft-link-banner {
    background: linear-gradient(135deg, var(--dark-card) 0%, #1a4d7a 100%);
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.2);
}

.draft-link {
    color: white;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 6px;
    display: inline-block;
    transition: background 0.3s;
}

/* Dark mode: Draft link */
body.leaderboard-page .draft-link {
    background: var(--neon-cyan);
    color: var(--dark-bg-primary);
}

.draft-link:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Dark mode: Draft link hover */
body.leaderboard-page .draft-link:hover {
    background: var(--neon-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.4);
}

@media (min-width: 500px) {
    .draft-link-banner {
        flex-direction: row;
        justify-content: center;
    }
}

/* Leaderboard page specific container width */
body.leaderboard-page .container {
    max-width: 600px;
}

/* ============================================
   DRAFT PAGE DARK MODE STYLES
   ============================================ */

/* Dark mode: Page background */
body.draft-page {
    background: linear-gradient(135deg, var(--dark-bg-primary) 0%, var(--dark-bg-secondary) 100%);
}

/* Dark mode: Container */
body.draft-page .container {
    background: var(--dark-bg-secondary);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

/* Dark mode: Typography */
body.draft-page h1 {
    color: var(--text-primary);
}

body.draft-page .subtitle {
    color: var(--text-secondary);
}

body.draft-page h2 {
    color: var(--text-primary);
}

/* Dark mode: Countdown timer */
body.draft-page .countdown-timer {
    background: linear-gradient(135deg, var(--dark-card) 0%, #1a4d7a 100%);
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.2);
}

body.draft-page .countdown-number {
    color: var(--neon-cyan);
}

body.draft-page .countdown-text {
    color: var(--text-secondary);
}

/* Dark mode: Results link banner */
body.draft-page .results-link-banner {
    background: linear-gradient(135deg, var(--dark-card) 0%, #1a4d7a 100%);
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.2);
}

body.draft-page .results-link {
    color: var(--neon-cyan);
}

body.draft-page .results-link:hover {
    color: var(--neon-blue);
}

/* Dark mode: Instructions section */
body.draft-page .instructions-section {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(0, 242, 254, 0.08) 100%);
    border-left-color: var(--neon-cyan);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.15);
}

body.draft-page .instructions-section h2 {
    color: var(--neon-cyan);
}

body.draft-page .instruction-item {
    background: white;
    border: 2px solid var(--neon-cyan);
}

body.draft-page .instruction-item strong {
    color: var(--dark-card);
}

body.draft-page .instruction-item p {
    color: #333;
}

/* Dark mode: Leaderboard instructions */
body.leaderboard-page .instruction-item {
    background: white;
    border: 2px solid var(--neon-cyan);
}

body.leaderboard-page .instruction-item strong {
    color: var(--dark-card);
}

body.leaderboard-page .instruction-item p {
    color: #333;
}

/* Dark mode: Form sections */
body.draft-page .form-section {
    background: rgba(15, 52, 96, 0.3);
    border-color: rgba(0, 212, 255, 0.2);
}

body.draft-page .form-section h2 {
    color: var(--neon-cyan);
}

/* Dark mode: Form inputs */
body.draft-page input[type="text"],
body.draft-page input[type="email"] {
    background: var(--dark-card);
    border-color: rgba(0, 212, 255, 0.3);
    color: var(--text-primary);
}

body.draft-page input[type="text"]:focus,
body.draft-page input[type="email"]:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

body.draft-page input[type="text"]::placeholder,
body.draft-page input[type="email"]::placeholder {
    color: var(--text-muted);
}

body.draft-page label {
    color: var(--text-secondary);
}

body.draft-page .input-hint {
    color: var(--text-secondary);
}

/* Dark mode: Stats bar */
body.draft-page .stats-bar {
    background: rgba(15, 52, 96, 0.4);
}

body.draft-page .stat-label {
    color: var(--text-secondary);
}

body.draft-page .stat-value {
    color: var(--neon-cyan);
}

/* Dark mode: Progress bar */
body.draft-page .progress-bar {
    background: rgba(0, 0, 0, 0.3);
}

body.draft-page .progress-bar-fill {
    background: linear-gradient(90deg, var(--neon-cyan) 0%, var(--neon-blue) 100%);
    color: var(--dark-bg-primary);
}

body.draft-page .progress-bar-label {
    color: var(--text-secondary);
}

/* Dark mode: Warning message */
body.draft-page .warning-message {
    background: rgba(255, 140, 66, 0.15);
    border-color: var(--bronze-color);
    color: #ffb380;
}

/* Dark mode: Selected countries */
body.draft-page .selected-countries-header {
    color: var(--text-primary);
}

body.draft-page .clear-all-btn {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    border-color: #ff6b6b;
}

body.draft-page .clear-all-btn:hover:not(:disabled) {
    background: rgba(255, 107, 107, 0.3);
}

body.draft-page .selected-countries.empty::before {
    color: var(--text-muted);
}

body.draft-page .selected-country {
    background: linear-gradient(135deg, var(--dark-card) 0%, #1a4d7a 100%);
    border-color: var(--neon-cyan);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 212, 255, 0.2);
}

body.draft-page .selected-country:hover {
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

body.draft-page .country-cost {
    color: var(--neon-cyan);
}

body.draft-page .remove-btn {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

body.draft-page .remove-btn:hover {
    background: rgba(255, 107, 107, 0.4);
}

/* Dark mode: Search box */
body.draft-page .search-input {
    background: var(--dark-card);
    border-color: rgba(0, 212, 255, 0.3);
    color: var(--text-primary);
}

body.draft-page .search-input:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

body.draft-page .search-input::placeholder {
    color: var(--text-muted);
}

/* Dark mode: Sort controls */
body.draft-page .sort-controls {
    color: var(--text-secondary);
}

body.draft-page .sort-controls label {
    color: var(--text-secondary);
}

/* Dark mode: Country grid cards */
body.draft-page .country-card {
    background: var(--dark-card) !important;
    border-color: rgba(0, 212, 255, 0.2);
    color: var(--text-primary);
}

body.draft-page .country-card:hover:not(.selected):not(.disabled) {
    border-color: var(--neon-cyan);
    background: var(--dark-card) !important;
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
}

body.draft-page .country-card.selected {
    background: linear-gradient(135deg, var(--dark-card) 0%, #1a4d7a 100%) !important;
    border-color: var(--neon-cyan);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
    opacity: 1;
}

body.draft-page .country-card.selected:hover {
    background: linear-gradient(135deg, var(--dark-card) 0%, #1a4d7a 100%) !important;
    opacity: 0.9;
    border-color: var(--neon-blue);
}

body.draft-page .country-card.disabled {
    background: rgba(15, 52, 96, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    opacity: 0.5;
}

body.draft-page .country-name {
    color: var(--text-primary);
}

body.draft-page .country-points {
    color: var(--neon-cyan);
}

/* Dark mode: Submit button */
body.draft-page #submitBtn {
    background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-blue) 100%);
    color: var(--dark-bg-primary);
    font-size: 20px;
    padding: 20px 50px;
    border-radius: 12px;
    max-width: 400px;
    box-shadow: 0 4px 16px rgba(0, 212, 255, 0.3);
    font-weight: bold;
}

body.draft-page #submitBtn:hover:not(:disabled) {
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.5);
    transform: translateY(-3px);
}

body.draft-page #submitBtn:disabled {
    background: rgba(107, 122, 153, 0.3);
    color: var(--text-muted);
}

/* Dark mode: Confirmation dialog */
body.draft-page .confirmation-overlay {
    background: rgba(0, 0, 0, 0.85);
}

body.draft-page .confirmation-dialog {
    background: var(--dark-bg-secondary);
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.3);
}

body.draft-page .confirmation-dialog h3 {
    color: var(--neon-cyan);
}

body.draft-page .confirmation-dialog p {
    color: var(--text-secondary);
}

body.draft-page .draft-summary {
    background: rgba(15, 52, 96, 0.4);
    color: var(--text-primary);
}

body.draft-page .country-list {
    color: var(--text-secondary);
}

body.draft-page .btn-cancel {
    background: rgba(107, 122, 153, 0.2);
    color: var(--text-secondary);
    border-color: rgba(107, 122, 153, 0.4);
}

body.draft-page .btn-cancel:hover {
    background: rgba(107, 122, 153, 0.3);
}

body.draft-page .btn-confirm {
    background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-blue) 100%);
    color: var(--dark-bg-primary);
}

body.draft-page .btn-confirm:hover {
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.4);
}

/* Dark mode: Success message */
body.draft-page .success-message {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(0, 242, 254, 0.08) 100%);
    border-color: var(--neon-cyan);
}

body.draft-page .success-message h2 {
    color: var(--neon-cyan);
}

body.draft-page .success-message p {
    color: var(--text-secondary);
}

body.draft-page .success-team {
    margin-top: 15px;
}

body.draft-page .success-action {
    margin-top: 15px;
}

body.draft-page .view-results-btn {
    background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-blue) 100%);
    color: var(--dark-bg-primary);
}

body.draft-page .view-results-btn:hover {
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.4);
    transform: translateY(-2px);
}

/* Dark mode: Draft closed banner */
body.draft-page .draft-closed-banner {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2) 0%, rgba(255, 107, 107, 0.1) 100%);
    border-color: #ff6b6b;
}

body.draft-page .draft-closed-banner h2 {
    color: #ff6b6b;
}

body.draft-page .draft-closed-banner p {
    color: var(--text-secondary);
}

/* ==============================================
   SCHEDULE PAGE STYLES
   ============================================== */

/* Schedule page dark mode background */
body.schedule-page {
    background: linear-gradient(135deg, var(--dark-bg-primary) 0%, var(--dark-bg-secondary) 100%);
}

body.schedule-page .container {
    background: var(--dark-bg-secondary);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

body.schedule-page h1 {
    color: var(--text-primary);
}

body.schedule-page .subtitle {
    color: var(--text-secondary);
}

/* Timezone note */
.timezone-note {
    text-align: center;
    color: var(--neon-cyan);
    font-size: 13px;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Page Navigation */
.page-nav {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-nav a {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid rgba(0, 212, 255, 0.3);
    font-weight: 500;
    font-size: 14px;
}

.page-nav a:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--neon-cyan);
    transform: translateY(-2px);
}

/* Day Filter */
.day-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    overflow-x: auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
}

.day-filter::-webkit-scrollbar {
    height: 6px;
}

.day-filter::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.day-filter::-webkit-scrollbar-thumb {
    background: var(--neon-cyan);
    border-radius: 3px;
}

.day-btn {
    padding: 10px 16px;
    background: var(--dark-card);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
    font-weight: 500;
}

.day-btn:hover {
    background: var(--dark-card-hover);
    border-color: var(--neon-cyan);
}

.day-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: var(--neon-cyan);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: white;
}

/* Daily Schedule Cards */
.day-card {
    background: var(--dark-card);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.day-card:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 4px 16px rgba(0, 212, 255, 0.2);
}

.day-card.hidden {
    display: none;
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.day-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-primary);
}

.event-list {
    display: grid;
    gap: 12px;
}

.event-item {
    background: rgba(15, 52, 96, 0.5);
    border-left: 4px solid var(--neon-cyan);
    padding: 12px 15px;
    border-radius: 6px;
    transition: all 0.3s;
}

.event-item:hover {
    background: rgba(15, 52, 96, 0.7);
    transform: translateX(5px);
}

/* Medal events - highlighted with gold accent */
.event-item.medal-event {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 140, 0, 0.08) 100%);
    border-left: 4px solid #FFD700;
}

.event-item.medal-event:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25) 0%, rgba(255, 140, 0, 0.15) 100%);
}

.event-time {
    font-size: 14px;
    color: var(--neon-cyan);
    font-weight: 600;
    margin-bottom: 4px;
}

.event-name {
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 4px;
}

.event-meta {
    font-size: 13px;
    color: var(--text-secondary);
}

/* PDF Download Section */
.pdf-download-section {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(0, 242, 254, 0.08) 100%);
    border-left: 4px solid var(--neon-cyan);
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
    text-align: center;
}

.pdf-download-section h3 {
    color: var(--neon-cyan);
    margin-bottom: 10px;
    font-size: 20px;
}

.pdf-download-section p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 14px;
}

.pdf-btn {
    display: inline-block;
    padding: 14px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    font-size: 15px;
}

.pdf-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* Mobile Responsive for Schedule Page */
@media (max-width: 768px) {
    .page-nav {
        gap: 10px;
    }

    .page-nav a {
        padding: 8px 16px;
        font-size: 13px;
    }

    .day-filter {
        justify-content: flex-start;
    }

    .day-btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    .day-card {
        padding: 15px;
    }

    .day-title {
        font-size: 18px;
    }

    .event-item {
        padding: 10px 12px;
    }

    .event-name {
        font-size: 15px;
    }

    .event-meta {
        font-size: 12px;
    }

    .pdf-download-section {
        padding: 20px;
    }

    .pdf-download-section h3 {
        font-size: 18px;
    }

    .pdf-btn {
        padding: 12px 24px;
        font-size: 14px;
    }
}
