/* base.css — reset, helper MudTable, animazioni globali, notifiche, scrollbar, icone, tipografia base. */

* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

body {
    text-rendering: optimizeLegibility;
}

html {
    background-color: var(--back-color-light);
}

.main {
    background-color: var(--back-color-light);
}

.h-fit {
    height: fit-content;
}

.mud-table-toolbar {
    display: flex;
    flex-wrap: wrap;
    flex: 1 1 0;
    height: auto;
    /* MudBlazor 9: gli input non portano piu' margini propri, senza gap gli
       elementi della toolbar si toccano (v6 spaziava tramite i margini interni) */
    align-items: center;
    column-gap: 12px;
    row-gap: 4px;
}

.mud-table-toolbar-custom {
    display: flex;
    width: 95%;
}


.mud-badge-resize {
    height: 15px;
    min-width: 0;
    min-height: 0;
    width: 15px;
}

/* MudBlazor 9 impone align-items:center su .mud-radio-group: nei gruppi
   verticali (InputClass="d-flex flex-column", es. MD016) i radio finivano
   centrati invece che allineati a sinistra come in v6 */
.mud-input-control.mud-input-control-boolean-input .mud-radio-group.flex-column {
    align-items: flex-start;
}
.step-content {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Effetto hover elegante per le singole notifiche */
.notification-item {
    transition: background-color 0.2s ease-in-out;
    border-left: 4px solid transparent;
}

    .notification-item:hover {
        background-color: rgba(var(--mud-palette-primary-rgb), 0.05);
        border-left: 4px solid var(--mud-palette-primary);
    }

/* Scrollbar personalizzata e invisibile finché non scorri (stile Mac) */
.notification-scroll {
    max-height: 400px;
    overflow-y: auto;
}

    .notification-scroll::-webkit-scrollbar {
        width: 6px;
    }

    .notification-scroll::-webkit-scrollbar-track {
        background: transparent;
    }

    .notification-scroll::-webkit-scrollbar-thumb {
        background: rgba(150, 150, 150, 0.3);
        border-radius: 10px;
    }

        .notification-scroll::-webkit-scrollbar-thumb:hover {
            background: rgba(150, 150, 150, 0.5);
        }


/*Icon*/
.icon-color-danger {
    color: var(--btn-danger-color);
}

.icon-color-success {
    color: var(--btn-success-color);
}

.icon-account {
    width: 45px;
    height: 45px;
}

.menu-icon-account-item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--back-color-dark);
    color: var(--txt-color-dark);
    padding: 0.5rem 1rem;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background-color: transparent;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--back-color-dark);
    border-radius: 10px;
}


.txt {
    font-family: var(--font-text);
    color: var(--txt-color);
}

.paraghaph-min {
    font-size: calc(1.0625rem + 0.15vw);
    font-weight: 500;
    line-height: 1.1;
}
