
/* ── Reconnect modal ── */
.my-reconnect-modal > div {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 10000;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
    display: none;
}

.components-reconnect-hide > div { display: none; }
.components-reconnect-show > div { display: none; }
.components-reconnect-show > .show { display: flex; align-items: center; justify-content: center; }
.components-reconnect-failed > div { display: none; }
.components-reconnect-failed > .failed { display: flex; align-items: center; justify-content: center; }
.components-reconnect-rejected > div { display: none; }
.components-reconnect-rejected > .rejected { display: flex; align-items: center; justify-content: center; }

.reconnect-dialog {
    background: #fff;
    border-radius: 16px;
    padding: 2.25rem 2rem 2rem;
    max-width: 360px;
    width: 90%;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
    animation: reconnect-slideUp 0.3s ease-out;
}

@keyframes reconnect-slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.reconnect-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.reconnect-icon.connecting { background: #fff3e0; color: #e65100; }
.reconnect-icon.failed { background: #fce4ec; color: #c62828; }
.reconnect-icon.rejected { background: #e8eaf6; color: #283593; }

.reconnect-icon svg {
    width: 28px;
    height: 28px;
}

.reconnect-dialog h3 {
    font-size: 1.15rem;
    font-weight: 500;
    color: #212121;
    margin-bottom: 0.5rem;
}

.reconnect-dialog p {
    color: #616161;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.25rem;
}

.reconnect-attempt-badge {
    display: inline-block;
    background: #f5f5f5;
    border-radius: 20px;
    padding: 0.3rem 0.9rem;
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
}

.reconnect-reload-link {
    display: block;
    margin-top: 1.25rem;
    font-size: 0.82rem;
    color: #888;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s;
}
.reconnect-reload-link:hover { color: #555; text-decoration: underline; }

.reconnect-btn {
    margin-top: 1.25rem;
    padding: 0.65rem 1.75rem;
    border: none;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    color: #fff !important;
    background: #1565c0 !important;
    transition: background 0.15s;
}
.reconnect-btn:hover { background: #0d47a1 !important; }

/* ── Reconnect spinner dots ── */
.reconnect-spinner {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 1rem;
}
.reconnect-spinner span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e65100;
    animation: reconnect-bounce 1.4s infinite ease-in-out both;
}
.reconnect-spinner span:nth-child(1) { animation-delay: -0.32s; }
.reconnect-spinner span:nth-child(2) { animation-delay: -0.16s; }
.reconnect-spinner span:nth-child(3) { animation-delay: 0s; }

@keyframes reconnect-bounce {
    0%, 80%, 100% { transform: scale(0); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}
