/* Editor styles */
#editor-container {
  flex: 1;
  flex-direction: row;
  background: var(--bg);
  border-left: 1px solid var(--border);
  min-height: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
}

#editor-container.visible {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

#editor-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

#editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 12px 54px;
  background: var(--pane-header-bg);
  border-bottom: 1px solid var(--border);
  gap: 10px;
}

#editor-header h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

#editor-actions {
  display: flex;
  gap: 8px;
}

.editor-btn {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: background 0.15s;
}

.editor-btn.primary {
  background: var(--accent);
  color: #fff;
}
.editor-btn.primary:hover {
  background: var(--accent-hover);
}

.editor-btn.secondary {
  background: var(--editor-secondary-bg);
  color: var(--editor-secondary);
}
.editor-btn.secondary:hover {
  background: var(--editor-secondary-hover);
}

#live-editor-container {
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  position: relative;
}

#editor-error {
  padding: 10px 16px;
  background: var(--editor-error-bg);
  color: var(--editor-error);
  font-size: 12px;
  border-top: 1px solid var(--editor-error-border);
  min-height: auto;
  overflow: hidden;
  word-break: break-word;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), max-height 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, max-height;
  max-height: 100px;
}

#editor-preview {
  flex: 1;
  overflow-y: auto;
  background: var(--bg);
  min-width: 0;
  min-height: 0;
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
}

#editor-preview .swagger-ui .topbar {
  display: none;
}

#editor-preview #editor-swagger-ui {
  min-height: 100vh;
}
