/* Leaderboard Styles */
.leaderboard-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1.5rem;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.leaderboard-container h1 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.leaderboard-container h1 i {
    color: #FFD700;
    margin-right: 0.5rem;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.leaderboard-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.leaderboard-table tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.03);
}

.leaderboard-table tr:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.leaderboard-table tr.current-user {
    background-color: rgba(76, 201, 240, 0.1);
    font-weight: 600;
}

.leaderboard-table td:first-child {
    font-weight: bold;
    text-align: center;
}

/* Top 3 ranks */
.leaderboard-table tr:nth-child(1) td:first-child {
    color: #FFD700; /* Gold */
}

.leaderboard-table tr:nth-child(2) td:first-child {
    color: #C0C0C0; /* Silver */
}

.leaderboard-table tr:nth-child(3) td:first-child {
    color: #CD7F32; /* Bronze */
}

.leaderboard-actions {
    text-align: center;
    margin-top: 1.5rem;
}

.no-data, .error {
    text-align: center;
    padding: 2rem;
    color: var(--light-text);
}

.error {
    color: var(--error-color);
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .leaderboard-table th,
    .leaderboard-table td {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}