:root {
  --bg: #0f172a;
  --text: #e5e7eb;
  --text-muted: #9ca3af;
  --accent: #22c55e;
}
html, body { height: 100%; }
body {
  margin: 0;
  background: #f9fafb;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: #111827;
}
.layout { display: grid; grid-template-columns: auto 1fr; height: 100vh; }
.sidebar { background: #eef2f7; overflow-x: hidden; width: 320px; transition: none; }
.content { position: relative; overflow: hidden; }
.topbar {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: white;
  border-bottom: 1px solid #e5e7eb;
}
.main { height: calc(100vh - 54px); overflow: auto; }
.pill { display: inline-block; padding: 6px 10px; border-radius: 999px; background: #f3f4f6; color: #374151; font-size: 12px; }

/* Vertical navbar base */
.navbar-vertical { background: var(--bg); color: var(--text); min-height: 100%; }
.navbar-vertical .navbar-brand { color: var(--text); padding: 12px 16px; }
.navbar-vertical .nav-link { color: var(--text); padding: 10px 12px; border-radius: 8px; display: flex; align-items: center; gap: 10px; }
.navbar-vertical .nav-link:hover { background: rgba(255,255,255,.08); }
.navbar-vertical .nav-link.active { background: rgba(34,197,94,.18); color: #e8ffe8; }
.navbar-vertical .nav .nav-link { color: var(--text-muted); padding-left: 24px; }
.navbar-vertical .nav-link .nav-link-icon { width: 20px; display: inline-flex; justify-content: center; }
.chevron { margin-left: auto; color: var(--text-muted); transition: none; }
.nav-link[aria-expanded="true"] .chevron { transform: rotate(90deg); }
.navbar-vertical-label-wrapper { color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .4px; padding: 8px 12px; }

/* Card-style vertical navbar */
.navbar-card { background: #fff; color: #111827; border: 1px solid #e5e7eb; border-radius: 16px; margin: 12px; box-shadow: 0 6px 20px rgba(0,0,0,0.06); height: calc(100vh - 24px); display: flex; flex-direction: column; }
.navbar-card .navbar-brand { color: #111827; font-weight: 700; letter-spacing: .2px; }
.navbar-card .nav-link { color: #374151; font-size: 14px; border-radius: 8px; padding: 8px 10px; }
.navbar-card .nav-link:hover { background: #f3f4f6; }
.navbar-card .nav-link.active { background: #eaf2ff; color: #0ea5e9; box-shadow: inset 0 0 0 1px #dbe7ff; }
.navbar-card .nav .nav-link { color: #6b7280; padding-left: 18px; border-radius: 6px; }
.navbar-card .nav-link:focus-visible { outline: 2px solid #93c5fd; outline-offset: 2px; }
.navbar-card .navbar-vertical-label-wrapper { color: #6b7280; font-weight: 600; }
.navbar-vertical .navbar-toggler { border: 0; }
#navbarVerticalCollapse { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
.navbar-vertical-content { flex: 1 1 auto; min-height: 0; padding: 12px 10px; overflow-y: auto; overflow-x: hidden; }
.sidebar-brand { position: sticky; top: 0; background: #fff; padding: 18px 16px 10px; border-bottom: 1px solid #eef2f7; display: flex; align-items: center; gap: 10px; z-index: 2; }
.sidebar-brand .brand-title { font-weight: 800; color: #0ea5e9; letter-spacing: .3px; }

/* Collapsed sidebar behavior */
html.navbar-vertical-collapsed .sidebar { width: 72px; }
html.navbar-vertical-collapsed-hover .sidebar { width: 320px; transition: none; }
html.navbar-vertical-collapsed .navbar-card .navbar-vertical-label-wrapper { display: none; }
html.navbar-vertical-collapsed .nav-link-text { display: none; }
html.navbar-vertical-collapsed .chevron { display: none; }
html.navbar-vertical-collapsed .navbar-card .nav .nav-link { justify-content: center; padding-left: 0; }
/* non-animated dropdowns */
.navbar-vertical .collapse { transition: none; }
.navbar-vertical .collapsing { height: auto !important; transition: none !important; }
