/* ============================================================
   App-level helpers — cabeçalho de página, foco, badges de status.
   ============================================================ */

/* Cabeçalho de conteúdo (título + subtítulo) */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.page-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--app-text, #111827);
    margin: 0;
}

.page-subtitle {
    font-size: 14px;
    color: var(--app-text-muted, #6b7280);
    margin: 4px 0 0;
}

/* Foco visível consistente */
:focus-visible {
    outline: 2px solid var(--app-primary, #2563eb);
    outline-offset: 2px;
}

/* Badges de status reutilizáveis (verde / laranja / vermelho) */
.app-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.app-badge-success {
    background: var(--app-success-soft, #dcfce7);
    color: var(--app-success, #16a34a);
}

.app-badge-warning {
    background: var(--app-warning-soft, #fef3c7);
    color: var(--app-warning, #d97706);
}

.app-badge-danger {
    background: var(--app-danger-soft, #fee2e2);
    color: var(--app-danger, #dc2626);
}

/* Painel genérico (branco, borda, sombra suave) */
.app-panel {
    background: var(--app-surface, #fff);
    border: 1px solid var(--app-border, #e5e7eb);
    border-radius: var(--app-radius, 12px);
    padding: 20px;
    box-shadow: var(--app-shadow, 0 1px 3px rgba(0, 0, 0, .06));
    height: 100%;
}

.app-panel-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--app-text, #111827);
    margin: 0 0 16px;
}

/* ------------------------------------------------------------------
   Compatibilidade ASP.NET Core + Bootstrap 5
   O InputTagHelper emite <input type="hidden" value="false"> antes de
   cada <input type="checkbox"> gerado por asp-for (padrão
   checkbox oculto do model binding). O Reboot do Bootstrap 4
   escondia esse elemento; o Bootstrap 5 removeu a regra, e o
   elemento vazava na tela como o texto "False"/"True".
   Regra restaurada aqui para todo o projeto.
   ------------------------------------------------------------------ */
input[type="hidden"] {
    display: none !important;
}
