/* /Components/Layout/MainLayout.razor.rz.scp.css */
#blazor-error-ui[b-oxg79zqaqg] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-oxg79zqaqg] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
/* Suppress modal visibility (used during pause/resume to prevent flicker) */
#components-reconnect-modal[data-suppress][b-vluzp10ldk] {
    display: none !important;
}

/* === Reconnect dialog (shown immediately on connection loss) === */

/* --- Visibility toggles (state-driven by Blazor) --- */
.components-reconnect-first-attempt-visible[b-vluzp10ldk],
.components-reconnect-repeated-attempt-visible[b-vluzp10ldk],
.components-reconnect-failed-visible[b-vluzp10ldk],
.components-pause-visible[b-vluzp10ldk],
.components-resume-failed-visible[b-vluzp10ldk],
.components-rejoining-animation[b-vluzp10ldk] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-vluzp10ldk],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-vluzp10ldk],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-vluzp10ldk],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-vluzp10ldk],
#components-reconnect-modal.components-reconnect-retrying[b-vluzp10ldk],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-vluzp10ldk],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-vluzp10ldk],
#components-reconnect-modal.components-reconnect-failed[b-vluzp10ldk],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-vluzp10ldk] {
    display: block;
}

/* --- Dialog --- */
#components-reconnect-modal[b-vluzp10ldk] {
    background-color: white;
    width: 22rem;
    max-width: calc(100vw - 2rem);
    margin: 20vh auto;
    padding: 2rem 2rem 1.75rem;
    border: 0;
    outline: none;
    border-radius: 1rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    font-family: 'Poppins', system-ui, sans-serif;
}

/* Note: ::backdrop styles are in app.css (global) because
   Blazor CSS isolation scoping breaks ::backdrop in the top layer */

/* --- Layout --- */
.components-reconnect-container[b-vluzp10ldk] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

#components-reconnect-modal p[b-vluzp10ldk] {
    margin: 0;
    text-align: center;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #374151;
}

/* --- Buttons --- */
#components-reconnect-modal button[b-vluzp10ldk] {
    border: 0;
    outline: none;
    background-color: #14b8a6;
    color: white;
    padding: 0.5rem 1.75rem;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease;
    margin-top: 0.25rem;
}

#components-reconnect-modal button:hover[b-vluzp10ldk] {
    background-color: #0d9488;
}

#components-reconnect-modal button:active[b-vluzp10ldk] {
    background-color: #0f766e;
}

/* --- Spinner animation --- */
.components-rejoining-animation[b-vluzp10ldk] {
    position: relative;
    width: 56px;
    height: 56px;
}

.components-rejoining-animation div[b-vluzp10ldk] {
    position: absolute;
    border: 3px solid #14b8a6;
    opacity: 1;
    border-radius: 50%;
    animation: components-rejoining-animation-b-vluzp10ldk 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.components-rejoining-animation div:nth-child(2)[b-vluzp10ldk] {
    animation-delay: -0.5s;
}

/* --- Keyframes --- */
@keyframes components-rejoining-animation-b-vluzp10ldk {
    0% {
        top: 28px;
        left: 28px;
        width: 0;
        height: 0;
        opacity: 0;
    }
    4.9% {
        top: 28px;
        left: 28px;
        width: 0;
        height: 0;
        opacity: 0;
    }
    5% {
        top: 28px;
        left: 28px;
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        top: 0;
        left: 0;
        width: 56px;
        height: 56px;
        opacity: 0;
    }
}
