/* Agent Manager layout */

.am-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.am-sidebar {
  width: 260px;
  min-width: 200px;
  border-right: 1px solid var(--border-weak-base, var(--vscode-panel-border, #333));
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  background: var(--surface-base, var(--vscode-sideBar-background, #181818));
  padding: 8px;
  gap: 8px;
}

.am-sidebar-header {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-weak, var(--vscode-descriptionForeground, #888));
  padding: 4px 8px 0;
}

.am-sessions-header {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-weak, var(--vscode-descriptionForeground, #888));
  padding: 4px 8px 0;
}

.am-list {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.am-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 4px;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  color: var(--text-base, var(--vscode-foreground));
  font-size: 13px;
  font-family: inherit;
}

.am-item:hover {
  background: var(--surface-inset-base-hover, var(--vscode-list-hoverBackground, #2a2d2e));
}

.am-item-active {
  background: var(--surface-interactive-base, var(--vscode-list-activeSelectionBackground, #04395e));
  color: var(--text-on-interactive-base, var(--vscode-list-activeSelectionForeground, #fff));
}

.am-item-title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.am-item-time {
  font-size: 11px;
  white-space: nowrap;
  color: var(--text-weaker, var(--vscode-descriptionForeground, #888));
  flex-shrink: 0;
}

.am-item-active .am-item-time {
  color: var(--text-on-interactive-weak, rgba(255, 255, 255, 0.7));
}

.am-detail {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
