/* ========================================
   Blazor SignalR Reconnection UI Styles
   ======================================== */

/* Modal overlay that covers entire screen */
.components-reconnect-modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Semi-transparent background */
.components-reconnect-modal-background {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.6);
}

/* Content card */
.components-reconnect-modal-content {
    position: relative;
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    min-width: 350px;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
}

/* Hide modal by default */
.components-reconnect-hide {
    display: none !important;
}

/* Show reconnecting status */
.components-reconnect-show {
    display: none;
}

.components-reconnect-modal:not(.components-reconnect-hide) .components-reconnect-show {
    display: block;
}

/* Reconnecting animation */
.components-reconnect-show-status::after {
    content: '';
    animation: components-reconnect-dots 1.5s infinite;
}

@keyframes components-reconnect-dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

/* Failed connection state */
.components-reconnect-failed {
    display: none;
    color: #d32f2f;
}

.components-reconnect-modal.components-reconnect-failed .components-reconnect-failed {
    display: block;
}

/* Rejected connection state */
.components-reconnect-rejected {
    display: none;
    color: #f57c00;
}

.components-reconnect-modal.components-reconnect-rejected .components-reconnect-rejected {
    display: block;
}

/* Reload link styling */
.components-reconnect-reload {
    color: #1976d2;
    text-decoration: underline;
    font-weight: 600;
}

.components-reconnect-reload:hover {
    color: #0d47a1;
}
