/* Leaderboard Styles */
.blockly-leaderboard {
    font-family: 'Nunito', sans-serif;
    background: white;
    /* border-radius: 16px; */
    padding: 25px;
    /* border: 1px solid #e2e8f0; */
    /* max-width: 600px; */
    /* margin: 20px auto; */
}

.leaderboard-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
}

.leaderboard-header h2 {
    font-family: 'Fredoka One', cursive;
    font-size: 22px;
    color: #6c5ce7;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.leaderboard-content {
    margin-bottom: 15px;
}

.user-row {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 12px;
    margin-bottom: 8px;
    background: white;
    border: 1px solid #f1f5f9;
    transition: all 0.2s;
}

.user-row.highlight {
    background: #f9f8ff;
    border-left: 4px solid #6c5ce7;
}

.user-row.first-place {
    background: linear-gradient(135deg, #fff9e6 0%, #fff0b3 100%);
    border-left: 4px solid #ffd700;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.1);
}

.rank {
    font-family: 'Fredoka One', cursive;
    font-size: 16px;
    color: #64748b;
    width: 30px;
    text-align: center;
}

.rank.medal {
    color: #2d3436;
    font-weight: 700;
}

.user-info {
    display: flex;
    align-items: center;
    flex-grow: 1;
    gap: 15px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
    position: relative;
}

.crown-icon {
    position: absolute;
    top: -8px;
    font-size: 16px;
    color: #ffd700;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.name-details {
    flex-grow: 1;
}

.name {
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 3px;
}

.challenges-completed {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}

.points-display {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 80px;
}

.points-value {
    font-family: 'Fredoka One', cursive;
    font-size: 18px;
    color: #6c5ce7;
    font-weight: 400;
}

.user-row.first-place .points-value {
    color: #d4af37;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.points-label {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Pagination Controls */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #f8fafc;
    color: #6c5ce7;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.pagination-btn:hover {
    background: #6c5ce7;
    color: white;
    transform: scale(1.1);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-indicator {
    font-family: 'Fredoka One', cursive;
    font-size: 16px;
    color: #2d3436;
    display: flex;
    gap: 5px;
    min-width: 60px;
    justify-content: center;
}

.current-page {
    color: #6c5ce7;
}

.page-separator {
    color: #cbd5e1;
}

.total-pages {
    color: #94a3b8;
}

/* Responsive Design */
@media (max-width: 600px) {
    .pagination-controls {
        gap: 15px;
    }
    
    .pagination-btn {
        width: 36px;
        height: 36px;
    }
}

/* Animations */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.user-row:hover .avatar {
    animation: bounce 0.4s;
}