/* Custom Blazor Reconnection UI - Hide during attempts, show toast on failure */
/* This file is tracked in git for custom reconnection styling */

/* Hide Blazor reconnection during attempts - only show toast on failure */
#components-reconnect-modal,
#components-reconnect-modal.components-reconnect-hide,
#components-reconnect-modal.components-reconnect-show {
    display: none !important;
}

/* Only show toast when reconnection fails */
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected {
    display: block !important;
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    top: auto !important;
    left: auto !important;
    background: transparent !important;
    z-index: 9999;
}

.reconnect-toast {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    border-left: 4px solid #dc3545;
    animation: slideInRight 0.3s ease-out;
}

.reconnect-text {
    color: #495057;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    line-height: 1.4;
}

.reconnect-text::before {
    content: "⚠ ";
    color: #dc3545;
    font-size: 18px;
    margin-right: 8px;
}

/* Animation for slide in */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}