/* ============================================
   FOLHAS DO HÁBITO — style.css
   Reset e estilos globais compartilhados
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Fundo escuro TAMBÉM no html (não só no body): reforço pras telas onde o body é curto.
   (O bloco cinza do dashboard NÃO era isso — era o body com 100vh bugado no mobile;
   o fix real é o min-height:100dvh no dashboard.css. Isto aqui fica de reforço inofensivo.) */
html {
    background: #060d08;
}
html, body {
    min-height: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: linear-gradient(160deg, #060d08 0%, #0b1510 40%, #060e0a 100%);
    color: #e2e8f0;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--fh-accent, #4ade80);
    text-decoration: none;
    transition: opacity 0.2s;
}

a:hover { opacity: 0.8; }

.small, .helper, .muted {
    color: #94a3b8;
    font-size: 0.82rem;
    line-height: 1.5;
}

/* Scrollbar global */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ── Paginação ── */
.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding: 14px 16px;
    margin-top: 14px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
}
.pagination-bar.pagination-summary-only {
    justify-content: flex-end;
}
.pagination-summary {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55);
}
.pagination-summary strong {
    color: rgba(255,255,255,0.92);
    font-weight: 700;
}
.pagination-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.pagination-nav .page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 34px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255,255,255,0.78);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.pagination-nav .page-btn:hover {
    background: var(--accent-soft, rgba(74,222,128,0.1));
    border-color: var(--accent, #4ade80);
    color: var(--accent, #4ade80);
}
.pagination-nav .page-btn.current {
    background: var(--accent, #4ade80);
    border-color: var(--accent, #4ade80);
    color: #060a08;
    cursor: default;
}
.pagination-nav .page-btn.disabled {
    opacity: 0.35;
    pointer-events: none;
}
.pagination-nav .page-ellipsis {
    color: rgba(255,255,255,0.4);
    padding: 0 4px;
    user-select: none;
}
