// =============================================================================
// Split Pane
// =============================================================================

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

.split-pane {
  display: flex;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.split-pane--vertical {
  flex-direction: column;
}

.split-pane__panel {
  overflow: auto;
  @include custom-scrollbar;
}

.split-pane__panel--fill {
  flex: 1;
  min-width: 0;
  min-height: 0;
}

.split-pane__resizer {
  flex-shrink: 0;
  background-color: rgb(var(--color-border-light));
  z-index: $z-workspace-resizer;
  @include transition-fast(background-color);

  &:hover {
    background-color: $primary-400;
  }

  &:active {
    background-color: $primary-500;
  }
}

// Horizontal resizer (between left and right panels)
.split-pane__resizer--horizontal {
  width: 3px;
  cursor: col-resize;

  &:hover,
  &:active {
    width: 3px;
  }
}

// Vertical resizer (between top and bottom panels)
.split-pane__resizer--vertical {
  height: 3px;
  cursor: row-resize;

  &:hover,
  &:active {
    height: 3px;
  }
}
