/* Editor Sidebar - Elementor-style */
.editor-sidebar {
  position: fixed;
  top: 0;
  right: -380px;
  width: 360px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.12);
  z-index: 10000;
  transition: right 0.3s ease;
  overflow-y: auto;
  font-family: "Inter", sans-serif;
}

.editor-sidebar.open {
  right: 0;
}

.editor-sidebar-header {
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f9fafb;
}

.editor-sidebar-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
}

.editor-sidebar-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #6b7280;
  line-height: 1;
  padding: 0 4px;
}

.editor-sidebar-close:hover {
  color: #1f2937;
}

.editor-sidebar-body {
  padding: 20px;
}

.editor-field {
  margin-bottom: 20px;
}

.editor-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.editor-field input[type="text"],
.editor-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
}

.editor-field input[type="color"] {
  width: 100%;
  height: 44px;
  padding: 4px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  cursor: pointer;
}

.editor-field-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.editor-field-row input[type="color"] {
  width: 48px;
  height: 40px;
  flex-shrink: 0;
}

.editor-field-row input[type="text"] {
  flex: 1;
}

.editor-sidebar .btn-apply {
  width: 100%;
  padding: 12px;
  background: #4f46e5;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  margin-top: 8px;
}

.editor-sidebar .btn-apply:hover {
  background: #4338ca;
}

.editor-no-key {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 4px;
}
