@import "theme.css";

/* Custom scrollbar dark theme — oculta por padrão, aparece no hover */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 4px;
    transition: background 0.2s ease;
}

/* Aparece quando o elemento scrollável recebe hover */
*:hover::-webkit-scrollbar-thumb {
    background: oklch(0.3 0.02 240);
}

*:hover::-webkit-scrollbar-thumb:hover {
    background: oklch(0.4 0.02 240);
}

*:hover::-webkit-scrollbar-track {
    background: oklch(0.15 0.01 240);
}

/* Firefox scrollbar — oculta por padrão */
* {
    scrollbar-width: none;
}

/* Firefox — aparece no hover */
*:hover {
    scrollbar-width: thin;
    scrollbar-color: oklch(0.3 0.02 240) transparent;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
}

h1, h2, h3, h4, h5, h6, .font-display {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.apexcharts-canvas {
    min-height: 48px !important;
}

.apexcharts-canvas svg {
    min-height: 48px !important;
}

#blazor-error-ui {
    background: rgba(0, 0, 0, 0.9);
    border-top: 1px solid var(--border);
    bottom: 0;
    display: none;
    left: 0;
    padding: 0.75rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: #fff;
    font-size: 0.875rem;
}

#blazor-error-ui .reload {
    color: var(--primary);
    text-decoration: underline;
    margin-left: 0.5rem;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 0.75rem;
    font-weight: bold;
}
