/* Custom Styles for Padel Tournament App */

/* Background Gradient */
.bg-gradient {
    background: linear-gradient(135deg, #f0fdf4 0%, #dbeafe 100%);
}

/* Card Styling */
.rounded-4 {
    border-radius: 1rem !important;
}

/* Winner Trophy Animation */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.winner-trophy {
    animation: bounce 2s infinite;
}

#logo-app {
    width: 150px;
    height: 150px;
}

/* Range Input Styling */
.form-range::-webkit-slider-thumb {
    background-color: #198754;
}

.form-range::-moz-range-thumb {
    background-color: #198754;
}

/* Match Card Styling */
.match-card {
    transition: all 0.3s ease;
}

.match-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.match-card.completed {
    border: 2px solid #198754 !important;
}

/* Court Badge */
.court-badge {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
}

/* Team Cards */
.team-card {
    border-radius: 0.75rem;
    padding: 1rem;
}

.team-card.team1 {
    background-color: #dcfce7;
}

.team-card.team2 {
    background-color: #dbeafe;
}

/* Score Input */
.score-input {
    width: 80px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Round Button */
.round-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.round-btn.active {
    background-color: #198754;
    color: white;
}

.round-btn.completed {
    background-color: #d1fae5;
    color: #065f46;
}

.round-btn:not(.active):not(.completed) {
    background-color: #e5e7eb;
    color: #374151;
}

.round-btn:hover:not(.active) {
    background-color: #d1d5db;
}

/* Player List Item */
.player-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: white;
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

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

/* Classification Table Rows */
.table tbody tr:nth-child(1) {
    background-color: #fef3c7 !important;
}

.table tbody tr:nth-child(2) {
    background-color: #f3f4f6 !important;
}

.table tbody tr:nth-child(3) {
    background-color: #fed7aa !important;
}

/* Badge Styling */
.position-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* VS Divider */
.vs-divider {
    text-align: center;
    color: #9ca3af;
    font-weight: bold;
    padding: 0.5rem 0;
}

/* Match History Item */
.match-history-item {
    background-color: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Score Display */
.score-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.score-box {
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-weight: 600;
}

.score-box.winner {
    background-color: #d1fae5;
    color: #065f46;
}

.score-box.loser {
    background-color: #e5e7eb;
    color: #6b7280;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #9ca3af;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 0.5rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .match-card {
        margin-bottom: 1rem;
    }
    
    .d-flex.gap-5 {
        gap: 1rem !important;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}
