 
  .sidebar {
    width: 250px;
      height: 100vh;
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    overflow-y: auto;
    background: linear-gradient(180deg, hsl(218, 100%, 57%), #005eff);
    color: #fff;
    padding: 10px 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
     z-index: 999999;
}

.logo{
  width:100px;
  display:block;
  margin:auto;
  animation: glowPulse 2.5s ease-in-out infinite;
}

@keyframes glowPulse{
  0%{
    filter: drop-shadow(0 0 0px rgba(90, 93, 247, 0.2));
  }
  50%{
    filter: drop-shadow(0 0 5px rgba(255,255,255,.6));
  }
  100%{
    filter: drop-shadow(0 0 0px rgba(255,255,255,.2));
  }
}

.sidebar {
  z-index: 9999 !important;
}

/* ===== SIDEBAR ===== */

.brand-text {
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
}
.user-box{
  margin: 10px 6px 16px;
  padding: 10px 10px 12px;
  border-radius: 14px;
  text-align: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-name{
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role{
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .5px;
  background: rgba(255,255,255,.18);
  color: #eaf6ff;
  line-height: 1;
}

.nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin-bottom: 10px;
}


/* اللينك الرئيسي لكل مجموعة أو عنصر */

.nav-item>a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    color: #d9f4ff;
    font-size: 15px;
    border-radius: 6px;
    text-decoration: none;
    /* يمنع أى خط تحت الكلام */
    border-bottom: none;
    /* تأكيد عدم وجود خط سفلي */
}

.nav-item.active>a,
.nav-item>a:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}


/* السهم الصغير */

.arrow {
    margin-right: auto;
    transition: 0.2s;
}

.nav-item.open .arrow {
    transform: rotate(180deg);
}


/* القائمة الفرعية */

.submenu {
    display: none;
    /* مخفية افتراضياً */
    padding-right: 16px;
    /* بدون border-right عشان نشيل الخط اللي مضايقك */
}

.nav-item.open .submenu {
    display: block;
    /* لما الـ JS يضيف .open تظهر القائمة */
}

.submenu a {
    display: block;
    padding: 8px 10px;
    font-size: 14px;
    color: #e2f4ff;
    border-radius: 4px;
    text-decoration: none;
}

.submenu a:hover {
    background: rgba(255, 255, 255, 0.12);
}


/* تصغير بسيط على الشاشات الأصغر */

@media (max-width: 1366px) {
    .sidebar {
        width: 220px;
    }
}

.badge:empty,
.badge:not(:has(*)):not(:has(text)) {
  display: none !important;
}
/* ============================= */
/* ERP ECHO – Sidebar Scrollbar */
/* ============================= */

/* Firefox */
.sidebar {
  scrollbar-width: thin;
  scrollbar-color: #04457d transparent;
}

/* Chrome / Edge / Safari */
.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background-color: #084b86;
  border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background-color: #004b88;
}
/* ============================= */
/* ✅ Active Page Highlight */
/* ============================= */

/* لو الصفحة لينك مباشر (مش جوه submenu) */
.nav-item > a.active{
  background: rgba(255,255,255,.22);
  color:#fff;
  font-weight:700;
}

/* لو الصفحة جوه submenu */
.submenu a.active{
  background: rgba(255,255,255,.22);
  color:#fff;
  font-weight:700;
}

/* (اختياري) علامة بسيطة جنب الصفحة النشطة */
.submenu a.active::before{
  content:"";
  display:inline-block;
  width:6px;
  height:6px;
  border-radius:50%;
  background:#fff;
  margin-left:8px;
}

 