.tabs-area {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.tabs-area .ant-tabs {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.tabs-area .ant-tabs-content-holder {
  flex: 1;
  overflow: hidden;
}

.tabs-area .ant-tabs-content {
  height: 100%;
}

.tabs-area .ant-tabs-tabpane {
  height: 100%;
}

.tabs-area-empty {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #666;
  text-align: center;
}

.tabs-area-empty p {
  margin-top: 16px;
  color: #999;
  font-size: 14px;
}

/* 右键菜单样式优化 */
.ant-dropdown-menu-item-disabled {
  opacity: 0.5;
}

.ant-dropdown-menu-item-disabled:hover {
  background-color: transparent !important;
}

/* 右键菜单中快捷键的样式 */
.tab-context-menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-width: 180px;
}

.tab-context-menu-shortcut {
  color: #999;
  font-size: 12px;
  margin-left: 20px;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

/* 标签页标题区域的样式 */
.tab-label-content {
  display: flex;
  align-items: center;
  max-width: 200px;
  overflow: hidden;
  gap: 4px;
}

.tab-label-content .pin-icon {
  color: #1890ff;
  font-size: 12px;
  flex-shrink: 0;
}

.tab-label-content .message-icon {
  flex-shrink: 0;
}

.tab-label-content .status-badge {
  flex-shrink: 0;
}

.tab-label-content .tab-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .tab-label-content {
    max-width: 120px;
  }
}

/* 标签页动画效果 */
.tabs-area .ant-tabs-tab {
  transition: all 0.2s ease;
}

.tabs-area .ant-tabs-tab:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.tabs-area .ant-tabs-tab-active {
  font-weight: 500;
}

/* 固定标签页区域分隔线 */
.tabs-area .ant-tabs-nav-wrap {
  position: relative;
}

.tabs-area .ant-tabs-nav-wrap::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(24, 144, 255, 0.2), transparent);
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}

/* 拖拽相关样式 */
.tab-label-content {
  cursor: move;
}

.tab-label-content.dragging {
  opacity: 0.5;
  transform: scale(0.95);
  transition: all 0.2s ease;
}

.tab-label-content.drag-over {
  background-color: rgba(24, 144, 255, 0.1);
  border-radius: 4px;
  transform: scale(1.05);
  transition: all 0.2s ease;
}

.tab-label-content.drag-over-forbidden {
  background-color: rgba(255, 77, 79, 0.1);
  border-radius: 4px;
  cursor: not-allowed;
  transition: all 0.2s ease;
}

.tabs-area .ant-tabs-tab.dragging {
  opacity: 0.6;
  transform: scale(0.95);
  z-index: 1000;
}

.tabs-area .ant-tabs-tab.drag-over {
  background-color: rgba(24, 144, 255, 0.15) !important;
  border-color: rgba(24, 144, 255, 0.5) !important;
  transform: scale(1.02);
  box-shadow: 0 2px 8px rgba(24, 144, 255, 0.3);
}

/* 拖拽时的指示器 */
.tabs-area .ant-tabs-tab.drag-over::before {
  content: '';
  position: absolute;
  left: -2px;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: #1890ff;
  border-radius: 2px;
  animation: dragIndicator 0.3s ease;
}

@keyframes dragIndicator {
  from {
    opacity: 0;
    transform: scaleY(0.5);
  }
  to {
    opacity: 1;
    transform: scaleY(1);
  }
}
