.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 36px;
  background: var(--bs-card-bg);
  border-bottom: 1px solid var(--bs-card-border);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  z-index: 1002;
  padding: 0 12px;
}
.topbar__left {
  display: flex;
  align-items: center;
  justify-self: start;
}
.topbar__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bs-text);
}
.topbar__title:empty {
  visibility: hidden;
}
.topbar__right {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}
.topbar__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--bs-text-muted);
  text-decoration: none;
  font-size: 0.75rem;
  padding: 3px 8px;
  border: 1px solid var(--bs-card-border);
  border-radius: 4px;
  transition: all 0.12s;
  white-space: nowrap;
}
.topbar__action svg {
  vertical-align: middle;
}
.topbar__action:hover {
  color: var(--bs-text);
  border-color: var(--bs-text-muted);
  text-decoration: none;
}
.topbar__action--primary {
  color: #fff;
  background: var(--bs-primary);
  border-color: var(--bs-primary);
}
.topbar__action--primary:hover {
  background: var(--bs-primary-hover);
  border-color: var(--bs-primary-hover);
}

.burger {
  background: none;
  border: none;
  cursor: pointer;
  width: 24px;
  height: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
}
.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--bs-text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.burger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.sidebar {
  position: fixed;
  top: 0;
  left: -260px;
  width: 260px;
  height: 100%;
  background: var(--bs-card-bg);
  box-shadow: 2px 0 8px rgba(0,0,0,0.5);
  transition: left 0.3s ease;
  z-index: 1001;
  padding: 50px 20px 20px;
  border-right: 1px solid var(--bs-card-border);
}
.sidebar.active {
  left: 0;
}
.sidebar nav a {
  display: block;
  padding: 12px 0;
  color: var(--bs-text);
  text-decoration: none;
  font-size: 1rem;
  border-bottom: 1px solid var(--bs-card-border);
}
.sidebar nav a:hover {
  color: var(--bs-primary);
}
.sidebar nav a.active {
  color: var(--bs-primary);
  font-weight: bold;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 1000;
}
.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

body {
  padding-top: 36px;
}
