/* ============================================================================
   sidebarViolet.css  -  the sidebar's colours, retinted from navy to a quiet dark violet.

   COLOURS ONLY. This file changes no size, spacing, position, display or behaviour - the
   rail, the panel, the brand bar and every script (sidebarRail.js, sidebarFavourites.js,
   sidebarCollapse.js) are exactly as sidebarRail.css left them. It is loaded straight after
   sidebarRail.css and uses the SAME selectors, so it wins on order alone with no !important.

   TO REVERT: delete the <link> to this file in public/index.html (and this file). The navy
   comes straight back; nothing else was edited.

   The palette is the approved "Sidebar - Prototype v2" (subtle dark violet):
     background   #150f26 -> #100b1e -> #0b0716        edge        rgba(167,139,250,.11)
     selected     rgba(167,139,250,.17) + bar #a78bfa  text        #cdc6e4
     muted/labels #9a8fc2                              avatar      #5b3fa8
   The gold favourite star, the white module chips and every module icon are untouched.
   Gated like sidebarRail.css: html[data-nav-rail="on"] and min-width:1181px, so the mobile
   drawer is unchanged.
   ========================================================================== */

@media (min-width:1181px){

  html[data-nav-rail="on"] #appSidebar{
    background:linear-gradient(180deg,#150f26,#100b1e 55%,#0b0716);
    border-right:1px solid rgba(167,139,250,.11);
  }
  html[data-nav-rail="on"] .rk-rail{ background:rgba(0,0,0,.20); }
  html[data-nav-rail="on"] .rk-panel{ background:rgba(0,0,0,.11); }

  /* rail buttons */
  html[data-nav-rail="on"] .rk-rail button.on{ background:rgba(167,139,250,.17); }
  html[data-nav-rail="on"] .rk-rail button:focus-visible{ outline-color:#a78bfa; }
  html[data-nav-rail="on"] .rk-rail button.sel::before{ background:#a78bfa; }
  html[data-nav-rail="on"] .rk-rail .rk-util{ color:#9a8fc2; }
  html[data-nav-rail="on"] .rk-rail .rk-util:hover{ color:#f1ecff; }
  html[data-nav-rail="on"] .rk-rail .rk-me{ background:#5b3fa8; }

  /* module rows */
  html[data-nav-rail="on"] .rk-panel .nav button,
  html[data-nav-rail="on"] .rk-panel .nav a{ color:#cdc6e4; }
  html[data-nav-rail="on"] .rk-panel .nav .active{ background:rgba(167,139,250,.17); color:#fff; }

  /* sub-group headings */
  html[data-nav-rail="on"] .rk-panel summary.nav-subgroup-title{ color:#9a8fc2; }
  html[data-nav-rail="on"] .rk-panel summary.nav-subgroup-title:hover{ color:#e6e0fb; }

  /* panel scrollbar */
  html[data-nav-rail="on"] .rk-panel .nav{ scrollbar-color:rgba(190,170,255,.18) transparent; }
  html[data-nav-rail="on"] .rk-panel .nav::-webkit-scrollbar-thumb{ background:rgba(190,170,255,.18); background-clip:content-box; }
  html[data-nav-rail="on"] .rk-panel .nav::-webkit-scrollbar-thumb:hover{ background:rgba(167,139,250,.45); background-clip:content-box; }

  /* "Sections always open" switch */
  html[data-nav-rail="on"] .rk-swlbl{ color:#9a8fc2; }
  html[data-nav-rail="on"] .rk-swrow:hover .rk-swlbl{ color:#e6e0fb; }
  html[data-nav-rail="on"] .rk-swrow.on .rk-sw{ background:rgba(167,139,250,.40); }
  html[data-nav-rail="on"] .rk-swrow.on .rk-sw::after{ background:#f1ecff; }

  /* the legal links under the panel */
  html[data-nav-rail="on"] .rk-panel .sidebar-legal,
  html[data-nav-rail="on"] .rk-panel .sidebar-legal a{ color:#9a8fc2; }
  html[data-nav-rail="on"] .rk-panel .sidebar-legal a:hover{ color:#fff; }
}
