﻿/* =========================================================
   LOTOFÁCIL - ESTILOS ESPECÍFICOS
   Organização:
   1. Último Resultado
   2. Histórico de Concursos
   3. Utilitários
========================================================= */


/* =========================================================
   1. ÚLTIMO RESULTADO
========================================================= */

.resultado-card {
    border-radius: 26px;
    overflow: hidden;
}

.section-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 700;
    font-size: 0.85rem;
}

.section-chip-jogo {
    background: var(--cor-primaria-suave);
    color: var(--cor-primaria);
}

.resultado-bloco {
    background: #f8faf9;
    border: 1px solid #edf1ef;
    border-radius: 22px;
    padding: 20px;
}

.resultado-bloco-titulo {
    font-size: 1rem;
    font-weight: 800;
    color: #1f2937;
}

.info-box {
    background: #fff;
    border: 1px solid #edf1ef;
    border-radius: 18px;
    padding: 18px;
}

.info-box-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    color: #6c757d;
    font-weight: 700;
    margin-bottom: 8px;
}

.info-box-value {
    font-size: 1.15rem;
    font-weight: 800;
    color: #212529;
    word-break: break-word;
}

/* SIDE */

.resultado-side {
    color: #fff;
    border-radius: 22px;
    padding: 22px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.resultado-side-jogo {
    background: var(--cor-side);
}

.resultado-side-header {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 18px;
}

.resultado-side-list li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.16);
}

    .resultado-side-list li:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

.resultado-side-list span {
    font-size: 0.82rem;
    opacity: 0.92;
}

.resultado-side-list strong {
    font-size: 1rem;
    font-weight: 700;
    word-break: break-word;
}

/* TABELA RATEIO */

.tabela-rateio thead th {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #6c757d;
    background: #f8faf9;
    border-bottom-width: 1px;
}

.tabela-rateio tbody td {
    padding-top: 14px;
    padding-bottom: 14px;
}


/* =========================================================
   2. HISTÓRICO DE CONCURSOS
========================================================= */

.historico-card {
    border-radius: 20px;
    overflow: hidden;
}

.historico-card-header {
    background: linear-gradient(135deg, #4b1768 0%, #6b1fa1 100%);
    color: #fff;
    padding: 1.25rem 1.5rem;
}

.historico-btn-copiar-tudo {
    border-color: rgba(255,255,255,0.35);
    color: #fff;
}

    .historico-btn-copiar-tudo:hover {
        background: rgba(255,255,255,0.14);
        border-color: rgba(255,255,255,0.55);
        color: #fff;
    }

.historico-lista {
    max-height: 640px;
    overflow-y: auto;
    border: 1px solid #ece7f4;
    border-radius: 14px;
    background: #fff;
}

.historico-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: grid;
    grid-template-columns: 110px 120px 1fr;
    gap: 16px;
    align-items: center;
    padding: 12px 14px;
    background: #faf7fd;
    border-bottom: 1px solid #e7dcf2;
}

.historico-head-col {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 800;
    color: #6a1b7a;
    letter-spacing: 0.02em;
}

.historico-linha {
    display: grid;
    grid-template-columns: 110px 120px 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-bottom: 1px solid #ece7f4;
}

    .historico-linha:last-child {
        border-bottom: 0;
    }

.historico-col {
    min-width: 0;
}

.historico-col-numero strong {
    color: #6a1b7a;
    font-size: 0.98rem;
}

.historico-col-data {
    color: #6b7280;
    font-size: 0.94rem;
}

.historico-dezenas-texto {
    display: block;
    background: #faf7fd;
    color: #4b1768;
    border: 1px solid #ede3f7;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 0.92rem;
    line-height: 1.5;
    white-space: normal;
    word-break: break-word;
}

.historico-label-mobile {
    display: none;
}

@media (max-width: 991.98px) {
    .historico-head,
    .historico-linha {
        grid-template-columns: 90px 110px 1fr;
        gap: 12px;
    }
}

@media (max-width: 767.98px) {
    .historico-lista {
        max-height: none;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .historico-head {
        display: none;
    }

    .historico-linha {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 14px 0;
        border-bottom: 1px solid #ece7f4;
    }

    .historico-label-mobile {
        display: block;
        font-size: 0.72rem;
        text-transform: uppercase;
        font-weight: 700;
        color: #6c757d;
        margin-bottom: 2px;
    }
}


/* =========================================================
   3. UTILITÁRIOS
========================================================= */

.dezena-bola-sm {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .dezena-bola-sm {
        width: 34px;
        height: 34px;
        font-size: 0.88rem;
    }
}

/* =========================================================
   4. ESTATÍSTICAS
========================================================= */

.estatisticas-menu {
    border-radius: 20px;
    overflow: hidden;
    position: sticky;
    top: 120px;
}

.estatisticas-menu-header {
    background: linear-gradient(135deg, #4b1768 0%, #6b1fa1 100%);
    color: #fff;
    padding: 1rem 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.estatisticas-menu-body {
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    background: #fff;
}

.estatistica-link {
    border: 0;
    background: transparent;
    text-align: left;
    padding: 0.85rem 0.9rem;
    border-radius: 14px;
    font-weight: 700;
    color: #374151;
    transition: all 0.2s ease;
}

    .estatistica-link:hover {
        background: #f8f3fc;
        color: #6a1b7a;
    }

    .estatistica-link.ativo {
        background: #f3e8ff;
        color: #6a1b7a;
    }

.estatistica-card {
    border-radius: 22px;
}

.estatistica-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    background: #f3e8ff;
    color: #6a1b7a;
}

.estatistica-titulo {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1.9rem;
    font-weight: 800;
    color: #111827;
}

.estatistica-subtitulo {
    color: #6b7280;
    max-width: 720px;
}

@media (max-width: 991.98px) {
    .estatisticas-menu {
        position: static;
    }
}

/* =========================================================
   5. ESTATÍSTICA - FREQUÊNCIA
========================================================= */

.estatistica-resumo {
    color: #6b7280;
    font-size: 0.95rem;
}

.frequencia-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.frequencia-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px; /* 👈 adiciona isso */

    background: #fff;
    border: 1px solid #ece7f4;
    border-radius: 14px;
    padding: 8px 10px;
    transition: all 0.2s ease;
}

    .frequencia-item:hover {
        border-color: #d9caea;
        background: #faf7fd;
    }

.frequencia-info {
    text-align: right;
    line-height: 1.1;
}

.frequencia-qtd {
    font-size: 0.9rem;
    font-weight: 800;
    color: #111827;
}

.frequencia-percentual {
    font-size: 0.75rem;
    color: #6b7280;
}

.frequencia-item .dezena-bola-jogo {
    width: 34px;
    height: 34px;
    min-width: 34px; /* 👈 ESSENCIAL */
    border-radius: 50%; /* 👈 garante círculo perfeito */
    font-size: 0.85rem;
}

/* =========================================================
   6. ESTATÍSTICA - ATRASO
========================================================= */

.atraso-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 10px;
}

.atraso-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #ece7f4;
    border-radius: 14px;
    padding: 10px 12px;
    transition: all 0.2s ease;
}

    .atraso-item:hover {
        border-color: #d9caea;
        background: #faf7fd;
    }

    .atraso-item.top {
        border-color: #c084fc;
        background: #faf5ff;
    }

    .atraso-item .dezena-bola-jogo {
        width: 36px;
        height: 36px;
        min-width: 36px;
        border-radius: 50%;
        font-size: 0.88rem;
    }

.atraso-info {
    min-width: 0;
    line-height: 1.15;
}

.atraso-qtd {
    font-size: 0.92rem;
    font-weight: 800;
    color: #111827;
}

.atraso-ultimo {
    font-size: 0.76rem;
    color: #6b7280;
}

/* =========================================================
   7. ESTATÍSTICA - PAR / ÍMPAR
========================================================= */

.par-impar-tabela-wrap {
    border: 1px solid #e7dcf2;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.par-impar-tabela {
    margin-bottom: 0;
}

    .par-impar-tabela thead th {
        background: #f7f2fb;
        color: #6a1b7a;
        font-size: 0.82rem;
        font-weight: 800;
        text-transform: uppercase;
        border-bottom: 1px solid #e7dcf2;
        white-space: nowrap;
    }

    .par-impar-tabela tbody td {
        padding-top: 12px;
        padding-bottom: 12px;
        border-color: #efe7f6;
    }

    .par-impar-tabela tbody tr:hover {
        background: #faf7fd;
    }

    .par-impar-tabela tbody tr.top {
        background: #faf5ff;
    }

        .par-impar-tabela tbody tr.top:hover {
            background: #f6effd;
        }

.par-impar-legenda {
    font-size: 0.88rem;
    color: #6b7280;
}

/* =========================================================
   8. ESTATÍSTICA - SOMA DAS DEZENAS
========================================================= */

.soma-tabela-wrap {
    border: 1px solid #e7dcf2;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.soma-tabela {
    margin-bottom: 0;
}

    .soma-tabela thead th {
        background: #f7f2fb;
        color: #6a1b7a;
        font-size: 0.82rem;
        font-weight: 800;
        text-transform: uppercase;
        border-bottom: 1px solid #e7dcf2;
        white-space: nowrap;
    }

    .soma-tabela tbody td {
        padding-top: 12px;
        padding-bottom: 12px;
        border-color: #efe7f6;
    }

    .soma-tabela tbody tr:hover {
        background: #faf7fd;
    }

.soma-legenda {
    font-size: 0.88rem;
    color: #6b7280;
}