/* MB_SBV2_LIVE_V1 - MoahBoost brand skin for the existing app sidebar.
   CSS only. No markup, no routing, no re-render. Every rule is scoped to
   html.sbv2, which is only set when the page is opened with ?sbv2=1 or when
   localStorage mb.sbv2live === '1'. Remove the two lines in index.html to undo. */

html.sbv2 aside.fixed{
  background:
    radial-gradient(620px 230px at 16% -8%, rgba(255,47,208,.11), transparent 72%),
    radial-gradient(520px 280px at 118% 6%, rgba(124,58,237,.16), transparent 72%),
    linear-gradient(180deg,#0d1626,#0a1120) !important;
  border-right:1px solid #1d2a3f !important;
  scrollbar-width:thin;
}
html.sbv2 aside.fixed::-webkit-scrollbar{width:8px}
html.sbv2 aside.fixed::-webkit-scrollbar-thumb{background:#22304a;border-radius:4px}

/* brand block */
html.sbv2 aside.fixed > div:first-child{background:transparent !important;border-color:#1d2a3f !important}

/* every nav row */
html.sbv2 aside.fixed a{
  border-radius:10px !important;
  color:#a9b7cc !important;
  font-weight:600 !important;
  transition:background .14s ease, color .14s ease !important;
  position:relative;
}
html.sbv2 aside.fixed a:hover,
html.sbv2 aside.fixed a[class*="hover:bg-accent"]:hover{
  background:#16233a !important;
  color:#ffffff !important;
}

/* active row: the app marks it with a bg-primary / text-primary pair */
html.sbv2 aside.fixed a[class*="bg-primary"]{
  background:linear-gradient(90deg, rgba(255,47,208,.18), rgba(124,58,237,.12) 55%, rgba(124,58,237,.03)) !important;
  color:#ffffff !important;
  font-weight:700 !important;
  box-shadow:inset 0 0 0 1px rgba(255,47,208,.18) !important;
}
html.sbv2 aside.fixed a[class*="bg-primary"]::before{
  content:"";
  position:absolute; left:-6px; top:7px; bottom:7px; width:3px;
  border-radius:0 3px 3px 0;
  background:linear-gradient(180deg,#ff2fd0,#7c3aed);
  box-shadow:0 0 12px rgba(255,47,208,.75);
}
html.sbv2 aside.fixed a[class*="bg-primary"] svg{color:#ff9ae9 !important}

/* icons and muted labels */
html.sbv2 aside.fixed a svg{opacity:.92}
html.sbv2 aside.fixed a[class*="text-muted-foreground"],
html.sbv2 aside.fixed span[class*="text-muted-foreground"]{color:#6f7f99 !important}

/* brand accent for the primary button and pills inside the rail */
html.sbv2 aside.fixed button[class*="bg-primary"],
html.sbv2 aside.fixed a[class*="bg-primary"][class*="hover:"]{
  background-image:linear-gradient(135deg,#ff2fd0,#7c3aed 62%,#4f46e5) !important;
  background-color:#7c3aed !important;
  color:#fff !important;
  border:0 !important;
  box-shadow:0 8px 20px rgba(255,47,208,.28) !important;
}
html.sbv2 aside.fixed [class*="bg-primary/1"],
html.sbv2 aside.fixed [class*="bg-primary/2"]{
  background-color:rgba(255,47,208,.16) !important;
  color:#ffb3ef !important;
}

/* separators */
html.sbv2 aside.fixed [class*="border-b"],
html.sbv2 aside.fixed [class*="border-t"],
html.sbv2 aside.fixed [class*="border-r"]{border-color:#1d2a3f !important}

/* the mobile drawer keeps its own behaviour, only the surface is skinned */
@media (max-width: 767px){
  html.sbv2 aside.fixed{box-shadow:24px 0 60px rgba(0,0,0,.55)}
}
