/* wwwroot/css/connection-modal.css */
#custom-reconnect-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.reconnect-backdrop {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.reconnect-content {
    text-align: center;
    padding: 40px;
    max-width: 400px;
    animation: slideUp 0.4s ease;
}

.reconnect-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #007bff;
    animation: spin 1.2s linear infinite;
}

    .spinner-ring:nth-child(2) {
        width: 60%;
        height: 60%;
        top: 20%;
        left: 20%;
        border-top-color: #0056b3;
        animation-duration: 0.9s;
        animation-direction: reverse;
    }

    .spinner-ring:nth-child(3) {
        width: 30%;
        height: 30%;
        top: 35%;
        left: 35%;
        border-top-color: #28a745;
        animation-duration: 0.6s;
    }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.reconnect-content h3 {
    color: #1a1a1a;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 12px;
    letter-spacing: -0.5px;
}

.reconnect-content p {
    color: #666;
    font-size: 16px;
    margin: 0 0 24px;
    line-height: 1.5;
}

.reconnect-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0f0f0;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: #555;
    margin-bottom: 16px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #28a745;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.reconnect-btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 12px 32px;
    font-size: 16px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
}

    .reconnect-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0,123,255,0.4);
    }

    .reconnect-btn:active {
        transform: translateY(0);
    }

/* Hide default Blazor reconnection UI */
#components-reconnect-modal,
.components-reconnect-show,
.components-reconnect-hide,
#blazor-error-ui {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

#custom-reconnect-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.reconnect-backdrop {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reconnect-content {
    text-align: center;
    padding: 40px;
    max-width: 400px;
}

.reconnect-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #007bff;
    animation: spin 1.2s linear infinite;
}

    .spinner-ring:nth-child(2) {
        width: 60%;
        height: 60%;
        top: 20%;
        left: 20%;
        border-top-color: #0056b3;
        animation-duration: 0.9s;
        animation-direction: reverse;
    }

    .spinner-ring:nth-child(3) {
        width: 30%;
        height: 30%;
        top: 35%;
        left: 35%;
        border-top-color: #28a745;
        animation-duration: 0.6s;
    }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.reconnect-content h3 {
    color: #1a1a1a;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 12px;
}

.reconnect-content p {
    color: #666;
    font-size: 16px;
    margin: 0 0 24px;
}

.reconnect-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0f0f0;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: #555;
    margin-bottom: 16px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #28a745;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.reconnect-btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 12px 32px;
    font-size: 16px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
}

    .reconnect-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0,123,255,0.4);
    }