/* ======================================================
   layout.css — Structural layout for Hollowverse Dataflow
   ====================================================== */

main.main-content {
  flex: 1;
  display: flex;
  gap: 1.5rem;
  padding: 1rem 5% 1.5rem 5%;
  height: calc(100vh - 80px);
  overflow: hidden;
  box-sizing: border-box;
}

/* Left Panel (Folder Tree) */
.left-panel {
  flex: 0 0 33%;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow-y: auto;
  background-color: var(--color-bg-secondary);
  box-shadow: inset -1px 0 0 0 var(--color-border);
  margin-bottom: 0.5rem;
}

.file-list {
  padding: 1rem;
}

/* Right Panel (Preview + Status) */
.right-panel {
  flex: 0 0 67%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 0.5rem;
  height: 100%;
}

/* Blank section (top, 2/3 height) */
.blank-section {
  flex: 2;
  background-color: var(--color-bg-tertiary);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
  overflow-y: auto;
}

/* Status section (bottom, 1/3 height) */
.status-section {
  flex: 1;
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
  overflow-y: auto;
  scrollbar-gutter: stable;
}

/* Scrollbar only when needed */
.status-section::-webkit-scrollbar {
  width: 0;
}
.status-section:hover::-webkit-scrollbar {
  width: 0.6rem;
}
.status-section::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: var(--radius);
}

/* 📱 Responsive */
@media (max-width: 991px) {
  main.main-content {
    flex-direction: column;
    height: auto;
    overflow: visible;
    padding: 1rem;
  }

  .left-panel {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    box-shadow: none;
    margin-bottom: 1rem;
  }

  .right-panel {
    margin-bottom: 0;
  }
}
