/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* Layout styling lives in wwwroot/app.css (global theme). */
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-90ztzxgf07],
.components-reconnect-repeated-attempt-visible[b-90ztzxgf07],
.components-reconnect-failed-visible[b-90ztzxgf07],
.components-pause-visible[b-90ztzxgf07],
.components-resume-failed-visible[b-90ztzxgf07],
.components-rejoining-animation[b-90ztzxgf07] {
    display: none;
}

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


#components-reconnect-modal[b-90ztzxgf07] {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: #2c3626; /* --text */
    background-color: #ffffff; /* --surface */
    width: 22rem;
    max-width: calc(100vw - 2rem);
    margin: 20vh auto;
    padding: 2rem;
    border: 1px solid #e4ecd9; /* --border */
    border-radius: 14px; /* --radius */
    box-shadow: 0 20px 50px rgba(60, 80, 40, 0.18);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-90ztzxgf07 0.5s both;
}

#components-reconnect-modal[open][b-90ztzxgf07] {
    animation: components-reconnect-modal-slideUp-b-90ztzxgf07 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-90ztzxgf07 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

#components-reconnect-modal[b-90ztzxgf07]::backdrop {
    background-color: rgba(44, 54, 38, 0.45); /* tinted dark green */
    backdrop-filter: blur(2px);
    animation: components-reconnect-modal-fadeInOpacity-b-90ztzxgf07 0.5s ease-in-out;
    opacity: 1;
}

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

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

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

    100% {
        opacity: 1;
    }
}

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

    100% {
        opacity: 0;
    }
}

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

#components-reconnect-modal p[b-90ztzxgf07] {
    margin: 0;
    text-align: center;
    color: #55624b;
    line-height: 1.5;
}

#components-reconnect-modal .components-reconnect-first-attempt-visible[b-90ztzxgf07],
#components-reconnect-modal .components-pause-visible[b-90ztzxgf07] {
    font-weight: 600;
    color: #2c3626;
}

#components-reconnect-modal button[b-90ztzxgf07] {
    border: 0;
    background-color: #5e9440; /* --green */
    color: #fff;
    font: inherit;
    font-weight: 550;
    padding: 0.55rem 1.3rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.15s;
}

#components-reconnect-modal button:hover[b-90ztzxgf07] {
    background-color: #3f6b29; /* --green-dark */
}

#components-reconnect-modal button:active[b-90ztzxgf07] {
    background-color: #5e9440;
}

.components-rejoining-animation[b-90ztzxgf07] {
    position: relative;
    width: 72px;
    height: 72px;
}

.components-rejoining-animation div[b-90ztzxgf07] {
    position: absolute;
    border: 3px solid #5e9440; /* --green */
    opacity: 1;
    border-radius: 50%;
    animation: components-rejoining-animation-b-90ztzxgf07 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

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

@keyframes components-rejoining-animation-b-90ztzxgf07 {
    0% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 72px;
        height: 72px;
        opacity: 0;
    }
}
