/* Estilos optimizados para móvil y elementos de la app */
body { 
    background-color: #f4f7f6; 
    padding-bottom: 50px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.partido-card { 
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); 
    border: 0; 
    border-radius: 12px; 
    margin-bottom: 50px;
}
.navbar { box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.card-body{
    padding-bottom: 10px;
}
.input-score { 
    max-width: 90px; 
    font-size: 1.2rem; 
    font-weight: bold; 
    text-align: center; }
/* Ocultar flechas en inputs numéricos */
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }

.club-logo-container { 
    width: 80px; height: 80px; 
    display: flex; align-items: center; justify-content: center; 
    border-radius: 12px; background-color: #f0f0f0; 
    border: 1px solid #ddd; box-shadow: 0 1px 3px rgba(0,0,0,0.1); 
    overflow: hidden; 
}
.club-logo { 
    max-width: 90%;
    max-height: 90%;  
    object-fit: contain;
    border-radius: 4px; }
.club-logo-fallback { font-size: 4rem; color: #4a5568; }
.team-name { 
    font-size: 1.1rem; 
    line-height: 1.2; 
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; }

/* Estilo para el Bote (Jackpot) */
.bote-container {
    background: linear-gradient(45deg, #fdd50dc5, #cab40a);
    color: white;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
}
.bote-title {
    font-size: 1rem;
    font-weight: 300;
    opacity: 0.9;
}
.bote-monto {
    font-size: 2.5rem;
    font-weight: 700;
}

/* Estilos específicos para la vista de Pronósticos de Usuarios */


.user-bet-row {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.1s;
}
.user-bet-row:last-child {
    border-bottom: none;
}
.user-bet-row.is-current-user {
    background-color: #eaf5ff; /* Color claro para destacar el usuario */
    font-weight: bold;
}
.user-bet-score {
    padding-right: 20px;
    font-size: 1rem;
    font-weight: 700;
}
.shadow-sm {
    margin-bottom: 30px;
}

/* --- ESTILOS BRILLANTES PARA EL PODIO --- */
        
        /* 1º ORO: Un degradado de amarillo pálido a oro intenso */
        .card-gold {
            background: linear-gradient(135deg, #FFF8DC 0%, #FFD700 100%) !important;
            border: 1px solid #DAA520 !important;
            box-shadow: 0 4px 8px rgba(218, 165, 32, 0.3) !important;
        }

        /* 2º PLATA: Un degradado de blanco a gris metálico */
        .card-silver {
            background: linear-gradient(135deg, #F5F5F5 0%, #C0C0C0 100%) !important;
            border: 1px solid #A9A9A9 !important;
            box-shadow: 0 4px 8px rgba(169, 169, 169, 0.3) !important;
        }

        /* 3º BRONCE: Un degradado de crema a cobre */
        .card-bronze {
            background: linear-gradient(135deg, #FAEBD7 0%, #CD7F32 100%) !important;
            border: 1px solid #A0522D !important;
            box-shadow: 0 4px 8px rgba(205, 127, 50, 0.3) !important;
        }

        /* Ajuste para que el texto gris se lea bien sobre fondos de color */
        .podium-text {
            color: #333 !important; 
            font-weight: 500;
        }

/* Estilos para el panel de administración */
.admin-section {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
}

/* ========================================= */
/* MODO APP: Scroll Independiente y Centrado */
/* ========================================= */

/* 1. Fondo general (Escritorio) */
html, body {
    height: 100%;
    margin: 0;
    overflow: hidden; /* Adiós al scroll de la ventana */
    background-color: #e0e0e0; /* Color de fondo para el PC (fuera de la app) */
}

/* 2. Centrar la Barra Superior */
.navbar.sticky-top {
    max-width: 500px; /* Ancho de móvil */
    margin: 0 auto;   /* Centrar */
    left: 0;
    right: 0;
}

/* 3. Centrar la Barra Inferior */
.navbar.fixed-bottom {
    max-width: 500px;
    margin: 0 auto;
    left: 0;
    right: 0;
}

/* 4. Definimos el área del contenido (LIMITADA Y CENTRADA) */
#main-content {
    position: absolute;
    top: 56px; 
    bottom: 70px;
    
    /* Truco para centrar un elemento absoluto */
    left: 0;
    right: 0;
    margin: 0 auto;
    
    width: 100%;
    max-width: 500px; /* Límite de ancho */
    
    overflow: hidden; 
    background-color: #f4f7f6; /* Color de fondo real de la app */
    box-shadow: 0 0 20px rgba(0,0,0,0.1); /* Sombra elegante a los lados */
}

/* 5. Scroll interno de cada sección */
#main-content section {
    height: 100%;
    overflow-y: auto;
    padding: 15px;
    padding-bottom: 40px;
    
    /* Scroll suave y ocultar barra de scroll para estética */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}
#main-content section::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}
/* ========================================= */
/* CORRECCIÓN ESPACIADO RANKING */
/* ========================================= */

/* Forzamos margen cero en las tarjetas del ranking y pronósticos */
/* El espacio lo controlará el contenedor 'vstack gap-2' (aprox 8px) */
#ranking-list .card, 
#user-pronosticos-list .card {
    margin-bottom: 0 !important;
}