/* =========================================
   ZDD Reconnection Toast Overrides
   ========================================= */

#components-reconnect-modal {
    position: fixed !important;
    inset: auto 1.5rem 1.5rem auto !important;
    /* Bottom Right */
    top: auto !important;
    left: auto !important;
    transform: none !important;

    width: auto !important;
    height: auto !important;
    max-width: 350px !important;

    padding: 1rem 1.5rem !important;
    background-color: #0B1220 !important;
    /* Navy-950 */
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
    /* Blue-500/20 */
    border-left: 4px solid #3B82F6 !important;
    /* Blue-500 */
    border-radius: 0.5rem !important;

    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5) !important;
    color: #F8FAFC !important;
    z-index: 10000 !important;

    font-family: 'Inter', sans-serif !important;
    font-size: 0.875rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;

    opacity: 0;
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    transform: translateY(20px);
}

#components-reconnect-modal[open] {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

#components-reconnect-modal::backdrop {
    display: none !important;
    background: transparent !important;
}

/* Hide default spinner and buttons */
.components-rejoining-animation,
#components-reconnect-button,
#components-resume-button {
    display: none !important;
}

/* Custom Text Style */
.components-reconnect-first-attempt-visible,
.components-reconnect-repeated-attempt-visible,
.components-reconnect-failed-visible {
    margin: 0 !important;
}

/* Add a pseudo-element for a custom icon if desired */
#components-reconnect-modal::before {
    content: "↻";
    font-size: 1.25rem;
    color: #3B82F6;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}
/* Hide default Blazor Error Bar (Red footer) to assume ZDD Reload */
#blazor-error-ui {
    display: none !important;
}
