/* /../E-Charity/Components/Layout/LoginLayout.razor.rz.scp.css */
/* Layout handled by Tailwind utility classes in LoginLayout.razor */
/* /../E-Charity/Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-dzgeyzazyy] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-dzgeyzazyy] {
    flex: 1;
    min-width: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

.sidebar[b-dzgeyzazyy] {
    background-image: linear-gradient(180deg, #003969 0%, #1A5A5A 70%);
    flex-shrink: 0;
}

.top-row[b-dzgeyzazyy] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3rem;
    height: calc(3rem + env(safe-area-inset-top, 0px));
    padding-top: env(safe-area-inset-top, 0px);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

    .top-row[b-dzgeyzazyy]  a, .top-row[b-dzgeyzazyy]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-dzgeyzazyy]  a:hover, .top-row[b-dzgeyzazyy]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-dzgeyzazyy]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

/* Mobile-only elements (hidden on desktop) */
.mobile-menu-toggle[b-dzgeyzazyy],
.mobile-app-title[b-dzgeyzazyy] {
    display: none !important;
}

/* Desktop-only user info */
.desktop-user-info[b-dzgeyzazyy] {
    display: inline;
}

/* Sidebar overlay backdrop */
.sidebar-overlay[b-dzgeyzazyy] {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1040;
}

@media (max-width: 640.98px) {
    .mobile-menu-toggle[b-dzgeyzazyy] {
        display: inline-flex !important;
    }

    .mobile-app-title[b-dzgeyzazyy] {
        display: inline !important;
    }

    .desktop-user-info[b-dzgeyzazyy] {
        display: none !important;
    }

    .top-row[b-dzgeyzazyy] {
        gap: 0.4rem;
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    .top-row[b-dzgeyzazyy]  a, .top-row[b-dzgeyzazyy]  .btn-link {
        margin-left: 0;
    }

    article[b-dzgeyzazyy] {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
        padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px)) !important;
    }

    /* Sidebar: fixed off-screen, slides in when open */
    .sidebar[b-dzgeyzazyy] {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        z-index: 1050;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch; /* momentum touch scroll on Android/iOS WebView */
        overscroll-behavior: contain;
        padding-top: env(safe-area-inset-top, 0px);
        /* Clear the device's bottom system/nav bar so the last nav items (Settings,
           etc.) are reachable — without this they were cut off on Android. */
        padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 2.5rem);
    }

    .sidebar.open[b-dzgeyzazyy] {
        transform: translateX(0);
    }

    /* Show all nav items when sidebar overlay is open */
    .sidebar.open[b-dzgeyzazyy]  .nav-scrollable {
        display: block;
    }

    /* Hide the checkbox toggler in overlay mode */
    .sidebar.open[b-dzgeyzazyy]  .navbar-toggler {
        display: none;
    }
}

@media (min-width: 641px) {
    .page[b-dzgeyzazyy] {
        flex-direction: row;
    }

    .sidebar[b-dzgeyzazyy] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
        overflow-y: auto;
    }

    .sidebar-overlay[b-dzgeyzazyy] {
        display: none;
    }

    .top-row[b-dzgeyzazyy] {
        z-index: 1;
    }

    .top-row.auth[b-dzgeyzazyy]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-dzgeyzazyy], article[b-dzgeyzazyy] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

.content[b-dzgeyzazyy] {
    overflow-x: auto;
    overflow-y: auto;
    max-width: 100%;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    /* Ensure content can scroll fully past bottom safe area */
    min-height: 0;
}

/* RTL overrides for sidebar layout */
:global([dir="rtl"]) .page[b-dzgeyzazyy] {
    direction: rtl;
}

:global([dir="rtl"]) .top-row[b-dzgeyzazyy] {
    justify-content: flex-end;
}

:global([dir="rtl"]) .top-row[b-dzgeyzazyy]  a,
:global([dir="rtl"]) .top-row[b-dzgeyzazyy]  .btn-link {
    margin-left: 0;
    margin-right: 1.5rem;
}

:global([dir="rtl"]) .top-row[b-dzgeyzazyy], :global([dir="rtl"]) article[b-dzgeyzazyy] {
    padding-right: 2rem !important;
    padding-left: 1.5rem !important;
}

/* RTL mobile: sidebar slides from right */
@media (max-width: 640.98px) {
    :global([dir="rtl"]) .sidebar[b-dzgeyzazyy] {
        left: auto;
        right: 0;
        transform: translateX(100%);
    }

    :global([dir="rtl"]) .sidebar.open[b-dzgeyzazyy] {
        transform: translateX(0);
    }

    :global([dir="rtl"]) .top-row[b-dzgeyzazyy] {
        padding-right: 0.75rem !important;
        padding-left: 0.75rem !important;
    }

    :global([dir="rtl"]) article[b-dzgeyzazyy] {
        padding-right: 0.75rem !important;
        padding-left: 0.75rem !important;
    }
}

/* Top-of-window progress bar shown while a navigation is in flight, so the
   user gets feedback in <100ms instead of staring at a frozen page during
   data loads. Hidden as soon as the new page renders or after a short cap. */
.nav-progress[b-dzgeyzazyy] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    z-index: 9999;
    background: rgba(0, 57, 105, 0.08);
    overflow: hidden;
    pointer-events: none;
}

.nav-progress-bar[b-dzgeyzazyy] {
    height: 100%;
    width: 30%;
    background-image: linear-gradient(90deg, #003969 0%, #1A5A5A 100%);
    animation: navProgressSlide-b-dzgeyzazyy 1.1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes navProgressSlide-b-dzgeyzazyy {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(400%); }
}
/* /../E-Charity/Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-x4wkvn40v1] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
}

.navbar-toggler:checked[b-x4wkvn40v1] {
    background-color: rgba(255, 255, 255, 0.5);
}

.top-row[b-x4wkvn40v1] {
    min-height: 3.25rem;
    padding: 0.5rem 0.75rem;
    background-color: rgba(0,0,0,0.4);
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.navbar-brand[b-x4wkvn40v1] {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: calc(100% - 4rem);
    line-height: 1.2;
    text-decoration: none;
}

.brand-title[b-x4wkvn40v1] {
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
}

.brand-subtitle[b-x4wkvn40v1] {
    font-size: 0.65rem;
    font-weight: 400;
    color: rgba(140, 200, 255, 0.8);
    letter-spacing: 0.03em;
}

/* ── Nav icon styling (Tabler Icons font) ──
   Selectors target `.ti` since the project migrated from Bootstrap Icons.
   Without this fixed-width / margin / opacity setup, sidebar icons rendered
   at variable widths with no alignment between rows (the visible bug). */
.nav-item[b-x4wkvn40v1]  .nav-link .ti {
    font-size: 1.05rem;
    width: 1.25rem;
    text-align: center;
    margin-right: 0.6rem;
    opacity: 0.85;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
    line-height: 1;
}

/* ── Nav items ── */
.nav-item[b-x4wkvn40v1] {
    font-size: 0.85rem;
    padding-bottom: 0.2rem;
}

    .nav-item:first-of-type[b-x4wkvn40v1] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-x4wkvn40v1] {
        padding-bottom: 1rem;
    }

    .nav-item[b-x4wkvn40v1]  .nav-link {
        color: #d7d7d7;
        background: none;
        border: none;
        border-radius: 6px;
        height: 2.4rem;
        display: flex;
        align-items: center;
        line-height: 2.4rem;
        width: 100%;
        padding: 0 0.75rem;
        transition: background-color 0.2s ease, color 0.15s ease, transform 0.15s ease;
    }

/* ── Active state ── */
.nav-item[b-x4wkvn40v1]  a.active {
    background-color: rgba(255,255,255,0.25);
    color: white;
    font-weight: 600;
    box-shadow: inset 3px 0 0 0 rgba(255,255,255,0.8);
}

    .nav-item[b-x4wkvn40v1]  a.active .ti {
        opacity: 1;
    }

/* ── Hover state ── */
.nav-item[b-x4wkvn40v1]  .nav-link:hover {
    background-color: rgba(255,255,255,0.12);
    color: white;
    transform: translateX(2px);
}

    .nav-item[b-x4wkvn40v1]  .nav-link:hover .ti {
        opacity: 1;
    }

/* ── Section headings ── */
.nav-section-heading[b-x4wkvn40v1] {
    color: rgba(255,255,255,0.45);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.6rem 0.75rem 0.2rem;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    pointer-events: none;
    user-select: none;
}

    .nav-section-heading:first-of-type[b-x4wkvn40v1] {
        border-top: none;
    }

.nav-scrollable[b-x4wkvn40v1] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-x4wkvn40v1] {
    display: block;
}

@media (min-width: 641px) {
    .navbar-toggler[b-x4wkvn40v1] {
        display: none;
    }

    .nav-scrollable[b-x4wkvn40v1] {
        display: block;
    }
}

/* ── RTL overrides ── */
:global([dir="rtl"]) .nav-item[b-x4wkvn40v1]  .nav-link .ti {
    margin-right: 0;
    margin-left: 0.6rem;
}

:global([dir="rtl"]) .nav-item[b-x4wkvn40v1]  a.active {
    box-shadow: inset -3px 0 0 0 rgba(255,255,255,0.8);
}

:global([dir="rtl"]) .nav-item[b-x4wkvn40v1]  .nav-link:hover {
    transform: translateX(-2px);
}

:global([dir="rtl"]) .navbar-toggler[b-x4wkvn40v1] {
    right: auto;
    left: 1rem;
}

:global([dir="rtl"]) .top-row[b-x4wkvn40v1] {
    padding-right: 0.75rem;
    padding-left: 0;
}
