/* /Components/Layout/MainLayout.razor.rz.scp.css */
#blazor-error-ui[b-uii2m8bz2i] {
    font-family: 'Ubuntu Mono', monospace;
    font-size: medium;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    z-index: 10000;
    box-sizing: border-box;
    padding: 1.5rem;
    display: none;
    border: 2px solid #F79E10;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    text-align: center;
}

#blazor-error-ui .dismiss[b-uii2m8bz2i] {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
    font-weight: bold;
    font-size: large;
}

#blazor-error-ui .reload[b-uii2m8bz2i] {
    color: #F79E10;
    text-decoration: underline;
    font-weight: bold;
}

@media (prefers-color-scheme: light) {
    #blazor-error-ui[b-uii2m8bz2i] {
        background-color: #ffffff;
        color: black;
    }
    #blazor-error-ui .dismiss[b-uii2m8bz2i] {
        color: #464453;
    }
}

@media (prefers-color-scheme: dark) {
    #blazor-error-ui[b-uii2m8bz2i] {
        background-color: #474747;
        color: #FFF;
    }
    #blazor-error-ui .dismiss[b-uii2m8bz2i] {
        color: #F2F2F2;
    }
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
/* ==========================================================================
   Gestione Visibilità Stati Blazor & Icone (Versione Esclusiva)
   ========================================================================== */
.UI-icon[b-0cd4s4gqhy] {
    font-size: xx-large;
    color: #F79E10;
    text-align: center;
}

/* Nasconde tutto di default */
.UI-icon[b-0cd4s4gqhy],
.components-reconnect-first-attempt-visible[b-0cd4s4gqhy],
.components-reconnect-repeated-attempt-visible[b-0cd4s4gqhy],
.components-reconnect-failed-visible[b-0cd4s4gqhy],
.components-pause-visible[b-0cd4s4gqhy],
.components-resume-failed-visible[b-0cd4s4gqhy],
.components-rejoining-animation[b-0cd4s4gqhy] {
    display: none !important;
}

/* Mostra gli elementi in maniera selettiva:
   Evita la sovrapposizione escludendo le altre classi quando una è attiva.
*/

/* STATO 1: Primo tentativo (Mostra solo se NON è in retrying o failed) */
#components-reconnect-modal.components-reconnect-show:not(.components-reconnect-retrying):not(.components-reconnect-failed) .components-reconnect-first-attempt-visible[b-0cd4s4gqhy] {
    display: block !important;
}

/* STATO 2: Tentativi ripetuti con countdown (Esclude lo show iniziale) */
#components-reconnect-modal.components-reconnect-retrying:not(.components-reconnect-failed) .components-reconnect-repeated-attempt-visible[b-0cd4s4gqhy] {
    display: block !important;
}

/* STATO 3: Connessione fallita (Quando fermi dotnet watch, mostra solo il blocco failed) */
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-0cd4s4gqhy] {
    display: block !important;
}

/* STATO 4: Pausa */
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-0cd4s4gqhy] {
    display: block !important;
}

/* STATO 5: Ripristino fallito */
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-0cd4s4gqhy] {
    display: block !important;
}

/* ==========================================================================
   Struttura del Dialog (Conforme al Tema RationesCurare)
   ========================================================================== */
#components-reconnect-modal[b-0cd4s4gqhy] {
    width: 22rem;
    margin: 25vh auto;
    padding: 2rem;
    border: 1px outset #F79E10;
    /* Bordo arancione netto in stile bottoni app.css */
    border-radius: 0;
    /* Rimosso l'arrotondamento per uniformità */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    opacity: 0;
    font-family: 'Ubuntu Mono';
    font-size: large;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-0cd4s4gqhy 0.5s both;

    &[open] {
        animation: components-reconnect-modal-slideUp-b-0cd4s4gqhy 1.2s cubic-bezier(.05, .89, .25, 1.02) 0.1s,
            components-reconnect-modal-fadeInOpacity-b-0cd4s4gqhy 0.4s ease-in-out 0.1s;
        animation-fill-mode: both;
    }
}

/* Sfondo oscurato dietro al modal */
#components-reconnect-modal[b-0cd4s4gqhy]::backdrop {
    background-color: rgba(0, 0, 0, 0.6);
    animation: components-reconnect-modal-fadeInOpacity-b-0cd4s4gqhy 0.4s ease-in-out;
    opacity: 1;
}

.components-reconnect-container[b-0cd4s4gqhy] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

#components-reconnect-modal p[b-0cd4s4gqhy] {
    margin: 0;
    text-align: center;
    line-height: 1.4;
}

/* ==========================================================================
   Pulsanti (Uniformati allo stile dei bottoni dell'applicazione)
   ========================================================================== */
#components-reconnect-modal button[b-0cd4s4gqhy] {
    font-family: 'Ubuntu Mono';
    font-size: large;
    cursor: pointer;
    box-sizing: border-box;
    border: 1px outset #F79E10;
    border-radius: 0;
    padding: 6px 24px;
}

/* ==========================================================================
   Integrazione con i Temi di Sistema (Light / Dark)
   ========================================================================== */
@media (prefers-color-scheme: light) {
    #components-reconnect-modal[b-0cd4s4gqhy] {
        background-color: white;
        color: black;
    }

    #components-reconnect-modal button[b-0cd4s4gqhy] {
        background: #f0f0f0;
        color: black;
    }

    #components-reconnect-modal button:hover[b-0cd4s4gqhy] {
        background-color: #F79E10;
        color: black;
    }
}

@media (prefers-color-scheme: dark) {
    #components-reconnect-modal[b-0cd4s4gqhy] {
        background-color: #333333;
        color: #FFFFFF;
    }

    #components-reconnect-modal button[b-0cd4s4gqhy] {
        background: #474747;
        color: #FFFFFF;
    }

    #components-reconnect-modal button:hover[b-0cd4s4gqhy] {
        background-color: #F79E10;
        color: black;
    }
}

/* ==========================================================================
   Keyframes Animazioni
   ========================================================================== */
@keyframes components-reconnect-modal-slideUp-b-0cd4s4gqhy {
    0% {
        transform: translateY(20px);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-0cd4s4gqhy {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-0cd4s4gqhy {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}
