/* /Shared/MainLayout.razor.rz.scp.css */
/* =========================================================
   CharityHealth Global Layout
   Topbar + Sidebar + Workspace
   ========================================================= */

   .ch-layout-shell[b-sh6wcey0kz] {
    --topbar-height: 92px;
    --sidebar-width: 300px;
    min-height: 100vh;
    background: #f8fafc;
    color: #111827;
}

/* =========================
   Topbar
   ========================= */

.ch-topbar[b-sh6wcey0kz] {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: var(--topbar-height);
    z-index: 9999;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.045);
}

/* Brand Right */

.ch-brand[b-sh6wcey0kz] {
    position: absolute;
    right: 42px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    text-align: right;
}

.ch-brand-logo[b-sh6wcey0kz] {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #05a843;
    position: relative;
    flex: 0 0 auto;
    box-shadow: 0 10px 22px rgba(5, 168, 67, 0.22);
}

.ch-brand-logo[b-sh6wcey0kz]::after {
    content: "";
    position: absolute;
    width: 31px;
    height: 31px;
    border-radius: 50%;
    background: #ffffff;
    top: 10px;
    left: 9px;
}

.ch-brand-logo[b-sh6wcey0kz]::before {
    content: "";
    position: absolute;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #05a843;
    top: 10px;
    left: 17px;
    z-index: 1;
}

.ch-brand-text[b-sh6wcey0kz] {
    display: grid;
    gap: 3px;
}

.ch-brand-text strong[b-sh6wcey0kz] {
    color: #111827;
    font-size: 22px;
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -0.03em;
}

.ch-brand-text small[b-sh6wcey0kz] {
    color: #047857;
    font-size: 13px;
    line-height: 1.1;
    font-weight: 900;
}

/* User Chip Center */

.ch-user-chip[b-sh6wcey0kz] {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    min-height: 42px;
    border-radius: 999px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 15px;
    font-weight: 950;
    white-space: nowrap;
    border: 1px solid transparent;
}

.ch-user-chip strong[b-sh6wcey0kz] {
    font-weight: 950;
}

.ch-user-dot[b-sh6wcey0kz] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
    display: inline-block;
}

.ch-user-chip.beneficiary[b-sh6wcey0kz] {
    color: #047857;
    background: #ecfdf3;
    border-color: #a7f3d0;
}

.ch-user-chip.doctor[b-sh6wcey0kz] {
    color: #0369a1;
    background: #eff6ff;
    border-color: #bfdbfe;
}

.ch-user-chip.admin[b-sh6wcey0kz],
.ch-user-chip.staff[b-sh6wcey0kz] {
    color: #7e22ce;
    background: #faf5ff;
    border-color: #e9d5ff;
}

.ch-user-chip.guest[b-sh6wcey0kz] {
    color: #475467;
    background: #f8fafc;
    border-color: #e5e7eb;
}

/* Actions Left */

.ch-top-actions[b-sh6wcey0kz] {
    position: absolute;
    left: 42px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.ch-logout-link[b-sh6wcey0kz] {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #667085;
    text-decoration: none;
    font-size: 16px;
    font-weight: 900;
}

.ch-logout-link:hover[b-sh6wcey0kz] {
    color: #dc2626;
}

.ch-logout-icon[b-sh6wcey0kz] {
    font-size: 22px;
    line-height: 1;
}

.ch-theme-toggle[b-sh6wcey0kz] {
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475467;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 21px;
    transition: 0.2s ease;
}

.ch-theme-toggle:hover[b-sh6wcey0kz] {
    background: #e2e8f0;
    transform: translateY(-1px);
}

/* =========================
   Sidebar Fix
   ========================= */

.ch-sidebar[b-sh6wcey0kz] {
    position: fixed !important;
    top: var(--topbar-height) !important;
    right: 0 !important;
    bottom: 0 !important;
    width: var(--sidebar-width) !important;
    height: calc(100vh - var(--topbar-height)) !important;
    z-index: 1000 !important;
    background: #ffffff !important;
    border-left: 1px solid #e5e7eb !important;
    overflow-y: auto !important;
}

.ch-sidebar-user-card[b-sh6wcey0kz] {
    margin-top: 18px;
}

.ch-sidebar-user-card .user-initial[b-sh6wcey0kz] {
    background: #05a843;
    color: #ffffff;
}

.ch-sidebar-user-card .user-initial.doctor[b-sh6wcey0kz] {
    background: #0ea5e9;
}

.ch-sidebar-user-card .user-initial.admin[b-sh6wcey0kz],
.ch-sidebar-user-card .user-initial.staff[b-sh6wcey0kz] {
    background: #9333ea;
}

/* =========================
   Workspace
   ========================= */

.ch-workspace[b-sh6wcey0kz] {
    min-height: 100vh;
    padding-top: var(--topbar-height) !important;
    margin-right: var(--sidebar-width) !important;
    background: #f8fafc;
}

.ch-page-canvas[b-sh6wcey0kz] {
    min-height: calc(100vh - var(--topbar-height));
}

/* =========================
   Dark Mode
   ========================= */

.theme-dark.ch-layout-shell[b-sh6wcey0kz] {
    background: #101827;
    color: #f8fafc;
}

.theme-dark .ch-topbar[b-sh6wcey0kz] {
    background: #0f172a;
    border-bottom-color: #263244;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
}

.theme-dark .ch-brand-text strong[b-sh6wcey0kz] {
    color: #f8fafc;
}

.theme-dark .ch-brand-text small[b-sh6wcey0kz] {
    color: #86efac;
}

.theme-dark .ch-theme-toggle[b-sh6wcey0kz] {
    background: #1f2937;
    color: #e5e7eb;
}

.theme-dark .ch-theme-toggle:hover[b-sh6wcey0kz] {
    background: #334155;
}

.theme-dark .ch-logout-link[b-sh6wcey0kz] {
    color: #cbd5e1;
}

.theme-dark .ch-sidebar[b-sh6wcey0kz] {
    background: #111827 !important;
    border-left-color: #263244 !important;
}

.theme-dark .ch-workspace[b-sh6wcey0kz] {
    background: #101827;
}

.theme-dark .ch-user-chip.beneficiary[b-sh6wcey0kz] {
    background: rgba(22, 101, 52, 0.24);
    border-color: rgba(34, 197, 94, 0.32);
    color: #86efac;
}

.theme-dark .ch-user-chip.doctor[b-sh6wcey0kz] {
    background: rgba(14, 165, 233, 0.18);
    border-color: rgba(56, 189, 248, 0.3);
    color: #7dd3fc;
}

.theme-dark .ch-user-chip.admin[b-sh6wcey0kz],
.theme-dark .ch-user-chip.staff[b-sh6wcey0kz] {
    background: rgba(126, 34, 206, 0.22);
    border-color: rgba(192, 132, 252, 0.28);
    color: #d8b4fe;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 900px) {
    .ch-layout-shell[b-sh6wcey0kz] {
        --topbar-height: 78px;
        --sidebar-width: 0px;
    }

    .ch-topbar[b-sh6wcey0kz] {
        height: var(--topbar-height);
    }

    .ch-brand[b-sh6wcey0kz] {
        right: 16px;
        gap: 10px;
    }

    .ch-brand-logo[b-sh6wcey0kz] {
        width: 44px;
        height: 44px;
    }

    .ch-brand-logo[b-sh6wcey0kz]::after {
        width: 27px;
        height: 27px;
        top: 8px;
        left: 8px;
    }

    .ch-brand-logo[b-sh6wcey0kz]::before {
        width: 22px;
        height: 22px;
        top: 8px;
        left: 16px;
    }

    .ch-brand-text strong[b-sh6wcey0kz] {
        font-size: 16px;
    }

    .ch-brand-text small[b-sh6wcey0kz] {
        font-size: 11px;
    }

    .ch-user-chip[b-sh6wcey0kz] {
        display: none;
    }

    .ch-top-actions[b-sh6wcey0kz] {
        left: 16px;
        gap: 8px;
    }

    .ch-logout-link span:first-child[b-sh6wcey0kz] {
        display: none;
    }

    .ch-theme-toggle[b-sh6wcey0kz] {
        width: 44px;
        height: 44px;
    }

    .ch-sidebar[b-sh6wcey0kz] {
        display: none !important;
    }

    .ch-workspace[b-sh6wcey0kz] {
        margin-right: 0 !important;
        padding-top: var(--topbar-height) !important;
    }
}
/* /Shared/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-u4sk41hg67] {
    background-color: rgba(255, 255, 255, 0.1);
}

.top-row[b-u4sk41hg67] {
    height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-u4sk41hg67] {
    font-size: 1.1rem;
}

.oi[b-u4sk41hg67] {
    width: 2rem;
    font-size: 1.1rem;
    vertical-align: text-top;
    top: -2px;
}

.nav-item[b-u4sk41hg67] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-u4sk41hg67] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-u4sk41hg67] {
        padding-bottom: 1rem;
    }

    .nav-item[b-u4sk41hg67]  a {
        color: #d7d7d7;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
    }

.nav-item[b-u4sk41hg67]  a.active {
    background-color: rgba(255,255,255,0.25);
    color: white;
}

.nav-item[b-u4sk41hg67]  a:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

@media (min-width: 641px) {
    .navbar-toggler[b-u4sk41hg67] {
        display: none;
    }

    .collapse[b-u4sk41hg67] {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
}
