/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* ── Layout styles (CSS variables are defined in app.css) ── */

*[b-z3rp2alage] { box-sizing: border-box; }

/* ── Mobile Top Header ── */
.mobile-header[b-z3rp2alage] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 1rem 1rem;
    background: var(--surface);
    border-bottom: 1px solid var(--outline-variant);
    transition: box-shadow 0.2s, background 0.2s;
}

.mobile-brand[b-z3rp2alage] {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}


/* ── Main Content ── */
.main-content[b-z3rp2alage] {
    padding: 1rem 1rem 8rem;
    padding-top: 5rem; /* offset for mobile top header */
    max-width: 900px;
    margin: 0 auto;
}

/* ── Mobile Bottom Navigation ── */
.mobile-bottom-nav[b-z3rp2alage] {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: var(--surface);
    border-top: 1px solid var(--outline-variant);
    padding: 0.5rem 1rem;
}

.mobile-nav-item[b-z3rp2alage] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.125rem;
    padding: 0.25rem 1.25rem;
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--on-surface-variant);
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: background 0.15s;
}

.mobile-nav-item:hover[b-z3rp2alage] {
    background: var(--surface-container);
    text-decoration: none;
    color: var(--on-surface);
}

.mobile-nav-item--active[b-z3rp2alage] {
    background: var(--primary-container);
    color: var(--on-primary-container);
}

.mobile-nav-item .material-symbols-outlined[b-z3rp2alage] {
    font-size: 1.375rem;
}


/* ── Desktop breakpoint ── */
@media (min-width: 1024px) {
    .mobile-header[b-z3rp2alage],
    .mobile-bottom-nav[b-z3rp2alage] {
        display: none;
    }

    .main-content[b-z3rp2alage] {
        padding: 2.5rem 3rem 4rem;
        max-width: 1100px;
    }
}

/* ── Cards ── */
.card[b-z3rp2alage] {
    background: var(--surface-container-lowest);
    border: 1px solid var(--outline-variant);
    border-radius: 0.75rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover[b-z3rp2alage] {
    transform: translateY(-4px);
    box-shadow: 0px 16px 40px rgba(77, 44, 25, 0.1);
}

/* ── Buttons ── */
.btn[b-z3rp2alage] {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
}

.btn:active[b-z3rp2alage] { transform: scale(0.97); }

.btn-primary[b-z3rp2alage] {
    background: var(--primary);
    color: var(--on-primary);
}

.btn-primary:hover[b-z3rp2alage] { opacity: 0.9; }

.btn-secondary[b-z3rp2alage] {
    background: var(--secondary);
    color: var(--on-secondary);
}

.btn-secondary:hover[b-z3rp2alage] { opacity: 0.9; }

/* ── Form controls ── */
.form-control[b-z3rp2alage] {
    border-radius: 0.5rem;
    border: 1.5px solid var(--outline-variant);
    background: var(--surface-container-lowest);
    color: var(--on-surface);
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
}

.form-control:focus[b-z3rp2alage] {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(77, 44, 25, 0.12);
    outline: none;
}

/* ── Error UI ── */
#blazor-error-ui[b-z3rp2alage] {
    background: var(--error-container);
    color: var(--on-error-container);
    bottom: 0;
    box-shadow: 0 -4px 24px rgba(77, 44, 25, 0.1);
    border-top: 1px solid var(--error);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 1rem 1.5rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss[b-z3rp2alage] {
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 0.75rem;
    font-size: 1.25rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

#blazor-error-ui .dismiss:hover[b-z3rp2alage] { opacity: 1; }

/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-7uibn4flm2],
.components-reconnect-repeated-attempt-visible[b-7uibn4flm2],
.components-reconnect-failed-visible[b-7uibn4flm2],
.components-pause-visible[b-7uibn4flm2],
.components-resume-failed-visible[b-7uibn4flm2],
.components-rejoining-animation[b-7uibn4flm2] {
    display: none;
}

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


#components-reconnect-modal[b-7uibn4flm2] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-7uibn4flm2 0.5s both;
    &[open]

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

}

#components-reconnect-modal[b-7uibn4flm2]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-7uibn4flm2 0.5s ease-in-out;
    opacity: 1;
}

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

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-7uibn4flm2 {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

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

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-7uibn4flm2] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-7uibn4flm2] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-7uibn4flm2] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-7uibn4flm2] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-7uibn4flm2] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-7uibn4flm2] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-7uibn4flm2] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-7uibn4flm2 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

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

@keyframes components-rejoining-animation-b-7uibn4flm2 {
    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;
    }
}
