/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* 1. Il contenitore principale deve ora svilupparsi solo in verticale */
.page[b-d8g24r1tls] {
    display: flex;
    flex-direction: column;
}

/* 2. Rimuoviamo la larghezza fissa della sidebar perché ora è la nostra Top Bar */
.sidebar[b-d8g24r1tls] {
    /* Rimosso il gradiente vecchio, ora gestito dalla navbar nel componente */
    width: 100%;
    height: auto;
}

/* 3. Pulizia della top-row (la striscia sottile che Blazor mette di default) */
/* Se non ti serve più perché hai messo tutto nel NavMenu, puoi anche nasconderla o ridurla */
.top-row[b-d8g24r1tls] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    height: 3.5rem;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
}

/* 4. IMPORTANTE: Modifica dei breakpoint per schermi grandi */
@media (min-width: 641px) {
    /* Forza la pagina a NON diventare una riga (no sidebar laterale) */
    .page[b-d8g24r1tls] {
        flex-direction: column;
    }

    /* La sidebar (ora in alto) non deve più essere larga 250px o alta quanto lo schermo */
    .sidebar[b-d8g24r1tls] {
        width: 100%;
        height: auto;
        position: static; /* Non serve più sticky laterale */
    }

    /* Il contenuto principale ora occupa tutto lo spazio orizzontale */
    .top-row[b-d8g24r1tls], article[b-d8g24r1tls] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

/* Gestione errori Blazor (rimane invariata) */
#blazor-error-ui[b-d8g24r1tls] {
    background: lightyellow;
    bottom: 0;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* Rendi la barra flessibile e orizzontale */
.navbar[b-rijcbrthiq] {
    min-height: 3.5rem;
    display: flex;
    align-items: center;
}

/* Nome del sito */
.navbar-brand[b-rijcbrthiq] {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

/* Icone Bootstrap */
.bi[b-rijcbrthiq] {
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5rem;
}

/* SISTEMAZIONE NAV-ITEM (Rimuove il layout verticale) */
.nav-item[b-rijcbrthiq] {
    font-size: 0.9rem;
    padding: 0; /* Rimuove i padding che avevi prima */
    display: flex;
    align-items: center;
}

    /* Rimuove i distanziatori verticali del vecchio template */
    .nav-item:first-of-type[b-rijcbrthiq], .nav-item:last-of-type[b-rijcbrthiq] {
        padding-top: 0;
        padding-bottom: 0;
    }

    /* Link di navigazione */
    .nav-item[b-rijcbrthiq]  .nav-link {
        color: #d7d7d7;
        background: none;
        border: none;
        border-radius: 4px;
        padding: 0.5rem 1rem;
        display: flex;
        align-items: center;
        transition: background-color 0.2s;
    }

        .nav-item[b-rijcbrthiq]  .nav-link:hover {
            background-color: rgba(255,255,255,0.1);
            color: white;
        }

    .nav-item[b-rijcbrthiq]  a.active {
        background-color: rgba(255,255,255,0.2);
        color: white;
    }

/* DROPDOWN MENU - Fondamentale per il funzionamento */
.dropdown-menu[b-rijcbrthiq] {
    display: none; /* Nascosto di default */
    position: absolute;
    z-index: 2000; /* Molto alto per stare sopra tutto */
    background-color: white !important;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 0.25rem;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    min-width: 180px;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.175);
}

    /* Quando la variabile C# showAccountMenu è true, aggiunge la classe .show */
    .dropdown-menu.show[b-rijcbrthiq] {
        display: block !important;
    }

.dropdown-item[b-rijcbrthiq] {
    display: block;
    width: 100%;
    padding: 0.25rem 1rem;
    clear: both;
    font-weight: 400;
    color: #212529 !important;
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    cursor: pointer;
}

    .dropdown-item:hover[b-rijcbrthiq] {
        background-color: #f8f9fa;
        color: #16181b !important;
    }

/* FIX PER IL TOGGLER (HAMBURGER) SU MOBILE */
.navbar-toggler[b-rijcbrthiq] {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.75rem;
}

/* Rimuoviamo le vecchie regole del template che nascondevano i menu */
.nav-scrollable[b-rijcbrthiq] {
    display: flex !important; /* Forza la visualizzazione orizzontale */
    flex-basis: auto;
    flex-grow: 1;
    align-items: center;
}

@media (max-width: 767.98px) {
    .navbar-collapse.collapse:not(.show)[b-rijcbrthiq] {
        display: none !important;
    }

    .navbar-collapse[b-rijcbrthiq] {
        flex-basis: 100%;
        flex-direction: column;
        align-items: flex-start;
    }

    .dropdown-menu[b-rijcbrthiq] {
        position: static; /* Su mobile il dropdown spinge giù il resto */
        float: none;
    }
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-8u1foy57pz],
.components-reconnect-repeated-attempt-visible[b-8u1foy57pz],
.components-reconnect-failed-visible[b-8u1foy57pz],
.components-pause-visible[b-8u1foy57pz],
.components-resume-failed-visible[b-8u1foy57pz],
.components-rejoining-animation[b-8u1foy57pz] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-8u1foy57pz],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-8u1foy57pz],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-8u1foy57pz],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-8u1foy57pz],
#components-reconnect-modal.components-reconnect-retrying[b-8u1foy57pz],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-8u1foy57pz],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-8u1foy57pz],
#components-reconnect-modal.components-reconnect-failed[b-8u1foy57pz],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-8u1foy57pz] {
    display: block;
}


#components-reconnect-modal[b-8u1foy57pz] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-8u1foy57pz 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-8u1foy57pz 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-8u1foy57pz 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-8u1foy57pz]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-8u1foy57pz 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-8u1foy57pz {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-8u1foy57pz {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-8u1foy57pz {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-8u1foy57pz] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-8u1foy57pz] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-8u1foy57pz] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-8u1foy57pz] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-8u1foy57pz] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-8u1foy57pz] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-8u1foy57pz] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-8u1foy57pz 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-8u1foy57pz] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-8u1foy57pz {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
