/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* Mobile-first app shell */

.app-shell[b-udxevxu10b] {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh; /* dynamic viewport height for mobile browsers */
    background: #f5f6fa;
}

/* Header */
.app-header[b-udxevxu10b] {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    height: 56px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.app-header-brand[b-udxevxu10b] {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #1a1a2e;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.3px;
}

.app-header-icon[b-udxevxu10b] {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    object-fit: contain;
}

.app-header-name[b-udxevxu10b] {
    display: inline;
}

.app-header-actions[b-udxevxu10b] {
    display: flex;
    align-items: center;
    gap: 4px;
}

.app-header-btn[b-udxevxu10b] {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #6b7280;
    text-decoration: none;
    font-size: 1.15rem;
    transition: all 0.2s;
    background: none;
    border: none;
    cursor: pointer;
}

.app-header-btn:hover[b-udxevxu10b] {
    background: #f0f0f5;
    color: #6c5ce7;
}

/* Main content area */
.app-main[b-udxevxu10b] {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 72px; /* space for bottom tab bar */
}

/* Immersive mode (chat) — no header, no tab bar */
.app-main-immersive[b-udxevxu10b] {
    flex: 1;
    overflow: hidden;
    padding: 0;
}

/* Error UI — hidden by default, delayed show to avoid flash on login/navigation */
#blazor-error-ui[b-udxevxu10b] {
    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;
    opacity: 0;
    animation: blazor-error-fadein-b-udxevxu10b 0.3s ease 1.5s forwards;
}
@keyframes blazor-error-fadein-b-udxevxu10b {
    to { opacity: 1; }
}

#blazor-error-ui .dismiss[b-udxevxu10b] {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* Desktop adjustments */
@media (min-width: 768px) {
    .app-main[b-udxevxu10b] {
        padding-bottom: 72px;
    }
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* Bottom tab bar - iOS/Android style */

.app-tab-bar[b-5fl8y9rc2w] {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    height: 64px;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding-bottom: env(safe-area-inset-bottom, 0px); /* iOS safe area */
}

[b-5fl8y9rc2w] .app-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex: 1;
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 600;
    transition: color 0.2s;
    position: relative;
    padding: 6px 0;
    -webkit-tap-highlight-color: transparent;
}

[b-5fl8y9rc2w] .app-tab i {
    font-size: 1.35rem;
    line-height: 1;
}

[b-5fl8y9rc2w] .app-tab span {
    line-height: 1;
    letter-spacing: 0.2px;
}

[b-5fl8y9rc2w] .app-tab:hover {
    color: #6c5ce7;
}

[b-5fl8y9rc2w] .app-tab.active {
    color: #6c5ce7;
}

[b-5fl8y9rc2w] .app-tab.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    right: 25%;
    height: 3px;
    background: #6c5ce7;
    border-radius: 0 0 3px 3px;
}

/* 5th tab (Plans) - hide on small screens */
[b-5fl8y9rc2w] .app-tab-desktop-only {
    display: none;
}

@media (min-width: 480px) {
    [b-5fl8y9rc2w] .app-tab-desktop-only {
        display: flex;
    }
}

@media (min-width: 768px) {
    .app-tab-bar[b-5fl8y9rc2w] {
        height: 68px;
    }
    [b-5fl8y9rc2w] .app-tab {
        font-size: 0.7rem;
    }
    [b-5fl8y9rc2w] .app-tab i {
        font-size: 1.4rem;
    }
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-8s58vlathk],
.components-reconnect-repeated-attempt-visible[b-8s58vlathk],
.components-reconnect-failed-visible[b-8s58vlathk],
.components-pause-visible[b-8s58vlathk],
.components-resume-failed-visible[b-8s58vlathk],
.components-rejoining-animation[b-8s58vlathk] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-8s58vlathk],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-8s58vlathk],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-8s58vlathk],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-8s58vlathk],
#components-reconnect-modal.components-reconnect-retrying[b-8s58vlathk],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-8s58vlathk],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-8s58vlathk],
#components-reconnect-modal.components-reconnect-failed[b-8s58vlathk],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-8s58vlathk] {
    display: block;
}


#components-reconnect-modal[b-8s58vlathk] {
    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-8s58vlathk 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-8s58vlathk 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-8s58vlathk 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-8s58vlathk]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-8s58vlathk 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-8s58vlathk {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-8s58vlathk {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-8s58vlathk {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-8s58vlathk] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-8s58vlathk] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-8s58vlathk] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-8s58vlathk] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-8s58vlathk] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-8s58vlathk] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-8s58vlathk] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-8s58vlathk 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-8s58vlathk] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-8s58vlathk {
    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;
    }
}
