/* VoiceMixer Interface Editor */

.editor-body {
  margin: 0;
  background: #0a0a0c;
  color: #c8ccd6;
  font-family: 'Segoe UI', system-ui, sans-serif;
  min-height: 100vh;
}

.editor-header {
  background: #141418;
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.editor-header h1 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin: 0;
}
.editor-header h1 span { color: #ff5a78; }

.editor-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.editor-actions button,
.editor-actions label.btn-file {
  background: #1a1a22;
  border: 1px solid rgba(255,255,255,.12);
  color: #ddd;
  padding: 8px 14px;
  font-size: 12px;
  border-radius: 6px;
  cursor: pointer;
}
.editor-actions button:hover,
.editor-actions label.btn-file:hover {
  border-color: #e83050;
  color: #fff;
}
.editor-actions .btn-primary {
  background: linear-gradient(145deg, #ff5a78, #e83050);
  border-color: transparent;
  color: #fff;
  font-weight: 600;
}
.editor-actions input[type=file] { display: none; }

.editor-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 0;
  min-height: calc(100vh - 56px);
}

.editor-preview {
  padding: 32px 24px;
  background: radial-gradient(ellipse 80% 60% at 50% 30%, #1a1018, #0a0a0c);
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.editor-panel {
  background: #141418;
  border-left: 1px solid rgba(255,255,255,.08);
  overflow-y: auto;
  max-height: calc(100vh - 56px);
}

.editor-section {
  padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.editor-section h2 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #8a8a98;
  margin: 0 0 12px;
}

.editor-field {
  margin-bottom: 10px;
}
.editor-field label {
  display: block;
  font-size: 11px;
  color: #8a8a98;
  margin-bottom: 4px;
}
.editor-field input[type=text],
.editor-field input[type=number],
.editor-field select {
  width: 100%;
  background: #0c0c0e;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 5px;
  padding: 7px 10px;
  color: #eee;
  font-size: 12px;
}
.editor-field input[type=range] {
  width: 100%;
  accent-color: #e83050;
}
.editor-field .range-val {
  font-size: 11px;
  color: #ff5a78;
  float: right;
}

.editor-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 8px;
  background: #0c0c0e;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.06);
}
.editor-row input[type=text] { flex: 1; }
.editor-row input[type=checkbox] { accent-color: #e83050; width: 16px; height: 16px; }

.btn-small {
  background: transparent;
  border: 1px solid rgba(232,48,80,.4);
  color: #ff5a78;
  padding: 4px 10px;
  font-size: 11px;
  border-radius: 4px;
  cursor: pointer;
}
.btn-small:hover { background: rgba(232,48,80,.15); }
.btn-small.danger { border-color: #666; color: #999; }

.editor-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #e83050;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
  z-index: 200;
}
.editor-toast.show { opacity: 1; }

@media (max-width: 900px) {
  .editor-layout { grid-template-columns: 1fr; }
  .editor-panel { max-height: none; border-left: none; border-top: 1px solid rgba(255,255,255,.08); }
}
