:root{
  --app-header-height: 56px; /* adjust to your fixed navbar height */
  --sidebar-width: 280px;
  --z-sidebar: 1045;
  --z-backdrop: 1040;

  /* animation feel */
  --toggle-duration: 280ms;
  --toggle-ease: cubic-bezier(.2,.8,.2,1);
}

/* Shell */
.app-shell{
  display: block; /* ✅ no pushing layout */
  min-height: calc(100vh - var(--app-header-height));
}

/* Sidebar base */
.app-sidebar{
  width: var(--sidebar-width);
  background: #f8f9fa;
  border-right: 1px solid #dee2e6;

  overflow-y: auto;
  will-change: transform;
  transition: transform var(--toggle-duration) var(--toggle-ease);

  /* ✅ overlay drawer positioning (works for desktop + mobile) */
  position: fixed;
  top: var(--app-header-height);
  left: 0;
  height: calc(100vh - var(--app-header-height));
  z-index: var(--z-sidebar);
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);

  /* closed by default */
  transform: translateX(calc(-1 * var(--sidebar-width)));
}

/* open state */
body.sidebar-open .app-sidebar{
  transform: translateX(0);
}

/* Main */
.app-main{
  /* ✅ never shifts */
  /*margin-left: 0 !important;*/
  transition: none;
  min-width: 0;
}

/* Toolbar under header */
.app-toolbar{
  position: sticky;
  top: var(--app-header-height);
  z-index: 1000;
  background: #fff;
  padding: 10px 15px;
  border-bottom: 1px solid #dee2e6;
}

.content-area{ padding: 20px; }

/* Sidebar links */
.sidebar-link{
  display: block;
  padding: 10px 15px;
  color: #333;
  text-decoration: none;
  border-radius: .375rem;
  user-select: none;
}
.sidebar-link:hover{ background: rgba(0,0,0,.06); }

/* Indented submenu items */
.sidebar-sublink{
  font-size: 0.95rem;
  padding-left: 18px;
  opacity: 0.95;
}

/* Chevron */
.sidebar-chevron{
  opacity: .6;
  flex-shrink: 0;
  transition: transform .25s ease;
}
.sidebar-link[aria-expanded="true"] .sidebar-chevron{
  transform: rotate(180deg);
}

/* Backdrop */
.sidebar-backdrop{
  position: fixed;
  inset: var(--app-header-height) 0 0 0;
  background: rgba(0,0,0,.45);
  z-index: var(--z-backdrop);
  display: none;
}
body.sidebar-open .sidebar-backdrop{
  display: block;
}

/* (Optional) Prevent body scrolling when drawer is open */
body.sidebar-open{
  overflow: hidden;
}

/* Trial card styling */
.trial-card{
  background: radial-gradient(120% 120% at 0% 0%, #2b2f36 0%, #191c22 60%, #12141a 100%);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.trial-card .progress{
  background: rgba(255,255,255,.12);
  border-radius: 999px;
}
.trial-card .progress-bar{
  border-radius: 999px;
}
