/* ===================================================================
   BLAZOR SERVER RECONNECTION MODAL
   .NET 10 - Custom reconnection UI with smooth animations
   ================================================================ */

/* Hide default Blazor reconnection UI - we have custom modal */
#components-reconnect-modal {
    display: none !important;
}

/* Reconnection Modal Styling */
.reconnect-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001; /* Above error UI */
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-in-out;
}

.reconnect-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.reconnect-content {
    position: relative;
    background: var(--background-primary, #ffffff);
    color: var(--text-primary, #1a1a1a);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: slideUp 0.3s ease-out;
}

[data-theme="dark"] .reconnect-content {
    background: var(--background-secondary, #2a2a2a);
    color: var(--text-primary, #ffffff);
}

.reconnect-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    color: var(--primary-color, #2E86AB);
    animation: rotate 2s linear infinite;
}

.reconnect-icon svg {
    width: 100%;
    height: 100%;
}

.reconnect-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    color: var(--text-primary);
}

.reconnect-message {
    font-size: 1rem;
    color: var(--text-secondary, #666);
    margin: 0 0 2rem 0;
}

[data-theme="dark"] .reconnect-message {
    color: var(--text-secondary, #aaa);
}

.reconnect-dots::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

.reconnect-btn {
    background: var(--primary-color, #2E86AB);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(46, 134, 171, 0.3);
}

.reconnect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(46, 134, 171, 0.4);
}

.reconnect-btn:active {
    transform: translateY(0);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes dots {
    0%, 20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60%, 100% {
        content: '...';
    }
}
