/* Styling für den Abstimm-Button (nicht gedrückt) */
.mvp-vote-button {
    background-color: #f9f9f9;
    border: 2px solid #0073aa;
    color: #333;
    border-radius: 4px;
    padding: 8px 15px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-size: 1em;
    margin: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.mvp-vote-button:hover {
    background-color: #e5f5ff;
    border-color: #005177;
    color: #000;
}

/* Styling für einen Button, für den bereits abgestimmt wurde */
.mvp-vote-button.voted {
    background-color: #28a745;
    color: white;
    border-color: #218838;
    font-weight: bold;
}

.mvp-vote-button.voted:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

/* Styling für die Zählanzeige im Button */
.mvp-vote-count {
    margin-left: 8px;
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 2px 7px;
    border-radius: 3px;
    min-width: 25px;
    text-align: center;
}

/* * NEUES DESIGN FÜR DIE RESULTATE-ÜBERSICHT (TOP 5 LEADERBOARD)
 */
.mvp-results-list.mvp-leaderboard {
    list-style: none;
    padding-left: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    overflow: hidden; /* Sorgt dafür, dass die abgerundeten Ecken respektiert werden */
}

.mvp-leaderboard li {
    display: grid;
    grid-template-columns: auto 1fr auto; /* Name | Bar | Anzahl */
    grid-gap: 15px;
    align-items: center;
    padding: 12px 15px;
    background-color: #fff;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease-in-out;
}

.mvp-leaderboard li:last-child {
    border-bottom: none;
}

.mvp-leaderboard li:hover {
    background-color: #f9f9f9;
}

/* Styling für die Medaillen der Top 3 */
.mvp-leaderboard li:nth-child(1)::before { content: '🥇'; margin-right: 10px; }
.mvp-leaderboard li:nth-child(2)::before { content: '🥈'; margin-right: 10px; }
.mvp-leaderboard li:nth-child(3)::before { content: '🥉'; margin-right: 10px; }

/* Nummerierung für Platz 4 und 5 */
.mvp-leaderboard li:nth-child(4)::before,
.mvp-leaderboard li:nth-child(5)::before {
    font-weight: bold;
    color: #999;
    margin-right: 15px;
    width: 20px;
    display: inline-block;
    text-align: center;
}
.mvp-leaderboard li:nth-child(4)::before { content: '4.'; }
.mvp-leaderboard li:nth-child(5)::before { content: '5.'; }


.mvp-leaderboard .item-name {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.mvp-leaderboard .bar-container {
    width: 100%;
    background-color: #e9ecef;
    border-radius: 5px;
    height: 20px;
}

.mvp-leaderboard .bar {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #0073aa, #00a0d2);
    border-radius: 5px;
    min-width: 1px; /* Stellt sicher, dass auch 0 Stimmen sichtbar sind, wenn gewünscht (hier nicht der Fall) */
}

.mvp-leaderboard .vote-count {
    font-weight: bold;
    font-size: 1.1em;
    color: #0073aa;
    min-width: 30px;
    text-align: right;
}


/* Styling für den Button-Gruppen-Wrapper */
.mvp-button-group-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background-color: #fcfcfc;
}

/* Styling für die Admin-Item-Liste */
.mvp-admin-item-list li {
    cursor: move;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}
.mvp-admin-item-list .item-info { flex-grow: 1; }
.mvp-admin-item-list .item-info p { margin: 5px 0 0 0; }
.mvp-admin-item-list .item-actions { flex-shrink: 0; margin-left: 20px; }
.mvp-admin-item-list li .item-info span:first-child .dashicons-move { margin-right: 8px; color: #888; }
.mvp-sortable-placeholder { height: 60px; background-color: #e5f5ff; border: 2px dashed #0073aa; margin: 5px 0; }