/* Blazor Reconnection UI Styles */
/* Custom reconnection modal matching Radiance theme */

#blazor-reconnect-ui {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

#blazor-reconnect-ui.show {
    opacity: 1;
}

.blazor-reconnect-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.blazor-reconnect-modal {
    position: relative;
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    border-radius: 16px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    color: #ffffff;
    animation: slideIn 0.3s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.blazor-reconnect-modal.failed {
    background: linear-gradient(135deg, #5f1e1e 0%, #822c2c 100%);
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.blazor-reconnect-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.blazor-reconnect-header i {
    font-size: 24px;
    color: #60a5fa;
}

.blazor-reconnect-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
}

.blazor-reconnect-body {
    margin-bottom: 24px;
}

.blazor-reconnect-icon {
    text-align: center;
    margin-bottom: 16px;
}

.blazor-reconnect-icon i {
    font-size: 48px;
    color: #60a5fa;
}

.blazor-reconnect-status {
    text-align: center;
    font-size: 16px;
    margin-bottom: 16px;
    color: #e5e7eb;
    font-weight: 500;
}

.blazor-reconnect-progress {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.blazor-reconnect-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
    border-radius: 4px;
    transition: width 0.3s ease-in-out;
    width: 0%;
}

.blazor-reconnect-attempt {
    text-align: center;
    font-size: 14px;
    color: #9ca3af;
}

.blazor-reconnect-attempt .attempt-number {
    font-weight: 600;
    color: #60a5fa;
}

.blazor-reconnect-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.blazor-reconnect-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blazor-reconnect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.blazor-reconnect-btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
}

.blazor-reconnect-btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.blazor-reconnect-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.blazor-reconnect-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Dark theme support */
[data-bs-theme="dark"] .blazor-reconnect-modal {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

[data-bs-theme="dark"] .blazor-reconnect-modal.failed {
    background: linear-gradient(135deg, #2e1a1a 0%, #3e1616 100%);
}

/* Responsive design */
@media (max-width: 576px) {
    .blazor-reconnect-modal {
        padding: 24px;
        width: 95%;
    }

    .blazor-reconnect-header h3 {
        font-size: 18px;
    }

    .blazor-reconnect-actions {
        flex-direction: column;
    }

    .blazor-reconnect-btn {
        width: 100%;
        justify-content: center;
    }
}

