/* ============================================================
   Healthy Balance Life — LEFT SIDEBAR LAYOUT
   Replaces sticky top navbar with a fixed left sidebar
   ============================================================ */

/* ── SIDEBAR SHELL ── */
#sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100vh;
  background: linear-gradient(180deg, var(--burgundy-d) 0%, #011f6b 100%);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.38s cubic-bezier(.4,0,.2,1), width 0.32s ease;
  box-shadow: 4px 0 28px rgba(1,31,107,.32);
}

/* decorative top glow */
#sidebar::before {
  content: '';
  position: absolute;
  top: -60px; left: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(0,180,216,.22) 0%, transparent 70%);
  pointer-events: none;
}

/* ── SIDEBAR BRAND ── */
.sb-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 26px 22px 22px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-decoration: none;
}

.sb-brand-ico {
  width: 38px; height: 38px; min-width: 38px;
  background: var(--burgundy-l);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: white;
}

.sb-brand-text {
  font-family: 'Playfair Display', serif;
  font-size: .88rem;
  font-weight: 700;
  color: white;
  line-height: 1.25;
}

.sb-brand-text small {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: .67rem;
  font-weight: 400;
  color: rgba(255,255,255,.45);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-top: 1px;
}

/* ── NAV LIST ── */
.sb-nav {
  flex: 1;
  padding: 18px 12px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.1) transparent;
}

.sb-nav::-webkit-scrollbar { width: 3px; }
.sb-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 2px; }

.sb-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sb-nav li { margin-bottom: 2px; }

.sb-link {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 14px;
  border-radius: 10px;
  color: rgba(255,255,255,.65);
  font-family: 'Outfit', sans-serif;
  font-size: .88rem;
  font-weight: 500;
  text-decoration: none;
  transition: all .25s ease;
  position: relative;
  white-space: nowrap;
  overflow: hidden;
}

.sb-link i {
  font-size: 1rem;
  min-width: 20px;
  text-align: center;
  color: rgba(255,255,255,.45);
  transition: color .25s;
}

.sb-link:hover {
  background: rgba(255,255,255,.08);
  color: white;
}

.sb-link:hover i { color: var(--gold-l); }

.sb-link.active {
  background: rgba(255,255,255,.13);
  color: white;
  font-weight: 600;
}

.sb-link.active i { color: var(--gold-l); }

.sb-link.active::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 3px;
  background: var(--gold-l);
  border-radius: 0 3px 3px 0;
}

/* section divider label */
.sb-divider {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(255,255,255,.22);
  padding: 18px 14px 6px;
}

/* ── SIDEBAR FOOTER ── */
.sb-footer {
  padding: 18px 20px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.sb-contact-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 10px 14px;
  text-decoration: none;
  transition: background .25s;
  margin-bottom: 14px;
}

.sb-contact-pill:hover { background: rgba(255,255,255,.14); }

.sb-contact-pill i { font-size: 1.1rem; color: var(--gold-l); }

.sb-contact-pill span {
  font-size: .78rem;
  color: rgba(255,255,255,.7);
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
}

.sb-copy {
  font-size: .63rem;
  color: rgba(255,255,255,.22);
  font-family: 'Outfit', sans-serif;
  text-align: center;
}

/* ── MOBILE TOGGLE BUTTON ── */
#sidebarToggle {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 1200;
  width: 42px; height: 42px;
  background: var(--burgundy);
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 1.2rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,77,182,.4);
  transition: background .2s;
}

#sidebarToggle:hover { background: var(--burgundy-l); }

/* sidebar backdrop (mobile) */
#sidebarBackdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 1090;
}

#sidebarBackdrop.show { display: block; }

/* ── MAIN CONTENT SHIFT ── */
#mainContent {
  margin-left: 260px;
  transition: margin-left .35s ease;
}

/* remove old navbar spacing */
body { overflow-x: hidden; }
section { scroll-margin-top: 32px !important; }

/* ── RESPONSIVE ── */
@media (max-width: 991px) {
  #sidebar {
    transform: translateX(-260px);
  }
  #sidebar.open {
    transform: translateX(0);
  }
  #sidebarToggle {
    display: flex;
  }
  #mainContent {
    margin-left: 0;
  }
}

/* Collapsed (icon-only) mode for very small screens — not needed but available */
/* On tablet: sidebar hides behind toggle button */
