/** General Body Styles **/
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #06091f; /* Deep navy - UCL Budapest 26 */
    color: #e0e0e0;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 800px; /* Reduzido para ficar mais contido, como no exemplo */
    margin: 0 auto;
    padding: 20px 0;
}

/* Header */
header {
    background-color: #0d1850; /* Rich blue - UCL 26 */
    text-align: center;
    padding-bottom: 20px;
    position: relative;
    overflow: hidden; /* To ensure the banner image doesn't overflow */
    border-bottom-left-radius: 15px; /* Arredondamento para o topo */
    border-bottom-right-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.header-banner {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 20px;
}

header h1 {
    color: #fff;
    font-size: 2.2em; /* Um pouco menor para caber melhor */
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

header p {
    color: #ccc;
    font-size: 1em;
}

/* Sections */
section {
    background-color: #0d1850;
    margin-bottom: 30px;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    border: 1px solid rgba(245, 105, 35, 0.15);
}

section h2 {
    color: #f56923; /* Vibrant orange - UCL Budapest 26 */
    text-align: center;
    margin-bottom: 25px;
    font-size: 2em; /* Ajustado */
    text-transform: uppercase;
    text-shadow: 0 0 12px rgba(245, 105, 35, 0.4);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #fff;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group select {
    width: calc(100% - 24px); /* Adjust padding and border */
    padding: 12px;
    border: 2px solid #162070; /* Borda mais visível */
    border-radius: 8px; /* Cantos mais arredondados */
    background-color: #162070; /* Rich dark blue */
    color: #fff;
    font-size: 1.1em; /* Tamanho maior */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input::placeholder {
    color: #888;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #e01880; /* Borda magenta no foco - UCL 26 */
    outline: none;
    box-shadow: 0 0 10px rgba(224, 24, 128, 0.5); /* Sombra magenta no foco */
}


/* Specific styles for the score input container */
.score-input-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px; /* Espaço entre os elementos */
    margin-bottom: 30px;
}

.team-score-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

.team-logo-small {
    width: 60px; /* Tamanho do logo no placar */
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.1));
}

.score-input-container input[type="number"] {
    width: 70px; /* Largura do input do placar */
    text-align: center;
    font-size: 1.8em; /* Tamanho da fonte do placar */
    padding: 10px;
    border-color: #f56923; /* Borda laranja para os placares - UCL 26 */
}

.score-separator {
    font-size: 2.5em;
    font-weight: 700;
    color: #f56923;
}

/* Form Actions (Buttons) */
.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
}

/* Submit Button */
.btn-submit {
    flex: 1; /* Para ocupar o espaço disponível */
    padding: 15px;
    background-color: #f56923; /* Orange - UCL Budapest 26 */
    color: #fff;
    border: none;
    border-radius: 8px; /* Mais arredondado */
    font-size: 1.3em;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 105, 35, 0.4);
}

.btn-submit:hover {
    background-color: #e01880; /* Magenta on hover - UCL 26 */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(224, 24, 128, 0.4);
}

/* Secondary Buttons (Regras, Limpar) */
.btn-secondary {
    flex: 0.5; /* Para ocupar menos espaço que o enviar */
    padding: 15px;
    background-color: #162070;
    color: #f56923; /* Texto laranja */
    border: 2px solid #f56923; /* Borda laranja */
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, border-color 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn-secondary:hover {
    background-color: #f56923; /* Fundo laranja no hover */
    color: #fff;
    border-color: #f56923;
    transform: translateY(-2px);
}

/* Filter */
#betsFilter {
    margin-bottom: 20px;
}

.filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.filter-item label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #fff;
    font-size: 0.9em;
}

.filter-item input {
    width: calc(100% - 24px);
    padding: 10px 12px;
    border: 2px solid #162070;
    border-radius: 8px;
    background-color: #162070;
    color: #fff;
    font-size: 1em;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.filter-item input::placeholder {
    color: #888;
}

.filter-item input:focus {
    border-color: #e01880;
    outline: none;
    box-shadow: 0 0 10px rgba(224, 24, 128, 0.5);
}

.filter-actions {
    display: flex;
    gap: 12px;
}

.btn-clear-filter {
    border-color: #888;
    color: #888;
}

.btn-clear-filter:hover {
    background-color: #888;
    border-color: #888;
    color: #fff;
}

.filter-result-count {
    margin: 10px 0 0;
    font-size: 0.85em;
    color: #aaa;
    min-height: 1.2em;
}

@media (max-width: 480px) {
    .filter-grid {
        grid-template-columns: 1fr;
    }
}

/* Leaderboard Table */
#betsTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#betsTable thead th {
    background-color: #162070;
    color: #f56923; /* Orange - UCL 26 */
    padding: 15px;
    text-align: left;
    border-bottom: 2px solid #f56923;
    font-size: 1.1em;
}

#betsTable tbody td {
    padding: 15px;
    border-bottom: 1px solid #333;
    color: #e0e0e0;
}

#betsTable tbody tr:nth-child(even) {
    background-color: #0f1c60;
}

#betsTable tbody tr:hover {
    background-color: #162070;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: #040816; /* Even darker navy */
    color: #888;
    margin-top: 30px;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }

    section h2 {
        font-size: 1.8em;
    }

    .team-logo-small {
        width: 50px;
        height: 50px;
    }

    .score-input-container input[type="number"] {
        width: 60px;
        font-size: 1.5em;
    }

    .score-separator {
        font-size: 2em;
    }

    .form-actions {
        flex-direction: column; /* Botões empilhados em telas menores */
        gap: 10px;
    }

    .btn-submit, .btn-secondary {
        flex: auto; /* Ocupam largura total */
        font-size: 1.2em;
        padding: 12px;
    }

    #betsTable thead th,
    #betsTable tbody td {
        padding: 10px;
        font-size: 0.85em;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 10px 0;
    }

    header h1 {
        font-size: 1.5em;
    }
    header p {
        font-size: 0.9em;
    }

    section {
        padding: 20px;
        margin-bottom: 20px;
    }

    section h2 {
        font-size: 1.5em;
        margin-bottom: 20px;
    }

    .form-group input, .form-group select {
        padding: 10px;
        font-size: 1em;
    }

    .team-logo-small {
        width: 40px;
        height: 40px;
    }

    .score-input-container input[type="number"] {
        width: 50px;
        font-size: 1.3em;
    }

    .score-separator {
        font-size: 1.8em;
    }
}



