/* ==========================================================================
   VOYAGER CHART PRO / VOY FINANCE HUB — BASE & RESET STYLES
   Alinhado rigorosamente ao Design System da Voy Solutions
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans, "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    background-color: var(--background);
    color: var(--foreground);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Links institucionais Voy */
a, .btn-link {
    color: var(--color-tangerine);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover, .btn-link:hover {
    color: var(--color-tangerine-soft);
    text-decoration: underline;
}

/* Respeito total à tipografia de títulos */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display, "Fraunces", serif);
    color: inherit;
    margin-top: 0;
}

/* Numerais tabulares para dados financeiros */
input[type="number"],
.tabular-nums,
td.number,
th.number {
    font-variant-numeric: tabular-nums lining-nums;
}

/* Foco acessível com Tangerina Voy */
:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px oklch(0.68 0.16 47 / 35%);
}

/* Blazor Error Boundary institucional */
.blazor-error-boundary {
    background-color: var(--destructive);
    color: var(--destructive-foreground);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin: 1rem;
    font-family: var(--font-sans);
    font-weight: 500;
}

#blazor-error-ui {
    background-color: var(--color-petrol-dark);
    color: var(--color-bone);
    bottom: 0;
    left: 0;
    width: 100%;
    position: fixed;
    z-index: 9999;
    padding: 0.75rem 1.25rem;
    box-shadow: var(--shadow-drawer);
    display: none;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-sans);
    font-size: 0.875rem;
}

#blazor-error-ui a.reload {
    color: var(--color-tangerine);
    font-weight: 600;
    margin-left: 1rem;
    text-decoration: underline;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    font-size: 1.125rem;
    margin-left: 1rem;
    color: var(--muted-foreground);
}

/* Scrollbar personalizada Voy */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: oklch(0.5 0.05 190 / 25%);
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: oklch(0.5 0.05 190 / 40%);
}