/* _content/FuelMasterERP/Shared/MainLayout - Copy.razor.rz.scp.css */
:root[b-yiqzpm89q4] {
  --fm-topbar-bg: linear-gradient(90deg, #0b2f63 0%, #0d3f82 100%);
  --fm-topbar-text: #e7eef7;
  --fm-accent: #1e88e5;
  --fm-accent-2: #0ea5e9;
  --fm-border: #e5e7eb;
  --fm-muted: #64748b;
  --fm-body: #f6f7fb;
  --fm-sidebar-bg: #10253a;
  --fm-sidebar-hover: #17344f;
  --fm-sidebar-active: #1f4e79;
}

:root[data-theme="dark"][b-yiqzpm89q4] {
  --fm-topbar-bg: linear-gradient(90deg, #0b1b2e 0%, #0d2b52 100%);
  --fm-topbar-text: #dfebf7;
  --fm-body: #121821;
  --fm-border: #1f2a37;
  --fm-muted: #99a7b5;
  --fm-sidebar-bg: #0b1928;
  --fm-sidebar-hover: #0f2337;
  --fm-sidebar-active: #12314e;
}

/* Layout skeleton */
.layout-root[b-yiqzpm89q4] {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--fm-body);
}

.topbar[b-yiqzpm89q4] {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 .75rem 0 1rem;
  color: var(--fm-topbar-text);
  background: var(--fm-topbar-bg);
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.topbar .brand[b-yiqzpm89q4] {
  font-weight: 700;
  letter-spacing: .3px;
  font-size: 1.05rem;
}

.nav-inline a[b-yiqzpm89q4] {
  color: var(--fm-topbar-text);
  text-decoration: none;
  font-size: .9rem;
  padding: .35rem .5rem;
  border-radius: 6px;
  opacity: .95;
}

.nav-inline a:hover[b-yiqzpm89q4] {
  background: rgba(255,255,255,.12);
  opacity: 1;
}

.user-pill[b-yiqzpm89q4] {
  background: rgba(255,255,255,.16);
  padding: .2rem .5rem;
  border-radius: 999px;
  font-size: .8rem;
}

.badge-env[b-yiqzpm89q4] {
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.25);
  padding: .15rem .5rem;
  border-radius: 999px;
  font-size: .68rem;
  letter-spacing: .3px;
}

.dark-toggle[b-yiqzpm89q4] {
  background: transparent;
  border: 1px solid rgba(255,255,255,.35);
  color: var(--fm-topbar-text);
  padding: .3rem .55rem;
  border-radius: 6px;
  font-size: .78rem;
}
 
/* Sidebar-container removed; using app-main classes to control layout push */
/* === CLEAN RESPONSIVE LAYOUT FIX === */

/* Main layout area under topbar */
.app-main[b-yiqzpm89q4] {
    display: flex;
    height: calc(100vh - 56px);
    overflow: hidden;
    background: var(--fm-body);
}

/* Sidebar */
.sidebar[b-yiqzpm89q4] {
    flex: 0 0 250px; /* narrower sidebar */
    background: var(--fm-sidebar-bg);
    color: #cfe2f3;
    display: flex;
    flex-direction: column;
    overflow-y: auto; /* ✅ independent scroll */
    overflow-x: hidden;
    height: 100%;
    transition: all 0.25s ease;
    box-shadow: 2px 0 6px rgba(0,0,0,0.2);
    z-index: 10;
}

    /* Scrollbar style */
    .sidebar[b-yiqzpm89q4]::-webkit-scrollbar {
        width: 8px;
    }

    .sidebar[b-yiqzpm89q4]::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,.15);
        border-radius: 6px;
    }

    .sidebar:hover[b-yiqzpm89q4]::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,.25);
    }

/* Content */
.content-container[b-yiqzpm89q4] {
    flex: 1 1 auto;
    overflow: hidden;
    transition: margin-left .25s ease;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.content-wrapper[b-yiqzpm89q4] {
    flex: 1;
    overflow-y: auto; /* ✅ scroll only inside content */
    padding: 1rem 1.25rem;
    background: var(--fm-body);
}

/* Sidebar collapsed state */
.sidebar-collapsed[b-yiqzpm89q4] {
    flex-basis: 72px;
}

    .sidebar-collapsed .text-label[b-yiqzpm89q4] {
        display: none;
    }

/* Desktop: sidebar pushes content */
@media (min-width: 993px) {
    .app-main.sidebar-open .content-container[b-yiqzpm89q4] {
        margin-left: 200px; /* match sidebar width */
    }

    .app-main.sidebar-open.collapsed .content-container[b-yiqzpm89q4] {
        margin-left: 72px;
    }
}

/* Mobile behavior */
/* ----- TABLET MODE ----- */
/* Sidebar pushes content on tablets (577px–992px) */
@media (min-width: 577px) and (max-width: 992px) {
    .sidebar[b-yiqzpm89q4] {
        position: relative;
        top: 0;
        left: 0;
        width: 200px;
        height: calc(100vh - 56px);
        z-index: 1;
        transition: width 0.3s ease;
    }

    /* When sidebar is open (not collapsed), push content */
    .app-main.sidebar-open .content-container[b-yiqzpm89q4] {
        margin-left: 200px;
        transition: margin-left 0.3s ease;
    }

    /* When sidebar is hidden (collapsed), reset margin */
    .app-main.mobile .content-container[b-yiqzpm89q4] {
        margin-left: 0;
    }
}

/* ----- PHONE MODE ----- */
/* Sidebar overlays on small screens (≤ 576px) */
@media (max-width: 576px) {
    .sidebar[b-yiqzpm89q4] {
        position: fixed;
        top: 56px;
        left: -220px; /* hidden by default */
        width: 200px;
        bottom: 0;
        z-index: 1030;
        transition: left 0.3s ease;
    }

        .sidebar.show[b-yiqzpm89q4] {
            left: 0; /* slide in */
        }

    /* Do not push content on phone */
    .content-container[b-yiqzpm89q4] {
        margin-left: 0 !important;
    }

    /* Optional overlay for better UX */
    .mobile-overlay[b-yiqzpm89q4] {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.35);
        z-index: 1025;
    }
}


  

/* _content/FuelMasterERP/Shared/MainLayout.razor.rz.scp.css */
:root[b-np33683oqw] {
    --fm-topbar-bg: #228B22;
    --fm-topbar-text: #ffffff;
    --fm-accent: #1e88e5;
    --fm-accent-2: #0ea5e9;
    --fm-border: #e5e7eb;
    --fm-muted: #64748b;
    --fm-body: #f6f7fb;
    --fm-sidebar-bg: #10253a;
    --fm-sidebar-hover: #17344f;
    --fm-sidebar-active: #1f4e79;
}

    :root[data-theme="dark"][b-np33683oqw] 
    {
        --fm-topbar-bg: linear-gradient(90deg, #f9e79f 0%, #f4d03f 100%);
        --fm-topbar-text: #e7eef7;
        --fm-body: #121821;
        --fm-border: #1f2a37;
        --fm-muted: #99a7b5;
        --fm-sidebar-bg: #0b1928;
        --fm-sidebar-hover: #0f2337;
        --fm-sidebar-active: #12314e;
    }

/* Layout skeleton */
.layout-root[b-np33683oqw] {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--fm-body);
}

.topbar[b-np33683oqw] {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 .75rem 0 1rem;
  color: var(--fm-topbar-text);
  background: var(--fm-topbar-bg);
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.topbar .brand[b-np33683oqw] {
  font-weight: 700;
  letter-spacing: .3px;
  font-size: 1.05rem;
}

.nav-inline a[b-np33683oqw] {
  color: var(--fm-topbar-text);
  text-decoration: none;
  font-size: .9rem;
  padding: .35rem .5rem;
  border-radius: 6px;
  opacity: .95;
}

.nav-inline a:hover[b-np33683oqw] {
  background: rgba(255,255,255,.12);
  opacity: 1;
}

.user-pill[b-np33683oqw] {
  background: rgba(255,255,255,.16);
  padding: .2rem .5rem;
  border-radius: 999px;
  font-size: .8rem;
}

.badge-env[b-np33683oqw] {
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.25);
  padding: .15rem .5rem;
  border-radius: 999px;
  font-size: .68rem;
  letter-spacing: .3px;
}

.dark-toggle[b-np33683oqw] {
  background: transparent;
  border: 1px solid rgba(255,255,255,.35);
  color: var(--fm-topbar-text);
  padding: .3rem .55rem;
  border-radius: 6px;
  font-size: .78rem;
}
 
/* Sidebar-container removed; using app-main classes to control layout push */
/* === CLEAN RESPONSIVE LAYOUT FIX === */

/* Main layout area under topbar */
.app-main[b-np33683oqw] {
    display: flex;
    height: calc(100vh - 56px);
    overflow: hidden;
    background: var(--fm-body);
}

/* Sidebar */

.sidebar[b-np33683oqw] {
    flex: 0 0 200px;
    background-color: rgba(0, 51, 102, 0.98);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
    transition: all 0.25s ease;
    box-shadow: 2px 0 6px rgba(0,0,0,0.2);
    z-index: 10;
    /* added  for  resize*/
    resize: horizontal;
    overflow: auto;
    min-width: 180px;
    max-width: 500px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
    line-height: 1.5;
}

    
 
/* Navigation styles inside sidebar */
.menu-group[b-np33683oqw] { margin-bottom: .35rem; }

.group-title[b-np33683oqw] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .45rem .6rem;
  font-size: .85rem;
  color: #e3edf7;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  border-left: 3px solid rgba(255,255,255,.15);
  user-select: none;
  cursor: pointer;
}

.group-title:hover[b-np33683oqw] { background: var(--fm-sidebar-hover); }

.group-title .icon[b-np33683oqw] { width: 1.1rem; display: inline-block; text-align: center; opacity: .95; }
.group-title .text-label[b-np33683oqw] { font-weight: 600; letter-spacing: .2px; }
.group-title .exp-icon[b-np33683oqw] { opacity: .8; }

.nav-leaf[b-np33683oqw],
.submenu-toggle[b-np33683oqw] { 
  display: flex; align-items: center; justify-content: space-between; 
  gap: .5rem; padding: .4rem .6rem; color: #cfe2f3; text-decoration: none; 
  border-left: 3px solid transparent; transition: background .2s ease, border-color .2s ease;
}

.nav-leaf:hover[b-np33683oqw], .submenu-toggle:hover[b-np33683oqw] { background: var(--fm-sidebar-hover); color: #fff; }

.nav-leaf.active[b-np33683oqw] { background: var(--fm-sidebar-active); border-left-color: #4dabf7; color: #fff; }

.submenu-wrapper[b-np33683oqw] { margin-left: .25rem; }

.submenu[b-np33683oqw] { list-style: none; padding-left: 1.5rem; margin: .25rem 0 .4rem; }

.submenu li a[b-np33683oqw] { display: block; padding: .3rem .4rem; color: #d4e7fb; text-decoration: none; border-left: 2px solid transparent; }
.submenu li a:hover[b-np33683oqw] { background: rgba(255,255,255,.06); color: #fff; border-left-color: rgba(77,171,247,.55); }

.icon[b-np33683oqw] { width: 1.1rem; display: inline-block; text-align: center; }

    /* Scrollbar style */
    .sidebar[b-np33683oqw]::-webkit-scrollbar {
        width: 8px;
    }

    .sidebar[b-np33683oqw]::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,.15);
        border-radius: 6px;
    }

    .sidebar:hover[b-np33683oqw]::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,.25);
    }

/* Content */
.content-container[b-np33683oqw] {
    flex: 1 1 auto;
    overflow: hidden;
    transition: margin-left .25s ease;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.content-wrapper[b-np33683oqw] {
    flex: 1;
    overflow-y: auto; /* ✅ scroll only inside content */
    padding: 1rem 1.25rem;
    background: var(--fm-body);
}

/* Sidebar collapsed state */
.sidebar-collapsed[b-np33683oqw] {
    flex-basis: 72px;
}

    .sidebar-collapsed .text-label[b-np33683oqw] {
        display: none;
    }

/* Desktop: sidebar pushes content */
@media (min-width: 993px) {
    .app-main.sidebar-open .content-container[b-np33683oqw] {
        margin-left: 200px; /* match sidebar width */
    }

    .app-main.sidebar-open.collapsed .content-container[b-np33683oqw] {
        margin-left: 72px;
    }
}

/* Mobile behavior */
/* ----- TABLET MODE ----- */
/* Sidebar pushes content on tablets (577px–992px) */
@media (min-width: 577px) and (max-width: 992px) {
    .sidebar[b-np33683oqw] {
        position: relative;
        top: 0;
        left: 0;
        width: 200px;
        height: calc(100vh - 56px);
        z-index: 1;
        transition: width 0.3s ease;
    }

    /* When sidebar is open (not collapsed), push content */
    .app-main.sidebar-open .content-container[b-np33683oqw] {
        margin-left: 200px;
        transition: margin-left 0.3s ease;
    }

    /* When sidebar is hidden (collapsed), reset margin */
    .app-main.mobile .content-container[b-np33683oqw] {
        margin-left: 0;
    }
}

/* ----- PHONE MODE ----- */
/* Sidebar overlays on small screens (≤ 576px) */
@media (max-width: 576px) {
    .sidebar[b-np33683oqw] {
        position: fixed;
        top: 56px;
        left: -220px; /* hidden by default */
        width: 200px;
        bottom: 0;
        z-index: 1030;
        transition: left 0.3s ease;
    }

        .sidebar.show[b-np33683oqw] {
            left: 0; /* slide in */
        }

    /* Do not push content on phone */
    .content-container[b-np33683oqw] {
        margin-left: 0 !important;
    }

    /* Optional overlay for better UX */
    .mobile-overlay[b-np33683oqw] {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.35);
        z-index: 1025;
    }
}

/* _content/FuelMasterERP/Shared/MainLayout2.razor.rz.scp.css */
:root[b-wen548l27h] {
  --fm-topbar-bg: linear-gradient(90deg, #0b2f63 0%, #0d3f82 100%);
  --fm-topbar-text: #e7eef7;
  --fm-accent: #1e88e5;
  --fm-accent-2: #0ea5e9;
  --fm-border: #e5e7eb;
  --fm-muted: #64748b;
  --fm-body: #f6f7fb;
  --fm-sidebar-bg: #10253a;
  --fm-sidebar-hover: #17344f;
  --fm-sidebar-active: #1f4e79;
}

:root[data-theme="dark"][b-wen548l27h] {
  --fm-topbar-bg: linear-gradient(90deg, #0b1b2e 0%, #0d2b52 100%);
  --fm-topbar-text: #dfebf7;
  --fm-body: #121821;
  --fm-border: #1f2a37;
  --fm-muted: #99a7b5;
  --fm-sidebar-bg: #0b1928;
  --fm-sidebar-hover: #0f2337;
  --fm-sidebar-active: #12314e;
}

/* Layout skeleton */
.layout-root[b-wen548l27h] {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--fm-body);
}

.topbar[b-wen548l27h] {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 .75rem 0 1rem;
  color: var(--fm-topbar-text);
  background: var(--fm-topbar-bg);
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.topbar .brand[b-wen548l27h] {
  font-weight: 700;
  letter-spacing: .3px;
  font-size: 1.05rem;
}

.nav-inline a[b-wen548l27h] {
  color: var(--fm-topbar-text);
  text-decoration: none;
  font-size: .9rem;
  padding: .35rem .5rem;
  border-radius: 6px;
  opacity: .95;
}

.nav-inline a:hover[b-wen548l27h] {
  background: rgba(255,255,255,.12);
  opacity: 1;
}

.user-pill[b-wen548l27h] {
  background: rgba(255,255,255,.16);
  padding: .2rem .5rem;
  border-radius: 999px;
  font-size: .8rem;
}

.badge-env[b-wen548l27h] {
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.25);
  padding: .15rem .5rem;
  border-radius: 999px;
  font-size: .68rem;
  letter-spacing: .3px;
}

.dark-toggle[b-wen548l27h] {
  background: transparent;
  border: 1px solid rgba(255,255,255,.35);
  color: var(--fm-topbar-text);
  padding: .3rem .55rem;
  border-radius: 6px;
  font-size: .78rem;
}
 
/* Sidebar-container removed; using app-main classes to control layout push */
/* === CLEAN RESPONSIVE LAYOUT FIX === */

/* Main layout area under topbar */
.app-main[b-wen548l27h] {
    display: flex;
    height: calc(100vh - 56px);
    overflow: hidden;
    background: var(--fm-body);
}

/* Sidebar */
.sidebar[b-wen548l27h] {
    flex: 0 0 250px; /* narrower sidebar */
    background: var(--fm-sidebar-bg);
    color: #cfe2f3;
    display: flex;
    flex-direction: column;
    overflow-y: auto; /* ✅ independent scroll */
    overflow-x: hidden;
    height: 100%;
    transition: all 0.25s ease;
    box-shadow: 2px 0 6px rgba(0,0,0,0.2);
    z-index: 10;
}

    /* Scrollbar style */
    .sidebar[b-wen548l27h]::-webkit-scrollbar {
        width: 8px;
    }

    .sidebar[b-wen548l27h]::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,.15);
        border-radius: 6px;
    }

    .sidebar:hover[b-wen548l27h]::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,.25);
    }

/* Content */
.content-container[b-wen548l27h] {
    flex: 1 1 auto;
    overflow: hidden;
    transition: margin-left .25s ease;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.content-wrapper[b-wen548l27h] {
    flex: 1;
    overflow-y: auto; /* ✅ scroll only inside content */
    padding: 1rem 1.25rem;
    background: var(--fm-body);
}

/* Sidebar collapsed state */
.sidebar-collapsed[b-wen548l27h] {
    flex-basis: 72px;
}

    .sidebar-collapsed .text-label[b-wen548l27h] {
        display: none;
    }

/* Desktop: sidebar pushes content */
@media (min-width: 993px) {
    .app-main.sidebar-open .content-container[b-wen548l27h] {
        margin-left: 250px; /* match sidebar width */
    }

    .app-main.sidebar-open.collapsed .content-container[b-wen548l27h] {
        margin-left: 72px;
    }
}

/* Mobile behavior */
/* ----- TABLET MODE ----- */
/* Sidebar pushes content on tablets (577px–992px) */
@media (min-width: 577px) and (max-width: 992px) {
    .sidebar[b-wen548l27h] {
        position: relative;
        top: 0;
        left: 0;
        width: 200px;
        height: calc(100vh - 56px);
        z-index: 1;
        transition: width 0.3s ease;
    }

    /* When sidebar is open (not collapsed), push content */
    .app-main.sidebar-open .content-container[b-wen548l27h] {
        margin-left: 200px;
        transition: margin-left 0.3s ease;
    }

    /* When sidebar is hidden (collapsed), reset margin */
    .app-main.mobile .content-container[b-wen548l27h] {
        margin-left: 0;
    }
}

/* ----- PHONE MODE ----- */
/* Sidebar overlays on small screens (≤ 576px) */
@media (max-width: 576px) {
    .sidebar[b-wen548l27h] {
        position: fixed;
        top: 56px;
        left: -220px; /* hidden by default */
        width: 200px;
        bottom: 0;
        z-index: 1030;
        transition: left 0.3s ease;
    }

        .sidebar.show[b-wen548l27h] {
            left: 0; /* slide in */
        }

    /* Do not push content on phone */
    .content-container[b-wen548l27h] {
        margin-left: 0 !important;
    }

    /* Optional overlay for better UX */
    .mobile-overlay[b-wen548l27h] {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.35);
        z-index: 1025;
    }
}


  

/* _content/FuelMasterERP/Shared/NavMenu.razor.rz.scp.css */
:root[data-theme="dark"][b-k1cjg9g4t1] {
    --fm-topbar-bg: linear-gradient(90deg, #0b1b2e 0%, #0d2b52 100%);
    --fm-topbar-text: #dfebf7;
    --fm-body: #121821;
    --fm-border: #1f2a37;
    --fm-muted: #99a7b5;
    --fm-sidebar-bg: #0b1928;
    --fm-sidebar-hover: #0f2337;
    --fm-sidebar-active: #12314e;
}

.page[b-k1cjg9g4t1] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-k1cjg9g4t1] {
    flex: 1;
}

.sidebar[b-k1cjg9g4t1] {
    width: 250px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: var(--fm-sidebar-bg);
    color: #ffffff; /* Changed to white for better readability */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: 1000;
    padding: 1rem;
    transition: all 0.3s;
    border-right: 1px solid rgba(255, 255, 255, 0.1); /* Softer border */
    /* Make sidebar resizable */
    resize: horizontal;
    overflow: auto;
    min-width: 180px;
    max-width: 500px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; /* Professional font stack */
    font-weight: 400; /* Normal weight for better readability */
    line-height: 1.5; /* Improved line spacing */
}


.navbar-toggler[b-k1cjg9g4t1] {
    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.2); /* Slightly more visible border */
    background-color: rgba(0, 51, 102, 0.95);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 1.75rem;
    border-radius: 4px;
}

    .navbar-toggler:checked[b-k1cjg9g4t1] {
        background-color: rgba(255, 255, 255, 0.2); /* Better contrast when checked */
    }

.top-row[b-k1cjg9g4t1] {
    min-height: 3.5rem;
    background-color: rgba(0, 30, 60, 0.95); /* Darker background for better contrast */
    display: flex;
    align-items: center;
    padding: 0 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Subtle separation */
}

.navbar-brand[b-k1cjg9g4t1] {
    font-size: 1.2rem; /* Slightly larger */
    color: white;
    margin-right: auto;
    font-weight: 600; /* Bolder for emphasis */
    letter-spacing: -0.01em; /* Tighter letter spacing */
}

.bi[b-k1cjg9g4t1] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

/* Navigation items */
.nav-item[b-k1cjg9g4t1] {
    font-size: 1rem; /* Slightly larger font */
    padding-bottom: 0.5rem;
    font-weight: 500; /* Medium weight for better readability */
}

    .nav-item:first-of-type[b-k1cjg9g4t1] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-k1cjg9g4t1] {
        padding-bottom: 1rem;
    }

    .nav-item[b-k1cjg9g4t1]  .nav-link {
        color: #ffffff; /* White text for better contrast */
        background: rgba(255, 255, 255, 0.08); /* Subtle background */
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 6px; /* Slightly more rounded */
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
        width: 100%;
        padding: 0 1rem;
        transition: all 0.2s ease-in-out; /* Smooth transition */
        text-shadow: none;
        filter: none;
        font-weight: 500; /* Medium weight */
        letter-spacing: 0.01em; /* Slightly tighter */
    }

    .nav-item[b-k1cjg9g4t1]  a.active {
        background-color: rgba(255, 255, 255, 0.2); /* More visible active state */
        color: #ffffff;
        border-color: rgba(255, 255, 255, 0.3);
        font-weight: 600; /* Bolder for active state */
    }

    .nav-item[b-k1cjg9g4t1]  .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.15); /* Better hover contrast */
        color: #ffffff;
        border-color: rgba(255, 255, 255, 0.25);
        transform: translateY(-1px); /* Subtle lift effect */
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    }

.nav-scrollable[b-k1cjg9g4t1] {
    display: none;
    padding-top: 1rem;
}

.navbar-toggler:checked ~ .nav-scrollable[b-k1cjg9g4t1] {
    display: block;
}

/* Icons */
.bi-house-door-fill-nav-menu[b-k1cjg9g4t1] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-k1cjg9g4t1] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-k1cjg9g4t1] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

@media (min-width: 641px) {
    .page[b-k1cjg9g4t1] {
        flex-direction: row;
    }

    .sidebar[b-k1cjg9g4t1] {
        position: sticky;
        top: 0;
    }

    .navbar-toggler[b-k1cjg9g4t1] {
        display: none;
    }

    .nav-scrollable[b-k1cjg9g4t1] {
        display: block;
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }

    .top-row[b-k1cjg9g4t1] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row[b-k1cjg9g4t1], article[b-k1cjg9g4t1] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

@media (max-width: 640.98px) {
    .sidebar[b-k1cjg9g4t1] {
        width: 100%;
        height: auto;
        position: relative;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .top-row:not(.auth)[b-k1cjg9g4t1] {
        display: none;
    }

    .top-row.auth[b-k1cjg9g4t1] {
        justify-content: space-between;
    }

    .top-row a[b-k1cjg9g4t1], .top-row .btn-link[b-k1cjg9g4t1] {
        margin-left: 0;
    }
}

/* --- Enhanced NavMenu styles: professional, clear, readable --- */
:root[b-k1cjg9g4t1] {
    --nm-text: #ffffff; /* White text for better contrast */
    --nm-text-dim: rgba(255, 255, 255, 0.8); /* Dimmed white */
    --nm-item-bg: rgba(255, 255, 255, 0.08); /* Subtle background */
    --nm-hover: rgba(255, 255, 255, 0.15); /* Light hover */
    --nm-active: rgba(255, 255, 255, 0.2); /* Active state */
    --nm-border: rgba(255, 255, 255, 0.15); /* Border color */
    --nm-accent: #4dabf7;
}

/* Layout inside the existing sidebar */
.sidebar-content[b-k1cjg9g4t1] {
    padding: .5rem .5rem 1rem;
}

/* Group title small label */
.sidebar-title[b-k1cjg9g4t1] {
    font-size: .75rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--nm-text-dim);
    opacity: .95;
    padding: .5rem .5rem .3rem;
    font-weight: 600; /* Bolder for hierarchy */
    margin-top: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Subtle separation */
}

/* Collapsible header button */
.menu-toggle[b-k1cjg9g4t1] {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .6rem .75rem;
    background: var(--nm-item-bg);
    color: var(--nm-text);
    border: 1px solid var(--nm-border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.18s ease;
    font-weight: 500; /* Medium weight */
    font-size: 0.95rem;
}

    .menu-toggle:hover[b-k1cjg9g4t1] {
        background: var(--nm-hover);
        border-color: var(--nm-border);
    }

    .menu-toggle:active[b-k1cjg9g4t1] {
        transform: translateY(1px);
    }

    .menu-toggle[b-k1cjg9g4t1]::after {
        content: "›";
        color: var(--nm-text-dim);
        font-size: 1.1rem;
    }
    /* When submenu exists after the toggle, show expanded chevron (modern :has support) */
    .menu-toggle:has(+ ul)[b-k1cjg9g4t1]::after {
        content: "⌄";
    }

/* Submenu list */
.submenu[b-k1cjg9g4t1] {
    list-style: none;
    margin: .4rem 0 .8rem;
    padding: .4rem;
    border-left: 2px solid var(--nm-border);
    border-radius: .25rem;
    animation: nm-fade-in-b-k1cjg9g4t1 .18s ease-out;
}

    .submenu li[b-k1cjg9g4t1] {
        margin: .15rem 0;
    }

    /* Links (Blazor NavLink renders an <a>) */
    .submenu[b-k1cjg9g4t1]  a {
        display: flex;
        align-items: center;
        gap: .6rem;
        padding: .5rem .6rem;
        color: var(--nm-text);
        text-decoration: none;
        border-radius: 6px;
        background: var(--nm-item-bg);
        border: 1px solid var(--nm-border);
        transition: all 0.18s ease;
        font-weight: 500; /* Medium weight for better readability */
        font-size: 0.95rem;
    }

        .submenu[b-k1cjg9g4t1]  a:hover {
            background: var(--nm-hover);
            border-color: rgba(255,255,255,0.25);
            color: var(--nm-text);
            transform: translateX(2px); /* Subtle movement */
        }

        .submenu[b-k1cjg9g4t1]  a:active {
            transform: translateY(1px);
        }

        .submenu[b-k1cjg9g4t1]  a.active {
            background: var(--nm-active);
            border-color: rgba(255,255,255,0.3);
            color: var(--nm-text);
            box-shadow: none;
            font-weight: 600; /* Bolder for active state */
        }

        /* Bullet/icon before text */
        .submenu[b-k1cjg9g4t1]  a::before {
            content: "•";
            width: 1.15rem;
            height: 1.15rem;
            display: inline-grid;
            place-items: center;
            font-size: .9rem;
            color: var(--nm-accent);
            border-radius: 50%;
            background: radial-gradient(ellipse at center, rgba(77,171,247,.35) 0%, rgba(77,171,247,.1) 60%, transparent 61%);
        }

    /* Icon + text alignment for Font Awesome/Bootstrap icons */
    .submenu[b-k1cjg9g4t1]  .nav-link i {
        width: 1.25rem;
        text-align: center;
        opacity: .95;
    }

@keyframes nm-fade-in-b-k1cjg9g4t1 {
    from {
        opacity: 0;
        transform: translateY(-2px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
