/* /ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-h693vurix2],
.components-reconnect-repeated-attempt-visible[b-h693vurix2],
.components-reconnect-failed-visible[b-h693vurix2],
.components-pause-visible[b-h693vurix2],
.components-resume-failed-visible[b-h693vurix2],
.components-rejoining-animation[b-h693vurix2] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-h693vurix2],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-h693vurix2],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-h693vurix2],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-h693vurix2],
#components-reconnect-modal.components-reconnect-retrying[b-h693vurix2],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-h693vurix2],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-h693vurix2],
#components-reconnect-modal.components-reconnect-failed[b-h693vurix2],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-h693vurix2] {
    display: block;
}

#components-reconnect-modal[b-h693vurix2] {
    border: 0;
    outline: none;
    padding: 0;
    background: transparent;
    max-width: none;
    max-height: none;
}

    #components-reconnect-modal:focus[b-h693vurix2],
    #components-reconnect-modal:focus-visible[b-h693vurix2] {
        outline: none;
        box-shadow: none;
    }

    #components-reconnect-modal[open][b-h693vurix2] {
        position: fixed;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #components-reconnect-modal[b-h693vurix2]::backdrop {
        background: rgba(0, 0, 0, 0.56);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        animation: components-reconnect-modal-fade-in-b-h693vurix2 0.22s ease-out;
    }

.components-reconnect-container[b-h693vurix2] {
    position: relative;
    width: min(92vw, 430px);
    padding: 34px 28px 28px;
    border-radius: 18px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    box-shadow: 0 22px 56px rgba(0, 0, 0, 0.32);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    color: var(--text-secondary);
    animation: components-reconnect-modal-rise-b-h693vurix2 0.24s ease-out;
}

    .components-reconnect-container[b-h693vurix2]::after {
        content: "Čakajte prosím";
        display: block;
        margin-top: 0;
        margin-bottom: 2px;
        color: var(--text-primary);
        font-size: 1.5rem;
        font-weight: 700;
        line-height: 1.1;
        letter-spacing: 0;
    }

#components-reconnect-modal.components-reconnect-failed .components-reconnect-container[b-h693vurix2]::after,
#components-reconnect-modal.components-reconnect-resume-failed .components-reconnect-container[b-h693vurix2]::after {
    content: "Chyba spojenia";
}

#components-reconnect-modal.components-reconnect-paused .components-reconnect-container[b-h693vurix2]::after {
    content: "Relácia pozastavená";
}

#components-reconnect-modal p[b-h693vurix2] {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.55;
    max-width: 30ch;
}

#components-reconnect-modal button[b-h693vurix2] {
    min-width: 160px;
    border: 0;
    outline: none;
    cursor: pointer;
    padding: 12px 24px;
    border-radius: 10px;
    background: var(--color-red);
    color: var(--white);
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(202, 57, 40, 0.18);
    transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

    #components-reconnect-modal button:focus[b-h693vurix2],
    #components-reconnect-modal button:focus-visible[b-h693vurix2] {
        outline: none;
        box-shadow: none;
    }

    #components-reconnect-modal button:hover[b-h693vurix2] {
        background: var(--color-red-hover);
        transform: translateY(-1px);
        box-shadow: 0 14px 28px rgba(202, 57, 40, 0.24);
    }

    #components-reconnect-modal button:active[b-h693vurix2] {
        background: var(--color-red-active);
        transform: translateY(0);
        box-shadow: 0 8px 18px rgba(202, 57, 40, 0.16);
    }

.components-rejoining-animation[b-h693vurix2] {
    position: relative;
    width: 54px;
    height: 54px;
    margin: 6px 0 2px;
}

    .components-rejoining-animation div[b-h693vurix2] {
        position: absolute;
        inset: 0;
        border: 3px solid var(--color-red);
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-h693vurix2 1.35s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-h693vurix2] {
            animation-delay: -0.45s;
        }

@keyframes components-rejoining-animation-b-h693vurix2 {
    0% {
        transform: scale(0.18);
        opacity: 0;
    }

    5% {
        transform: scale(0.18);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

@keyframes components-reconnect-modal-rise-b-h693vurix2 {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes components-reconnect-modal-fade-in-b-h693vurix2 {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 640px) {
    .components-reconnect-container[b-h693vurix2] {
        width: min(92vw, 360px);
        padding: 28px 22px 22px;
        border-radius: 16px;
    }

        .components-reconnect-container[b-h693vurix2]::after {
            font-size: 1.3rem;
        }

    #components-reconnect-modal p[b-h693vurix2] {
        font-size: 0.95rem;
    }

    #components-reconnect-modal button[b-h693vurix2] {
        width: 100%;
    }
}
