/* ===== TOP BAR (freepasserp 동일 규격) ===== */

.top-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 var(--space-3);
  border-bottom: none;
  margin-bottom: 0;
}

/* ── 가운데: 경로 ── */
.top-bar-path {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-strong);
  color: var(--new-text-main, var(--text-main));
  letter-spacing: -0.03em;
}

/* ── 중: 검색 ── */
.top-bar-search {
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-bar-search-input {
  width: 240px;
  height: var(--height-sm);
  padding: 0 var(--space-3);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  background: var(--surface-base);
  outline: none;
  color: var(--text-main);
}

.top-bar-search-input:focus {
  border-color: var(--new-sidebar-accent, #333);
}

.top-bar-search-input::placeholder {
  color: var(--text-muted);
}

/* ── 우: 사용자 ── */
.top-bar-user {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-2);
}

.top-bar-user-name {
  font-size: var(--font-size-base);
  color: var(--new-text-sub, var(--text-subtle));
  white-space: nowrap;
  letter-spacing: -0.03em;
}

.top-bar-logout {
  height: var(--height-xs);
  padding: 0 var(--space-2);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-sm);
  background: transparent;
  font-size: var(--font-size-sub);
  color: var(--text-subtle);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.top-bar-logout:hover {
  background: var(--interactive-hover-bg);
  color: var(--text-main);
}
