.buffer-container {
  position: relative;
  z-index: 10;
  background: var(--primary-bg);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s ease;
}

.buffer-container:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.ui-layer {
  position: relative;
  z-index: 5;
  background: var(--color-secondary-bg);
  border-top: 1px solid var(--color-border);
}

.sidebar {
  position: relative;
  z-index: 7;
  background: var(--color-secondary-bg);
  border-right: 1px solid var(--color-border);
  box-shadow: 1px 0 0 rgba(0, 0, 0, 0.05);
}

.status-bar {
  position: relative;
  z-index: 8;
  background: var(--color-secondary-bg);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.05);
}

.buffer {
  background: var(--primary-bg);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.buffer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(200, 200, 200, 0.01) 45%,
      rgba(200, 200, 200, 0.02) 50%,
      rgba(200, 200, 200, 0.01) 55%,
      transparent 100%
    ),
    linear-gradient(
      0deg,
      transparent 0%,
      rgba(200, 200, 200, 0.01) 48%,
      rgba(200, 200, 200, 0.02) 50%,
      rgba(200, 200, 200, 0.01) 52%,
      transparent 100%
    );
  background-size:
    300px 1px,
    1px 300px;
  background-position:
    0 0,
    0 0;
  pointer-events: none;
}

.pane {
  background: var(--color-secondary-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  position: relative;
  z-index: 5;
}

.pane-header {
  background: var(--color-secondary-bg);
  border-bottom: 1px solid var(--color-border);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--color-text-light);
}

.quick-open {
  position: relative;
  z-index: 9;
  background: var(--color-secondary-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.main-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "sidebar header"
    "sidebar main"
    "sidebar footer";
  height: 100vh;
  overflow: hidden;
}

.main-header {
  grid-area: header;
  z-index: 8;
}

.main-sidebar {
  grid-area: sidebar;
  z-index: 7;
}

.main-content {
  grid-area: main;
  z-index: 6;
  padding: 16px;
  background: var(--color-secondary-bg);
  overflow: auto;
}

.main-footer {
  grid-area: footer;
  z-index: 8;
}

.buffer-focused {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.window-container {
  overflow: hidden;
}
