/* Leaderboard-Tabelle */
.rcr-leaderboard-table-container {
    margin: 2rem 0;
    overflow-x: auto;
}

.rcr-leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
}

.rcr-leaderboard-table th,
.rcr-leaderboard-table td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.rcr-leaderboard-table th {
    background-color: #2A4C4A;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.rcr-leaderboard-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.rcr-leaderboard-table tbody tr:hover {
    background-color: #f5f8f7;
}

/* Besondere Formatierung für Ränge */
.rcr-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-weight: 700;
    color: white;
}

.rcr-rank-first {
    background-color: #F8C95C; /* Gold */
    box-shadow: 0 2px 5px rgba(248, 201, 92, 0.5);
}

.rcr-rank-second {
    background-color: #A7A9AC; /* Silber */
    box-shadow: 0 2px 5px rgba(167, 169, 172, 0.5);
}

.rcr-rank-third {
    background-color: #C37B29; /* Bronze */
    box-shadow: 0 2px 5px rgba(195, 123, 41, 0.5);
}

/* Sieg/Niederlage-Anzeige */
.rcr-win {
    color: #5C9B97;
    font-weight: 600;
}

.rcr-loss {
    color: #91565B;
    font-weight: 600;
}

/* Leaderboard-Titel */
.rcr-leaderboard-title,
.rcr-leaderboard-chart-title {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #2A4C4A;
    position: relative;
}

.rcr-leaderboard-title:after,
.rcr-leaderboard-chart-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #5C9B97;
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

/* Chart-Container */
.rcr-leaderboard-chart-container {
    margin: 2rem 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.rcr-chart-wrapper {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.rcr-chart-error {
    text-align: center;
    color: #91565B;
    padding: 20px;
    background-color: #ffecec;
    border-radius: 8px;
    margin-top: 15px;
}

/* Leere Leaderboard-Anzeige */
.rcr-leaderboard-empty {
    text-align: center;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
    color: #666;
    font-style: italic;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .rcr-leaderboard-table th,
    .rcr-leaderboard-table td {
        padding: 8px;
        font-size: 0.9rem;
    }
    
    /* Mobile Darstellung optimieren */
    .rcr-leaderboard-city {
        display: none;
    }
}

@media (max-width: 576px) {
    .rcr-leaderboard-table {
        font-size: 0.85rem;
    }
    
    .rcr-rank {
        width: 25px;
        height: 25px;
        font-size: 0.85rem;
    }
}