/**Layer 91: Interactive Leaderboards*/
.leaderboard-widget {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 2rem;
}

.leaderboard-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    padding: 1rem 1.5rem;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.leaderboard-title {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table th {
    background: #f8fafc;
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
}

.leaderboard-table td {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
}

.rank-cell {
    font-weight: 700;
    color: #334155;
    width: 50px;
    text-align: center;
}

.rank-1 {
    color: #eab308;
    font-size: 1.1rem;
}

.rank-2 {
    color: #94a3b8;
    font-size: 1.05rem;
}

.rank-3 {
    color: #b45309;
    font-size: 1.05rem;
}

.entity-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.trend-indicator {
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

.trend-up {
    color: #10b981;
}

.trend-down {
    color: #ef4444;
}

.trend-stable {
    color: #94a3b8;
}

.score-cell {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: #1e40af;
    text-align: right;
}

/* User Profile Highlight */
.user-row-highlight {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
}