html {
    height: 100%;
}

body {
    min-height: 100%;
    margin: 0;
    background: #e2e8f0;
    color: #0f172a;
    font-family: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

button,
input,
textarea,
select {
    font: inherit;
}

::selection {
    background: rgba(13, 148, 136, 0.2);
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

/* Hover delle voci del menu: regola globale per funzionare anche senza rigenerare il CSS isolato. */
.sidebar-link:hover {
    border-left-color: #94a3b8 !important;
    background: #f8fafc !important;
    color: #111827 !important;
    transform: translateX(2px) !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06) !important;
}

.sidebar-link:hover::after {
    color: #475569 !important;
    transform: translateX(1px) !important;
}

.blazor-error-boundary {
    background: #b91c1c;
    color: white;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

#blazor-error-ui {
    color-scheme: light only;
    background: #fff7cc;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.75rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

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