html, body {
    height: 100%;
    margin: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

@media (min-width: 600px) {
    .mud-main-content {
        padding-top: 110px !important;
    }
}

/* snackbar */

.mud-snackbar {
    border-radius: 12px;
    font-weight: 500;
    padding: 16px 20px;
}

/* BELOW IS ALL TEMPLATE STUFF, YET TO BE SORTED */

/* Removes focus outline from h1 elements (used with Blazor's FocusOnNavigate) */
h1:focus {
    outline: none;
}

/* Visual indicator for valid form fields (used with EditForm validation) */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

/* Visual indicator for invalid form fields */
.invalid {
    outline: 1px solid red;
}

/* Styling for validation message text */
.validation-message {
    color: red;
}

/* Blazor's global error UI (shown when an unhandled exception occurs) */
#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none; /* Becomes visible when a runtime error occurs */
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

/* Close button inside the Blazor error UI */
#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* Styling for Blazor <ErrorBoundary> fallback UI */
.blazor-error-boundary {
    background:
            url(data:image/svg+xml;base64,...) no-repeat 1rem/1.8rem,
            #b32121; /* Red background for error state */
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

/* Default text appended to ErrorBoundary UI */
.blazor-error-boundary::after {
    content: "An error has occurred.";
}

/* WASM loading spinner container (shown during app startup) */
.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 auto;
}

/* Base styling for loading spinner SVG circles */
.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

/* Animated progress circle (driven by CSS variable from Blazor runtime) */
.loading-progress circle:last-child {
    stroke: #1b6ec2;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

/* Loading progress text container */
.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

/* Dynamic loading text (uses runtime CSS variable) */
.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

/* Inline code styling */
code {
    color: #c02d76;
}

.nav-button {
    margin-left: 8px;
}

.white-datagrid,
.white-datagrid th,
.white-datagrid td,
.white-text,
.white-text input,
.white-text label,
.white-text .mud-input-adornment {
    color: white !important;
}

.white-datagrid tbody tr:nth-child(even) {
    background-color: #1f1f1f;
}
.white-datagrid tbody tr:nth-child(odd) {
    background-color: #111;
}

.white-text input,
.white-text label,
.white-text .mud-input-adornment {
    color: white !important;
}

.white-text .mud-input-root {
    border-color: #555 !important;
}