﻿/* =========================================================
   SYNCFUSION CUSTOM — LIMPO, COMENTADO E ESCOPO CONTROLADO
   --------------------------------------------------------- */

/*
    Fontes MONO para algumas listagens
*/

/* wwwroot/css/syncfusion-custom.css */
:root {
    --mono-stack: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.mono {
    font-family: var(--mono-stack);
    font-variant-numeric: tabular-nums; /* mantém dígitos alinhados em fontes que suportam */
    white-space: pre; /* mantém espaços/traços exatamente como escritos */
    letter-spacing: 0;
}




/*
   Estrutura:
   1) Wrappers de página / layout
   2) Grid (SfGrid) — preset visual
   3) Card "Resultado" — visual clonado da SOURCE (escopo estrito)
   4) Variantes de tamanho para Cards (compacto, md, sm)
   5) Dark mode — ajustes não conflitantes
   ========================================================= */

/* =========================================================
   1) WRAPPERS DE PÁGINA / LAYOUT
   --------------------------------------------------------- */

/* Espaçamento externo da página */
.dl-page-pad-outer {
    padding: 10px 16px;
    box-sizing: border-box;
    width: 100%;
}

/* Container interno centralizado, com largura máxima */
.dl-page-pad {
    width: 100%;
    max-width: 1400px;
    margin-inline: auto;
    box-sizing: border-box;
}

/* Evita “vazamento” lateral em contêineres comuns */
.page, .main, .content, .container, .container-fluid,
.dl-page-pad-outer, .dl-page-pad {
    min-width: 0;
}


/* =========================================================
   2) GRID (SfGrid) — PRESET VISUAL
   --------------------------------------------------------- */

.e-grid {
    font-variant-numeric: tabular-nums;
    -moz-font-feature-settings: "tnum";
    -webkit-font-feature-settings: "tnum";
    font-feature-settings: "tnum";
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

    .e-grid .e-gridheader,
    .e-grid .e-columnheader,
    .e-grid .e-headercell {
        background: transparent;
    }

    .e-grid .e-headercelldiv {
        font-weight: 700;
        font-size: 0.95rem;
        line-height: 1.2;
        padding-block: 10px;
    }

    .e-grid .e-rowcell {
        padding: 6px 10px;
    }

    .e-grid .e-altrow .e-rowcell {
        background-color: rgba(0, 0, 0, 0.035);
    }

    .e-grid .e-content .e-row:hover .e-rowcell {
        background-color: rgba(0, 0, 0, 0.06);
    }

    .e-grid .e-summaryrow .e-summarycell,
    .e-grid .e-summaryrow .e-summarycell .e-summarycontent {
        font-weight: 600;
    }

    /* Header “grudado” no topo quando rola */
    .e-grid .e-gridheader {
        position: sticky;
        top: 0;
        z-index: 5;
    }


/* =========================================================
   3) CARD "Resultado" — VISUAL CLONADO DA SOURCE
   ---------------------------------------------------------
   Escopo estrito: #Resultado … (não afeta outros cards)
   ========================================================= */

/* Wrapper do card — responsivo, centralizado */
#Resultado {
    /*    max-width: 800px;
    width: 100%;
    height: auto;
    margin: 16px auto;
    box-sizing: border-box;*/
    width: clamp(320px, 90%, 1100px);
    max-width: 100%;
    margin-inline: auto;
    box-sizing: border-box; /* inclui padding na conta da largura */
}

    /* Título do card — inspirado no SOURCE (x-large, azul, bold) */
    #Resultado .e-card-header .e-card-header-caption .e-card-header-title,
    #Resultado .e-card-header .e-card-title {
        font-size: x-large;
        font-family: Arial, "Helvetica Neue", Segoe UI, sans-serif;
        font-weight: 900;
        color: blue;
    }

    /* SubTitle do card — cobrindo variações (sub-title vs subtitle) */
    #Resultado .e-card-header .e-card-sub-title,
    #Resultado .e-card-header .e-card-subtitle,
    #Resultado .e-card-header .e-card-header-caption .e-card-sub-title,
    #Resultado .e-card-header .e-card-header-caption .e-card-subtitle {
        font-weight: 800 !important; /* negrito; mantém precedência sobre tema */
        font-size: 1.05rem !important; /* ligeiramente maior */
        line-height: 1.2;
        opacity: 1;
        font-family: Arial, "Helvetica Neue", Segoe UI, sans-serif;
    }

    /* Imagem no header (quando usar ImageUrl) */
    #Resultado .e-card-header .e-card-header-image {
        margin-right: 8px;
    }

    /* Conteúdo do card — grande e centralizado como no SOURCE
   Força preto 100% no conteúdo para vencer text-opacity/filtros de tema */
    #Resultado .e-card-content {
        font-size: 34px;
        line-height: initial;
        font-weight: bolder;
        text-align: center;
        /* correções de cor/opacidade contra Tailwind/tema */
        --tw-text-opacity: 1 !important;
        color: rgb(0 0 0 / 1) !important; /* preto 100% */
        opacity: 1 !important;
        filter: none !important;
        -webkit-text-fill-color: #000 !important; /* Safari */
    }

        /* Garante que elementos internos (div, p, etc.) não rebaixem a opacidade */
        #Resultado .e-card-content * {
            --tw-text-opacity: 1 !important;
            color: inherit !important;
            opacity: 1 !important;
            -webkit-text-fill-color: currentColor !important;
        }

        /* Números sorteados (dezenas) — vermelho escuro fixo (independe de tema) */
        #Resultado .e-card-content .dl-dezenas {
            color: #8B0000 !important; /* darkred fixo */
            font-weight: 800;
            letter-spacing: .02em; /* leve respiro visual (opcional) */
            font-variant-numeric: tabular-nums; /* alinhamento de dígitos */
        }

        /* Alternativa sem mexer no markup (usa o primeiro filho do content).
   Mantenha apenas se você NÃO estiver usando .dl-dezenas no markup. */
        #Resultado .e-card-content > :first-child {
            color: #8B0000 !important;
            font-weight: 800;
        }


/* =========================================================
   4) VARIANTES DE TAMANHO PARA CARDS (compacto, md, sm)
   --------------------------------------------------------- */

/* Card compacto: textos do Content menores e confortáveis */
.dl-card--compact .e-card-content {
    font-size: 18px; /* ajuste: 16–20px costuma ficar ótimo */
    line-height: 1.35;
    font-weight: 600; /* menos “berrante” que bolder */
    text-align: center; /* mude para left se preferir */
    /* herdamos cor/opacidade do tema; defina color aqui se quiser fixar */
}

/* Variante ainda menor */
.dl-card--sm .e-card-content {
    font-size: 16px;
    line-height: 1.4;
    font-weight: 500;
}

/* Variante “média” */
.dl-card--md .e-card-content {
    font-size: 20px;
    line-height: 1.35;
    font-weight: 600;
}

/* Separador interno do card (se houver) */
#Resultado .e-card-separator {
    padding-bottom: 10px;
}

/* (Opcional) Classe utilitária “newIcon” — só use se necessário em layout */
.newIcon {
    background: #2CC000;
    border-radius: 12px;
    font-family: HelveticaNeue-Medium, "Segoe UI", Arial, sans-serif;
    font-weight: 500;
    color: #ffffff;
    margin-left: 16px;
    font-size: 14px;
    width: 158px;
    height: 124px;
    display: flex;
    justify-content: center;
    align-items: center;
    letter-spacing: 0.4px;
}




/* =========================================================
   DESTAQUE PARA GANHADOR DE 6 NUMEROS MEGASENA
   ---------------------------------------------------------
   - Usamos inicialmente na listagem de 10 concursos
   - pode ser usado nas outras
   ========================================================= */

.dl-win6 {
    color: #2563eb;
    font-weight: 600;
}
/* azul + bold */





/* =========================================================
   5) DARK MODE — AJUSTES NÃO CONFLITANTES
   ---------------------------------------------------------
   - Mantemos o Grid com contraste adequado.
   - NÃO mudamos a cor das dezenas (permanece darkred).
   - O card "Resultado" já força preto 100% no content (por design).
   ========================================================= */

@media (prefers-color-scheme: dark) {
    /* Grid */
    .e-grid .e-altrow .e-rowcell {
        background-color: rgba(255, 255, 255, 0.05);
    }

    .e-grid .e-content .e-row:hover .e-rowcell {
        background-color: rgba(255, 255, 255, 0.08);
    }

    .e-grid {
        border-color: rgba(255, 255, 255, 0.12);
    }

    /* NÃO recolorimos .dl-dezenas — permanece #8B0000 pelo !important */
}





/* Evita rolagem horizontal por qualquer vazamento */
html, body {
    margin: 0;
    padding: 0;
    /* overflow-x: hidden; */
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* Mobile overrides com alta prioridade */
@media (max-width: 640px) {
    /* Texto principal: simétrico e alinhado à esquerda */
    .hero .pagecontent,
    .pagecontent {
        margin: 0 auto !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        max-width: 720px !important;
        text-align: left !important;
    }

    /* Lista: remove float/min-width que criam “folga” à direita */
    .ulstyle {
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        text-align: left !important;
        overflow: hidden !important;
    }

        .ulstyle .list {
            float: none !important;
            display: block !important;
            min-width: 0 !important;
            line-height: 30px !important;
            font-size: 17px !important;
            margin: 4px 0 !important;
            white-space: normal !important;
            word-break: break-word !important;
        }

    /* Botões centralizados sem “puxar” para um lado */
    .cta {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 12px !important;
        flex-wrap: wrap !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        max-width: 100% !important;
    }
}


/* Header com a mesma grade das linhas */
.dupla-header {
    display: grid;
    grid-template-columns: 110px 120px 1fr;
    column-gap: 12px;
    padding: 6px 10px;
    font-weight: 600;
    opacity: .85;
    box-sizing: border-box;
}

    .dupla-header .h-sorteios {
        padding-left: 2px;
    }

/* Linhas */
.dupla-lista {
    border-top: 1px solid rgba(0,0,0,.08);
}

.dupla-row {
    display: grid;
    grid-template-columns: 110px 120px 1fr; /* Concurso | Data | Sorteios */
    column-gap: 12px;
    align-items: start;
    padding: 6px 10px;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(0,0,0,.08);
}

.col-sorteios {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

/* Cada sorteio numa linha; itens em sequência (tag, dezenas, Ganh.) */
.linha-sorteio {
    display: flex;
    gap: 8px;
    align-items: center;
    min-width: 0;
    /* nada de space-between: queremos os Ganh. logo após as dezenas */
}

.tag {
    display: inline-block;
    padding: 0 8px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: .85rem;
    line-height: 1.6;
    border: 1px solid var(--e-border,#ccc);
}

.dezenas {
    flex: 0 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

.sep {
    opacity: .5;
}

.Ganh. {
    margin-left: 6px; /* encosta nas dezenas */
    font-weight: 600;
    text-align: left; /* à esquerda, como pedido */
}



/* Mobile: empilha DUPLA SENA */

@media (max-width:640px) {
    .dupla-header, .dupla-row {
        grid-template-columns: 1fr;
        row-gap: 6px;
    }

    .dupla-header {
        padding-bottom: 0;
    }

    .col-concurso, .col-data {
        display: inline-block;
        margin-right: 12px;
        font-weight: 600;
    }
}



/*  BOTÃO DE SIMULAÇÕES E ESTATÍSTICAS */

/* Versão para <button> / <a> “puro” (independente de temas) */
.dl-hero-btn {
    /* isola de heranças agressivas */
    all: unset;
    display: block;
    /* “tamanho h3” aproximado */
    font-size: 1.17em; /* padrão ~h3 */
    line-height: 1.2;
    /* 2 linhas de respiro acima do botão */
    margin-block-start: 2lh; /* usa a lh do próprio botão */
    margin-inline: auto; /* centraliza (com width auto) */
    width: fit-content; /* contrai ao conteúdo */
    /* visual básico */
    padding: .6em 1.2em;
    border-radius: .75rem;
    border: 1px solid #000000;
    background: #0a2cf0;
    color: #fff;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.4);
}

    .dl-hero-btn:hover {
        filter: brightness(1.05);
    }

    .dl-hero-btn:active {
        transform: translateY(1px);
    }

    .dl-hero-btn:focus-visible {
        outline: 3px solid Highlight;
        outline-offset: 2px;
    }

/* Versão para SfButton (não usa `all: unset` para não quebrar o tema) */
.dl-hero-btn-sf {
    font-size: 1.17em;
    line-height: 1.2;
    margin-block-start: 2lh;
    display: block;
    margin-inline: auto;
    padding-block: .6em;
    padding-inline: 1.2em;
    border-radius: .75rem; /* mantém cantos arredondados mesmo no tema */
}

/* Transição suave para todos */
.dl-hero-btn,
.dl-hero-btn-sf {
    transition: background-color .18s ease, border-color .18s ease, filter .18s ease;
}

/* --- Variante VERDE --- */
.dl-hover-green:hover {
    background: #16a34a; /* Green 600 */
    border-color: #15803d; /* Green 700 */
    color: inherit; /* mantém a cor atual do texto */
}

.dl-hover-green:active {
    background: #15803d;
}

/* --- Variante VERMELHA --- */
.dl-hover-red:hover {
    background: #dc2626; /* Red 600 */
    border-color: #b91c1c; /* Red 700 */
    color: #e5b802;
    /* color: inherit;  mantém a cor atual do texto */
}

.dl-hover-red:active {
    background: #b91c1c;
}


/* INPUTS DE TEXTBOX da SimStat */
input[type=number].w-28 { /* só um alias útil */
}


/* ====== Consultabitmask: estilos finos ====== */

/* Inputs gerais (select, textarea, etc) */
.dl-input {
    border: 3px solid #d1d5db; /* cinza claro */
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    font-size: 1.2rem;
    font-weight: 600;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

    .dl-input:focus {
        outline: none;
        border-color: #2563eb; /* azul primary */
        box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
    }

/* Textarea específico: usa toda largura disponível do container interno */
.dl-textarea {
    min-height: 80px;
    width: 100%;
    max-width: 420px;
    display: block;
    margin: 0 auto;
    resize: vertical;
}

/* Botão primário (Calcular) */
.dl-btn-primary {
    background: #2563eb; /* blue-600 */
    color: #ffffff;
    border-radius: 0.375rem;
    padding: 0.5rem 1.25rem;
    border: none;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.25);
    transition: background-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

    .dl-btn-primary:hover:not(:disabled) {
        background: #1d4ed8; /* blue-700 */
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(15, 23, 42, 0.3);
    }

    .dl-btn-primary:disabled {
        background: #e5e7eb;
        color: #9ca3af;
        cursor: not-allowed;
        box-shadow: none;
        transform: none;
    }

/* Botão secundário (Baixar CSV) */
.dl-btn-secondary {
    background: #f9fafb;
    color: #374151;
    border-radius: 0.375rem;
    padding: 0.5rem 1.25rem;
    border: 1px solid #d1d5db;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

    .dl-btn-secondary:hover:not(:disabled) {
        background: #e5e7eb;
        border-color: #9ca3af;
    }

    .dl-btn-secondary:disabled {
        background: #f3f4f6;
        color: #9ca3af;
        border-color: #e5e7eb;
        cursor: not-allowed;
    }



/* ===== FaleConosco: ajustes locais e pequenos ===== */

/* garante que o <a> com dl-btn-secondary pareça botão */
.dl-mail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none; /* tira sublinhado */
    cursor: pointer;
}

/* Ajustes locais para os ícones dentro dos botões do e-mail */
.dl-mail-icon {
    color: currentColor !important; /* herda a cor do botão (verde no Copiar, cinza no secundário) */
    padding-right: 10px !important; /* substitui os 13px do padrão */
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
}

    /* garante que o glyph do :before tenha altura boa (evita “achatado/sumir”) */
    .dl-mail-icon:before {
        display: inline-block;
        line-height: 1;
    }




/* Hint do modo */
.dl-mode-hint {
    font-size: 0.8rem;
    opacity: 0.75;
    font-weight:800;
    margin-top: 0.5rem;
}

/* Rótulos dos rádios (volante exato / números soltos) */
.dl-radio-label {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.9rem;
    border-radius: 999px;
    font-size: 0.9rem;
    color: #374151;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.dl-radio-label--active {
    background-color: #ecfdf3; /* verde bem claro */
    color: #166534;
}

/* Label do input principal */
.dl-input-label {
    font-size: 0.95rem;
    opacity: 0.8;
    font-weight: 500;
}

/* Texto de ajuda */
.dl-help {
    font-size: 0.78rem;
    opacity: 0.7;
    max-width: 32rem;
    margin: 0.25rem auto 0;
}




/* ===== Premium Container ===== */

.dl-premium-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem 2.5rem;
    max-width: 960px;
    margin: 1.5rem auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.25s ease;
}

    .dl-premium-card:hover {
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08), 0 12px 28px rgba(0, 0, 0, 0.12);
    }

.dl-title-gradient {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(90deg, #2563eb, #7c3aed, #0ea5e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    margin-bottom: 1.25rem;
}

.dl-radio-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 500;
    border: 1px solid transparent;
    transition: all 0.25s ease;
}

    .dl-radio-chip:hover {
        background: #f3f4f6;
    }

    .dl-radio-chip--active {
        background: #ecfdf5;
        border-color: #6ee7b7;
        color: #065f46;
        box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
    }

.fade-swap {
    animation: fadeSwap 0.35s ease;
}

@keyframes fadeSwap {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dl-summary-item {
    padding: 0.35rem 0.25rem;
    border-radius: 6px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

    .dl-summary-item:hover {
        background: #f3f4f6;
        transform: translateX(4px);
    }

.dl-game-badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    background: #eef2ff;
    color: #3730a3;
    margin-top: -0.6rem;
    margin-bottom: 0.4rem;
}

.dl-tooltip-icon {
    display: inline-block;
    margin-left: 0.25rem;
    font-size: 0.75rem;
    cursor: help;
    opacity: 0.6;
    transition: opacity 0.15s ease;
}

    .dl-tooltip-icon:hover {
        opacity: 1;
    }


/* Grade dos dois accordions (Mais / Menos sorteados) */
.simstat-top-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
    min-width: 0;
}

/* Abaixo de ~900px, força apenas 1 coluna */
@media (max-width: 900px) {
    .simstat-top-grid {
        grid-template-columns: 1fr;
    }
}


