/* _content/GameCollectionManager/Components/Layout/MainLayout.razor.rz.scp.css */
main[b-conesg1ceo] {
    flex: 1;
}

/* Top bar styling */
.top-bar[b-conesg1ceo] {
    position: fixed;
    top: 0;
    right: 0;
    padding: 15px 20px;
    z-index: 1001;
    background: transparent;
}

@media (max-width: 768px) {
    .top-bar[b-conesg1ceo] {
        padding: 70px 15px 15px 15px;
    }
}

#blazor-error-ui[b-conesg1ceo] {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    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-conesg1ceo] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

/* Custom reconnect UI: blazor.server.js toggles components-reconnect-show/-hide/-failed/
   -rejected classes on this element automatically based on circuit connection state.
   Visibility itself is driven by reconnect-debounced-show (see reconnect-debounce.js),
   which only appears once a "reconnecting" state has persisted for a bit — otherwise the
   brief prerender-to-interactive circuit handoff on initial page load flashes this modal
   even though nothing actually disconnected. */
#components-reconnect-modal[b-conesg1ceo] {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

    #components-reconnect-modal.reconnect-debounced-show[b-conesg1ceo] {
        display: flex;
    }

.reconnect-modal-content[b-conesg1ceo] {
    background: #2d2d2d;
    color: #fff;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    max-width: 340px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.reconnect-state[b-conesg1ceo] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .reconnect-state-show[b-conesg1ceo],
#components-reconnect-modal.components-reconnect-failed .reconnect-state-failed[b-conesg1ceo],
#components-reconnect-modal.components-reconnect-rejected .reconnect-state-rejected[b-conesg1ceo] {
    display: block;
}
