@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background-color: #f4f7f6; color: #333; line-height: 1.6; }

.navbar { background-color: #004d33; color: white; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.navbar h1 { font-size: 1.4em; }
.nav-links a { color: white; text-decoration: none; font-weight: bold; }

.conteudo-principal { max-width: 800px; margin: 0 auto; padding: 20px; }

.boas-vindas { text-align: center; margin-bottom: 30px; padding: 20px; background-color: #005f40; color: white; border-radius: 10px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }

.fases-navegacao { display: flex; gap: 8px; margin-bottom: 25px; flex-wrap: wrap; justify-content: center; }
.btn-aba { padding: 10px 15px; background: #e2e8f0; color: #4a5568; border: none; border-radius: 8px; font-weight: 600; font-size: 0.9em; cursor: pointer; transition: all 0.2s; flex: 1; min-width: 100px; text-align: center; }
.btn-aba.active { background: #005f40; color: white; box-shadow: 0 2px 4px rgba(0,0,0,0.15); }

/* --- ESTILOS DO NOVO FILTRO DE GRUPOS --- */
.filtros-grupos {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    scrollbar-width: none; /* Esconde scrollbar no Firefox */
}
.filtros-grupos::-webkit-scrollbar { display: none; } /* Esconde scrollbar no Chrome/Safari */

.btn-grupo {
    padding: 8px 16px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 20px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}
.btn-grupo.active {
    background: #005f40;
    color: white;
    border-color: #005f40;
}
/* ---------------------------------------- */

.jogos-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.btn-login-nav { padding: 8px 18px; background: #005f40; color: white; border: none; text-decoration: none; border-radius: 6px; font-size: 0.9em; font-weight: bold; cursor: pointer; }

.lista-jogos { display: flex; flex-direction: column; gap: 15px; }
.cartao-jogo { background: white; border-radius: 12px; padding: 15px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); border-left: 5px solid #005f40; }
.jogo-info { display: flex; justify-content: space-between; font-size: 0.85em; color: #666; margin-bottom: 15px; border-bottom: 1px solid #eee; padding-bottom: 8px; }
.badge-grupo { background-color: #eee; padding: 2px 8px; border-radius: 12px; font-weight: 600; color: #444; }

/* --- BLOCO DO CONFRONTO E TIMES --- */
.confronto {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 5px;
}

.time { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    flex: 1; 
    min-width: 0; /* Impede que o texto expulse o placar da tela */
}

.time-casa { justify-content: flex-end; text-align: right; }
.time-fora { justify-content: flex-start; text-align: left; }

/* Nomes menores */
.nome-time { 
    font-weight: 600; 
    font-size: 0.85em; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; /* Adiciona "..." se o nome for muito grande */
}

/* Bandeiras menores */
.bandeira { 
    width: 20px; 
    height: 15px; 
    border-radius: 3px; 
    box-shadow: 0 1px 3px rgba(0,0,0,0.2); 
    flex-shrink: 0; /* Impede que o flexbox esmague a imagem */
}

/* Garante que os menus do Admin não quebrem o layout */
.input-nome-time {
    max-width: 110px;
}

.placar-palpite { display: flex; align-items: center; gap: 10px; padding: 0 15px; }
.input-gols { width: 45px; height: 45px; text-align: center; font-size: 1.2em; font-weight: bold; border: 2px solid #ddd; border-radius: 8px; background-color: #fafafa; color: #333; }
.input-gols:disabled { background-color: #e2e8f0; color: #a0aec0; cursor: not-allowed; border-color: #cbd5e1; }
.divisor-vs { font-weight: 700; color: #999; font-size: 0.9em; }

.jogo-rodape { text-align: center; font-size: 0.85em; }
.status-partida { padding: 4px 12px; border-radius: 12px; font-weight: 600; text-transform: uppercase; }
.status-pendente { background-color: #fff3cd; color: #856404; }

.cartao-login { background: white; padding: 30px; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.2); }
.cartao-login h2 { color: #005f40; margin-bottom: 10px; }
.btn-submit-login { padding: 12px; background-color: #005f40; color: white; border: none; border-radius: 6px; font-size: 1em; font-weight: bold; cursor: pointer; }

@media (max-width: 500px) {
    /* Força o confronto a manter os itens na horizontal, diminuindo apenas as fontes */
    .confronto { flex-direction: row !important; gap: 2px !important; }
    .nome-time { font-size: 0.85em !important; }
    .input-gols { width: 30px !important; height: 30px !important; font-size: 1em !important; }
    .time { gap: 2px !important; }
}