/* ── Sidebar layout ─────────────────────────────────────────────────────── */
html, body { height: 100%; margin: 0; }
body { display: flex; flex-direction: column; background: #f4f4f5; }

/* Top bar */
.topbar {
  background: var(--black, #141414);
  border-bottom: 3px solid var(--yellow, #FFC121);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  height: 56px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar-brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
}
.topbar-brand img {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid var(--yellow, #FFC121);
  object-fit: cover;
}
.topbar-brand span {
  font-weight: 800;
  font-size: .95rem;
  color: #fff;
  letter-spacing: -.01em;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.topbar-user { font-size: .85rem; color: #ccc; }
.topbar-user strong { color: var(--yellow, #FFC121); }
.hamburger-dash {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: .3rem;
  background: none;
  border: none;
}
.hamburger-dash span {
  display: block;
  width: 22px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: .2s;
}

/* App shell */
.app-shell {
  display: flex;
  flex: 1;
  overflow: hidden;
  min-height: calc(100vh - 56px);
}

/* Sidebar */
.sidebar {
  width: 230px;
  background: var(--black, #141414);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transition: transform .25s;
}
.sidebar-user {
  padding: 1.25rem 1rem 1rem;
  border-bottom: 1px solid rgba(255,193,33,.15);
  display: flex;
  align-items: center;
  gap: .75rem;
}
.sidebar-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--yellow, #FFC121);
  color: var(--black, #141414);
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sidebar-user-name { font-weight: 700; color: #fff; font-size: .88rem; line-height: 1.2; }
.sidebar-user-role { font-size: .72rem; color: #aaa; }

.sidebar-section { padding: 1rem 0 .25rem; }
.sidebar-section-label {
  font-size: .67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #555;
  padding: 0 1rem .4rem;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .55rem 1rem;
  font-size: .87rem;
  font-weight: 500;
  color: #bbb;
  text-decoration: none;
  transition: background .15s, color .15s;
  border-left: 3px solid transparent;
}
.sidebar-link:hover { background: rgba(255,193,33,.08); color: #fff; }
.sidebar-link.active {
  background: rgba(255,193,33,.12);
  color: var(--yellow, #FFC121);
  border-left-color: var(--yellow, #FFC121);
  font-weight: 700;
}
.sidebar-link .sl-icon {
  font-size: 1rem;
  width: 1.25rem;
  text-align: center;
  flex-shrink: 0;
}
.sidebar-footer {
  margin-top: auto;
  padding: 1rem;
  border-top: 1px solid rgba(255,193,33,.1);
}

/* Main content */
.main-content {
  flex: 1;
  overflow-y: auto;
}

/* Override page-header to not use fixed height inside main-content */
.main-content .page-header { margin-top: 0; }

/* Override container padding for member area */
.main-content > .section:first-of-type { padding-top: 2rem; }

/* Responsive */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: 0; top: 56px; bottom: 0;
    transform: translateX(-100%);
    z-index: 200;
    width: 220px;
  }
  .sidebar.open { transform: translateX(0); box-shadow: 4px 0 20px rgba(0,0,0,.4); }
  .hamburger-dash { display: flex; }
}
