/* Blazor .NET 8 reconnect UI elrejtése */
#components-reconnect-modal {
    display: none !important;
}

div[id*="reconnect"] {
    display: none !important;
}

/* Egyedi modal stílusok */
.custom-reconnect-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(3px);
}

#custom-reconnect-modal.show .custom-reconnect-overlay {
    opacity: 1;
}

.custom-reconnect-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(30px);
    transition: transform 0.3s ease;
    border: 2px solid #6366f1;
}

#custom-reconnect-modal.show .custom-reconnect-content {
    transform: translateY(0);
}

.reconnect-icon {
    font-size: 48px;
    color: #6366f1;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.reconnect-progress {
    width: 100%;
    height: 8px;
    background: #f3f4f6;
    border-radius: 4px;
    overflow: hidden;
    margin: 20px 0;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
    border-radius: 4px;
    animation: progress 3s infinite;
}

@keyframes progress {
    0% {
        width: 0%;
    }

    50% {
        width: 80%;
    }

    100% {
        width: 100%;
    }
}

.custom-reconnect-content h3 {
    color: #1f2937;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 20px;
}

.custom-reconnect-content p {
    color: #6b7280;
    margin-bottom: 0;
    font-size: 14px;
}

.custom-reconnect-content small {
    color: #9ca3af;
    font-size: 12px;
    display: block;
    margin-bottom: 10px;
}

/* Manuális frissítés gomb */
.manual-reload-btn {
    background: #6366f1;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
}

    .manual-reload-btn:hover {
        background: #4f46e5;
    }

    .manual-reload-btn:active {
        transform: scale(0.98);
    }

/* Mobil reszponzív */
@media (max-width: 480px) {
    .custom-reconnect-content {
        margin: 20px;
        padding: 20px;
        font-size: 14px;
    }

    .reconnect-icon {
        font-size: 36px;
    }

    .custom-reconnect-content h3 {
        font-size: 18px;
    }
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .custom-reconnect-content {
        background: #1f2937;
        color: white;
        border-color: #4f46e5;
    }

        .custom-reconnect-content h3 {
            color: white;
        }

        .custom-reconnect-content p {
            color: #d1d5db;
        }

        .custom-reconnect-content small {
            color: #9ca3af;
        }
}
