/* assets/css/site-style.css */

/* --- Importação de Fonte e Variáveis Globais (TEMA ESCURO para o Site) --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Oswald:wght@400;500;600;700&display=swap');

:root {
    --site-bg-color: #1a1a1a; /* Fundo principal do site */
    --top-bar-bg: #000;      /* Barra superior mais escura */
    --header-bg: #2a2a2a;    /* Fundo do cabeçalho principal */
    --nav-link-color: #f0f0f0; /* Cor do texto dos links de navegação */
    --nav-link-hover: #0d6efd; /* Azul para hover da navegação */
    --hero-overlay-color: rgba(0, 0, 0, 0.6); /* Escurece a imagem de fundo */
    --text-color-light: #f8f9fa; /* Texto claro para seções escuras */
    --text-color-muted: #adb5bd; /* Texto secundário */

    --btn-primary-site: #e74c3c; /* Vermelho para o botão primário (Cadastre-se) */
    --btn-secondary-site: #2980b9; /* Azul para o botão secundário (Escritório) */

    --card-bg-dark: #2a2a2a; /* Fundo dos cards (para seções futuras) */
    --border-color-dark: #444; /* Borda para elementos */
}

/* --- Estilos Gerais --- */
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--site-bg-color);
    color: var(--text-color-light);
    line-height: 1.6;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
    color: var(--text-color-light);
    margin-bottom: 0.5rem;
}

/* --- Top Bar --- */
.top-bar {
    background-color: var(--top-bar-bg);
    padding: 0.5rem 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-bar .container {
    max-width: 1200px; /* Limita a largura do conteúdo interno */
}

.top-bar-left span {
    color: var(--text-color-muted);
}

.top-bar-right .prize-ticker {
    color: var(--text-color-muted);
    white-space: nowrap; /* Evita quebras de linha */
    overflow: hidden; /* Oculta o conteúdo que excede */
    text-overflow: ellipsis; /* Adiciona "..." se o texto for muito longo */
}

/* --- Main Navbar --- */
.main-navbar {
    background-color: var(--header-bg);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color-dark);
}

.main-navbar .container {
     max-width: 1200px;
}

.navbar-brand img {
    height: 50px; /* Altura fixa para o logo */
    width: auto;
}

.main-navbar .nav-link {
    color: var(--nav-link-color);
    font-weight: 600; 
    text-transform: uppercase;
    padding: 0.5rem 0.7rem; 
    margin: 0 0.2rem; 
    position: relative;
    font-size: 0.85rem; 
}

.main-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--nav-link-hover);
    transition: width 0.3s ease;
}

.main-navbar .nav-link:hover::after,
.main-navbar .nav-link.active::after {
    width: 100%;
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    color: var(--nav-link-hover);
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color-light);
    font-size: 1.25rem;
}
.navbar-toggler:focus {
    box-shadow: none;
}
.navbar-toggler .fa-bars {
    color: var(--text-color-light);
}

/* Ícones sociais no header */
.navbar-right-actions a {
    color: var(--nav-link-color);
    font-size: 1.25rem;
    margin-left: 1rem;
}
.navbar-right-actions a:hover {
    color: var(--nav-link-hover);
}


/* --- HERO SLIDER (VERSÃO FINAL CONSOLIDADA E CORRIGIDA) --- */

.hero-slider-section {
    width: 100%;
    border-radius: 12px; /* Adiciona bordas arredondadas ao container */
    overflow: hidden; /* Garante que os slides respeitem as bordas arredondadas */
    line-height: 0; /* Ajuda a remover espaços indesejados */
}

.hero-slider {
    line-height: normal; /* Restaura a altura da linha para o conteúdo interno */
}

/* Regra principal para todos os slides dentro de qualquer Swiper */
.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    background-position: center;
    background-size: cover;
    position: relative;
    color: #fff; /* Garante que o texto seja branco por padrão */
}

/* Especificidade para os slides do Hero Slider */
.hero-slider .swiper-slide {
    height: auto; /* Remove qualquer altura fixa */
    aspect-ratio: 21 / 9; /* Proporção de cinema. Altere para 16 / 9 se preferir. */
}

/* Garante a centralização vertical do conteúdo dentro do slide */
.hero-slider .swiper-slide .container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Sobreposição escura para legibilidade do texto */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    z-index: 1;
}

/* Estilo do conteúdo (título e botões) */
.hero-content {
    max-width: 800px;
    text-align: center;
}

.hero-content h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.8rem; /* Tamanho ajustado para a proporção */
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.2;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
    color: #fff;
}

.hero-buttons .btn {
    margin: 0 0.5rem;
    padding: 0.7rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-primary-custom {
    background-color: var(--btn-primary-site);
    border-color: var(--btn-primary-site);
    color: #fff;
}
.btn-primary-custom:hover {
    background-color: #c0392b;
    border-color: #c0392b;
    color: #fff;
    transform: translateY(-2px);
}

.btn-secondary-custom {
    background-color: var(--btn-secondary-site);
    border-color: var(--btn-secondary-site);
    color: #fff;
}
.btn-secondary-custom:hover {
    background-color: #2471a3;
    border-color: #2471a3;
    color: #fff;
    transform: translateY(-2px);
}

/* Customização da Navegação e Paginação do Swiper */
.swiper-button-next,
.swiper-button-prev {
    color: #fff;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
    opacity: 1;
}

.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.6);
    width: 10px;
    height: 10px;
    transition: background-color 0.3s ease;
}
.swiper-pagination-bullet-active {
    background: #fff;
}

/* --- Responsividade --- */
@media (max-width: 992px) { /* Tablets e menores */
    .main-navbar .nav-link {
        margin: 0;
        text-align: center;
    }
    .main-navbar .nav-link::after {
        left: 0;
        transform: none;
        width: 100%;
    }
    .navbar-collapse {
        background-color: var(--header-bg);
        padding-bottom: 1rem;
    }
    .navbar-right-actions {
        text-align: center;
        margin-top: 1rem;
    }
    .navbar-right-actions a {
        margin: 0 0.5rem;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) { /* Celulares */
    .top-bar-right .prize-ticker {
        display: none; /* Esconde o ticker de prêmios em telas muito pequenas */
    }
    .top-bar .container {
        justify-content: center;
    }
    .hero-section {
        height: 50vh;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-buttons .btn {
        margin: 0.5rem 0;
        width: 80%;
        max-width: 300px;
    }
}

/* --- AJUSTE DE CENTRALIZAÇÃO VERTICAL DO SLIDER --- */
.hero-slider .swiper-slide {
    display: flex;
    align-items: center;      /* ESSENCIAL: Alinha o conteúdo verticalmente ao centro */
    justify-content: center;  /* Garante o alinhamento horizontal */
}


/* --- Seção Principal de Conteúdo --- */
.main-content-section {
    background-color: #1e1e1e; /* Um fundo ligeiramente diferente para destacar a área principal */
    border-top: 1px solid var(--border-color-dark);
}

/* --- Sidebar de Jogos (Coluna da Esquerda) --- */
.game-sidebar .sidebar-widget {
    background-color: var(--card-bg-dark);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color-dark);
}

/* Widget de Banner */
.widget-banner img {
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Widget de Menu de Jogos */
.widget-games .widget-title {
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color-dark);
}

.widget-games ul li a {
    display: flex;
    align-items: center;
    padding: 0.9rem 1.2rem;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
    background-color: #27ae60; /* Verde padrão para os botões de jogo */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.widget-games ul li a:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.widget-games ul li.active a {
    background-color: #e91e63; /* Cor rosa/magenta para o item ativo */
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.4);
}

.widget-games ul li a i {
    font-size: 1.5rem;
    margin-right: 1rem;
    width: 30px;
    text-align: center;
}

/* Widgets de Informação (Online e Cadastros) */
.sidebar-widget .widget-subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color-muted);
    margin-bottom: 1rem;
}

.widget-online-users .online-count {
    background-color: #111;
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Oswald', sans-serif;
    text-align: center;
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--border-color-dark);
}

.widget-last-registered ul li {
    color: var(--text-color-muted);
    font-size: 0.9rem;
    padding: 0.3rem 0;
    border-bottom: 1px solid var(--border-color-dark);
}

.widget-last-registered ul li:last-child {
    border-bottom: none;
}

/* --- Área de Conteúdo do Jogo (Coluna da Direita) --- */
.game-content-area .placeholder-card {
    background-color: var(--card-bg-dark);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color-dark);
    text-align: center;
    color: var(--text-color-muted);
    min-height: 400px; /* Altura mínima para visualização */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* --- Responsividade para a Sidebar --- */
@media (max-width: 991px) { /* Em telas de tablet e menores */
    .game-sidebar {
        margin-bottom: 2rem; /* Adiciona um espaço quando as colunas se empilham */
    }
}

/* --- Interface de Jogo (Coluna da Direita) --- */
.game-interface-card {
    background-color: var(--card-bg-dark);
    border-radius: 8px;
    border: 1px solid var(--border-color-dark);
    overflow: hidden; /* Garante que os cantos arredondados sejam aplicados a tudo */
}

/* Cabeçalho do Jogo */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: #343a40;
    flex-wrap: wrap; /* Permite quebrar linha em telas pequenas */
    gap: 1rem;
}
.game-title h2 { margin: 0; font-size: 1.8rem; }
.game-title p { margin: 0; font-size: 0.85rem; }

.game-info { display: flex; align-items: center; gap: 1.5rem; }
.countdown-timer, .available-balance { text-align: right; }
.timer-label, .balance-label { font-size: 0.8rem; color: var(--text-color-muted); display: block; }
.timer-box { display: inline-block; background: #212529; padding: 0.3rem 0.5rem; border-radius: 4px; margin-left: 0.3rem; }
.timer-box span { font-weight: 700; }
.balance-value { font-size: 1.2rem; font-weight: 700; }

/* Barra de Prêmio */
.prize-bar {
    background: linear-gradient(90deg, #3b5998, #2980b9);
    text-align: center;
    padding: 1rem;
    color: #fff;
}
.prize-bar h4 { margin: 0; font-weight: 400; font-size: 1rem; text-transform: uppercase; }
.prize-bar h2 { margin: 0; font-size: 2.5rem; }

/* Abas de Ação */
.game-tabs {
    display: flex;
    background-color: #e9ecef;
    padding: 0.75rem;
    gap: 0.75rem;
    flex-wrap: wrap; /* Permite quebrar linha */
}
.game-tab-item {
    flex-grow: 1; /* Faz os botões ocuparem espaço igual */
    text-align: center;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    color: #333;
    background-color: #ced4da;
    font-weight: 600;
    transition: all 0.3s ease;
}
.game-tab-item:hover { background-color: #adb5bd; }
.game-tab-item.active {
    background: linear-gradient(to right, #e91e63, #c2185b);
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Área do Formulário */
.game-form-area {
    padding: 1.5rem;
    background-color: #1f283e; /* Fundo azul-escuro para a área do formulário */
}

.form-info-header {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background-color: rgba(0,0,0,0.2);
    border-radius: 6px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.form-controls {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.input-group-custom { text-align: center; }
.input-group-custom label { display: block; margin-bottom: 0.5rem; font-weight: 500; }
.input-group-custom .form-select { max-width: 100px; }
.surpresinha-link { display: block; margin-top: 0.5rem; font-size: 0.9rem; color: #f39c12; text-decoration: underline; }

.form-actions-secondary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color-dark);
    border-bottom: 1px solid var(--border-color-dark);
    padding: 1rem 0;
    margin-bottom: 1.5rem;
}
.teimosinha strong { margin-right: 0.5rem; }
.teimosinha-ball {
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    border-radius: 50%;
    background-color: #e74c3c;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    margin: 0 0.2rem;
}
.btn-limpar { background-color: #6c757d; color: #fff; }

/* Grid de Números */
.number-grid-container { margin-bottom: 1.5rem; }
.number-grid-container p { font-size: 1.1rem; text-align: center; }

.number-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}
.number-ball {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    border: 2px solid #6c757d;
    background-color: transparent;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
}
.number-ball:hover { background-color: #6c757d; }
.number-ball.active {
    background-color: #3498db;
    border-color: #3498db;
}

.super-bolas-grid .number-ball {
    background-color: rgba(52, 152, 219, 0.2); /* Fundo azulado para as super bolas */
    border-color: #3498db;
}
.super-bolas-grid .number-ball.active {
    background-color: #f1c40f;
    border-color: #f1c40f;
    color: #333;
}

/* Botão de Adicionar */
.form-submit-action { text-align: center; margin-top: 1rem; }
.btn-add-game {
    background: linear-gradient(to right, #ff00ff, #ff0066);
    color: #fff;
    font-weight: 700;
    padding: 1rem 3rem;
    border-radius: 8px;
    border: none;
    box-shadow: 0 5px 15px rgba(255, 0, 102, 0.4);
}



/* --- Estilos da Página de Resultados (Super Chute) --- */
.game-results-area {
    padding: 1.5rem;
    background-color: #2c3e50; /* Fundo azul-marinho para a área de resultados */
}

.results-tabs .game-tab-item.active {
    background: #e91e63; /* Cor diferente para a aba ativa de resultados */
}

.info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0,0,0,0.2);
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.results-title {
    text-align: center;
    margin: 2rem 0 1.5rem 0;
    font-size: 1.8rem;
    text-transform: uppercase;
}

.confrontos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.match-card {
    background-color: #34495e;
    border: 1px solid #4a6fa5;
    border-radius: 8px;
    padding: 1rem;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto 1fr 1fr;
    align-items: center;
    gap: 0.5rem 1rem;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.3);
}
.match-card .match-label { grid-column: 1 / -1; font-weight: bold; text-align: center; margin-bottom: 0.5rem; }
.match-card .team { display: flex; justify-content: space-between; }
.match-card .total-goals {
    grid-column: 2;
    grid-row: 2 / 4;
    background-color: #e74c3c;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.rateio-box {
    background-color: rgba(0,0,0,0.2);
    text-align: center;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}
.rateio-box h4 { margin-bottom: 1rem; }
.rateio-box .rateio-number {
    display: inline-block;
    background-color: #4a6fa5;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.rateio-box p { line-height: 1.5; font-size: 1.1rem; }

.results-table-container {
    background-color: rgba(0,0,0,0.2);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}
.results-table-container h4, .results-table-container h5 { text-align: center; margin-bottom: 1rem; }

.results-table-header, .results-table-row {
    display: flex;
    padding: 0.8rem;
    border-radius: 25px;
    margin-bottom: 0.5rem;
    align-items: center;
}
.results-table-header {
    background-color: #34495e;
    font-weight: 600;
}
.results-table-row {
    background-color: #4a6fa5;
}
.results-table-header > div, .results-table-row > div {
    flex: 1;
    padding: 0 0.5rem;
    text-align: center;
}
.results-table-header > div:first-child, .results-table-row > div:first-child { text-align: left; }
.results-table .code { color: #f39c12; font-weight: bold; }

.previous-results-form h4 { text-align: center; margin-bottom: 1rem; }
.btn-search {
    background-color: #1abc9c;
    color: #fff;
    min-width: 50px;
}

/* --- Estilos da Página de Aposta (Super Chute) --- */
.super-chute-bet-area {
    background-color: #1f283e;
    padding: 1.5rem;
}

.super-chute-selection {
    text-align: center;
    padding: 1rem;
    background-color: rgba(0,0,0,0.2);
    border-radius: 6px;
    margin-bottom: 1.5rem;
}
.super-chute-selection p {
    margin-bottom: 1rem;
}
.super-chute-balls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.chute-ball, .chute-ball-plus {
    border: 1px solid #6c757d;
    background-color: #34495e;
    color: #fff;
    font-weight: 600;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.chute-ball:hover { background-color: #4a6fa5; }
.chute-ball.active { background-color: #e74c3c; border-color: #c0392b; }
.chute-ball-plus { font-size: 1.5rem; }

/* Lista de Previsão de Jogos */
.match-prediction-list {
    background-color: rgba(0,0,0,0.2);
    border-radius: 6px;
    overflow-x: auto; /* Adiciona scroll horizontal em telas muito pequenas */
}

.match-prediction-header, .match-prediction-row {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid #34495e;
    min-width: 800px; /* Largura mínima para evitar quebra de layout */
}
.match-prediction-header {
    background-color: #34495e;
    font-weight: 600;
    color: var(--text-color-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
}
.match-prediction-row:last-child { border-bottom: none; }

.col-jogo { flex: 0 0 50px; text-align: center; font-weight: 700; }
.col-data { flex: 0 0 100px; text-align: center; font-size: 0.9rem; }
.col-confronto { flex: 1 1 180px; }
.col-confronto span { display: block; }
.col-chute { flex: 2 1 400px; display: flex; justify-content: space-around; }
.col-chute button {
    background: transparent;
    border: 1px solid #4a6fa5;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.col-chute button:hover { background-color: #4a6fa5; }
.col-chute button.active { background-color: #27ae60; border-color: #27ae60; }


/* --- Estilos da Página de Cadastro (Site Público) --- */
.form-section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    color: #fff;
    border-bottom: 2px solid var(--border-color-dark);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 500;
    color: var(--text-color-muted);
}

.form-control-dark {
    background-color: rgba(0,0,0,0.2);
    border: 1px solid var(--border-color-dark);
    color: var(--text-color-light);
    padding: 0.75rem 1rem;
}

.form-control-dark:focus {
    background-color: rgba(0,0,0,0.3);
    border-color: var(--nav-link-hover);
    color: var(--text-color-light);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-control-dark::placeholder {
    color: var(--text-color-muted);
    opacity: 0.7;
}

.form-check-label a {
    color: var(--nav-link-hover);
    text-decoration: underline;
}

/* --- Estilos para o Modal Personalizado (Site Público) - TEMA ESCURO COMPLETO --- */

/* Fundo do modal (backdrop) */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

/* Frame do Modal (corpo geral) */
#sugestoesModal .modal-content {
    background-color: var(--card-bg-dark);
    color: var(--text-color-light);
    border: 1px solid var(--border-color-dark);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* Cabeçalho do modal */
#sugestoesModal .modal-header {
    border-bottom: 1px solid var(--border-color-dark);
    padding: 1rem 1.5rem;
}

#sugestoesModal .modal-header .modal-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
}

/* Botão de fechar (X) */
#sugestoesModal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Corpo do modal */
#sugestoesModal .modal-body {
    background-color: transparent; /* Garante que ele use o fundo do .modal-content */
}

#sugestoesModal .modal-body p {
    color: var(--text-color-muted);
    margin-bottom: 1.5rem;
}

/* Formulários DENTRO do Modal (agora escuros) */
#sugestoesModal .form-label {
    color: var(--text-muted-color);
    font-weight: 500;
}

#sugestoesModal .form-select {
    /* Reutiliza o estilo do .form-select-dark que já criamos */
    background-color: rgba(0,0,0,0.2);
    border: 1px solid var(--border-color-dark);
    color: var(--text-color-light);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23dee2e6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

#sugestoesModal .form-select:focus {
    background-color: rgba(0,0,0,0.3);
    border-color: var(--nav-link-hover);
    color: var(--text-color-light);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

#sugestoesModal select.form-select option {
    background-color: #fff; /* A lista dropdown PODE ser clara para legibilidade */
    color: #212529;
}

/* Lista Dinâmica de Membros (agora escura) */
#listaMembros .list-group-item {
    background-color: #34495e; /* Fundo cinza-azulado escuro */
    color: var(--text-color-light); /* Texto claro */
    border: none;
    border-bottom: 1px solid var(--border-color-dark);
    padding: 1rem 1.5rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

#listaMembros .list-group-item:last-child { border-bottom: none; }
#listaMembros .list-group-item:hover { background-color: #4a6fa5; }

#listaMembros .btn-success {
    background-color: #25d366; border-color: #25d366; font-weight: 600;
}
#listaMembros .btn-success:hover {
    background-color: #1ebe57; border-color: #1ebe57;
}

/* Alerta de "clique aqui" fora do modal (ajuste de cor para melhor contraste) */
.alert-warning {
    background-color: #494436;
    border-color: #665d43;
    color: #f8e3a0;
}
.alert-warning a {
    color: #fff; /* Texto branco no link para destaque */
    font-weight: bold;
    text-decoration: underline;
}

/* Botão para encontrar indicador (fora do modal) */
.btn-outline-primary {
    color: var(--nav-link-hover);
    border-color: var(--nav-link-hover);
}
.btn-outline-primary:hover {
    background-color: var(--nav-link-hover);
    border-color: var(--nav-link-hover);
    color: #fff;
}

/* --- Estilos para Select Personalizado (Site Público) --- */

.form-select-dark {
    /* Base - Reutiliza estilos dos outros inputs */
    background-color: rgba(0,0,0,0.2);
    border: 1px solid var(--border-color-dark);
    color: var(--text-color-light);
    padding: 0.75rem 2.25rem 0.75rem 1rem; /* Mais padding à direita para a seta */

    /* Remove a aparência padrão do navegador */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    /* Adiciona a nossa seta customizada (SVG embutido) */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23dee2e6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

.form-select-dark:focus {
    background-color: rgba(0,0,0,0.3);
    border-color: var(--nav-link-hover);
    color: var(--text-color-light);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Estilo das opções DENTRO do select fechado (para navegadores que suportam) */
select.form-select-dark option {
    background-color: var(--card-bg-dark);
    color: var(--text-color-light);
}


/* Controles gerais (Mostrar X registros, Pesquisar) */
.dataTables_wrapper {
    color: var(--text-muted-color); /* Garante que os textos "Mostrar", "registros" etc. fiquem claros */
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    background-color: var(--sidebar-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

/* Paginação */
.page-item.disabled .page-link {
    background-color: var(--sidebar-hover-bg);
    border-color: var(--border-color);
}
.page-item .page-link {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-color);
}
.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Estilo principal da Tabela */
.table.dataTable {
    border-color: var(--border-color);
}

/* Cabeçalho da Tabela (Fundo Escuro) */
.table.dataTable thead th {
    background-color: #212529; /* Fundo bem escuro para o cabeçalho */
    color: var(--text-color-light);
    border-bottom: 1px solid #444;
}

/* Corpo da Tabela (Fundo Claro) */
.table.dataTable tbody tr {
    background-color: #f8f9fa; /* Fundo claro para as linhas do corpo */
    color: #212529; /* Texto escuro para legibilidade */
}

/* Células da Tabela */
.table.dataTable tbody td {
    border-color: #dee2e6; /* Borda clara para separar as linhas */
    vertical-align: middle;
}

/* Remove o efeito "zebra" do table-striped para ter um fundo uniforme */
.table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-accent-bg: transparent; /* Anula a cor da linha ímpar do Bootstrap */
}

/* Efeito Hover na linha */
.table.dataTable tbody tr:hover {
    background-color: #e9ecef; /* Um cinza um pouco mais escuro para o hover */
    color: #000;
}

/* Container geral do feedback */
#id_feedback {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Mensagem de erro/sucesso (ex: "Este nome de usuário já está em uso.") */
#id_feedback .text-danger {
    color: #e74c3c !important; /* Um vermelho mais suave e alinhado ao tema */
    font-weight: 500;
    margin-right: 0.5rem;
}

#id_feedback .text-success {
    color: #27ae60 !important; /* Verde para a mensagem de sucesso */
    font-weight: 500;
}

/* Estilo das pílulas de sugestão */
#id_feedback .badge {
    background-color: #495057; /* Fundo cinza-escuro para a pílula */
    color: #ced4da; /* Texto cinza-claro */
    padding: 0.4em 0.7em; /* Espaçamento interno para um visual mais robusto */
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px; /* Bordas um pouco mais arredondadas */
    transition: all 0.2s ease-in-out;
    border: none;
}

/* Efeito de hover para as pílulas */
#id_feedback .badge:hover {
    background-color: #6c757d; /* Fundo mais claro ao passar o mouse */
    color: #fff; /* Texto branco para destaque */
    cursor: pointer;
    transform: translateY(-1px); /* Leve efeito de "levantar" */
}



/* --- Estilos para Header e Sidebar Fixos (Sticky) --- */

/* 1. Torna o Header Fixo no Topo */
.site-header {
    position: sticky; /* Define o elemento como "pegajoso" */
    top: 0;           /* Instrui a "grudar" no topo da tela (posição 0) */
    z-index: 1020;    /* Garante que o header fique acima de outros conteúdos */
    width: 100%;
}

/* --- Estilos para Sidebar Fixa no Fim da Rolagem --- */
@media (min-width: 992px) {
    
    .game-sidebar {
        position: sticky;
        top: 110px; /* Espaço para o header que está acima */
        
        /* 1. HABILITANDO A ROLAGEM */
        max-height: calc(100vh - 120px); /* A altura máxima é a da tela menos o header */
        overflow-y: auto; /* Mostra a barra de rolagem vertical APENAS quando necessário */
    }

    /* 2. ESTILIZANDO A BARRA DE ROLAGEM (Chrome, Safari, Edge) */

    /* Define a largura e o fundo geral da barra */
    .game-sidebar::-webkit-scrollbar {
        width: 8px; /* Largura da barra */
    }

    /* O "trilho" por onde a barra corre */
    .game-sidebar::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.2); /* Fundo do trilho, semi-transparente */
        border-radius: 10px;
    }

    /* A barra de rolagem em si (o "polegar") */
    .game-sidebar::-webkit-scrollbar-thumb {
        background-color: #f39c12; /* Cor laranja/amarela do seu modelo */
        border-radius: 10px;
        border: 2px solid #2a2a2a; /* Borda sutil para dar profundidade */
    }
    
    .game-sidebar::-webkit-scrollbar-thumb:hover {
        background-color: #ffc107; /* Cor um pouco mais clara ao passar o mouse */
    }

    /* 3. ESTILIZANDO A BARRA DE ROLAGEM (Firefox) */
    .game-sidebar {
        scrollbar-width: thin; /* Deixa a barra mais fina */
        scrollbar-color: #f39c12 #2a2a2a; /* Cor do polegar e cor do trilho */
    }



}


.game-header .text-muted {
    color: var(--text-color-muted) !important; /* Usa a nossa variável de tema para texto claro */
    opacity: 0.9; /* Deixa o texto um pouco mais sutil que o título, mas ainda legível */
}



/* --- Carrossel Vertical de Cadastros --- */

.widget-last-registered .vertical-ticker {
    height: 180px; /* Altura para exibir aprox. 5 itens. Ajuste se necessário. */
    overflow: hidden; /* Garante que os slides fora da área não sejam visíveis */
}

.widget-last-registered .swiper-slide {
    color: var(--text-color-muted);
    font-size: 0.9rem;
    padding: 0.4rem 0; /* Espaçamento vertical um pouco maior */
    border-bottom: 1px solid var(--border-color-dark);
    display: flex; /* Para alinhar o texto verticalmente, se necessário */
    align-items: center;
}



/* --- Carrossel de Prêmios (Topo) --- */

.top-bar-right {
    overflow: hidden; /* Garante que o carrossel não vaze da barra */
    flex-grow: 1; /* Permite que o carrossel ocupe o espaço disponível */
    margin-left: 2rem;
}


/* CSS para a nova lista de botões de jogos */
.game-button-list .game-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    color: #fff; /* Cor do texto padrão para todos os botões */
    transition: all 0.2s ease-in-out;
}

.game-button-list .game-link i {
    font-size: 1.2rem;
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

/* Estilo para botões ativos (verdes) */
.game-button-list .game-link-active {
    background-color: #28a745; /* Verde */
}
.game-button-list .game-link-active:hover {
    background-color: #218838; /* Verde mais escuro */
}

/* Estilo para botões de destaque (vermelho) - opcional */
.game-button-list .game-link-highlight {
    background-color: #dc3545; /* Vermelho */
}
.game-button-list .game-link-highlight:hover {
    background-color: #c82333; /* Vermelho mais escuro */
}

/* Estilo para botões inativos (cinza) */
.game-button-list .game-link-disabled {
    background-color: #6c757d; /* Cinza */
    color: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}


.game-name-special {
    font-style: italic;
    font-family: 'Brush Script MT', 'Brush Script Std', cursive; /* Usa uma fonte cursiva comum */
    font-weight: normal; /* A fonte cursiva já tem seu próprio peso */
    /* Você pode adicionar outros estilos aqui, como uma cor diferente */
    /* color: #ffdd57; */
}




/* --- ESTILOS COMPLETOS E FINAIS DA PÁGINA SUPER F1 --- */

/* --- CABEÇALHO EM CAMADAS --- */
/* --- CABEÇALHO SUPER F1 (VERSÃO FINAL COM POSICIONAMENTO CORRIGIDO) --- */

.f1-header {
    position: relative; /* Âncora para o posicionamento absoluto */
    margin-bottom: 0.5rem;
}

/* Coluna Principal (Azul) */
.f1-header-main {
    background-color: #1f283e;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Coluna Lateral Flutuante (Cinza) - POSICIONADA À DIREITA */
.f1-header-aside {
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 1rem;
    position: absolute; /* Flutua em relação ao .f1-header */
    right: 0;  /* <<< A CORREÇÃO CRUCIAL: alinha à direita */
    top: 50%; /* Centraliza verticalmente */
    transform: translateY(-50%); /* Ajuste fino para a centralização vertical */
    z-index: 10;
    width: 160px; /* Largura um pouco maior para acomodar o conteúdo */
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Ícone e Título do Jogo */
.game-title { text-align: center; flex-grow: 1; }
.f1-logo-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}
.f1-icon-wrapper {
    background-color: #fff;
    color: #dc3545;
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.f1-logo-title h2 { margin: 0; font-size: 1.8rem; color: #fff; }
.f1-header-main .text-muted { color: #adb5bd !important; font-size: 0.8rem; }

/* Contador */
.countdown-timer { text-align: center; }
.timer-label { font-size: 0.8rem; color: #adb5bd; display: block; margin-bottom: 0.25rem; }
.timer-boxes-wrapper { display: flex; gap: 0.5rem; }
.timer-box { 
    background: rgba(0,0,0,0.3); 
    padding: 0.5rem 0.8rem; 
    border-radius: 4px; 
    font-weight: 700;
    font-size: 0.9rem;
}

/* Setas de Navegação */
.contest-nav-arrow {
    color: #fff;
    font-size: 1.5rem;
    opacity: 0.7;
    transition: opacity 0.2s;
    padding: 0 0.5rem; /* Adiciona um pequeno espaçamento */
}
.contest-nav-arrow:hover { opacity: 1; }

/* Contador de Participações */
.participation-counter {
    text-align: center;
    line-height: 1.2;
}
.count-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.25rem 0;
}
.participation-counter .count {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1;
}
.participation-label { font-size: 0.8rem; color: var(--text-muted-color); }

.add-participation-btn {
    background: #343a40;
    color: #fff;
    width: 32px; height: 32px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    transition: background-color 0.2s;
    border: none;
}
.add-participation-btn:hover { background-color: #495057; }


/* --- BARRA DE PRÊMIO --- */
.f1-prize-bar {
    background: #2a2a2a;
    border-radius: 8px;
}


/* --- ÁREA DE APOSTAS --- */

/* --- ÁREA DE APOSTAS F1 (VERSÃO FINAL FIEL AO MODELO) --- */

.f1-betting-area {
    padding: 1.5rem;
    background-color: #212529; /* NOVO: Fundo principal mais escuro, como no modelo */
}

.points-goal-bar {
    background-color: #343a40; /* NOVO: Fundo cinza mais claro para a barra */
    text-align: center;
    padding: 0.8rem;
    border-radius: 6px;
    margin-bottom: 2.5rem;
    font-weight: 500;
    color: #fff;
    border: 1px solid #495057;
}

.bet-section { margin-bottom: 2.5rem; }
.bet-section-title {
    background-color: #1f283e; /* NOVO: Fundo azulado para o título */
    border: 1px solid #4a6fa5;
    text-align: center;
    padding: 0.8rem;
    border-radius: 6px;
    margin-bottom: 0; /* Remove a margem para colar com a lista abaixo */
    color: #fff;
    font-weight: 600;
    font-size: 1.2rem;
}

/* Lista de Pilotos (Design Correto) */
.driver-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 0.75rem;
    padding: 1rem; /* Adiciona espaçamento interno */
    background-color: #2a2a2a; /* Fundo escuro para a área da lista */
    border: 1px solid #495057;
    border-top: none; /* Remove a borda superior para se juntar ao título */
    border-radius: 0 0 6px 6px; /* Arredonda apenas os cantos de baixo */
}

.driver-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: #2a2a2a; /* NOVO: Fundo escuro para o item */
    border: 1px solid #495057; /* NOVO: Borda sutil */
    border-radius: 6px;
    padding: 0.75rem;
    width: 100%;
    text-align: left;
    transition: all 0.2s ease;
}

.driver-item:hover {
    background-color: #343a40;
    border-color: #6c757d;
}

.driver-item.active {
    background-color: #343a40;
    border-color: #fff; /* NOVO: Borda branca para o item ativo */
}

.flag-icon {
    width: 20px;
    height: 15px;
    object-fit: cover;
    flex-shrink: 0;
}

.driver-photo {
    width: 40px;
    height: 40px;
    border-radius: 4px; 
    object-fit: cover;
    flex-shrink: 0;
}

.driver-info { line-height: 1.2; }
.driver-name { display: block; font-weight: 600; color: #fff; }
.driver-team { display: block; font-size: 0.8rem; color: var(--text-color-muted); }

/* Grid de Equipes (Mantém o estilo que já estava bom) */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.75rem; }
.team-logo-item { background-color: #fff; border: 3px solid #ccc; border-radius: 8px; padding: 0.5rem; transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; }
.team-logo-item img { max-width: 100%; height: 40px; object-fit: contain; }
.team-logo-item:hover { border-color: #f39c12; }
.team-logo-item.active { border-color: #f39c12; transform: scale(1.05); box-shadow: 0 0 15px rgba(243, 156, 18, 0.4); }

/* Grid de Largada (Mantém o estilo que já estava bom) */
/* --- Grid de Largada (VERSÃO FINAL COM TEMA ESCURO CORRIGIDO) --- */

.starting-grid-list { 
    display: flex; 
    flex-direction: column; 
    gap: 0.75rem;
}

.starting-grid-row {
    display: flex; /* Muda para Flexbox para um controle mais fino */
    align-items: stretch;
    background-color: #2a2a2a; /* Fundo escuro para a linha inteira */
    border: 1px solid #495057;
    border-radius: 6px;
    overflow: hidden; /* Garante que os cantos arredondados sejam aplicados aos filhos */
}

.team-logo-cell {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem;
    text-align: center;
    display: flex; 
    align-items: center; 
    justify-content: center;
    flex: 0 0 130px; /* Largura fixa para a tag da equipe */
}

/* Classes de Cores para as Tags das Equipes */
.team-color-ferrari { background-color: #dc3545; }
.team-color-mercedes { background-color: #00d4d4; }
.team-color-redbull { background-color: #191970; }
.team-color-mclaren { background-color: #fd7e14; }
/* Adicione mais cores conforme necessário */

.driver-position-cell { 
    padding: 0;
    flex: 1; /* Faz as duas células de opção dividirem o espaço restante */
}

.driver-position-option {
    background-color: transparent; /* Fundo transparente para usar o da linha */
    color: var(--text-color-light); /* Texto claro */
    border: 3px solid transparent;
    border-left: 1px solid #495057; /* Linha separadora vertical */
    width: 100%;
    height: 100%;
    padding: 1rem 0.5rem;
    border-radius: 0; /* Remove o radius para um visual de bloco contínuo */
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
}

.driver-position-option:hover { 
    background-color: #343a40; /* Escurece um pouco no hover */
    border-color: #f39c12; 
}

.driver-position-option.active { 
    background-color: #343a40;
    border-color: #f39c12; 
    box-shadow: 0 0 10px rgba(243, 156, 18, 0.5);
}





/* --- Estilos da Página Super Bicho --- */

.bicho-betting-area {
    padding: 1.5rem;
    background-color: #1f283e;
}


/* ESTILOS NOVOS PARA OS FORMULÁRIOS */
.bicho-controls {
    display: flex;
    justify-content: space-evenly;
    gap: 2rem;
    padding: 1.5rem;
    background-color: rgba(0,0,0,0.2);
    border-radius: 6px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.bicho-controls .input-group-custom { text-align: center; }
.bicho-controls .input-group-custom label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: #fff; }
.bicho-controls .input-group { max-width: 200px; margin: 0 auto; }
.bicho-controls .surpresinha-link { display: block; margin-top: 0.5rem; font-size: 0.9rem; color: #f39c12; text-decoration: underline; }

.form-actions-secondary {
    display: flex;
    justify-content: center; /* Centraliza a teimosinha */
    align-items: center;
    padding-bottom: 1.5rem;
}
.teimosinha strong { margin-right: 0.5rem; color: #fff; }
.teimosinha-ball {
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    border-radius: 50%;
    background-color: #e74c3c;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    margin: 0 0.2rem;
}


/* --- Grid de Bichos Principal (VERSÃO FINAL E FIEL AO MODELO) --- */

.bicho-grid {
    display: grid;
    /* Força 5 colunas igualmente espaçadas */
    grid-template-columns: repeat(5, 1fr); 
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.bicho-item {
    background-color: #2c3e50;
    border: 2px solid #f39c12;
    border-radius: 8px;
    padding: 1.5rem 0.5rem 1rem 0.5rem; /* Mais padding no topo para o nome não sobrepor a imagem */
    position: relative; /* Essencial para posicionar o nome */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    transition: all 0.2s ease;
}

.bicho-item .bicho-number {
    position: absolute;
    top: 8px; left: 8px;
    background-color: #f39c12;
    color: #fff;
    font-weight: 700;
    width: 28px; height: 28px;
    line-height: 28px;
    text-align: center;
    border-radius: 50%;
}

.bicho-item img {
    max-width: 60%;
    filter: brightness(0) invert(1);
}

/* --- A CORREÇÃO PRINCIPAL ESTÁ AQUI --- */
.bicho-item .bicho-name {
    position: absolute; /* Permite o posicionamento preciso */
    bottom: -1px; /* Alinha na borda de baixo */
    left: -2px;  /* Compensa a largura da borda */
    right: -2px; /* Compensa a largura da borda */
    
    background-color: #2c3e50; /* Mesmo fundo do card para criar o efeito de "recorte" */
    border-top: 2px solid #f39c12; /* Borda laranja que separa o nome do resto */
    
    padding: 0.2rem 0;
    width: calc(100% + 4px); /* Garante que o fundo cubra toda a largura, incluindo as bordas */
    
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    
    /* Cantos arredondados apenas na parte de baixo para acompanhar o card */
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}
/* -------------------------------------- */

.bicho-item:hover { 
    background-color: #34495e;
    transform: translateY(-2px);
}

.bicho-item.active { 
    border-color: #f39c12;
    background-color: #f39c12;
}

/* Ajustes para o estado ativo */
.bicho-item.active .bicho-number {
    background-color: #fff;
    color: #f39c12;
}

.bicho-item.active .bicho-name {
    background-color: #f39c12; /* Acompanha a cor de fundo do card ativo */
    border-top-color: rgba(255,255,255,0.5); /* Borda superior mais clara para contraste */
}


/* --- Grid de Super Bichos (VERSÃO FINAL E FIEL AO MODELO) --- */

.super-bicho-grid {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

/* Botões de Grupo no Topo */
.super-bicho-header {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.super-bicho-header button {
    background-color: transparent;
    border: 2px solid #f39c12; /* Borda laranja */
    color: var(--text-color-muted);
    padding: 0.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}
.super-bicho-header button:hover { background-color: #34495e; color: #fff; }
.super-bicho-header button.active { background-color: #34495e; border-color: #f39c12; color: #fff; }

/* Corpo da Grade de Bichos */
.super-bicho-body {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border: 2px solid #f39c12; /* Borda laranja principal */
    border-radius: 8px;
}
.super-bicho-group { border-right: 1px solid #f39c12; }
.super-bicho-group:last-child { border-right: none; }

/* --- A CORREÇÃO PRINCIPAL ESTÁ AQUI --- */

.super-bicho-item {
    display: flex; /* MUDANÇA: Usa Flexbox para o layout principal */
    justify-content: space-between; /* Empurra os filhos para as extremidades */
    align-items: center; /* Alinha verticalmente */
    
    padding: 0.5rem 0.8rem;
    width: 100%;
    background-color: transparent;
    border: none;
    border-top: 1px solid #f39c12; /* Borda separadora laranja */
    color: #fff;
    transition: background-color 0.2s ease;
}
.super-bicho-item:first-child { border-top: none; }

/* Novo container para o número e nome */
.item-details {
    display: flex;
    flex-direction: column; /* Empilha o número e o nome verticalmente */
    line-height: 1.1;
    text-align: left;
}

.item-number {
    font-size: 2rem;
    font-weight: 700;
}

.item-name {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
}

.super-bicho-item img {
    width: 40px; 
    height: 40px;
    filter: brightness(0) invert(1); 
}
/* -------------------------------------- */

.super-bicho-item:hover { background-color: #34495e; }
.super-bicho-item.active { background-color: #1f283e; font-weight: bold; }

/* Rodapé da Área de Aposta */
.bicho-footer-info {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-color-muted);
    background-color: rgba(0,0,0,0.2);
    border-radius: 6px;
}
.bicho-footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
}
.btn-regras-error {
    background: linear-gradient(to right, #e91e63, #c2185b);
    color: #fff;
    font-weight: bold;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
}




/* --- Estilos da Página de Resultados (Super Bicho) --- */

.bicho-results-area {
    padding: 1.5rem;
    background-color: #212529; /* Fundo principal escuro */
}

/* Header de Resultados */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background-color: #2a2a2a;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}
.header-main { display: flex; flex-grow: 1; align-items: center; gap: 1rem; }
.results-icon { background-color: #fff; width: 40px; height: 40px; border-radius: 50%; }
.results-title h3 { margin: 0; font-size: 1.5rem; color: #fff; }
.results-title span { font-size: 0.85rem; color: var(--text-color-muted); }
.participants-info { text-align: center; padding: 0.5rem; border: 1px solid #495057; border-radius: 6px; }
.participants-info .count { font-size: 1.5rem; font-weight: 700; color: #fff; }
.results-nav-arrow { color: #fff; opacity: 0.7; font-size: 1.2rem; }
.header-search input { max-width: 150px; }

/* Info dos Prêmios */
.drawn-prizes-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
    margin: 2.5rem 0;
    color: #fff;
}
.info-item .label { font-size: 1rem; color: var(--text-color-muted); display: block; margin-bottom: 0.5rem; }
.info-item .value { font-size: 1.5rem; font-weight: 700; }
.prize-value { background-color: #343a40; padding: 0.5rem 1.5rem; border-radius: 6px; }
.drawn-group { font-size: 2rem; }
.drawn-group span { background: #e74c3c; padding: 0.2rem 0.7rem; border-radius: 4px; font-size: 1.5rem; margin-left: 0.5rem; }
.drawn-numbers { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.number-card { background: #343a40; border-radius: 6px; padding: 0.75rem; min-width: 90px; }
.number-card span { display: block; }
.number-card span:first-child { font-size: 1.2rem; font-weight: 700; }
.number-card span:last-child { font-size: 0.8rem; text-transform: uppercase; }

/* Tabela de Resultados */
.table-title-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.table-title-bar h4 { margin: 0; color: #fff; }
.table-title-bar .form-select { width: auto; }

.custom-table { background-color: #2a2a2a; border: 1px solid #495057; border-radius: 8px; color: #fff; }
.custom-table-header { display: flex; background: #343a40; font-weight: 600; font-size: 0.8rem; padding: 0.75rem; border-bottom: 1px solid #495057; }
.custom-table-row { display: flex; align-items: center; padding: 1rem; border-bottom: 1px solid #343a40; }
.custom-table-row:last-child { border-bottom: none; }

.col-participante, .col-grupos, .col-numeros, .col-situacao { padding: 0 0.5rem; }
.col-participante { flex: 2; line-height: 1.2; }
.col-participante span { font-size: 0.85rem; color: #27ae60; font-weight: bold; }
.col-grupos { flex: 1.5; }
.col-numeros { flex: 3; }
.col-situacao { flex: 1; text-align: center; }

.col-grupos, .col-numeros { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.bicho-ball {
    width: 32px; height: 32px; line-height: 32px;
    background: #495057; border-radius: 4px;
    text-align: center; font-size: 0.85rem; font-weight: 600;
}
.bicho-ball.premiado { background-color: #27ae60; color: #fff; }

.status-badge { padding: 0.5rem 0.8rem; border-radius: 4px; font-weight: bold; font-size: 0.8rem; }
.status-premiado { background-color: #27ae60; }
.status-nao-premiado { background-color: #6c757d; }





/* Barra do Ticker de Prêmios */
.prize-ticker-bar {
    background-color: #343a40; /* Cor de fundo escura */
    padding: 5px 0;
    border-bottom: 1px solid #495057;
}

/* Ajustes no carrossel de prêmios */
.prize-carousel {
    width: 100%;
    height: 30px; /* Altura da barra */
}

.prize-carousel .swiper-slide {
    width: auto; /* Largura automática para cada item */
    display: flex;
    align-items: center;
}

.prize-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: 15px; /* Formato de pílula */
    font-size: 0.85rem;
}

.prize-item strong {
    color: #fff;
}

.prize-item span {
    font-weight: bold;
}

/* Cores dos prêmios */
.prize-color-1 { background-color: #28a745; } /* Verde */
.prize-color-2 { background-color: #fd7e14; } /* Laranja */
.prize-color-3 { background-color: #0d6efd; } /* Azul */

.prize-color-1 span, .prize-color-2 span, .prize-color-3 span {
    color: #fff;
}