.split-view-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: #1e1e1e;
}

.split-view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background-color: #252526;
  border-bottom: 1px solid #3c3c3c;
  min-height: 40px;
}

.split-view-controls {
  display: flex;
  gap: 8px;
}

.split-view-button {
  background: #3c3c3c;
  border: none;
  color: #cccccc;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}

.split-view-button:hover {
  background: #4a4a4a;
  color: #ffffff;
}

.split-view-tabs {
  display: flex;
  gap: 12px;
  flex: 1;
  justify-content: center;
}

.split-tab-selector {
  min-width: 200px;
}

.tab-select {
  width: 100%;
  background: #3c3c3c;
  border: 1px solid #5a5a5a;
  color: #cccccc;
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 13px;
}

.tab-select:focus {
  outline: none;
  border-color: #007acc;
}

.tab-select option:disabled {
  color: #666666;
  background-color: #2d2d2d;
}

.split-view-panels {
  flex: 1;
  overflow: hidden;
}

.split-view-panels.horizontal {
  flex-direction: row;
}

.split-view-panels.vertical {
  flex-direction: column;
}

.split-panel {
  background-color: #1e1e1e;
  overflow: hidden;
}

.split-editor-container {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.panel-header {
  padding: 8px 12px;
  background-color: #2d2d2d;
  border-bottom: 1px solid #3c3c3c;
  color: #cccccc;
  font-size: 13px;
  font-weight: 500;
}

.panel-title {
  color: #ffffff;
}

.editor-wrapper {
  flex: 1;
  overflow: hidden;
}

.no-file-selected {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #666666;
  font-size: 14px;
}

.split-resize-handle {
  background-color: #2d2d2d;
  position: relative;
}

.split-resize-handle[data-panel-group-direction="horizontal"] {
  width: 8px;
}

.split-resize-handle[data-panel-group-direction="vertical"] {
  height: 8px;
}

.resize-handle-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #5a5a5a;
  border-radius: 2px;
  transition: background-color 0.2s;
}

.split-resize-handle[data-panel-group-direction="horizontal"] .resize-handle-inner {
  width: 2px;
  height: 20px;
}

.split-resize-handle[data-panel-group-direction="vertical"] .resize-handle-inner {
  width: 20px;
  height: 2px;
}

.split-resize-handle:hover .resize-handle-inner,
.split-resize-handle[data-resize-handle-state="drag"] .resize-handle-inner {
  background-color: #007acc;
}

/* 编辑器容器样式调整 */
.split-editor-container .editor-panel-content {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.split-editor-container .title-bar {
  display: none; /* 在分屏模式下隐藏标题栏 */
}

.split-editor-container .editor-container {
  flex: 1;
  overflow: hidden;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .split-view-header {
    flex-direction: column;
    gap: 8px;
  }
  
  .split-view-tabs {
    width: 100%;
  }
  
  .split-tab-selector {
    min-width: 150px;
  }
}