/* Base styles */
body {
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    padding: 1rem;
    padding-bottom: 60px;
}

/* Title styles */
.title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 2rem;
    text-align: center;
    padding: 1rem 0;
}

.title-icon {
    font-size: 2.5rem;
    color: #28a745;
}

.title-text {
    font-size: 2.5rem;
    margin: 0;
    color: #333;
}

/* Setup card styles */
.setup-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Player card styles */
.player-card {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 8px;
    background-color: #f8f9fa;
    border-left: 4px solid #28a745;
    transition: all 0.3s ease;
}

.player-card:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.player-card.eliminated {
    background-color: #fff5f5;
    border-left-color: #dc3545;
    opacity: 0.7;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.player-name {
    font-weight: 500;
    font-size: 1.1rem;
}

.victories {
    font-size: 0.9em;
    color: #666;
}

/* Player list styles */
.player-list {
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #007bff #e9ecef;
}

.player-list::-webkit-scrollbar {
    width: 8px;
}

.player-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.player-list::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 10px;
}

.player-list .list-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    padding: 0.75rem 1rem;
}

.player-list .list-group-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.player-list .player-info {
    display: flex;
    flex-direction: column;
}

.player-list .player-name {
    font-weight: 600;
    color: #333;
}

.player-list .victories {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.player-list .action-buttons {
    display: flex;
    gap: 10px;
}

.player-list .btn-icon {
    color: #6c757d;
    padding: 0.25rem;
    border-radius: 50%;
}

.player-list .btn-icon:hover {
    background-color: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

.player-list .btn-icon.edit:hover {
    color: #28a745;
}

.player-list .btn-icon.delete:hover {
    color: #dc3545;
}

/* Form styles */
.score-form {
    background-color: #f8f9fa;
    border-left: 4px solid #007bff;
    margin-bottom: 2rem;
    padding: 1.5rem;
}

.form-control, .form-select {
    margin-bottom: 1rem;
}

/* Score board styles */
.score-board {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.score-board .card-header {
    background-color: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
    padding: 1rem;
}

/* Button styles */
.btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-group {
    gap: 8px;
}

.btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.btn-group-sm .btn i {
    font-size: 0.875rem;
}

/* Icon-only button styles */
.action-buttons {
    display: flex;
    gap: 8px;
}

.btn-icon {
    padding: 4px;
    border: none;
    background: none;
    color: #666;
    line-height: 1;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    transform: scale(1.1);
}

.btn-icon i {
    font-size: 16px;
}

.btn-icon:first-child:hover {
    color: #0d6efd;
}

.btn-icon:last-child:hover {
    color: #dc3545;
}

/* Winner animation */
@keyframes winner-animation {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.winner {
    animation: winner-animation 1s infinite;
    background-color: #28a745 !important;
    color: white !important;
}

.winner-message {
    text-align: center;
    margin: 20px 0;
    font-size: 1.2rem;
}

.winner-buttons {
    text-align: center;
    margin: 20px 0;
}

.winner-buttons button {
    margin: 5px;
}

/* Footer styles */
.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #f8f9fa;
    padding: 10px 0;
    border-top: 1px solid #dee2e6;
    font-size: 0.9rem;
    color: #6c757d;
}

.footer p {
    margin: 0;
}

/* Install banner styles */
.install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #007bff;
    color: white;
    padding: 1rem;
    text-align: center;
    display: none;
    z-index: 1000;
}

.install-banner button {
    margin: 0 0.5rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 0.5rem;
    }

    .title-container {
        flex-wrap: wrap;
    }

    .title-text {
        font-size: 2rem;
    }

    .title-icon {
        font-size: 2rem;
    }

    .setup-card {
        padding: 1rem;
    }

    .player-card {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .player-info {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .btn-group {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .btn-group .btn {
        flex: 1;
    }

    .input-group {
        flex-direction: column;
    }

    .input-group > * {
        width: 100% !important;
        margin-right: 0 !important;
        border-radius: 6px !important;
    }

    .input-group .btn {
        margin-top: 0.5rem;
    }

    .score-form {
        padding: 1rem;
    }

    .score-form .row > div {
        margin-bottom: 1rem;
    }

    .score-form .btn {
        width: 100%;
    }

    .btn-group-sm .btn {
        padding: 0.25rem 0.4rem;
    }
    
    .btn-group-sm .btn i {
        font-size: 0.8rem;
    }

    .action-buttons {
        gap: 4px;
    }

    .btn-icon {
        padding: 3px;
    }

    .btn-icon i {
        font-size: 14px;
    }

    .footer {
        font-size: 0.8rem;
        padding: 8px 0;
    }
}

@media (max-width: 576px) {
    .title-text {
        font-size: 1.75rem;
    }

    .title-icon {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .btn {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .player-name {
        font-size: 1rem;
    }

    .victories {
        font-size: 0.8rem;
    }
}
