/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-lawak16kuu],
.components-reconnect-repeated-attempt-visible[b-lawak16kuu],
.components-reconnect-failed-visible[b-lawak16kuu],
.components-pause-visible[b-lawak16kuu],
.components-resume-failed-visible[b-lawak16kuu],
.components-rejoining-animation[b-lawak16kuu] {
    display: none;
}

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


#components-reconnect-modal[b-lawak16kuu] {
    background-color: var(--rz-dialog-background-color);
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: var(--rz-dialog-border-radius);
    box-shadow: var(--rz-dialog-shadow);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-lawak16kuu 0.5s both;
    &[open] {
        animation: components-reconnect-modal-slideUp-b-lawak16kuu 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-lawak16kuu 0.5s ease-in-out 0.3s;
        animation-fill-mode: both;
    }

}

#components-reconnect-modal[b-lawak16kuu]::backdrop {
    background-color: var(--rz-dialog-mask-background-color);
    animation: components-reconnect-modal-fadeInOpacity-b-lawak16kuu 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-lawak16kuu {
    0% {
        transform: translateY(30px) scale(0.95);
    }

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

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

    100% {
        opacity: 1;
    }
}

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

    100% {
        opacity: 0;
    }
}

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

#components-reconnect-modal p[b-lawak16kuu] {
    margin: 0;
    text-align: center;
}

.reconnect-title[b-lawak16kuu] {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--rz-text-color);
    line-height: 1.6;
}

.reconnect-subtitle[b-lawak16kuu] {
    font-size: 0.875rem;
    color: var(--rz-text-secondary-color);
}

.reconnect-status-icon[b-lawak16kuu] {
    font-size: 3.5rem;
    line-height: 1;
}

.reconnect-icon-danger[b-lawak16kuu] {
    color: var(--rz-danger);
}

.reconnect-icon-warning[b-lawak16kuu] {
    color: var(--rz-warning);
}

/* Note: don't set `display` here — the framework toggles button visibility via
   `display:none/block` on the state classes, and overriding it would show every
   button in every state. Spacing is handled with margins instead. */
#components-reconnect-modal .rz-button[b-lawak16kuu] {
    margin-top: 0.25rem;
}

#components-reconnect-modal .rz-button .rzi[b-lawak16kuu] {
    margin-inline-end: 0.4rem;
    vertical-align: middle;
}

#components-reconnect-modal .rz-button .rz-button-text[b-lawak16kuu] {
    vertical-align: middle;
}

.components-rejoining-animation[b-lawak16kuu] {
    position: relative;
    width: 80px;
    height: 80px;
}

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

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

@keyframes components-rejoining-animation-b-lawak16kuu {
    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;
    }
}
