html, body {
    font-family: 'Roboto', sans-serif;
}

/* ---- Barre di scorrimento discrete e coerenti col tema ---- */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(120, 130, 150, 0.45) transparent;
}

*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-thumb {
    background: rgba(120, 130, 150, 0.4);
    border-radius: 8px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
    background: rgba(120, 130, 150, 0.65);
    background-clip: padding-box;
}

/* Chip utente nella AppBar: testo e icona sempre bianchi (anche in tema chiaro) */
.appbar-user,
.appbar-user .mud-chip-icon,
.appbar-user .mud-icon-root {
    color: #ffffff !important;
}

/* ---- Titolo applicazione nella AppBar ---- */
.app-title {
    letter-spacing: 0.2px;
}

.app-title b {
    font-weight: 500;
}

/* ---- Schermata di login ---- */
.login-bg {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(135deg, #1f3a63 0%, #2f5ca8 55%, #12a89f 140%);
}

.login-container {
    padding: 0 !important;
}

.login-card {
    border-radius: 16px;
    overflow: hidden;
}

.login-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 16px;
    background: #ffffff;
    padding: 8px;
    box-shadow: 0 6px 18px rgba(47, 92, 168, 0.35);
}

/* Testo digitato centrato nei campi del login */
.login-input-center input {
    text-align: center;
}

/* ---- Rifinitura generale card/tabelle ---- */
.mud-table-container {
    border-radius: 10px;
}

/* ---- Riquadro errore Blazor coerente col tema ---- */
#blazor-error-ui {
    background: #fff4d6;
    color: #6b4e00;
    bottom: 0;
    box-shadow: 0 -1px 8px rgba(0, 0, 0, 0.18);
    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;
}
