/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-7dtboe1qur],
.components-reconnect-repeated-attempt-visible[b-7dtboe1qur],
.components-reconnect-failed-visible[b-7dtboe1qur],
.components-pause-visible[b-7dtboe1qur],
.components-resume-failed-visible[b-7dtboe1qur],
.components-rejoining-animation[b-7dtboe1qur] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-7dtboe1qur],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-7dtboe1qur],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-7dtboe1qur],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-7dtboe1qur],
#components-reconnect-modal.components-reconnect-retrying[b-7dtboe1qur],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-7dtboe1qur],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-7dtboe1qur],
#components-reconnect-modal.components-reconnect-failed[b-7dtboe1qur],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-7dtboe1qur] {
    display: block;
}

#components-reconnect-modal[b-7dtboe1qur] {
    background-color: #ffffff;
    width: 90%;
    max-width: 400px;
    margin: 20vh auto;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 0 25px -5px rgba(0, 0, 0, 0.1), 0 0 10px -6px rgba(0, 0, 0, 0.05);
    color: #0f172a;
    opacity: 1;
    transition: display 0.5s;
    transition-behavior: allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-7dtboe1qur 0.5s both;
}

    #components-reconnect-modal[open][b-7dtboe1qur] {
        animation: components-reconnect-modal-slideUp-b-7dtboe1qur 0.5s cubic-bezier(0.16, 1, 0.3, 1), components-reconnect-modal-fadeInOpacity-b-7dtboe1qur 0.5s ease-in-out;
        animation-fill-mode: both;
    }

    #components-reconnect-modal[b-7dtboe1qur]::backdrop {
        background-color: rgba(15, 23, 42, 0.2);
        backdrop-filter: blur(4px);
        animation: components-reconnect-modal-fadeInOpacity-b-7dtboe1qur 0.5s ease-in-out;
        opacity: 1;
    }

@keyframes components-reconnect-modal-slideUp-b-7dtboe1qur {
    0% {
        transform: translateY(20px) scale(0.96);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-7dtboe1qur {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-7dtboe1qur {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-7dtboe1qur] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

#components-reconnect-modal p[b-7dtboe1qur] {
    margin: 0;
    text-align: center;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.5;
}

#components-reconnect-modal button[b-7dtboe1qur] {
    border: none;
    background-color: #0d9488; /* Основной акцентный цвет (бирюзовый/teal) */
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    #components-reconnect-modal button:hover[b-7dtboe1qur] {
        background-color: #0f766e;
    }

    #components-reconnect-modal button:active[b-7dtboe1qur] {
        background-color: #115e59;
    }

.components-rejoining-animation[b-7dtboe1qur] {
    position: relative;
    width: 60px;
    height: 60px;
}

    .components-rejoining-animation div[b-7dtboe1qur] {
        position: absolute;
        border: 3px solid #0d9488; /* Цвет анимации в тон кнопке */
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-7dtboe1qur 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-7dtboe1qur] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-7dtboe1qur {
    0% {
        top: 30px;
        left: 30px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 30px;
        left: 30px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 30px;
        left: 30px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 60px;
        height: 60px;
        opacity: 0;
    }
}
