@import '_content/Brassicum.Shared.UI/Brassicum.Shared.UI.mw9aoxsiug.bundle.scp.css';

/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* Tailwind is used for MainLayout styling. */
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* Tailwind is used for NavMenu styling. */
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
/* ── Blazor reconnect state machine — visibility rules MUST NOT change ── */
.components-reconnect-first-attempt-visible[b-ibkmh8ft2p],
.components-reconnect-repeated-attempt-visible[b-ibkmh8ft2p],
.components-reconnect-failed-visible[b-ibkmh8ft2p],
.components-pause-visible[b-ibkmh8ft2p],
.components-resume-failed-visible[b-ibkmh8ft2p],
.components-rejoining-animation[b-ibkmh8ft2p] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-ibkmh8ft2p],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-ibkmh8ft2p],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-ibkmh8ft2p],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-ibkmh8ft2p],
#components-reconnect-modal.components-reconnect-retrying[b-ibkmh8ft2p],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-ibkmh8ft2p],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-ibkmh8ft2p],
#components-reconnect-modal.components-reconnect-failed[b-ibkmh8ft2p],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-ibkmh8ft2p] {
    display: block;
}

/* ── Dialog chrome ── */
#components-reconnect-modal[b-ibkmh8ft2p] {
    background-color: var(--bx-surface-raised);
    color: var(--bx-text);
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: var(--bx-radius-md);
    box-shadow: var(--bx-shadow-xl);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-ibkmh8ft2p 0.5s both;

    &[open] {
        animation: components-reconnect-modal-slideUp-b-ibkmh8ft2p 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s,
                   components-reconnect-modal-fadeInOpacity-b-ibkmh8ft2p 0.5s ease-in-out 0.3s;
        animation-fill-mode: both;
    }
}

#components-reconnect-modal[b-ibkmh8ft2p]::backdrop {
    background-color: var(--bx-surface-overlay);
    animation: components-reconnect-modal-fadeInOpacity-b-ibkmh8ft2p 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-ibkmh8ft2p {
    0%   { transform: translateY(30px) scale(0.95); }
    100% { transform: translateY(0); }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-ibkmh8ft2p {
    0%   { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-ibkmh8ft2p {
    0%   { opacity: 1; }
    100% { opacity: 0; }
}

/* ── Layout ── */
.components-reconnect-container[b-ibkmh8ft2p] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-ibkmh8ft2p] {
    margin: 0;
    text-align: center;
    font-size: var(--bx-fs-body-sm);
    color: var(--bx-text-2);
}

/* ── Retry / Resume buttons ── */
#components-reconnect-modal button[b-ibkmh8ft2p] {
    border: 0;
    background-color: var(--bx-interactive-primary);
    color: white;
    padding: 4px 24px;
    border-radius: var(--bx-radius-sm);
    font-size: var(--bx-fs-body-sm);
    font-weight: var(--bx-fw-medium);
    cursor: pointer;
    transition: background-color var(--bx-duration-fast) var(--bx-ease-standard);
}

#components-reconnect-modal button:hover[b-ibkmh8ft2p] {
    background-color: var(--bx-interactive-primary-hover);
}

#components-reconnect-modal button:active[b-ibkmh8ft2p] {
    background-color: var(--bx-interactive-primary-active);
}

/* ── Rejoining animation ring ── */
.components-rejoining-animation[b-ibkmh8ft2p] {
    position: relative;
    width: 80px;
    height: 80px;
}

.components-rejoining-animation div[b-ibkmh8ft2p] {
    position: absolute;
    border: 3px solid var(--bx-interactive-primary);
    opacity: 1;
    border-radius: 50%;
    animation: components-rejoining-animation-b-ibkmh8ft2p 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.components-rejoining-animation div:nth-child(2)[b-ibkmh8ft2p] {
    animation-delay: -0.5s;
}

@keyframes components-rejoining-animation-b-ibkmh8ft2p {
    0%   { top: 40px; left: 40px; width: 0;    height: 0;    opacity: 0; }
    4.9% { top: 40px; left: 40px; width: 0;    height: 0;    opacity: 0; }
    5%   { top: 40px; left: 40px; width: 0;    height: 0;    opacity: 1; }
    100% { top: 0px;  left: 0px;  width: 80px; height: 80px; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    #components-reconnect-modal[b-ibkmh8ft2p],
    #components-reconnect-modal[open][b-ibkmh8ft2p],
    .components-rejoining-animation div[b-ibkmh8ft2p] {
        animation: none;
        transition: none;
    }
}
/* /Components/Shared/BxToastHost.razor.rz.scp.css */
/* Slide-in from the inline-end edge */
.bx-toast-in[b-re8kgm1zoa] {
    animation: bx-toast-slide-in-b-re8kgm1zoa var(--bx-duration-base) var(--bx-ease-decelerate) both;
}

@keyframes bx-toast-slide-in-b-re8kgm1zoa {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* In RTL the toast stack is on the inline-end (left), so slide from the other direction */
[dir="rtl"] .bx-toast-in[b-re8kgm1zoa] {
    animation-name: bx-toast-slide-in-rtl-b-re8kgm1zoa;
}

@keyframes bx-toast-slide-in-rtl-b-re8kgm1zoa {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
    .bx-toast-in[b-re8kgm1zoa] {
        animation: none;
    }
}
