@use '../../styles/mixins' as *;

.nav {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.searchForm {
  display: flex;
  gap: 4px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-default);
}

.searchInput {
  flex: 1;
  min-width: 0;
  padding: 5px 8px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  background: var(--bg-inset);
  color: var(--text-primary);
  font-size: 13px;

  &::placeholder {
    color: var(--text-disabled);
  }

  &:focus {
    outline: none;
    border-color: var(--accent-blue);
  }
}

.searchButton {
  @include btn-primary;
  padding: 5px 10px;
  font-size: 12px;
}

.clearButton {
  display: block;
  width: 100%;
  padding: 4px 12px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border-default);
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  text-align: left;

  &:hover {
    color: var(--text-primary);
    background: var(--bg-hover, rgba(255, 255, 255, 0.04));
  }
}

.workspaceSelect {
  margin: 8px 12px;
  padding: 5px 8px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  background: var(--bg-inset);
  color: var(--text-primary);
  font-size: 12px;

  &:focus {
    outline: none;
    border-color: var(--accent-blue);
  }
}

.listHeader {
  padding: 8px 12px 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-disabled);
}

.nodeList {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex: 1;
}

.nodeItem {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  cursor: pointer;
  transition: background 0.15s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);

  &:hover {
    background: var(--bg-hover, rgba(255, 255, 255, 0.04));
  }
}

.indicator {
  width: 3px;
  height: 18px;
  border-radius: 2px;
  flex-shrink: 0;
}

.label {
  flex: 1;
  font-size: 13px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge {
  font-family: var(--font-mono, monospace);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-disabled);
  flex-shrink: 0;
}
