.chat-history-tree {
  overflow: hidden;
}

/* Ant Design Tree 样式覆盖 */
.chat-history-tree .ant-tree-switcher {
  align-self: center;
}

/* 隐藏拖拽图标 */
.chat-history-tree .ant-tree-draggable-icon {
  display: none;
}
.chat-history-tree .ant-tree-treenode {
  width: 100%;
  align-items: center;
}

.chat-history-tree .ant-tree-node-content-wrapper {
  flex: 1;
  min-width: 0;
}

.chat-history-tree .ant-tree-title {
  width: 100%;
  overflow: hidden;
}

.tree-node {
  position: relative;
  display: flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
}

.tree-node-content {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 8px;
  overflow: hidden;
  min-height: 24px;
}

.tree-node-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tree-node-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s;
  flex-shrink: 0;
  margin-left: 8px;
}

.tree-node:hover .tree-node-actions {
  opacity: 1;
}

.tree-node-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
