/* ===== ESTILOS FRONTEND - MONTADOR DE GRUPOS ===== */
.wc2026-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.wc2026-header {
    text-align: center;
    margin-bottom: 20px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #0056b3;
}

.wc2026-description {
    color: #666;
    font-size: 14px;
    margin: 5px 0 0 0;
}

.wc2026-section {
    margin-bottom: 30px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
}

/* Estilos para repescagens */
.playoff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.playoff-item {
    display: flex;
    flex-direction: column;
}

.playoff-item label {
    font-weight: bold;
    margin-bottom: 3px;
    color: #333;
    font-size: 13px;
}

.playoff-item select {
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

/* ESTILOS DA TABELA DE GRUPOS */
.groups-table-container {
    overflow-x: auto;
    margin-top: 15px;
}

.groups-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    line-height: 1; /* REMOVE espaços entre linhas */
}

.groups-table th {
    background: #0056b3;
    color: white;
    padding: 8px 4px;
    text-align: center;
    border: 1px solid #004494;
    font-weight: bold;
}

.groups-table th small {
    font-weight: normal;
    opacity: 0.9;
}

.groups-table td {
    padding: 3px 2px; /* REDUZIDO */
    border: 1px solid #e0e0e0;
    vertical-align: top;
    line-height: 1.1; /* COMPACTO */
}

.group-name {
    background: #f8f9fa;
    font-weight: bold;
    text-align: center;
    width: 80px;
}

.team-cell {
    text-align: center;
    min-width: 150px;
    padding: 2px 3px !important; /* MÍNIMO possível */
}

.team-cell select {
    width: 100%;
    padding: 3px 5px; /* REDUZIDO */
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 12px;
    height: 26px; /* REDUZIDO */
    margin: 0;
    line-height: 1; /* REMOVE espaço interno */
}

.group-errors-cell {
    min-width: 200px;
    max-width: 250px;
    padding: 2px 3px !important; /* MÍNIMO possível */
}

.group-errors {
    color: #dc3545;
    font-size: 10px;
    line-height: 1.1; /* COMPACTO */
    min-height: 12px; /* REDUZIDO */
    margin: 0;
    padding: 0;
}

/* ESTILOS PARA TIMES FIXOS - ULTRA COMPACTO */
.fixed-team {
    background: #e8f5e8;
    border: 1px solid #28a745;
    border-radius: 3px;
    padding: 2px 4px; /* MÍNIMO possível */
    text-align: center;
    font-size: 11px;
    line-height: 1.1; /* COMPACTO */
    margin: 0;
}

.fixed-team strong {
    color: #155724;
    display: block;
    font-size: 11px;
    line-height: 1.1;
    margin: 0;
    padding: 0;
}

.fixed-team small {
    font-size: 9px;
    color: #28a745;
    display: block;
    line-height: 1;
    margin: 0;
    padding: 0;
}

.fixed-team input {
    display: none; /* Esconde o input hidden */
}

/* Destaque para grupos com times fixos */
.group-row:has(.fixed-team) .group-name {
    background: #e8f5e8;
    color: #155724;
    position: relative;
}

.group-row:has(.fixed-team) .group-name::after {
    content: "🏠";
    margin-left: 3px;
    font-size: 12px;
}

/* Estados dos selects */
.team-cell select:valid {
    border-color: #28a745;
    background-color: #f8fff9;
}

.team-cell select:focus {
    border-color: #0056b3;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,86,179,0.1);
}

/* Botões */
.wc2026-actions {
    text-align: center;
    margin: 20px 0;
}

.wc2026-submit-btn, .wc2026-reset-btn {
    padding: 8px 20px;
    margin: 0 8px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

.wc2026-submit-btn {
    background: #28a745;
    color: white;
}

.wc2026-submit-btn:hover {
    background: #218838;
}

.wc2026-reset-btn {
    background: #6c757d;
    color: white;
}

.wc2026-reset-btn:hover {
    background: #5a6268;
}

/* Resultado */
.wc2026-result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    display: none;
}

.wc2026-result.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    display: block;
}

.wc2026-result.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    display: block;
}

/* Responsivo */
@media (max-width: 1200px) {
    .groups-table {
        font-size: 11px;
    }
    
    .team-cell {
        min-width: 130px;
    }
    
    .team-cell select {
        font-size: 11px;
        padding: 2px 4px; /* MAIS COMPACTO */
        height: 24px; /* MAIS BAIXO */
    }
    
    .fixed-team {
        padding: 1px 3px;
        font-size: 10px;
    }
    
    .fixed-team strong {
        font-size: 10px;
    }
    
    .fixed-team small {
        font-size: 8px;
    }
}

@media (max-width: 768px) {
    .wc2026-container {
        padding: 10px;
    }
    
    .groups-table th,
    .groups-table td {
        padding: 2px 1px; /* MÍNIMO no mobile */
    }
    
    .team-cell {
        min-width: 100px; /* MAIS COMPACTO */
    }
    
    .wc2026-actions {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .wc2026-submit-btn, .wc2026-reset-btn {
        margin: 2px 0;
        padding: 10px;
    }
    
    .group-errors-cell {
        min-width: 150px; /* MENOR no mobile */
    }
}