/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
/* Branded reconnect / resume overlay (round-9). The ids + state classes are the
   blazor.web.js contract — only the presentation is ours. */

.components-reconnect-first-attempt-visible[b-ubdg58ef9o],
.components-reconnect-repeated-attempt-visible[b-ubdg58ef9o],
.components-reconnect-failed-visible[b-ubdg58ef9o],
.components-pause-visible[b-ubdg58ef9o],
.components-resume-failed-visible[b-ubdg58ef9o],
.components-rejoining-animation[b-ubdg58ef9o] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-ubdg58ef9o],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-ubdg58ef9o],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-ubdg58ef9o],
#components-reconnect-modal.components-reconnect-retrying[b-ubdg58ef9o],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-ubdg58ef9o],
#components-reconnect-modal.components-reconnect-failed[b-ubdg58ef9o],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-ubdg58ef9o] {
    display: block;
}

#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-ubdg58ef9o],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-ubdg58ef9o] {
    display: inline-block;
}

#components-reconnect-modal[b-ubdg58ef9o] {
    background: #FBFBF8;
    width: min(24rem, calc(100vw - 32px));
    margin: 18vh auto;
    padding: 2.2rem 2rem 1.8rem;
    border: 1.5px solid #ADC3B9;
    border-radius: 18px;
    box-shadow: 0 18px 60px rgba(44, 59, 54, 0.35);
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: #2C3B36;
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: rc-fadeout-b-ubdg58ef9o 0.5s both;
}

#components-reconnect-modal[open][b-ubdg58ef9o] {
    animation: rc-slideup-b-ubdg58ef9o 1.2s cubic-bezier(.05, .89, .25, 1.02) 0.2s, rc-fadein-b-ubdg58ef9o 0.5s ease-in-out 0.2s;
    animation-fill-mode: both;
}

#components-reconnect-modal[b-ubdg58ef9o]::backdrop {
    background: rgba(44, 59, 54, 0.55);
    backdrop-filter: blur(3px);
    animation: rc-fadein-b-ubdg58ef9o 0.5s ease-in-out;
    opacity: 1;
}

@keyframes rc-slideup-b-ubdg58ef9o { 0% { transform: translateY(26px) scale(0.96); } 100% { transform: translateY(0); } }
@keyframes rc-fadein-b-ubdg58ef9o  { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes rc-fadeout-b-ubdg58ef9o { 0% { opacity: 1; } 100% { opacity: 0; } }

.components-reconnect-container[b-ubdg58ef9o] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    position: relative;
}

.rc-logo[b-ubdg58ef9o] {
    width: 46px;
    height: 46px;
}

.rc-title[b-ubdg58ef9o] {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: #2C3B36;
}

#components-reconnect-modal p[b-ubdg58ef9o] {
    margin: 0;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #3d4c46;
}

.rc-hint[b-ubdg58ef9o] {
    font-size: 0.78rem !important;
    color: #7d8a83 !important;
}

.rc-btn[b-ubdg58ef9o] {
    border: 0;
    background: #618D7C;
    color: #fff;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 10px 26px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}

.rc-btn:hover[b-ubdg58ef9o] { background: #4F8577; }
.rc-btn:active[b-ubdg58ef9o] { transform: translateY(1px); }

.rc-btn-ghost[b-ubdg58ef9o] {
    background: transparent;
    color: #4F8577;
    border: 1.5px solid #ADC3B9;
}

.rc-btn-ghost:hover[b-ubdg58ef9o] { background: rgba(97, 141, 124, 0.1); }

/* rippling droplet rings in theme colors */
.components-rejoining-animation[b-ubdg58ef9o] {
    position: relative;
    width: 72px;
    height: 72px;
    margin: -54px 0 -6px; /* overlaps behind the logo */
}

.components-rejoining-animation div[b-ubdg58ef9o] {
    position: absolute;
    border: 3px solid #618D7C;
    opacity: 1;
    border-radius: 50%;
    animation: rc-ripple-b-ubdg58ef9o 1.6s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.components-rejoining-animation div:nth-child(2)[b-ubdg58ef9o] {
    border-color: #BC8A52;
    animation-delay: -0.6s;
}

@keyframes rc-ripple-b-ubdg58ef9o {
    0%   { top: 36px; left: 36px; width: 0; height: 0; opacity: 0; }
    5%   { top: 36px; left: 36px; width: 0; height: 0; opacity: 0.9; }
    100% { top: 0; left: 0; width: 72px; height: 72px; opacity: 0; }
}
