/* /Components/Layout/MainLayout.razor.rz.scp.css */
#blazor-error-ui[b-f7yqqjdams] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-f7yqqjdams] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
/* Hidden state visibility controls */
.components-reconnect-first-attempt-visible[b-1mfh93z257],
.components-reconnect-repeated-attempt-visible[b-1mfh93z257],
.components-reconnect-failed-visible[b-1mfh93z257],
.components-pause-visible[b-1mfh93z257],
.components-resume-failed-visible[b-1mfh93z257],
.components-rejoining-animation[b-1mfh93z257] {
    display: none;
}

/* Show specific content based on connection state */
#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-1mfh93z257],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-1mfh93z257],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-1mfh93z257],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-1mfh93z257],
#components-reconnect-modal.components-reconnect-retrying[b-1mfh93z257],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-1mfh93z257],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-1mfh93z257],
#components-reconnect-modal.components-reconnect-failed[b-1mfh93z257],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-1mfh93z257] {
    display: block;
}

/* Compact toast notification - bottom left corner */
#components-reconnect-modal[b-1mfh93z257] {
    background-color: rgba(26, 26, 26, 0.95) !important;
    backdrop-filter: blur(10px);
    width: 280px !important;
    max-width: 90vw !important;
    margin: 0 !important;
    padding: 1rem 1.25rem !important;
    border: 2px solid #6b9c37 !important; /* Green border */
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(107, 156, 55, 0.3) !important;
    position: fixed !important;
    bottom: 20px !important;
    left: 20px !important;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 9999 !important;
}

/* Shown state - slide up and fade in */
#components-reconnect-modal[open][b-1mfh93z257] {
    opacity: 1 !important;
    transform: translateY(0) !important;
    display: block !important;
}

/* No backdrop - using .show() instead of .showModal() to keep page interactive */

/* Container layout - compact horizontal layout */
.components-reconnect-container[b-1mfh93z257] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}

/* Text styling - white on dark background */
#components-reconnect-modal p[b-1mfh93z257] {
    margin: 0;
    font-size: 0.875rem;
    color: #ffffff;
    line-height: 1.4;
}

/* Compact button styling - GREEN theme */
#components-reconnect-modal button[b-1mfh93z257] {
    border: 0 !important;
    background-color: #6b9c37 !important; /* Primary green */
    color: white !important;
    padding: 0.375rem 0.875rem !important;
    border-radius: 6px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

#components-reconnect-modal button:hover[b-1mfh93z257] {
    background-color: #5a8530 !important; /* Darker green on hover */
}

#components-reconnect-modal button:active[b-1mfh93z257] {
    background-color: #4a7020 !important; /* Even darker on active */
}

/* Compact spinner animation - smaller size for toast */
.components-rejoining-animation[b-1mfh93z257] {
    position: relative;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.components-rejoining-animation div[b-1mfh93z257] {
    position: absolute;
    border: 2px solid #6b9c37 !important; /* Green spinner */
    opacity: 1;
    border-radius: 50%;
    animation: components-rejoining-animation-b-1mfh93z257 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.components-rejoining-animation div:nth-child(2)[b-1mfh93z257] {
    animation-delay: -0.5s;
}

@keyframes components-rejoining-animation-b-1mfh93z257 {
    0% {
        top: 12px;
        left: 12px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 12px;
        left: 12px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 12px;
        left: 12px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 24px;
        height: 24px;
        opacity: 0;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 576px) {
    #components-reconnect-modal[b-1mfh93z257] {
        bottom: 10px;
        left: 10px;
        width: 260px;
        padding: 0.875rem 1rem;
    }

    #components-reconnect-modal p[b-1mfh93z257] {
        font-size: 0.8125rem;
    }
}
