/* ========================================
   RESULTADOS MEGA-SENA - LAYOUT V4.3
   ======================================== */

:root {
    --mega-green: #00AB69;
    --mega-dark-green: #007A4E;
    --mega-text: #333333;
    --mega-bg: #ffffff;
    --mega-border: #dddddd;
    --mega-gray-bg: #f9f9f9;
}

/* Reset de estilos para evitar herança do tema */
.mega-sena-container, 
.mega-sena-container * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    text-shadow: none !important;
    box-shadow: none;
    outline: none !important;
}

.mega-sena-container {
    max-width: 600px;
    margin: 20px auto;
    background: var(--mega-bg) !important;
    border: 1px solid var(--mega-border);
    border-radius: 12px;
    overflow: hidden;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--mega-text);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
}

/* Cabeçalho Auto-Ajustável */
.mega-sena-header {
    background: transparent !important;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.mega-sena-header img {
    width: 100%;
    height: auto;
    display: block;
}

/* Navegação e Busca */
.mega-sena-nav-section {
    padding: 25px 20px;
    text-align: center;
    background: white;
}

.mega-sena-nav-section h4 {
    margin: 0 0 15px;
    font-size: 16px;
    text-transform: uppercase;
    color: #000;
    font-weight: bold;
}

.mega-sena-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.mega-sena-btn {
    padding: 10px 25px;
    border-radius: 30px;
    border: none;
    background: var(--mega-green) !important;
    color: white !important;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    text-transform: uppercase;
    transition: background 0.2s, opacity 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.mega-sena-btn:hover:not(.disabled) {
    background: var(--mega-dark-green) !important;
}

/* Estado Desativado (Botão Cinza) */
.mega-sena-btn.disabled,
.mega-sena-btn:disabled {
    background: #cccccc !important;
    color: #666666 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
    opacity: 0.8;
}

#mega-sena-concurso-input {
    width: 100px;
    padding: 10px;
    text-align: center;
    border: 2px solid #333;
    font-size: 18px;
    font-weight: bold;
    border-radius: 4px;
    -moz-appearance: textfield;
}

#mega-sena-concurso-input::-webkit-outer-spin-button,
#mega-sena-concurso-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.mega-sena-btn-buscar {
    padding: 12px 50px;
    border-radius: 30px;
    background: var(--mega-green) !important;
    color: white !important;
    border: none;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 5px;
    transition: background 0.2s;
}

.mega-sena-btn-buscar:hover {
    background: var(--mega-dark-green) !important;
}

/* Resultados */
.mega-sena-result-header {
    text-align: center;
    padding: 10px 0;
}

.mega-sena-concurso-label {
    font-size: 22px;
    font-weight: bold;
    color: #000;
}

.mega-sena-data-label {
    font-size: 16px;
    color: #333;
    margin-top: 5px;
}

.mega-sena-status-acumulado {
    color: var(--mega-dark-green) !important;
    font-size: 54px !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    margin: 20px 0;
    letter-spacing: 2px;
}

/* Dezenas */
.mega-sena-dezenas-section {
    text-align: center;
    padding: 10px 0 30px;
}

.mega-sena-dezenas-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

.dezenas-grid {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.dezena-ball {
    width: 55px;
    height: 55px;
    background: var(--mega-green) !important;
    color: white !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px !important;
    font-weight: bold !important;
    transition: transform 0.3s ease, background 0.3s ease;
}

.dezena-ball:hover {
    transform: scale(1.2);
    background: var(--mega-dark-green) !important;
}

/* Próximo Concurso */
.mega-sena-next-section {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    text-align: center;
    background: var(--mega-gray-bg);
    padding: 25px;
    margin: 0 20px 30px;
    border-radius: 10px;
}
.mega-sena-next-section p {
    margin: 5px 0;
    font-weight: 500;
    color: #000000 !important;
    font-size: 18px;
    white-space: nowrap; /* Evita quebra de linha */
    display: block; /* Garante que cada <p> ocupe sua própria linha */
}
.mega-sena-next-section p span {
    white-space: nowrap; /* Garante que o valor também não quebre */
    display: inline-block; /* Para que o nowrap funcione corretamente */
}
@media (max-width: 480px) {
    .mega-sena-next-section p {
        font-size: 16px; /* Reduz a fonte em telas menores */
    }
    .mega-sena-next-section {
        flex-direction: column;
        align-items: center;
        gap: 0; /* Remove o gap para que as linhas fiquem mais próximas */
    }
}
.mega-sena-next-section span {
    font-weight: 600;
}
/* Mobile para Próximo Concurso */
@media (max-width: 480px) {
    .mega-sena-next-section {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
}

/* Rateio */
.mega-sena-rateio-section h3 {
    text-align: center;
    color: var(--mega-green) !important;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.rateio-table {
    width: 100% !important; /* Força a largura total */
    border-collapse: collapse;
    table-layout: fixed; /* Ajuda a distribuir o espaço igualmente */
    margin: 0 auto; /* Centraliza a tabela */
}

.rateio-table th {
    background: var(--mega-green) !important;
    color: white !important;
    padding: 12px !important;
    text-align: center !important;
    font-size: 14px !important;
}

.rateio-table td {
    padding: 12px !important;
    text-align: center !important;
    border: 1px solid #eee !important;
    font-size: 14px !important;
    word-break: break-word; /* Quebra palavras longas */
}

.mega-sena-arrecadacao {
    text-align: center;
    padding: 25px 0 10px;
    font-weight: bold;
    font-size: 16px;
}

/* Loading */
.mega-sena-loading {
    padding: 40px;
    text-align: center;
    color: var(--mega-green);
    font-weight: bold;
}

/* Responsividade Mobile Geral */
@media (max-width: 480px) {
    .mega-sena-status-acumulado { font-size: 34px !important; }
    .dezena-ball { width: 42px; height: 42px; font-size: 18px !important; }
    .mega-sena-btn { padding: 8px 15px; font-size: 12px; }
    .mega-sena-controls { gap: 5px; }
    .rateio-table th, .rateio-table td {
        padding: 8px !important;
        font-size: 12px !important;
    }
}
