.sidebar {
  width: 240px;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-logo {
  padding: 0 1.5rem 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}

.sidebar-logo h1 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.sidebar-logo h1 span {
  color: var(--accent);
}

.sidebar-logo p {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 2px;
}

.nav-section {
  padding: 0.5rem 1rem 0.25rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.5rem;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.15s;
  border-left: 3px solid transparent;
  font-size: 0.85rem;
}

.nav-item:hover {
  color: var(--text);
  background: rgba(124, 106, 252, 0.10);
}

.nav-item.active {
  color: #fff;
  background: rgba(124, 106, 252, 0.15);
  border-left-color: var(--accent);
}

.nav-icon {
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.badge {
  margin-left: auto;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  padding: 1px 6px;
  border-radius: 10px;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.topbar {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--sidebar);
}

.topbar-title {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.topbar-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.content {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  padding-bottom: calc(1.5rem + 40px);
}

.section {
  display: none;
}

.section.active {
  display: block;
}

.section-title {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
}

.sidebar-bottom {
  margin-top: auto;
  padding: 0.5rem 1rem;
  border-top: 1px solid var(--border);
}

.btn-logout {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.5rem;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.15s;
  border: none;
  background: none;
  font-size: 0.85rem;
  width: 100%;
  text-align: left;
}

.btn-logout:hover {
  color: var(--red);
}
