:root {
  --topbar-bg: rgba(255, 255, 255, 0.85);
  --topbar-border: rgba(226, 232, 240, 0.9);
  --topbar-text: var(--text, #0f172a);
  --topbar-muted: var(--muted, #64748b);
  --topbar-blue: var(--blue, var(--primary, #2563eb));
  --topbar-blue-soft: var(--blue-soft, var(--primary-weak, #e8f0ff));
}

* {
  box-sizing: border-box;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--topbar-border);
}

.topbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--topbar-blue);
  font-weight: 900;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.topbar-brand-text {
  letter-spacing: 0.3px;
}

.topbar-brand .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--topbar-blue);
  box-shadow: 0 0 0 6px var(--topbar-blue-soft);
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: auto;
  scrollbar-width: none; /* firefox */
}

.topbar-nav::-webkit-scrollbar {
  display: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  color: var(--topbar-text);
  white-space: nowrap;
}

.nav-link:hover {
  background: rgba(15, 23, 42, 0.05);
}

.nav-link.active,
.nav-link[aria-current="page"] {
  background: var(--topbar-blue-soft);
  color: var(--topbar-blue);
  border-color: rgba(37, 99, 235, 0.15);
}

.nav-link.danger {
  color: #ef4444;
}

.nav-link.danger:hover {
  background: rgba(239, 68, 68, 0.08);
}

.nav-sep {
  width: 1px;
  height: 18px;
  background: rgba(148, 163, 184, 0.5);
  margin: 0 4px;
  flex: 0 0 auto;
}

.page {
  /* 각 페이지 CSS가 body/컨테이너를 이미 잡는 경우를 고려해서 최소만 둔다 */
}

@media (max-width: 720px) {
  .topbar-inner {
    padding: 10px 12px;
  }
  .nav-link {
    font-size: 12px;
    height: 32px;
    padding: 0 10px;
  }
}

