/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* Mobile-first app shell */

.app-shell[b-j6zm0kmt93] {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh; /* dynamic viewport height for mobile browsers */
    background: #f5f6fa;
}

/* Header */
.app-header[b-j6zm0kmt93] {
    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-j6zm0kmt93] {
    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-j6zm0kmt93] {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    object-fit: contain;
}

.app-header-name[b-j6zm0kmt93] {
    display: inline;
}

.app-header-actions[b-j6zm0kmt93] {
    display: flex;
    align-items: center;
    gap: 4px;
}

.app-header-btn[b-j6zm0kmt93] {
    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-j6zm0kmt93] {
    background: #f0f0f5;
    color: #6c5ce7;
}

/* Main content area */
.app-main[b-j6zm0kmt93] {
    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-j6zm0kmt93] {
    flex: 1;
    overflow: hidden;
    padding: 0;
}

/* Error UI — hidden by default, delayed show to avoid flash on login/navigation */
[b-j6zm0kmt93] #blazor-error-ui {
    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-j6zm0kmt93 0.3s ease 1.5s forwards;
}
@keyframes blazor-error-fadein-b-j6zm0kmt93 {
    to { opacity: 1; }
}

[b-j6zm0kmt93] #blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* Desktop adjustments */
@media (min-width: 768px) {
    .app-main[b-j6zm0kmt93] {
        padding-bottom: 72px;
    }
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* Bottom tab bar - iOS/Android style */

.app-tab-bar[b-4xmewbsi9a] {
    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-4xmewbsi9a] .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-4xmewbsi9a] .app-tab i {
    font-size: 1.35rem;
    line-height: 1;
}

[b-4xmewbsi9a] .app-tab span {
    line-height: 1;
    letter-spacing: 0.2px;
}

[b-4xmewbsi9a] .app-tab:hover {
    color: #6c5ce7;
}

[b-4xmewbsi9a] .app-tab.active {
    color: #6c5ce7;
}

[b-4xmewbsi9a] .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-4xmewbsi9a] .app-tab-desktop-only {
    display: none;
}

@media (min-width: 480px) {
    [b-4xmewbsi9a] .app-tab-desktop-only {
        display: flex;
    }
}

@media (min-width: 768px) {
    .app-tab-bar[b-4xmewbsi9a] {
        height: 68px;
    }
    [b-4xmewbsi9a] .app-tab {
        font-size: 0.7rem;
    }
    [b-4xmewbsi9a] .app-tab i {
        font-size: 1.4rem;
    }
}
