﻿#components-reconnect-modal.reconnect-hidden {
    display: none !important;
}

#components-reconnect-modal.reconnect-show {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    animation: fadeIn 0.3s ease-in-out;
}

.reconnect-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.reconnect-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.reconnect-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.reconnect-spinner {
    background: rgba(59, 130, 246, 0.1);
    border: 2px solid rgba(59, 130, 246, 0.3);
}

.reconnect-spinner svg {
    width: 50px;
    height: 50px;
    stroke: #3b82f6;
    animation: spin 2s linear infinite;
}

.reconnect-error {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid rgba(239, 68, 68, 0.3);
}

.reconnect-error svg {
    width: 50px;
    height: 50px;
    stroke: #ef4444;
}

.reconnect-content h3 {
    color: white;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 10px;
}

.reconnect-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    margin: 0 0 20px;
}

.reconnect-progress {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin: 20px 0;
}

.reconnect-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 3px;
    transition: width 0.5s ease-in-out;
}

.reconnect-attempt {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin: 10px 0 0;
}

.btn-reconnect {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-reconnect:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.btn-reconnect:active {
    transform: translateY(0);
}

.btn-reconnect svg {
    width: 20px;
    height: 20px;
    stroke: white;
    stroke-width: 2.5;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Mobile optimizations */
@media (max-width: 480px) {
    .reconnect-content {
        padding: 30px 20px;
    }

    .reconnect-content h3 {
        font-size: 20px;
    }

    .reconnect-content p {
        font-size: 14px;
    }

    .reconnect-icon {
        width: 60px;
        height: 60px;
    }

    .reconnect-spinner svg,
    .reconnect-error svg {
        width: 40px;
        height: 40px;
    }
}