/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-wui530mau5],
.components-reconnect-repeated-attempt-visible[b-wui530mau5],
.components-reconnect-failed-visible[b-wui530mau5],
.components-pause-visible[b-wui530mau5],
.components-resume-failed-visible[b-wui530mau5],
.components-rejoining-animation[b-wui530mau5] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-wui530mau5],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-wui530mau5],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-wui530mau5],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-wui530mau5],
#components-reconnect-modal.components-reconnect-retrying[b-wui530mau5],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-wui530mau5],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-wui530mau5],
#components-reconnect-modal.components-reconnect-failed[b-wui530mau5],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-wui530mau5] {
    display: block;
}

#components-reconnect-modal[b-wui530mau5] {
    background-color: var(--surface, #0C1B2A);
    color: var(--txt-hi, #E7F1F6);
    width: 22rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 1px solid var(--line, #1B3247);
    border-radius: var(--r, 14px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7), 0 0 24px rgba(62, 199, 219, 0.15);
    font-family: var(--body, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-wui530mau5 0.5s both;

    &[open] {
        animation: components-reconnect-modal-slideUp-b-wui530mau5 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-wui530mau5 0.5s ease-in-out 0.3s;
        animation-fill-mode: both;
    }
}

#components-reconnect-modal[b-wui530mau5]::backdrop {
    background-color: rgba(5, 12, 20, 0.75);
    backdrop-filter: blur(4px);
    animation: components-reconnect-modal-fadeInOpacity-b-wui530mau5 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-wui530mau5 {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-wui530mau5 {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-wui530mau5 {
    0% {
        opacity: 1;
    }

    70% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-wui530mau5] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

#components-reconnect-modal p[b-wui530mau5] {
    margin: 0;
    text-align: center;
    color: var(--txt, #A9C1CF);
    font-size: 0.875rem;
    line-height: 1.4;
}

#components-reconnect-modal button[b-wui530mau5] {
    border: 1px solid var(--cyan, #3EC7DB);
    background-color: var(--cyan, #3EC7DB);
    color: #050C14;
    padding: 6px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 0 14px rgba(62, 199, 219, 0.3);
    transition: all 0.2s ease;
}

    #components-reconnect-modal button:hover[b-wui530mau5] {
        background-color: var(--mint, #5FE3C4);
        border-color: var(--mint, #5FE3C4);
        box-shadow: 0 0 18px rgba(95, 227, 196, 0.45);
    }

    #components-reconnect-modal button:active[b-wui530mau5] {
        background-color: var(--cyan, #3EC7DB);
    }

.components-rejoining-animation[b-wui530mau5] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-wui530mau5] {
        position: absolute;
        border: 3px solid var(--cyan, #3EC7DB);
        opacity: 1;
        border-radius: 50%;
        box-shadow: 0 0 12px rgba(62, 199, 219, 0.4);
        animation: components-rejoining-animation-b-wui530mau5 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-wui530mau5] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-wui530mau5 {
    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;
    }
}
