/* ══════════════════════════════════════════════
   DATAPUZZLE — GÉNÉRATEUR DATATOOL
   generator.css
══════════════════════════════════════════════ */

.gen-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

/* ── CODE OUTPUT ── */
.llm-output {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent3);
  min-height: 120px;
  max-height: 320px;
  white-space: pre-wrap;
  line-height: 1.6;
  overflow-y: auto;
}

/* ── GEN PREVIEW ── */
#gen-preview {
  background: white;
  border-radius: 10px;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  overflow: hidden;
}

/* ── IMPORT TABS ── */
.import-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  background: var(--surface2);
  padding: 4px;
  border-radius: 8px;
}

.import-tab {
  flex: 1;
  padding: 6px;
  text-align: center;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  transition: all .15s;
}
.import-tab.active { background: var(--accent); color: white; }

.import-panel { display: none; }
.import-panel.active { display: block; }

/* ── GITHUB FILE LIST ── */
.github-file-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 260px;
  overflow-y: auto;
}

.github-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  background: var(--surface2);
  border-radius: 8px;
}

.github-file-name { font-family: var(--font-mono); font-size: 12px; }
.github-file-meta { font-size: 11px; color: var(--muted); font-family: var(--font-mono); margin-top: 2px; }

/* ── DROP ZONE ── */
.drop-zone {
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}
.drop-zone:hover,
.drop-zone.drag-over {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(108,99,255,.04);
}
.drop-zone-icon { font-size: 22px; margin-bottom: 6px; }
