@import '_content/BrandedMark.Components.Experience/BrandedMark.Components.Experience.186iywj216.bundle.scp.css';
@import '_content/BrandedMark.Components.Mobile/BrandedMark.Components.Mobile.3nw2utg88r.bundle.scp.css';
@import '_content/BrandedMark.Components.Shared/BrandedMark.Components.Shared.rr9eufvnrf.bundle.scp.css';

/* /Components/ReconnectModal.razor.rz.scp.css */
/* Hide state-specific elements by default */
.components-reconnect-first-attempt-visible[b-5iubfxu61z],
.components-reconnect-retrying-visible[b-5iubfxu61z],
.components-reconnect-failed-visible[b-5iubfxu61z] {
    display: none;
}

/* Show elements based on Blazor's reconnection state CSS classes */
#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-5iubfxu61z],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-retrying-visible[b-5iubfxu61z],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-5iubfxu61z] {
    display: flex;
}

/* ─── Top bar: subtle pulse wave ─── */
.reconnect-bar[b-5iubfxu61z] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 10000;
    overflow: hidden;
    flex-direction: column;
    align-items: stretch;
}

.reconnect-bar-wave[b-5iubfxu61z] {
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(99, 89, 226, 0.6) 20%,
        rgba(99, 89, 226, 1) 50%,
        rgba(99, 89, 226, 0.6) 80%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: reconnect-wave-b-5iubfxu61z 1.5s ease-in-out infinite;
}

@keyframes reconnect-wave-b-5iubfxu61z {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Retrying state label - small, muted */
.reconnect-bar-label[b-5iubfxu61z] {
    position: fixed;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: rgba(0, 0, 0, 0.45);
    font-weight: 500;
    letter-spacing: 0.02em;
    white-space: nowrap;
    pointer-events: none;
}

/* Animated dots */
.reconnect-dots[b-5iubfxu61z]::after {
    content: '';
    animation: reconnect-dots-cycle-b-5iubfxu61z 1.5s steps(4, end) infinite;
}

@keyframes reconnect-dots-cycle-b-5iubfxu61z {
    0%  { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
}

/* ─── Bottom toast: compact failed state ─── */
.reconnect-toast[b-5iubfxu61z] {
    position: fixed;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
    left: 16px;
    right: 16px;
    background: rgba(30, 30, 30, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: white;
    border-radius: 12px;
    padding: 12px 16px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 10000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    animation: reconnect-toast-slide-up-b-5iubfxu61z 0.3s ease-out;
}

@keyframes reconnect-toast-slide-up-b-5iubfxu61z {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.reconnect-toast-text[b-5iubfxu61z] {
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.9;
}

.reconnect-toast-button[b-5iubfxu61z] {
    flex-shrink: 0;
    padding: 6px 16px;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background-color 0.2s;
}

.reconnect-toast-button:active[b-5iubfxu61z] {
    background: rgba(255, 255, 255, 0.25);
}
