/* /Components/Layout/MainLayout.razor.rz.scp.css */

/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-bjvb8yx2ir],
.components-reconnect-repeated-attempt-visible[b-bjvb8yx2ir],
.components-reconnect-failed-visible[b-bjvb8yx2ir],
.components-pause-visible[b-bjvb8yx2ir],
.components-resume-failed-visible[b-bjvb8yx2ir],
.components-rejoining-animation[b-bjvb8yx2ir] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-bjvb8yx2ir],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-bjvb8yx2ir],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-bjvb8yx2ir],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-bjvb8yx2ir],
#components-reconnect-modal.components-reconnect-retrying[b-bjvb8yx2ir],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-bjvb8yx2ir],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-bjvb8yx2ir],
#components-reconnect-modal.components-reconnect-failed[b-bjvb8yx2ir],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-bjvb8yx2ir] {
    display: block;
}

#components-reconnect-modal[b-bjvb8yx2ir] {
    width: min(32rem, calc(100vw - 2rem));
    margin: 14vh auto 0;
    padding: 0;
    border: 1px solid rgba(96, 165, 250, 0.18);
    border-radius: 1.25rem;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(17, 24, 39, 0.98) 100%);
    color: #e2e8f0;
    box-shadow: 0 24px 80px rgba(2, 6, 23, 0.55);
    opacity: 0;
    overflow: hidden;
    transition: display 0.35s allow-discrete, overlay 0.35s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-bjvb8yx2ir 0.35s both;
}

#components-reconnect-modal[open][b-bjvb8yx2ir] {
    animation: components-reconnect-modal-slideUp-b-bjvb8yx2ir 0.35s cubic-bezier(.2, .8, .2, 1), components-reconnect-modal-fadeInOpacity-b-bjvb8yx2ir 0.35s ease-out;
    animation-fill-mode: both;
}

#components-reconnect-modal[b-bjvb8yx2ir]::backdrop {
    background: rgba(2, 6, 23, 0.58);
    backdrop-filter: blur(8px);
    animation: components-reconnect-modal-fadeInOpacity-b-bjvb8yx2ir 0.25s ease-out;
}

@keyframes components-reconnect-modal-slideUp-b-bjvb8yx2ir {
    0% {
        transform: translateY(24px) scale(0.96);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-bjvb8yx2ir {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-bjvb8yx2ir {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-bjvb8yx2ir] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 2rem 1.75rem;
    text-align: center;
}

#components-reconnect-modal p[b-bjvb8yx2ir] {
    margin: 0;
    max-width: 24rem;
    line-height: 1.55;
    color: #cbd5e1;
    font-size: 0.96rem;
}

#components-reconnect-modal button[b-bjvb8yx2ir] {
    border: 1px solid rgba(96, 165, 250, 0.22);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.96) 0%, rgba(59, 130, 246, 0.96) 100%);
    color: #eff6ff;
    padding: 0.7rem 1.4rem;
    border-radius: 0.8rem;
    font-weight: 700;
    min-width: 9rem;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

#components-reconnect-modal button:hover[b-bjvb8yx2ir] {
    transform: translateY(-1px);
    box-shadow: 0 14px 36px rgba(37, 99, 235, 0.32);
    border-color: rgba(147, 197, 253, 0.38);
}

#components-reconnect-modal button:active[b-bjvb8yx2ir] {
    transform: translateY(0);
}

.components-rejoining-animation[b-bjvb8yx2ir] {
    position: relative;
    width: 88px;
    height: 88px;
}

.components-rejoining-animation div[b-bjvb8yx2ir] {
    position: absolute;
    border: 3px solid rgba(96, 165, 250, 0.95);
    box-shadow: 0 0 18px rgba(59, 130, 246, 0.18);
    opacity: 1;
    border-radius: 50%;
    animation: components-rejoining-animation-b-bjvb8yx2ir 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.components-rejoining-animation div:nth-child(2)[b-bjvb8yx2ir] {
    animation-delay: -0.5s;
}

@keyframes components-rejoining-animation-b-bjvb8yx2ir {
    0% {
        top: 44px;
        left: 44px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 44px;
        left: 44px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0;
        left: 0;
        width: 88px;
        height: 88px;
        opacity: 0;
    }
}
