/* ====================================================================
   KALYMNOS — app.css: reset e layout ESTRUTURAL apenas.
   Cores, componentes e tokens vivem no theme.css (fonte da verdade).
   ==================================================================== */

html, body {
    font-family: var(--k-font-family, 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    padding-bottom: 2rem;
}

.content {
    padding-top: 1.1rem;
}

/* Alvo do FocusOnNavigate: foco programático sem anel visual */
h1:focus {
    outline: none;
}

/* Itens de navegação: alinhamento estrutural (cores no theme.css) */
.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Footer: fixação ao rodapé (cores no theme.css) */
footer {
    margin-top: auto;
}

/* Spinner: dimensão padrão */
.spinner-border {
    width: 2rem;
    height: 2rem;
}

/* Tabela responsiva: contorno estrutural */
.table-responsive {
    border-radius: var(--k-radius-sm, 0.375rem);
    border: 1px solid var(--k-border, #e2e8f0);
}

/* ---------------- Blazor framework UI ---------------- */

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHZpZXdCb3g9IjAgMCA1NiA0OSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzLjUgNi41SDQyLjVMMzkgMTVIMTdMMTMuNSA2LjVaIiBmaWxsPSIjNTI1MjUyIi8+Cjwvc3ZnPgo=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}
