/* =============================================================
   Sidebar visual refresh — hover tint, active highlight, transitions
   Palette (unchanged): bg #2a3042 | text #a6b0cf | icon #6a7187 | sub #79829c
   Scope: default dark sidebar only, expanded and collapsed modes.
   Air Mode keeps its own look, defined separately in air-theme.css.
   Layout/spacing intentionally untouched — the menu keeps the base
   theme's original density.
   ============================================================= */

/* ---- Hover: soft tinted background instead of a flat color flip ---- */
body[data-sidebar="dark"] #sidebar-menu > ul > li > a:hover {
  background-color: rgba(255, 255, 255, 0.045);
}

body[data-sidebar="dark"] #sidebar-menu ul li ul.sub-menu li > a:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

/* ---- Active item: solid filled highlight (no gradient — a fade reads as a
   "cut off" edge instead of a clean highlight) ---- */
body[data-sidebar="dark"] #sidebar-menu > ul > li.mm-active > a,
body[data-sidebar="dark"] #sidebar-menu ul li ul.sub-menu li.mm-active > a {
  background-color: rgba(85, 110, 230, 0.22);
  border-radius: 8px;
  color: #fff !important;
}

body[data-sidebar="dark"] #sidebar-menu > ul > li.mm-active > a i {
  color: #8b9bff !important;
}

/* ---- Smooth 0.2s transitions (base theme uses a sluggish `all .4s`) ---- */
body[data-sidebar="dark"] #sidebar-menu > ul > li > a,
body[data-sidebar="dark"] #sidebar-menu ul li ul.sub-menu li > a {
  transition: background-color 0.2s ease, color 0.2s ease;
}

body[data-sidebar="dark"] #sidebar-menu ul li a i {
  transition: color 0.2s ease;
}

/* ---- Submenu indent guide: thin vertical line under the parent icon.
   Expanded mode only — the collapsed rail's flyout keeps its own look.
   2.4rem = base-theme link padding (1.5rem) + half the icon column
   (1.75rem / 2), centering the line under the parent item's icon. ---- */
body[data-sidebar="dark"]:not(.vertical-collpsed) #sidebar-menu ul li ul.sub-menu {
  position: relative;
}

body[data-sidebar="dark"]:not(.vertical-collpsed) #sidebar-menu ul li ul.sub-menu::before {
  content: "";
  position: absolute;
  left: 2.4rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
}
