/* ======================================================
   STYLE-GLOBAL.CSS - Configurações Gerais e Barra Lateral
   ====================================================== */
   :root {
    --primary: #2c3e50;    /* Azul Petróleo */
    --secondary: #34495e;  /* Azul Petróleo Claro */
    --accent: #e74c3c;     /* Vermelho */
    --success: #27ae60;    /* Verde */
    --gold: #f1c40f;       /* Dourado */
    --dark-bg: #1a1a2e;    /* Fundo Escuro */
    --light-bg: #ecf0f1;   /* Cinza Claro */
    --text-color: #333;
    --white: #ffffff;
}

* { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #dcdde1;
    margin: 0; padding: 0; height: 100vh; overflow: hidden;
}

/* --- LAYOUT PRINCIPAL (Sidebar + Conteúdo) --- */
.main-layout { display: flex; height: 100vh; width: 100vw; }

.sidebar { 
    width: 320px; 
    background: var(--primary); 
    color: var(--white); 
    display: flex; flex-direction: column; 
    padding: 20px; 
    box-shadow: 2px 0 10px rgba(0,0,0,0.3); 
    overflow-y: auto; 
    z-index: 10; 
}

.container { 
    flex: 1; 
    background: var(--light-bg); 
    padding: 20px; 
    display: flex; flex-direction: column; 
    overflow-y: auto; 
    position: relative; 
}

/* --- CORREÇÃO DA LISTA LATERAL (NÚMEROS SORTEADOS) --- */
/* Isso garante que a lista lateral funcione em TODOS os modos */
.mapa-sorteio {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 colunas obrigatórias */
    gap: 4px;
    margin-top: 15px;
}

.mapa-item {
    background: rgba(0,0,0,0.3);
    color: #bdc3c7;
    text-align: center;
    font-size: 0.85rem;
    padding: 5px 0;
    border-radius: 4px;
    transition: all 0.3s;
}

.mapa-item.sorteado {
    background: var(--gold);
    color: #000;
    font-weight: bold;
    transform: scale(1.15);
    box-shadow: 0 0 8px var(--gold);
    border: 1px solid white;
    z-index: 2;
}

/* --- ELEMENTOS COMUNS (Botões e Inputs) --- */
button { border: none; padding: 10px 20px; border-radius: 6px; cursor: pointer; font-weight: bold; transition: all 0.2s ease; font-family: inherit; text-transform: uppercase; letter-spacing: 0.5px; }
button:hover { transform: translateY(-2px); filter: brightness(110%); }
button:active { transform: translateY(0); }

.btn-confirm { background: var(--success); color: white; width: 100%; margin-top: 10px; box-shadow: 0 4px 0 #1e8449; }
.btn-cancel { background: var(--accent); color: white; margin-top: 5px; box-shadow: 0 4px 0 #c0392b; }
.btn-disabled { background: #95a5a6; color: white; cursor: not-allowed; width: 100%; opacity: 0.7; box-shadow: none !important; transform: none !important; }
.btn-sair-jogo { background: #c0392b; color: white; width: 100%; padding: 15px; margin-top: auto; border-radius: 8px; }

input[type="text"], input[type="number"] {
    width: 100%; padding: 12px; margin: 5px 0 15px 0;
    border: 2px solid #bdc3c7; border-radius: 8px;
    font-size: 1rem; transition: border-color 0.3s;
}
input:focus { border-color: var(--gold); outline: none; }

/* --- MODAIS E POPUPS (Vitória/W.O.) --- */
.overlay-vitoria, .overlay-selecao {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); backdrop-filter: blur(5px);
    display: none; justify-content: center; align-items: center; z-index: 5000;
}
.conteudo-vitoria {
    background: var(--primary); padding: 30px; border-radius: 20px;
    border: 4px solid var(--gold); box-shadow: 0 0 50px var(--gold);
    width: 90%; max-width: 600px; max-height: 90vh; overflow-y: auto; color: white; text-align: center;
}
.banner-vitoria { font-size: 4rem; color: var(--gold); font-weight: 900; margin-bottom: 20px; text-shadow: 0 0 20px var(--gold); }

/* Responsividade Global */
@media (max-width: 800px) {
    .main-layout { flex-direction: column; height: auto; overflow: visible; }
    .sidebar { width: 100%; order: 2; height: auto; padding-bottom: 80px; }
    .container { width: 100%; order: 1; height: auto; min-height: 50vh; }
}