/* ===================================================================
   styles.css — Plataforma Lupa
   Complementa as variáveis CSS do base.html.
   Aqui vivem apenas componentes não cobertos pelo Tailwind CDN.
   =================================================================== */

/* ===================================================================
   TIPOGRAFIA GLOBAL
   =================================================================== */
body  { font-family: 'Inter', system-ui, sans-serif; }
code, pre, .font-mono { font-family: 'JetBrains Mono', monospace; }

/* ===================================================================
   CAMPO DE DATA — ícone do calendário respeitando o tema
   =================================================================== */
input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: .4;
    cursor: pointer;
    filter: var(--cal-filter, none);
}
html.dark input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

/* ===================================================================
   SELECT — remove aparência nativa e aplica estilo Lupa
   =================================================================== */
select.lupa-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
}

/* ===================================================================
   PAGINAÇÃO — usada em paginate.html
   =================================================================== */
.page-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 32px; height: 32px; padding: 0 8px;
    border-radius: 6px; border: 1px solid var(--border);
    font-size: 13px; color: var(--text-3);
    background: transparent; text-decoration: none;
    transition: all .15s; cursor: pointer;
}
.page-btn:hover   { background: var(--bg-subtle); color: var(--text); border-color: var(--text-4); }
.page-btn.active  { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 500; }
.page-btn.disabled{ opacity: .35; cursor: not-allowed; pointer-events: none; }

/* ===================================================================
   EMPTY STATE
   =================================================================== */
.empty-state {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; padding: 56px 24px; text-align: center;
}
.empty-state-icon {
    width: 48px; height: 48px; border-radius: 10px;
    background: var(--bg-subtle); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: var(--text-4); margin-bottom: 16px;
}
.empty-state p { font-size: 13.5px; color: var(--text-3); margin: 0; }
.empty-state small { font-size: 12.5px; color: var(--text-4); margin-top: 4px; display: block; }

/* ===================================================================
   SEÇÃO DE TÍTULO DE PÁGINA
   =================================================================== */
.page-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px;
}
.page-header-left { display: flex; flex-direction: column; gap: 2px; }
.page-header-eyebrow {
    display: flex; align-items: center; gap: 5px;
    font-size: 11.5px; color: var(--text-4);
    font-family: 'JetBrains Mono', monospace; letter-spacing: .04em;
    text-transform: uppercase;
}
.page-title {
    font-size: 20px; font-weight: 600; color: var(--text);
    line-height: 1.25; letter-spacing: -.015em;
}

/* ===================================================================
   FILTROS — wrapper padrão
   =================================================================== */
.filters-bar {
    background: var(--bg-raised); border: 1px solid var(--border);
    border-radius: 8px; padding: 14px 16px; margin-bottom: 20px;
    display: flex; flex-direction: column; gap: 10px;
}
.filters-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ===================================================================
   HTMX
   =================================================================== */
.htmx-request  { opacity: .55; cursor: wait; transition: opacity .2s; }
.htmx-swapping { opacity: 0; transition: opacity .1s; }
.htmx-settling { opacity: 1; transition: opacity .2s; }

/* ===================================================================
   MISC
   =================================================================== */
.text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }