.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  height: 48px;
  flex-shrink: 0;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}

/* Breadcrumb area - left side */
.breadcrumb {
  flex-shrink: 0;
}

/* Filters group: time range + status pills */
.filters {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* Search trigger */
.search {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-raised);
  color: var(--text-muted);
  font-size: 12px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: border-color 0.15s;
  width: 200px;
  flex-shrink: 1;
  min-width: 120px;
  text-align: left;
}

.search:hover {
  border-color: var(--text-faint);
}

.searchIcon {
  display: flex;
  align-items: center;
  color: var(--text-faint);
  flex-shrink: 0;
}

.searchPlaceholder {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kbd {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 0 4px;
  border-radius: 3px;
  color: var(--text-faint);
  flex-shrink: 0;
  line-height: 1.6;
}

/* Right section */
.right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.liveToggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-raised);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  height: 30px;
}

.liveToggle:hover {
  border-color: var(--text-faint);
}

.liveToggleActive {
  color: var(--success);
  border-color: var(--success-border);
  background: var(--success-bg);
}

.liveToggleActive:hover {
  border-color: var(--success);
}

.liveDot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}

.liveToggleActive .liveDot {
  background: var(--success);
  animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.themeToggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, border-color 0.15s;
  line-height: 1;
}

.themeToggle:hover {
  color: var(--amber);
  border-color: var(--amber);
}

.env {
  display: flex;
  align-items: center;
  height: 30px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-raised);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
}

.userName {
  color: var(--text-secondary);
  font-size: 12px;
}
