/* Importando fonte clássica para o menu */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --bg-sidebar: #111111;
    --gold: #FFD700;
    --gold-hover: #ffea70;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --accent-blue: #2962ff;
    --accent-green: #00c853;
    --accent-red: #d50000;
    --sidebar-width: 280px;
    --border-radius: 12px;
}

body {
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

/* --- LOGIN SCREEN (Correção de Tamanhos) --- */
.login-container { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100vh; width: 100%; background: radial-gradient(circle at center, #1a0b2e 0%, #000 100%); padding: 20px; box-sizing: border-box; }
.login-box { background: var(--bg-card); padding: 30px; border-radius: 20px; border: 1px solid #333; box-shadow: 0 10px 30px rgba(0,0,0,0.5); text-align: center; width: 100%; max-width: 380px; margin: 0 auto; }

.login-logo { width: 160px; margin: 0 auto 20px auto; filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.4)); transition: transform 0.3s; }
.login-logo:hover { transform: scale(1.05) rotate(5deg); }

/* Correção: Width 100% e box-sizing garantem tamanhos iguais */
.login-input { 
    width: 100%; 
    padding: 15px; 
    margin-bottom: 15px; 
    background: #222; 
    border: 1px solid #444; 
    border-radius: 8px; 
    color: white; 
    font-size: 16px; 
    box-sizing: border-box; /* O segredo para não quebrar o tamanho */
    height: 50px; /* Altura fixa para garantir uniformidade */
}
.login-input:focus { outline: none; border-color: var(--gold); }

.btn-login { width: 100%; padding: 15px; border: none; border-radius: 8px; background: linear-gradient(45deg, var(--gold), #ffb300); color: #000; font-weight: 900; font-size: 16px; cursor: pointer; transition: transform 0.2s; margin-bottom: 15px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.btn-login:hover { transform: scale(1.02); box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2); }
.btn-google { width: 100%; padding: 10px; border: 1px solid #444; border-radius: 8px; background: #fff; color: #333; font-weight: 600; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: 0.2s; }

/* --- SIDEBAR --- */
.sidebar { width: var(--sidebar-width); background: var(--bg-sidebar); height: 100vh; position: fixed; top: 0; left: 0; display: flex; flex-direction: column; border-right: 1px solid #222; z-index: 1000; transition: transform 0.3s ease-in-out; overflow-y: auto; }
.sidebar-header { padding: 30px 20px; text-align: center; }
.sidebar-logo { width: 140px; margin: 0 auto 10px auto; filter: drop-shadow(0 0 5px rgba(255,0,0,0.5)); }

.user-info-panel { background: #1a1a1a; margin: 0 15px 20px 15px; padding: 20px; border-radius: var(--border-radius); border: 1px solid #333; text-align: center; }
.user-status { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: bold; margin: 10px 0; }
.status-premium { background: linear-gradient(45deg, #00c853, #009624); color: white; }
.status-free { background: #444; color: #ccc; }
.btn-support { background: #25D366; color: white; text-decoration: none; padding: 10px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: bold; margin-top: 10px; }

/* FONTE CLÁSSICA E SUTIL PARA O USUÁRIO */
.user-hello {
    font-family: 'Playfair Display', serif;
    color: #e0e0e0;
    font-size: 16px;
    font-style: italic;
    letter-spacing: 0.5px;
}
.user-name {
    font-family: 'Playfair Display', serif;
    color: white;
    font-size: 20px;
    font-weight: 700;
}
.validity { 
    font-family: 'Playfair Display', serif;
    font-size: 12px; 
    color: #888; 
    margin-bottom: 15px;
    font-style: italic;
}

.menu-items { flex-grow: 1; padding: 0 15px; }
.menu-link { display: flex; align-items: center; text-decoration: none; color: var(--text-secondary); padding: 12px; margin-bottom: 5px; border-radius: 10px; transition: 0.2s; font-weight: 600; font-size: 14px; }
.menu-link i { margin-right: 15px; width: 20px; text-align: center; font-size: 16px; }
.menu-link:hover, .menu-link.active { background: rgba(255, 215, 0, 0.1); color: var(--gold); }
.menu-link.active i { color: var(--gold); }
.menu-link.admin { color: var(--accent-red); }
.logout-area { padding: 20px; padding-bottom: 80px; }
.online-counter { text-align: center; padding: 10px; color: #00c853; font-size: 12px; font-weight: bold; }
.online-dot { height: 8px; width: 8px; background-color: #00c853; border-radius: 50%; display: inline-block; margin-right: 5px; }

/* --- MAIN CONTENT --- */
.main-content { flex-grow: 1; margin-left: var(--sidebar-width); padding: 30px; overflow-y: auto; background: radial-gradient(circle at top right, #1a0b2e 0%, var(--bg-dark) 70%); }
.container { max-width: 1200px; margin: 0 auto; }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 20px; margin-bottom: 20px; }

.card { background: var(--bg-card); border-radius: var(--border-radius); padding: 20px; border: 1px solid #2a2a2a; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; border-bottom: 1px solid #333; padding-bottom: 10px; }
.card-title { margin: 0; font-size: 16px; color: var(--text-primary); font-weight: bold; display: flex; align-items: center; gap: 8px; }

/* Destaque Principal */
.main-result-card { text-align: center; border: 1px solid var(--gold); background: linear-gradient(160deg, #220033 0%, #000 100%); }
.highlight-emoji { font-size: 70px; margin-bottom: 5px; filter: drop-shadow(0 0 10px rgba(255,215,0,0.3)); }
.highlight-milhar { font-size: 56px; font-weight: 900; margin: 0; color: white; letter-spacing: 2px; line-height: 1; }
.highlight-bicho { color: var(--gold); font-size: 20px; text-transform: uppercase; margin-top: 5px; font-weight: bold; }

/* SEQUENCIADORES (Cores Corrigidas) */
.sequencer-container { display: flex; flex-direction: column; gap: 10px; }
.seq-line { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.seq-label { width: 60px; font-size: 11px; color: #888; font-weight: bold; text-align: right; text-transform: uppercase; }
.seq-boxes { display: flex; gap: 4px; }
.seq-box { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: bold; color: black; border-radius: 4px; opacity: 0.9; }
.seq-box.last { width: 28px; height: 28px; border: 2px solid white; opacity: 1; box-shadow: 0 0 8px rgba(255,255,255,0.5); font-size: 13px; }

.seq-p { background: var(--accent-green); } /* Par: Verde */
.seq-i { background: var(--accent-red); color: white; } /* Ímpar: Vermelho */

/* CORREÇÃO DO ALTA E BAIXA */
/* Alta (vem como 'h' ou 'a' dependendo do backend) -> Verde */
.seq-h, .seq-a { background: var(--accent-green); color: black !important; } 
/* Baixa (vem como 'l' ou 'b' dependendo do backend) -> Vermelho */
.seq-l, .seq-b { background: var(--accent-red); color: white !important; }

/* LISTAS DE RESULTADOS */
.result-list { list-style: none; padding: 0; margin: 0; }
.result-item { display: grid; grid-template-columns: 50px 1fr auto; align-items: center; padding: 10px 0; border-bottom: 1px solid #222; font-size: 14px; gap: 10px; }
.result-time { color: var(--gold); font-weight: bold; font-size: 12px; background: #222; padding: 2px 6px; border-radius: 4px; text-align: center; }
.result-milhar { font-weight: bold; font-size: 16px; color: white; letter-spacing: 1px; }
.result-animal { color: #aaa; font-size: 13px; text-align: right; }

/* TABELA DE BICHOS */
.animal-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 10px; }
.animal-card { background: #1a1a1a; border: 1px solid #333; border-radius: 6px; padding: 5px; text-align: center; cursor: pointer; transition: 0.2s; position: relative; }
.animal-card.active { border-color: var(--gold); background: #2a2200; }
.animal-emoji { font-size: 20px; }
.animal-name { font-size: 9px; font-weight: bold; margin: 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.animal-dezenas { font-size: 8px; color: #666; display: block; margin-top: 2px; }

/* FILTROS E BOTÕES MODERNOS */
.filter-group { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }
.btn-filter { background: #222; color: #888; border: 1px solid #333; padding: 4px 8px; border-radius: 15px; font-size: 10px; cursor: pointer; transition: 0.2s; }
.btn-filter:hover { border-color: var(--gold); color: white; }
.btn-filter.active { background: var(--gold); color: black; border-color: var(--gold); font-weight: bold; }

.modern-btn { background: #111; color: white; border: 1px solid #333; padding: 10px 15px; border-radius: 8px; cursor: pointer; font-weight: bold; transition: all 0.2s; text-transform: uppercase; font-size: 12px; }
.modern-btn:hover { border-color: var(--gold); background: #222; color: var(--gold); }
.modern-btn-primary { background: var(--gold); color: black; border: none; }
.modern-btn-primary:hover { background: var(--gold-hover); box-shadow: 0 0 10px rgba(255, 215, 0, 0.3); }

select, input[type="text"] { background: #111; border: 1px solid #333; color: white; padding: 8px; border-radius: 6px; outline: none; }
.flash-message { background: #222; color: var(--gold); border: 1px solid var(--gold); padding: 15px; border-radius: 8px; margin-bottom: 20px; text-align: center; font-weight: bold; }

/* MOBILE HEADER */
.mobile-header { display: none; position: fixed; top: 0; left: 0; right: 0; height: 60px; background: var(--bg-sidebar); z-index: 999; padding: 0 20px; align-items: center; justify-content: space-between; border-bottom: 1px solid #222; }
.menu-toggle-btn { background: none; border: none; color: var(--gold); font-size: 24px; cursor: pointer; }

@media (max-width: 992px) {
    .sidebar { transform: translateX(-100%); width: 85%; }
    .sidebar.mobile-open { transform: translateX(0); box-shadow: 10px 0 50px rgba(0,0,0,0.8); }
    .main-content { margin-left: 0; padding: 15px; padding-top: 80px; }
    .mobile-header { display: flex; }
    .dashboard-grid { display: flex; flex-direction: column; gap: 20px; }
    .highlight-milhar { font-size: 48px; }
    .highlight-emoji { font-size: 60px; }
    .animal-grid { gap: 4px; }
    .login-box { padding: 25px 20px; }
}
/* --- MENU TIPO NETFLIX (BANCAS) - CORRIGIDO --- */
.netflix-container {
    display: flex;
    justify_content: center; /* Centraliza horizontalmente */
    align-items: center;     /* Centraliza verticalmente */
    min-height: 100vh;       /* Garante que ocupa a altura total da tela */
    width: 100%;             /* Garante largura total */
    background-color: #000;
    flex-direction: column;  /* Mantém itens um embaixo do outro (Logo, Texto, Cards) */
    margin: 0;
    padding: 0;
}

.bancas-grid {
    display: flex;
    gap: 30px;              /* Aumentei um pouco o espaço entre eles */
    padding: 20px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1200px;      /* Limite para não esticar demais em telas gigantes */
}
/* --- CORES DAS BANCAS ESPECÍFICAS --- */

/* Estilo para a LOOK GOIÁS (Verde) */
.banca-card.look-goias {
    background-color: #008000; /* Verde Forte */
    border: 2px solid #004d00;
}

/* Estilo para a LT BAHIA (Vermelho) */
.banca-card.lt-bahia {
    background-color: #b30000; /* Vermelho Forte */
    border: 2px solid #660000;
}

/* Garante que o texto fique branco e legível */
.banca-card .banca-nome {
    color: white;
    font-size: 18px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8); /* Sombra para leitura */
    z-index: 10;
}

/* Ajuste do cadeado para ficar visível sobre a cor */
.lock-overlay {
    background: rgba(0,0,0,0.3); /* Mais transparente para ver a cor de fundo */
}
/* --- MENU TIPO NETFLIX (CORRIGIDO E COLORIDO) --- */

.netflix-container {
    display: flex;
    justify_content: center; /* Centraliza horizontalmente */
    align-items: center;     /* Centraliza verticalmente */
    min-height: 100vh;       /* Altura total da tela */
    width: 100%;
    background-color: #000;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

.bancas-grid {
    display: flex;
    gap: 30px;
    padding: 20px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1200px;
}

.banca-card {
    width: 200px;
    height: 300px;
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 8px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s, border-color 0.3s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* Efeito ao passar o mouse na ativa */
.banca-card.ativa:hover {
    transform: scale(1.1);
    border-color: var(--gold);
    z-index: 10;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.banca-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.banca-card.ativa img { opacity: 1; }

/* --- CORES ESPECÍFICAS --- */
.banca-card.look-goias {
    background-color: #006400; /* Verde Escuro */
    border-color: #004d00;
}

.banca-card.lt-bahia {
    background-color: #8B0000; /* Vermelho Escuro */
    border-color: #660000;
}

.banca-nome {
    position: absolute;
    bottom: 20px;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px black;
    z-index: 20;
    font-size: 18px;
}

.banca-card.bloqueada {
    cursor: not-allowed;
    /* Removemos o grayscale para a cor aparecer */
}

.lock-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.2); /* Sombra leve para destacar o cadeado */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    z-index: 10;
}

.lock-overlay i {
    font-size: 40px;
    margin-bottom: 10px;
    color: rgba(255,255,255,0.7);
}
