/* ------------------------- SIDEBAR ------------------------- */

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  padding: 22px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(8, 13, 24, 0.92), rgba(10, 16, 30, 0.88));
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  overflow-x: clip;
}

.brand {
  display: flex;
  align-items: center;
  padding: 0 4px 6px;
}

.brand-logo-image {
  display: block;
  width: min(170px, 100%);
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.24));
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.license-card {
  margin-top: auto;
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-width: 0;
}

.license-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.84rem;
  line-height: 1.35;
}

.nav-btn {
  text-align: left;
  border-radius: 14px;
  padding: 13px 14px;
  background: transparent;
  color: var(--muted);
  transition: var(--transition);
  border: 1px solid transparent;
  font-weight: 700;
  min-width: 0;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.nav-btn.active {
  background: linear-gradient(180deg, rgba(77, 163, 255, 0.16), rgba(77, 163, 255, 0.07));
  color: var(--text);
  border-color: rgba(77, 163, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* ------------------------- MAIN ------------------------- */

.main-content {
  padding: calc(28px + var(--safe-top)) calc(28px + var(--safe-right)) calc(36px + var(--safe-bottom)) calc(28px + var(--safe-left));
  min-width: 0;
  overflow-x: clip;
}

/* ------------------------- TOPBAR ------------------------- */

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.topbar h2 {
  margin: 0;
  font-size: 1.85rem;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.topbar p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.topbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ------------------------- VIEWS ------------------------- */

.view {
  display: none;
}

.view.active {
  display: block;
}


.topbar-hidden {
  display: none;
}
