/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
/* ---------- Visibility rules (unchanged logic) ---------- */
.components-reconnect-first-attempt-visible[b-3botekqwfk],
.components-reconnect-repeated-attempt-visible[b-3botekqwfk],
.components-reconnect-failed-visible[b-3botekqwfk],
.components-pause-visible[b-3botekqwfk],
.components-resume-failed-visible[b-3botekqwfk],
.components-rejoining-animation[b-3botekqwfk] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-3botekqwfk],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-3botekqwfk],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-3botekqwfk],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-3botekqwfk],
#components-reconnect-modal.components-reconnect-retrying[b-3botekqwfk],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-3botekqwfk],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-3botekqwfk],
#components-reconnect-modal.components-reconnect-failed[b-3botekqwfk],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-3botekqwfk] {
    display: block;
}

/* ---------- Dialog ---------- */
#components-reconnect-modal[b-3botekqwfk] {
    background: var(--surface-card-solid, #f9fafb);
    color: var(--text-primary, #1a1a2e);
    width: 22rem;
    max-width: 92vw;
    margin: 18vh auto;
    padding: 2.25rem 2rem 1.75rem;
    border: 1px solid var(--border-color, rgba(0,0,0,0.06));
    border-radius: 1rem;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px var(--border-subtle, rgba(0,0,0,0.03));
    opacity: 0;
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-3botekqwfk 0.4s both;

    &[open] {
        animation: components-reconnect-modal-slideUp-b-3botekqwfk 0.8s cubic-bezier(.05,.89,.25,1.02) 0.15s,
                   components-reconnect-modal-fadeInOpacity-b-3botekqwfk 0.4s ease-in-out 0.15s;
        animation-fill-mode: both;
    }
}

#components-reconnect-modal[b-3botekqwfk]::backdrop {
    background-color: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: components-reconnect-modal-fadeInOpacity-b-3botekqwfk 0.4s ease-in-out;
    opacity: 1;
}

/* ---------- Brand header ---------- */
.tc-reconnect-brand[b-3botekqwfk] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.25rem;
}

.tc-reconnect-logo[b-3botekqwfk] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.625rem;
    background: var(--gradient-brand, linear-gradient(135deg, #4ECDC4 0%, #44a08d 100%));
    box-shadow: 0 2px 10px rgba(78, 205, 196, 0.3);
}

.tc-reconnect-logo img[b-3botekqwfk] {
    filter: brightness(10);
}

.tc-reconnect-name[b-3botekqwfk] {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    color: var(--text-primary, #1a1a2e);
}

.tc-reconnect-tagline[b-3botekqwfk] {
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    color: var(--text-muted, #718096);
    margin-top: 0.25rem;
}

/* ---------- Container & text ---------- */
.components-reconnect-container[b-3botekqwfk] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

#components-reconnect-modal p[b-3botekqwfk] {
    margin: 0;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-secondary, #4a5568);
}

/* ---------- Buttons ---------- */
#components-reconnect-modal button[b-3botekqwfk] {
    border: 0;
    background: var(--gradient-brand, linear-gradient(135deg, #4ECDC4 0%, #44a08d 100%));
    color: #fff;
    padding: 0.5rem 1.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 2px 8px rgba(78, 205, 196, 0.25);
}

#components-reconnect-modal button:hover[b-3botekqwfk] {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(78, 205, 196, 0.35);
}

#components-reconnect-modal button:active[b-3botekqwfk] {
    transform: translateY(0);
}

/* ---------- Ripple animation (brand-coloured) ---------- */
.components-rejoining-animation[b-3botekqwfk] {
    position: relative;
    width: 64px;
    height: 64px;
}

.components-rejoining-animation div[b-3botekqwfk] {
    position: absolute;
    border: 3px solid var(--brand, #4ECDC4);
    opacity: 1;
    border-radius: 50%;
    animation: components-rejoining-animation-b-3botekqwfk 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.components-rejoining-animation div:nth-child(2)[b-3botekqwfk] {
    animation-delay: -0.5s;
}

/* ---------- Keyframes ---------- */
@keyframes components-reconnect-modal-slideUp-b-3botekqwfk {
    0%   { transform: translateY(24px) scale(0.97); }
    100% { transform: translateY(0); }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-3botekqwfk {
    0%   { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-3botekqwfk {
    0%   { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes components-rejoining-animation-b-3botekqwfk {
    0%    { top: 32px; left: 32px; width: 0;    height: 0;    opacity: 0; }
    4.9%  { top: 32px; left: 32px; width: 0;    height: 0;    opacity: 0; }
    5%    { top: 32px; left: 32px; width: 0;    height: 0;    opacity: 1; }
    100%  { top: 0;    left: 0;    width: 64px; height: 64px; opacity: 0; }
}
