/* ── Blazor unhandled error banner ───────────────────────────── */
#blazor-error-ui {
    background: #fff3e0;
    border-top: 3px solid #f57c00;
    bottom: 0; left: 0;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.12);
    color: #4a3300;
    display: none;
    font-family: 'Inter', 'Roboto', sans-serif;
    font-size: 14px;
    padding: 12px 48px 12px 20px;
    position: fixed;
    width: 100%;
    z-index: 9999;
}
#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    opacity: 0.6;
    line-height: 1;
}
#blazor-error-ui .dismiss:hover { opacity: 1; }

/* ── Blazor SignalR reconnect overlay ────────────────────────── */
#components-reconnect-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9990;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    font-family: 'Inter', 'Roboto', sans-serif;
}

/* Blazor sets these classes on the modal element */
#components-reconnect-modal.components-reconnect-show    { display: flex; }
#components-reconnect-modal.components-reconnect-hide    { display: none;  }
#components-reconnect-modal.components-reconnect-failed  { display: flex; }
#components-reconnect-modal.components-reconnect-rejected { display: flex; }

.hms-reconnect-box {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.20), 0 8px 24px rgba(0,0,0,0.10);
    padding: 36px 40px;
    max-width: 380px;
    width: calc(100vw - 32px);
    text-align: center;
}

.hms-reconnect-spinner {
    display: inline-block;
    width: 44px; height: 44px;
    border: 4px solid #e0f4fb;
    border-top-color: #0096C7;
    border-radius: 50%;
    animation: hmsSpinnerRotate 0.8s linear infinite;
    margin-bottom: 20px;
}
@keyframes hmsSpinnerRotate {
    to { transform: rotate(360deg); }
}

.hms-reconnect-icon {
    font-size: 44px;
    margin-bottom: 16px;
    line-height: 1;
}

.hms-reconnect-title {
    font-size: 17px;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 8px;
}
.hms-reconnect-subtitle {
    font-size: 13px;
    color: #6B7280;
    line-height: 1.6;
    margin: 0 0 24px;
}

.hms-reconnect-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 24px;
    background: #0096C7;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
}
.hms-reconnect-btn:hover {
    background: #0077a0;
    transform: translateY(-1px);
}

/* Show reconnecting state */
#components-reconnect-modal.components-reconnect-show    .hms-reconnect-reconnecting { display: block; }
#components-reconnect-modal.components-reconnect-show    .hms-reconnect-failed-msg    { display: none;  }
#components-reconnect-modal.components-reconnect-failed  .hms-reconnect-reconnecting  { display: none;  }
#components-reconnect-modal.components-reconnect-failed  .hms-reconnect-failed-msg    { display: block; }
#components-reconnect-modal.components-reconnect-rejected .hms-reconnect-reconnecting { display: none;  }
#components-reconnect-modal.components-reconnect-rejected .hms-reconnect-failed-msg   { display: block; }

.hms-reconnect-reconnecting { display: block; }
.hms-reconnect-failed-msg   { display: none;  }
