body {
    background-color: #f5f5f5;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.min-height-100 {
    min-height: 100px;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.card {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.progress-custom {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.progress-item {
    flex: 0 0 calc(9.09% - 5px); /* 11 items (20-10 + bull) */
    text-align: center;
    padding: 8px;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.progress-item.pending {
    background-color: #e9ecef;
    color: #6c757d;
}

.progress-item.active {
    background-color: #0d6efd;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3);
}

.progress-item.completed {
    background-color: #198754;
    color: white;
}

.progress-hits {
    font-size: 0.75rem;
    margin-top: 2px;
}

.player-badge {
    display: inline-block;
    padding: 5px 10px;
    margin: 5px;
    background-color: #0d6efd;
    color: white;
    border-radius: 20px;
    cursor: pointer;
}

.player-badge:hover {
    background-color: #0b5ed7;
}

.player-badge .remove-btn {
    margin-left: 8px;
    cursor: pointer;
    font-weight: bold;
}

.existing-player-item {
    display: inline-block;
    padding: 3px 8px;
    margin: 3px;
    background-color: #e9ecef;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.9rem;
}

.existing-player-item:hover {
    background-color: #0d6efd;
    color: white;
}

.player-status-card {
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 2px solid #dee2e6;
}

.player-status-card.active {
    border-color: #0d6efd;
    background-color: #e7f1ff;
}

.player-status-card.finished {
    border-color: #198754;
    background-color: #d1e7dd;
}

.stats-card {
    text-align: center;
    padding: 20px;
}

.stats-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #0d6efd;
}

.stats-label {
    font-size: 1rem;
    color: #6c757d;
    margin-top: 5px;
}

.leaderboard-table {
    background-color: white;
}

.leaderboard-rank-1 {
    background-color: #ffd70020;
    font-weight: bold;
}

.leaderboard-rank-2 {
    background-color: #c0c0c020;
}

.leaderboard-rank-3 {
    background-color: #cd7f3220;
}

.history-game-card {
    margin-bottom: 15px;
    cursor: pointer;
    transition: transform 0.2s;
}

.history-game-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.winner-badge {
    background-color: #ffd700;
    color: #000;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 0.85rem;
}

.dart-badge {
    display: inline-block;
    padding: 8px 12px;
    margin: 5px;
    background-color: #198754;
    color: white;
    border-radius: 5px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .progress-item {
        flex: 0 0 calc(16.66% - 5px); /* 6 items per row on mobile */
    }

    .stats-value {
        font-size: 2rem;
    }
}
