/* Leaderboard specific styles */
.leaderboard-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.navigation-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.nav-btn {
    background: linear-gradient(90deg, #1a237e 60%, #3949ab 100%);
    color: #ffd700;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    border: 2px solid #ffd700;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
    display: inline-block;
    text-align: center;
}

.nav-btn:hover {
    background: linear-gradient(90deg, #3949ab 0%, #1a237e 100%);
    box-shadow: 0 4px 16px rgba(26, 35, 126, 0.3);
}

.leaderboard-content {
    background: rgba(20, 30, 60, 0.98);
    border-radius: 16px;
    padding: 24px;
    border: 4px solid #ffd700;
    box-shadow: 0 0 60px 10px rgba(0,0,0,0.7), 0 0 0 6px rgba(255,215,0,0.33);
    color: #fff;
}

.loading {
    text-align: center;
    color: #ffd700;
    font-size: 1.2rem;
    padding: 40px;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 16px 12px;
    text-align: left;
    border-bottom: 2px solid #3949ab;
}

.leaderboard-table th {
    background: linear-gradient(90deg, #1a237e 60%, #3949ab 100%);
    color: #ffd700;
    font-weight: bold;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    border: 2px solid #ffd700;
}

.leaderboard-table tr:nth-child(even) {
    background: rgba(26, 35, 126, 0.3);
}

.leaderboard-table tr:hover {
    background: rgba(57, 73, 171, 0.5);
}

.rank-cell {
    font-weight: bold;
    font-size: 1.4rem;
    text-align: center;
    width: 80px;
    color: #ffd700;
}

.rank-1 { color: #ff6b6b; } /* Worst performer - red */
.rank-2 { color: #ff8e53; } /* Second worst - orange */
.rank-3 { color: #ffa726; } /* Third worst - amber */

.participant-cell {
    font-weight: bold;
    color: #ffd700;
    font-size: 1.1rem;
}

.score-cell {
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
    color: #fff;
}

.no-scores {
    text-align: center;
    color: #ffd700;
    font-style: italic;
    padding: 40px;
    font-size: 1.1rem;
}

.leaderboard-header {
    text-align: center;
    margin-bottom: 24px;
    color: #ffd700;
}

.leaderboard-subtitle {
    font-size: 1.1rem;
    color: #ffd700;
    margin-bottom: 8px;
    font-style: italic;
}

/* Responsive design */
@media (max-width: 768px) {
    .navigation-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-btn {
        width: 200px;
    }
    
    .leaderboard-table {
        font-size: 0.9rem;
    }
    
    .leaderboard-table th,
    .leaderboard-table td {
        padding: 12px 8px;
    }
}
