/* Blazor Reconnection UI Styles */
/* Matches the application's modern gradient theme */

#blazor-reconnect-ui {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#blazor-reconnect-ui.show {
    opacity: 1;
}

.blazor-reconnect-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.blazor-reconnect-modal {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    padding: 0;
    animation: slideIn 0.3s ease;
    overflow: hidden;
}

.blazor-reconnect-modal.failed .blazor-reconnect-header {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.blazor-reconnect-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.blazor-reconnect-header i {
    font-size: 1.5rem;
}

.blazor-reconnect-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.blazor-reconnect-body {
    padding: 2rem;
    text-align: center;
}

.blazor-reconnect-icon {
    margin-bottom: 1.5rem;
}

.blazor-reconnect-icon i {
    font-size: 3rem;
    color: #3498db;
    transition: all 0.3s ease;
}

.blazor-reconnect-status {
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.blazor-reconnect-progress {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.blazor-reconnect-progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.blazor-reconnect-modal.failed .blazor-reconnect-progress-bar {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.blazor-reconnect-attempt {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.blazor-reconnect-attempt .attempt-number {
    font-weight: 600;
    color: #3498db;
}

.blazor-reconnect-actions {
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    display: flex;
    gap: 1rem;
    justify-content: center;
    border-top: 1px solid #e9ecef;
}

.blazor-reconnect-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.blazor-reconnect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.blazor-reconnect-btn:active {
    transform: translateY(0);
}

.blazor-reconnect-btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.blazor-reconnect-btn-primary:hover {
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
}

.blazor-reconnect-btn-secondary {
    background: #ffffff;
    color: #495057;
    border: 1px solid #dee2e6;
}

.blazor-reconnect-btn-secondary:hover {
    background: #e9ecef;
}

@@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive design */
@@media (max-width: 640px) {
    .blazor-reconnect-modal {
        width: 95%;
        max-width: none;
    }

    .blazor-reconnect-actions {
        flex-direction: column;
    }

    .blazor-reconnect-btn {
        width: 100%;
        justify-content: center;
    }
}

