* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: #0b1121;
  color: #e2e8f0;
  min-height: 100vh;
  line-height: 1.6;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

/* HEADER */
header {
  text-align: center;
  padding: 40px 0 20px;
}

header h1 {
  font-size: 2.5rem;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

header p {
  color: #64748b;
  margin-top: 8px;
  font-size: 1.1rem;
}

/* STEP CARD */
.step {
  background: #131b2e;
  border: 1px solid #1e293b;
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 20px;
}

.step h2 {
  font-size: 1.2rem;
  margin-bottom: 16px;
  color: #818cf8;
}

.hint {
  color: #64748b;
  margin-bottom: 16px;
  font-size: 14px;
}

.divider {
  text-align: center;
  color: #475569;
  margin: 16px 0;
  font-size: 14px;
}

/* FORM ELEMENTS */
textarea {
  width: 100%;
  min-height: 250px;
  padding: 16px;
  background: #0b1121;
  border: 1px solid #1e293b;
  border-radius: 10px;
  color: #e2e8f0;
  font-family: 'Menlo', 'Consolas', monospace;
  font-size: 13px;
  resize: vertical;
}

textarea:focus {
  outline: none;
  border-color: #6366f1;
}

/* DRAG & DROP */
.drag-zone {
  border: 2px dashed #1e293b;
  border-radius: 12px;
  padding: 50px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.drag-zone:hover,
.drag-zone.active {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.05);
}

.drag-zone p {
  color: #475569;
  font-size: 15px;
}

/* BUTTONS */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-primary {
  background: #6366f1;
  color: #fff;
}

.btn-primary:hover {
  background: #4f46e5;
}

.btn-outline {
  background: transparent;
  border: 1px solid #6366f1;
  color: #818cf8;
}

.btn-outline:hover {
  background: rgba(99, 102, 241, 0.1);
}

.btn-success {
  background: #22c55e;
  color: #fff;
}

.btn-success:hover {
  background: #16a34a;
}

.btn-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* STATS */
.stats {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.stat {
  background: #1e293b;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  color: #94a3b8;
}

.stat span {
  color: #818cf8;
  font-weight: 700;
}

/* SECTIONS LIST */
.sections-list {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.section-card {
  background: #0b1121;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.section-card:hover {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.05);
}

.section-card h3 {
  color: #a78bfa;
  font-size: 15px;
  margin-bottom: 8px;
}

.section-card .fields {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.field-tag {
  background: #1e293b;
  padding: 3px 10px;
  border-radius: 15px;
  font-size: 12px;
  color: #94a3b8;
}

.field-tag.repeater {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
}

/* TABS */
.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 0;
}

.tab {
  padding: 10px 18px;
  background: #1e293b;
  border: none;
  border-radius: 10px 10px 0 0;
  color: #64748b;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}

.tab.active {
  background: #6366f1;
  color: #fff;
}

.tab:hover:not(.active) {
  background: #334155;
  color: #e2e8f0;
}

/* OUTPUT */
.output-area {
  background: #0b1121;
  border: 1px solid #1e293b;
  border-radius: 0 10px 10px 10px;
  padding: 20px;
  min-height: 350px;
  max-height: 500px;
  overflow-y: auto;
  font-family: 'Menlo', 'Consolas', monospace;
  font-size: 13px;
  white-space: pre-wrap;
  word-break: break-all;
  color: #e2e8f0;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 30px 0;
  color: #475569;
  font-size: 13px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.8rem;
  }
  
  .step {
    padding: 20px 16px;
  }
  
  .btn-row {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    text-align: center;
  }
  
  .tabs {
    flex-wrap: wrap;
  }
}
