/* Blazor Server Reconnection Styles */

/* Disconnection indicator (subtle, top-right corner) */
.disconnected::before {
    content: 'Reconnecting...';
    position: fixed;
    top: 10px;
    right: 10px;
    background: #ffc107;
    color: #000;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 9998;
    animation: pulse 1.5s infinite;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Reconnection Modal - Full-screen overlay */
.reconnection-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.reconnection-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 450px;
    width: 90%;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.reconnection-icon {
    font-size: 4rem;
    color: #007bff;
    margin-bottom: 20px;
}

.reconnection-icon .spin {
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.reconnection-content h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 600;
}

.reconnection-content p {
    color: #666;
    margin-bottom: 20px;
    font-size: 1rem;
}

.reconnection-progress {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin: 20px 0;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #007bff 0%, #0056b3 100%);
    transition: width 0.5s ease;
    width: 0%;
}

.reconnection-content .btn {
    margin: 5px;
    min-width: 120px;
}

.text-muted {
    color: #6c757d !important;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .reconnection-content {
        padding: 30px 20px;
        width: 95%;
    }

    .reconnection-icon {
        font-size: 3rem;
    }

    .reconnection-content h3 {
        font-size: 1.25rem;
    }
}
