/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    width: 100%;
    height: 100%;

}

/* Configuración del background adaptable */
.bg-container {
    /* Reemplaza 'ruta/de/tu/imagen.jpg' por la URL o dirección local de tu archivo */
    background-image: url('../images/football_backgroud.jpg');

    /* Ajusta la imagen para cubrir toda la pantalla sin distorsionarse */
    background-size: cover;

    /* Centra la imagen siempre en la pantalla */
    background-position: center center;

    /* Evita que la imagen se repita */
    background-repeat: no-repeat;

    /* Mantiene el fondo fijo al hacer scroll */
    background-attachment: fixed;

    /* Alto total de la ventana */
    min-height: 100vh;
    width: 100%;

    /* Opcional: Capa oscura para mejorar la legibilidad del texto encima */
    box-shadow: inset 5000px 5000px 0 1000px rgba(0, 0, 0, 0.8);
}

.content {
    color: #ffffff;
    text-align: left;
    padding-top: 5vh;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Navigation */
nav {
    background-color: #013369;
    color: white;
    padding: 1rem 0;
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
}

.nav-logo {
    height: 40px;
    width: auto;
    margin-right: 15px;
}

nav h1 {
    margin: 0;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
}

nav ul li a:hover {
    color: #D50A0A;
}

/* Auth Forms */
.auth-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
}

.auth-box {
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button {
    background-color: #013369;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}

button:hover {
    background-color: #D50A0A;
}

/* Predictions Page */
.week-navigation {
    margin: 10px 0;
    text-align: center;
}

.week-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin: 12px 0;
}

.week-selector {
    margin-bottom: 20px;
}

.week-selector label {
    margin-right: 10px;
}

.week-selector select {
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 1rem;
}

.week-selector select:hover {
    border-color: #999;
}

.week-button {
    padding: 8px 12px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.week-button.active {
    background-color: #013369;
    color: white;
    border-color: #012350;
}

.game-date-header {
    width: 100%;
    text-align: center;
    padding: 10px;
    margin: 20px 0 10px 0;
    background-color: #013369;
    color: white;
    border-radius: 4px;
}

.game-day-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.game-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.game-time {
    color: #666;
    margin: 5px 0;
    font-weight: bold;
}

.team-selection {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0;
}

.team-selection label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.team-selection label:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
}

.team-selection input[type="radio"] {
    margin-right: 8px;
}

.team-selection input[type="radio"]:checked+span {
    font-weight: bold;
    color: #013369;
}

.info-message {
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 4px;
    margin: 20px 0;
    color: #666;
}

.success {
    padding: 10px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    border-radius: 4px;
    margin: 10px 0;
}

.error {
    padding: 10px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    border-radius: 4px;
    margin: 10px 0;
}

.save-all-predictions {
    position: fixed;
    bottom: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    border-radius: 8px;
}

.save-all-button {
    background-color: #013369;
    color: white;
    padding: 15px 30px;
    font-size: 1.2em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: auto;
    min-width: 200px;
}

.save-all-button:hover {
    background-color: #D50A0A;
}

.predictions-form {
    margin-bottom: 60px;
}


.error {
    color: #D50A0A;
    margin-bottom: 10px;
    padding: 10px;
    background-color: #ffe6e6;
    border-radius: 4px;
}

/* Stats Section */
.stats {
    background: white;
    padding: 20px;
    border-radius: 5px;
    margin-top: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.stat-box {
    background: #edf2f6;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
}

.stat-box h4 {
    color: #013369;
    margin-bottom: 10px;
}

.stat-box p {
    font-size: 24px;
    font-weight: bold;
    color: #D50A0A;
}

.stat-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.stat-team img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.stat-team span {
    color: #013369;
    font-size: 18px;
    font-weight: 700;
}

.stat-box .stat-team-detail {
    margin-top: 8px;
    font-size: 16px;
}

/* Game Results Styles */
.finished-games,
.in-progress-games,
.scheduled-games {
    margin-bottom: 30px;
}

.finished-games h3,
.in-progress-games h3,
.scheduled-games h3 {
    background: #013369;
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.game-card.finished {
    border-left: 5px solid #28a745;
    background: #f8fff8;
}

/* When the user's prediction is incorrect, mark the finished card with a red accent */
.game-card.finished.user-incorrect {
    border-left-color: #dc3545;
    /* red */
    background: #fff5f5;
    /* light red background */
}

.game-card.in-progress {
    border-left: 5px solid #ffc107;
    background: #fffdf0;
}

.game-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 15px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
}

.team-result {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 4px;
    transition: all 0.3s;
}

.team-result.winner {
    background: #d4edda;
    color: #155724;
    font-weight: bold;
    border: 2px solid #28a745;
}

/* If the user predicted incorrectly but the team is the actual winner, style it red to indicate user error */
.team-result.winner.winner-incorrect {
    background: #ffe6e6;
    /* light red */
    color: #721c24;
    /* dark red text */
    border-color: #dc3545;
    /* red border */
}

.vs {
    font-weight: bold;
    color: #666;
    margin: 0 10px;
}

.score {
    display: block;
    font-size: 24px;
    font-weight: bold;
    margin-top: 5px;
    color: #013369;
}

.prediction-result {
    margin-top: 15px;
    padding: 10px;
    background: #e9ecef;
    border-radius: 4px;
}

.prediction-result p {
    margin: 5px 0;
}

.result.correct {
    color: #28a745;
    font-weight: bold;
}

.result.incorrect {
    color: #dc3545;
    font-weight: bold;
}

.no-prediction {
    color: #6c757d;
    font-style: italic;
}

.game-teams {
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    margin: 10px 0;
    color: #333;
}

.prediction-info {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.prediction-info p {
    margin: 5px 0;
}

/* Leaderboard Styles */
.leaderboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.leaderboard-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.leaderboard-section h2 {
    color: #013369;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid #013369;
    padding-bottom: 10px;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.leaderboard-table th {
    background: #013369;
    color: white;
    font-weight: bold;
}

.leaderboard-table tr:hover {
    background: #f8f9fa;
}

.leaderboard-table.striped tbody tr:nth-child(odd) {
    background-color: #e2e2e2;
}

.leaderboard-table.striped tbody tr:nth-child(even) {
    background-color: #ffffff;
}

.leaderboard-table.striped tbody tr:hover {
    background: #f0f4f8;
}

.leaderboard-table tr:nth-child(1) {
    background: #dcfadf;

}

.leaderboard-table tr:nth-child(2) {
    background: #feffbf;
}

.leaderboard-table tr:nth-child(3) {
    background: #ffd7d7;
}


/* Team Logo Styles */
.team-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.team-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
}

.team-name {
    font-weight: 500;
}

/* Game teams layout for in-progress games */
.game-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
}

.game-teams .team-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.game-teams .vs {
    font-weight: bold;
    color: #666;
    font-size: 18px;
}

/* Team result layout for finished games */
.team-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.team-result .team-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-direction: column;
    text-align: center;
}

.team-result .team-logo {
    width: 50px;
    height: 50px;
}

/* Team selection layout for scheduled games */
.team-selection .team-info {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.team-selection .team-logo {
    width: 50px;
    height: 50px;
}

/* Responsive Team Logo Styles */
@media (max-width: 768px) {
    .team-logo {
        width: 50px;
        height: 50px;
    }

    .team-result .team-logo {
        width: 50px;
        height: 50px;
    }

    .team-selection .team-logo {
        width: 50px;
        height: 50px;
    }

    .game-teams .vs {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .team-logo {
        width: 50px;
        height: 18px;
    }

    .team-result .team-logo {
        width: 50px;
        height: 50px;
    }

    .team-selection .team-logo {
        width: 50px;
        height: 50px;
    }

    .game-teams .vs {
        font-size: 14px;
    }

    .team-info {
        gap: 6px;
    }

    .game-teams .team-info {
        gap: 6px;
    }
}

.bye-teams {
    margin: 2rem 0;
    padding: 1rem;
    background-color: white;
    /* Cambiado a fondo blanco */
    border-radius: 8px;
    border: 1px solid #ddd;
}

.bye-teams h3 {
    color: #ffffff;
    text-align: center;
    /* margin-bottom: 1.5rem;
    
    font-size: 16px;
    font-weight: bold; */
}

.bye-teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    /* Ajustado el tamaño mínimo */
    gap: 1.5rem;
    justify-items: center;
    padding: 1rem;
}

.bye-team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    width: 100%;
    max-width: 140px;
    /* text-align: center; */
}

.bye-team-card:hover {
    transform: translateY(-4px);
}

.bye-team-card img {
    width: 80px;
    /* Logo más grande */
    height: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.bye-team-card .team-name {
    text-align: center;
    font-weight: 600;
    color: #013369;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Responsive Bye Teams */
@media (max-width: 768px) {
    .bye-teams-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        padding: 0.5rem;
    }

    .bye-team-card {
        padding: 1rem;
        max-width: 100%;
    }

    .bye-team-card img {
        width: 60px;
        height: 60px;
    }

    .bye-team-card .team-name {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .bye-teams-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .bye-team-card {
        padding: 0.75rem;
    }

    .bye-team-card img {
        width: 40px;
        height: 40px;
        margin-bottom: 0.5rem;
    }

    .bye-team-card .team-name {
        font-size: 0.7rem;
    }
}



/* Footer */
footer {
    text-align: center;
    padding: 5px;
    background: #013369;
    color: white;
    position: fixed;
    bottom: 0;
    width: 100%;
}

.users-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.team-stats-container {
    max-width: 1500px;
    margin: 0 auto;
    
}

.team-stats-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin: 10px 0 10px;
}

.team-stats-kicker {
    color: #c52d2f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    padding-left: 35px;
}

.team-stats-header h2 {
    color: #16324f;
    font-size: 28px;
    padding-left: 35px;
}

.team-stats-season {
    display: flex;
    align-items: center;
    padding-left: 20px;
    padding-right: 30px;
    gap: 10px;
    font-weight: 700;
}

.team-stats-season select {
    min-height: 40px;
    padding: 0 32px 0 12px;
    border: 1px solid #c8d0d8;
    border-radius: 4px;
    background: #fff;
    color: #16324f;
    font: inherit;
}

.team-stats-table-wrap {
    max-height: 70vh;
    overflow: auto;
    border: 1px solid #d7dde3;
    border-radius: 6px;
    background: #fff;
    margin: 24px;
}

.team-stats-table {
    width: 100%;
    min-width: 1120px;
    border-collapse: separate;
    border-spacing: 0;
    font-variant-numeric: tabular-nums;
}

.team-stats-table th,
.team-stats-table td {
    padding: 11px 12px;
    border-bottom: 1px solid #e8ecf0;
    text-align: center;
    white-space: nowrap;
}

.team-stats-table thead th {
    position: sticky;
    top: 0;
    z-index: 4;
    height: 40px;
    box-sizing: border-box;
    background: #16324f;
    color: #fff;
    font-size: 12px;
}

.team-stats-table thead tr:first-child th:first-child {
    left: 0;
    z-index: 6;
    width: 250px;
    min-width: 250px;
}

.team-stats-table .team-stats-name {
    position: sticky;
    left: 0;
    z-index: 2;
    width: 250px;
    min-width: 250px;
    max-width: 250px;
    text-align: left;
    background: #fff;
    box-shadow: 1px 0 0 #d7dde3;
}

.team-stats-logo {
    width: 28px;
    height: 28px;
    margin-right: 8px;
    object-fit: contain;
    vertical-align: middle;
}

.team-stats-table .team-stats-group th {
    position: sticky;
    left: 0;
    z-index: 3;
    width: 250px;
    min-width: 250px;
    max-width: 250px;
    background: #dce8ef;
    color: #16324f;
    text-align: left;
    white-space: nowrap;
    padding: 9px 12px;
    font-size: 12px;
    letter-spacing: .5px;
}

.team-stats-table .team-stats-group td {
    background: #dce8ef;
}

.team-stats-table tbody tr:nth-child(even):not(.team-stats-group) {
    background: #f7f9fa;
}

.team-stats-pct {
    font-weight: 700;
    color: #16324f;
}

.team-stats-positive {
    color: #187343;
    font-weight: 700;
}

.team-stats-negative {
    color: #b02c2c;
    font-weight: 700;
}

.team-stats-notice {
    padding: 16px;
    border-left: 4px solid #c52d2f;
    background: #fff;
}

.team-stats-glossary {
    margin: 24px;
    padding: 20px 8px 18px 12px;
    border-top: 2px solid #16324f;
    font-size: 10px;
}

.team-stats-glossary h3 {
    margin-bottom: 12px;
    color: #16324f;
    font-size: 10px;
}

.team-stats-glossary dl {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 0 24px;
}

.team-stats-glossary dl > div {
    display: grid;
    grid-template-columns: 62px 1fr;
    gap: 8px;
    padding: 9px 0;
    border-bottom: 1px solid #d7dde3;
}

.team-stats-glossary dt {
    color: #16324f;
    font-weight: 700;
}

.team-stats-glossary dd {
    color: #354454;
}

@media (max-width: 640px) {
    .team-stats-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .team-stats-header h2 {
        font-size: 23px;
    }
}

.users-header {
    margin: 24px 0;
}

.users-table-wrapper {
    overflow-x: auto;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.users-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.users-table th,
.users-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
    text-align: left;
    vertical-align: middle;
}

.users-table th {
    background: #f4f6f8;
    color: #333;
}

.users-table tr:last-child td {
    border-bottom: 0;
}

.status {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: bold;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-inactive {
    background: #f8d7da;
    color: #721c24;
}

.user-actions {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.user-actions form {
    margin: 0;
}

.user-actions button {
    width: auto;
    white-space: nowrap;
}

.toggle-button {
    background: #6c757d;
}

.toggle-button:hover {
    background: #545b62;
}

.reset-form {
    display: flex;
    gap: 6px;
    align-items: center;
}

.reset-form input {
    width: 145px;
    padding: 9px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.reset-button {
    background: #013369;
}

.message {
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-width: 900px) {
    .user-actions {
        flex-direction: column;
    }

    .reset-form {
        flex-wrap: wrap;
    }
}

.predictions-table-wrapper {
    overflow-x: auto;
}

.predictions-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 12px;
}

.predictions-table th {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    padding: 4px;
    height: 120px;
    vertical-align: middle;
    font-weight: 600;
    font-size: 14px;
}

.juego {
    font-size: 32px;
}

.predictions-table th:first-child {
    position: sticky;
    left: 0;
    z-index: 3;
    width: 260px;
    background-color: #fff;
    box-shadow: 1px 0 0 #ddd;
}

.predictions-table th:not(:first-child) {
    width: 260px;
}

.predictions-table th span {
    display: block;
    /* writing-mode: vertical-rl; */
    /* transform: rotate(360deg); */
    /* word-break: break-word; */
    white-space: normal;
    text-align: center;
    padding: 4px 0;
}

.predictions-table td {
    border: 1px solid #ddd;
    padding: 6px 4px;
    text-align: center;
    vertical-align: middle;
    height: 60px;
}

.predictions-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background-color: #f9f9f9;
    text-align: center;
    width: 180px;
    font-size: 16px;
    font-weight: 500;
    padding: 4px;
    box-shadow: 1px 0 0 #ddd;
}

.game-matchup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.game-matchup img {
    width: 40px;
    height: 40px;
}

.game-matchup .vs {
    font-size: 10px;
    font-weight: bold;
    color: #666;
}

.prediction-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.team-logo-small {
    width: 64px;
    /*height: 42px;*/
}

.prediction-cell.incorrect .team-logo-small {
    opacity: 0.3;
}

.result-emoji {
    position: center;
    font-size: 32px;
    line-height: .1;
}

.result-emoji::before {
    content: attr(data-result);
}

.prediction-cell.correct {
    background-color: #d4f0d4;
}

.prediction-cell.incorrect {
    background-color: #fdd;
}

.summary-row td {
    background-color: #f0f0f0;
    font-weight: 600;
    border-top: 2px solid #999;
}

.summary-row td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background-color: #e8e8e8;
    font-size: 12px;
    box-shadow: 1px 0 0 #ddd;
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.admin-header {
    background: #1a1a1a;
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.week-navigation {
    margin-bottom: 30px;
}

.week-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.week-button {
    padding: 10px 15px;
    background: #f0f0f0;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: background 0.3s;
}

.week-button:hover,
.week-button.active {
    background: #007bff;
    color: white;
}

.games-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.game-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.game-teams {
    font-size: 18px;
    font-weight: bold;
}

.game-time {
    color: #666;
    font-size: 14px;
}

.game-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.result-form {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: 12px;
    font-weight: bold;
    color: #333;
}

.form-group select,
.form-group input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.save-button {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.save-button:hover {
    background: #218838;
}

.success,
.error {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.current-winner {
    background: #e8f5e8;
    padding: 5px 10px;
    border-radius: 3px;
    font-weight: bold;
}

/* Responsive navigation (CSS-only hamburger) */
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    width: 32px;
    height: 28px;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.nav-toggle-label span {
    display: block;
    width: 100%;
    height: 3px;
    background: currentColor;
    border-radius: 2px;
}

/* Desktop menu */
.nav-menu {
    display: flex;
    gap: 1rem;
}

/* Mobile behavior */
@media (max-width: 768px) {
    .nav-toggle-label {
        display: inline-flex;
        margin-left: auto;
    }

    .nav-menu {
        position: absolute;
        top: 64px;
        right: 16px;
        left: 16px;
        display: none;
        flex-direction: column;
        gap: 0;
        background: #e3f2fd;
        border: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        overflow: hidden;
        z-index: 1000;
    }

    .nav-menu li a {
        display: block;
        padding: 12px 16px;
        color: #000;
        text-decoration: none;
        transition: background-color 0.2s ease, color 0.2s ease;
    }

    .nav-menu li a:hover,
    .nav-menu li a:focus {
        background-color: rgba(0, 123, 255, 0.1);
        color: #000;
        outline: 2px solid #007bff;
        outline-offset: -2px;
    }

    .nav-toggle:checked~.nav-menu {
        display: flex;
    }

    /* Optional animated burger to X */
    .nav-toggle:checked+.nav-toggle-label span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle:checked+.nav-toggle-label span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle:checked+.nav-toggle-label span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-toggle-label span {
        transition: transform 0.2s ease, opacity 0.2s ease;
    }
}
