:root {
    color-scheme: dark;
    /* Override MudBlazor primary palette vars so every primary-colored component
       stays on the green axis — no teal, no blue. Hover = brighter lime. */
    --mud-palette-primary: #76b900;
    --mud-palette-primary-rgb: 118,185,0;
    --mud-palette-primary-text: #000000;
    --mud-palette-primary-darken: #5e9400;
    --mud-palette-primary-lighten: #bff230;
    --mud-palette-primary-hover: rgba(118,185,0,0.12);
}

html, body {
    background: #000000;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
}

/* NVIDIA-style typography overrides over MudBlazor defaults */
.mud-typography-h1 { font-size: 2.25rem !important; font-weight: 700 !important; line-height: 1.25 !important; }
.mud-typography-h2 { font-size: 1.5rem !important; font-weight: 700 !important; line-height: 1.25 !important; }
.mud-typography-h3 { font-size: 1.25rem !important; font-weight: 700 !important; line-height: 1.25 !important; }
.mud-typography-h4 { font-size: 1.125rem !important; font-weight: 700 !important; line-height: 1.25 !important; }
.mud-typography-h5 { font-size: 1rem !important; font-weight: 700 !important; line-height: 1.25 !important; }
.mud-typography-h6 { font-size: 0.875rem !important; font-weight: 700 !important; line-height: 1.25 !important; }
.mud-typography-body1 { font-size: 1rem; font-weight: 400; line-height: 1.5; }
.mud-typography-body2 { font-size: 0.9375rem; font-weight: 400; line-height: 1.67; }
.mud-typography-caption { font-size: 0.875rem; font-weight: 600; line-height: 1.5; }
.mud-typography-overline {
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    line-height: 1.43 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}
.mud-button-root { font-weight: 700 !important; text-transform: none !important; letter-spacing: normal; }

/* Enforce 2px radius across MudBlazor surfaces (overrides default 4px) */
.mud-button-root,
.mud-input-root,
.mud-paper,
.mud-alert,
.mud-chip,
.mud-table-container {
    border-radius: 2px !important;
}

/* Sharp focus — NVIDIA black focus ring */
.mud-button-root:focus-visible {
    outline: 2px solid #000000;
    outline-offset: 2px;
}

/* Outlined primary button: 2px green border per NVIDIA spec.
   High-specificity selector via html[lang] to beat MudBlazor internal rules. */
html button.mud-button-root.mud-button-outlined.mud-button-outlined-primary,
html a.mud-button-root.mud-button-outlined.mud-button-outlined-primary {
    border-width: 2px !important;
    border-color: #76b900 !important;
    background-color: transparent !important;
    background-image: none !important;
    color: #ffffff !important;
    transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease !important;
}

html button.mud-button-root.mud-button-outlined.mud-button-outlined-primary:hover,
html a.mud-button-root.mud-button-outlined.mud-button-outlined-primary:hover,
html button.mud-button-root.mud-button-outlined.mud-button-outlined-primary:focus-visible,
html a.mud-button-root.mud-button-outlined.mud-button-outlined-primary:focus-visible {
    background-color: #76b900 !important;
    background-image: none !important;
    color: #000000 !important;
    border-color: #76b900 !important;
}

html button.mud-button-root.mud-button-outlined.mud-button-outlined-primary:active,
html a.mud-button-root.mud-button-outlined.mud-button-outlined-primary:active {
    background-color: #5e9400 !important;
    background-image: none !important;
    color: #000000 !important;
    border-color: #5e9400 !important;
    transform: none !important;
}

/* Kill MudBlazor's overlay layer on primary buttons — that's what paints
   the light blue tint on hover (rgba white-ish overlay over primary color). */
html .mud-button-root.mud-button-outlined.mud-button-outlined-primary .mud-ripple,
html .mud-button-root.mud-button-outlined.mud-button-outlined-primary::before,
html .mud-button-root.mud-button-outlined.mud-button-outlined-primary::after {
    background-color: transparent !important;
    background-image: none !important;
    opacity: 0 !important;
}

/* App bar: NVIDIA-style sharp bottom rule */
.mud-appbar {
    background-color: #000000 !important;
    color: #ffffff !important;
}

/* Card shadow — the single NVIDIA shadow value */
.mud-paper.mud-elevation-1,
.mud-paper.mud-elevation-2,
.mud-paper.mud-elevation-3,
.mud-paper.mud-elevation-4 {
    box-shadow: rgba(0, 0, 0, 0.3) 0 0 5px 0 !important;
    background-color: #1a1a1a !important;
    border: 1px solid #5e5e5e;
}

/* Inputs: dark surface, grey border, green focus */
.mud-input-outlined .mud-input-outlined-border {
    border-color: #5e5e5e !important;
    border-radius: 2px !important;
}

.mud-input-outlined.mud-focused .mud-input-outlined-border,
.mud-input-outlined:hover .mud-input-outlined-border {
    border-color: #76b900 !important;
    border-width: 2px !important;
}

.mud-input-outlined .mud-input-slot,
.mud-input-outlined input,
.mud-input-outlined textarea {
    color: #ffffff !important;
    background-color: transparent !important;
}

.mud-input-outlined .mud-input-label,
.mud-input-outlined .mud-input-label-animated {
    color: #a7a7a7 !important;
    background-color: #000000 !important;
    padding: 0 4px;
}

.mud-input-outlined.mud-focused .mud-input-label {
    color: #76b900 !important;
}

/* Hide the red MudBlazor error icon unless field is invalid */
.mud-input-helper-text.mud-input-error,
.mud-input-error .mud-input-outlined-border {
    border-color: #e52020 !important;
}

/* Tables: thin grey dividers, no row radius */
.mud-table {
    background-color: transparent !important;
}

.mud-table-cell {
    border-color: #5e5e5e !important;
}

/* Links default to white on dark, green underline on hover */
a, .mud-link {
    color: #ffffff;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 120ms ease;
}

a:hover, .mud-link:hover {
    color: #ffffff;
    border-bottom-color: #76b900;
}

/* Blazor error UI */
#blazor-error-ui {
    background: #650b0b;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    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;
}

/* Uppercase mini-label helper */
.vc-overline {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    color: #76b900;
}
