/* JUKU | Blazor Server reconnect overlay */
#components-reconnect-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    box-sizing: border-box;
    padding: 20px;
    align-items: center;
    justify-content: center;
    background: rgba(20, 35, 57, .32);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
#components-reconnect-modal.components-reconnect-show,
#components-reconnect-modal.components-reconnect-retrying,
#components-reconnect-modal.components-reconnect-paused,
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected {
    display: flex;
}
#components-reconnect-modal.components-reconnect-hide { display: none; }
#components-reconnect-modal .juku-reconnect-card {
    box-sizing: border-box;
    width: min(100%, 370px);
    padding: 36px 28px 32px;
    background: #fff;
    border: 1px solid rgba(30, 76, 132, .09);
    border-radius: 22px;
    box-shadow: 0 25px 75px rgba(15, 39, 76, .18);
    text-align: center;
    animation: juku-reconnect-arrive .25s ease-out;
}
#components-reconnect-modal .juku-reconnect-icon {
    width: 78px;
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    border-radius: 50%;
    color: #2879d0;
    background: #edf6ff;
}
#components-reconnect-modal .juku-reconnect-icon svg { animation: juku-reconnect-rotate 3.5s linear infinite; }
#components-reconnect-modal h2 {
    color: #20354b;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 9px;
}
#components-reconnect-modal p { color: #65758a; font-size: 14px; margin: 0 0 22px; line-height: 1.5; }
#components-reconnect-modal .juku-reconnect-status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #477494;
    font-size: 13px;
    font-weight: 600;
}
#components-reconnect-modal .juku-reconnect-spinner {
    width: 15px;
    height: 15px;
    border: 2px solid #bfdffb;
    border-top-color: #2478cf;
    border-radius: 50%;
    animation: juku-reconnect-rotate .85s linear infinite;
}
#components-reconnect-modal .juku-reconnect-unavailable { display: none; }
#components-reconnect-modal.components-reconnect-failed .juku-reconnect-working,
#components-reconnect-modal.components-reconnect-rejected .juku-reconnect-working { display: none; }
#components-reconnect-modal.components-reconnect-failed .juku-reconnect-unavailable,
#components-reconnect-modal.components-reconnect-rejected .juku-reconnect-unavailable { display: block; }
#components-reconnect-modal.components-reconnect-failed .juku-reconnect-icon svg,
#components-reconnect-modal.components-reconnect-rejected .juku-reconnect-icon svg { animation: none; }
#components-reconnect-modal .juku-reconnect-button {
    display: inline-block;
    border: 0;
    border-radius: 10px;
    padding: 11px 22px;
    color: white;
    background: #2879d0;
    font: 600 14px system-ui, -apple-system, "Segoe UI", sans-serif;
    cursor: pointer;
}
#components-reconnect-modal .juku-reconnect-button:hover { background: #1f66b4; }
#components-reconnect-modal .juku-reconnect-button:focus-visible { outline: 3px solid #a8d1fa; outline-offset: 3px; }
@keyframes juku-reconnect-rotate { to { transform: rotate(360deg); } }
@keyframes juku-reconnect-arrive { from { opacity: .4; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
    #components-reconnect-modal *, #components-reconnect-modal *::before { animation: none !important; }
}
