 
/* ===== Reconnect Modal Styles ===== */
#components-reconnect-modal {
    border: none;
    border-radius: 16px;
    padding: 0;
    background: transparent;
    overflow: visible;
    max-width: 90vw;
    width: 420px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

#components-reconnect-modal::backdrop {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.components-reconnect-container {
    background: var(--bg-card, #161b26);
    border: 1px solid var(--border, #232a36);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    font-family: 'Cairo', sans-serif;
    animation: modalSlideIn 0.3s ease;
    position: relative;
}

/* ===== Animation ===== */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

/* ===== Rejoining Animation ===== */
.components-rejoining-animation {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    height: 40px;
    align-items: center;
}

    .components-rejoining-animation div {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: var(--accent, #8b5cf6);
        box-shadow: 0 0 15px var(--accent-glow, rgba(139, 92, 246, 0.4));
        animation: pulse 1.4s ease-in-out infinite;
    }

        .components-rejoining-animation div:first-child {
            animation-delay: -0.32s;
        }

        .components-rejoining-animation div:last-child {
            animation-delay: -0.16s;
        }

/* ===== Text Styles ===== */
.components-reconnect-container p {
    margin: 0 0 16px 0;
    color: var(--text-primary, #f1f5f9);
    font-size: 15px;
    line-height: 1.6;
    font-weight: 500;
}

    .components-reconnect-container p:last-of-type {
        margin-bottom: 20px;
    }

/* Show/Hide States */
.components-reconnect-first-attempt-visible,
.components-reconnect-repeated-attempt-visible,
.components-reconnect-failed-visible,
.components-pause-visible,
.components-resume-failed-visible {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible,
#components-reconnect-modal.components-reconnect-show.components-reconnect-failed .components-reconnect-failed-visible,
#components-reconnect-modal.components-reconnect-show.components-reconnect-rejected .components-reconnect-failed-visible,
#components-reconnect-modal.components-reconnect-show .components-reconnect-repeated-attempt-visible,
#components-reconnect-modal.components-pause-show .components-pause-visible,
#components-reconnect-modal.components-pause-show.components-resume-failed .components-resume-failed-visible {
    display: block;
}

/* ===== Button Styles ===== */
#components-reconnect-button,
#components-resume-button {
    display: none;
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: none;
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg, var(--accent, #8b5cf6), var(--accent-dark, #7c3aed));
    color: white;
    box-shadow: 0 4px 15px var(--accent-glow, rgba(139, 92, 246, 0.2));
    margin: 0 auto;
    width: auto;
    min-width: 140px;
}

    #components-reconnect-button:hover,
    #components-resume-button:hover {
        box-shadow: 0 6px 25px rgba(139, 92, 246, 0.3);
        transform: translateY(-1px);
    }

    #components-reconnect-button:active,
    #components-resume-button:active {
        transform: translateY(0);
    }

/* Show Buttons */
#components-reconnect-modal.components-reconnect-show.components-reconnect-failed #components-reconnect-button,
#components-reconnect-modal.components-reconnect-show.components-reconnect-rejected #components-reconnect-button,
#components-reconnect-modal.components-pause-show #components-resume-button,
#components-reconnect-modal.components-pause-show.components-resume-failed #components-resume-button {
    display: inline-flex;
}

/* ===== Seconds Counter ===== */
#components-seconds-to-next-attempt {
    color: var(--accent-light, #a78bfa);
    font-weight: 700;
    font-size: 16px;
    display: inline-block;
    min-width: 24px;
    text-align: center;
}

/* ===== Status Icon ===== */
.components-reconnect-container::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    display: block;
    font-size: 32px;
    margin-bottom: 16px;
    color: var(--accent, #8b5cf6);
    text-shadow: 0 0 20px var(--accent-glow, rgba(139, 92, 246, 0.3));
}

/* Default: Connecting */
.components-reconnect-container::before {
    content: '\f1ce'; /* fa-circle-notch */
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Failed State */
#components-reconnect-modal.components-reconnect-failed .components-reconnect-container::before,
#components-reconnect-modal.components-reconnect-rejected .components-reconnect-container::before,
#components-reconnect-modal.components-resume-failed .components-reconnect-container::before {
    content: '\f071'; /* fa-exclamation-triangle */
    color: var(--warning, #f59e0b);
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
    animation: none;
}

/* Paused State */
#components-reconnect-modal.components-pause-show:not(.components-resume-failed) .components-reconnect-container::before {
    content: '\f04c'; /* fa-pause */
    color: var(--warning, #f59e0b);
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
    animation: none;
}

/* ===== Responsive ===== */
@media (max-width: 576px) {
    #components-reconnect-modal {
        width: 95vw;
        margin: 16px;
    }

    .components-reconnect-container {
        padding: 24px 16px;
    }

        .components-reconnect-container p {
            font-size: 14px;
        }
}

 
