.two-column-layout {
  display: flex;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  position: relative;
}

/* Vertical separator line between columns */
.resize-handle {
  background-color: var(--vscode-editorWidget-border);
  z-index: 1;
  padding: 0 5px;
  width: 2px;
  background-clip: content-box;
}

.resize-handle:hover,
.resize-handle:focus,
.resize-handle:active {
  cursor: ew-resize;
  background-color: var(--vscode-editorHoverWidget-border);
  width: 2px;
}

.left-column,
.right-column {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 350px;
}

.right-column {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Tab Structure */
.tab-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 60px);
}

.tab-content {
  flex: 1;
  overflow: hidden;
}

.tab-pane {
  display: none;
  height: 100%;
}

.tab-pane.active {
  display: block;
}

/* Horizontal separator line between top and bottom rows in right column */
.right-column-separator {
  height: 1px;
  background-color: var(--vscode-editorWidget-border);
  z-index: 1;
  margin: 0 16px;
}

.tab-header {
  display: flex;
  border-bottom: 3px solid var(--vscode-editorWidget-border);
  background-color: var(--vscode-sideBarSectionHeader-background);
  padding: 4px 16px 0 16px;
  gap: 24px;
  position: relative;
  height: 32px;
}

.tab-button {
  background: none;
  border: none;
  color: var(--vscode-tab-activeForeground);
  border-radius: 4px 4px 0 0;
  transition: background-color 0.2s ease;
  display: block;
  position: absolute;
  overflow: visible;
  padding: 0;
}

.tab-button::after {
  content: '';
  display: block;
  position: relative;
  bottom: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 25px;
  height: 3px;
  background-color: transparent;
}

.tab-button:hover,
.tab-button:focus,
.tab-button:active {
  color: var(--vscode-tab-hoverForeground);
  background-color: transparent;
}

.tab-button.active::after {
  background-color: var(--vscode-tab-selectedForeground);
}

.top-row {
  flex-grow: 1;
}

.bottom-row {
  overflow: hidden;
}

.top-row:not(.expanded) {
  flex: none;
}

.top-row .panel.browser-panel {
  height: fit-content;
}

.top-row.expanded .panel.browser-panel {
  height: 100%;
  overflow: hidden;
}

.bottom-row {
  position: relative;
  width: 100%;
  height: 100%;
}

.bottom-row.expanded {
  max-height: none;
  flex-grow: 1 !important;
}
