/* TrivialML — Global styles */

:root {
    --color-primary: #6C63FF;
    --color-secondary: #F57F17;
    --color-bg: #0f0f23;
    --color-surface: #1a1a2e;
    --color-border: #2d2d4e;
    --color-text: #ffffff;
    --color-muted: #B0B0C8;
}

html, body {
    font-family: 'Open Sans', 'Roboto', sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

/* MudBlazor dark mode overrides */
.mud-input-control .mud-input input,
.mud-input-control .mud-input textarea,
.mud-select .mud-input input {
    color: white !important;
}

.mud-input-outlined .mud-input-outlined-border {
    border-color: var(--color-border) !important;
}

.mud-input-label {
    color: var(--color-muted) !important;
}

.mud-list-item {
    background: transparent !important;
}

.mud-list-item:hover {
    background: var(--color-border) !important;
}

.mud-menu-item:hover {
    background: var(--color-border) !important;
}

/* Category card hover effect */
.mud-card:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--color-surface);
}

::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-muted);
}

/* Blazor error UI */
#blazor-error-ui {
    background: #C62828;
    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;
    color: white;
}

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