.webform-settings-toggle {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 999;
  transition: all 0.3s ease;
}

body.administrator .webform-settings-toggle {
  display: flex;
}

.webform-settings-toggle:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-50%) scale(1.05);
}

.webform-settings-toggle svg {
  width: 24px;
  height: 24px;
  color: #4B5563;
}

.webform-settings-pane {
  position: fixed;
  left: -400px;
  top: 0;
  width: 400px;
  height: 100vh;
  background: #fff;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: left 0.3s ease;
  overflow-y: auto;
}

.webform-settings-pane.active {
  left: 0;
}

.webform-settings-header {
  padding: 20px;
  background: #F3F4F6;
  border-bottom: 1px solid #E5E7EB;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.webform-settings-header h2 {
  margin: 0;
  font-size: 1.25rem;
  color: #111827;
}

.webform-settings-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #4B5563;
  transition: color 0.2s ease;
}

.webform-settings-close:hover {
  color: #1F2937;
}

.webform-settings-content {
  padding: 24px;
}

.settings-field {
  margin-bottom: 24px;
}

.settings-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
}

.settings-field input[type="text"],
.settings-field input[type="number"],
.settings-field input[type="color"] {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.settings-field input[type="color"] {
  height: 40px;
  padding: 4px;
}

.settings-field input:focus {
  outline: none;
  border-color: #3B82F6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.settings-save {
  background: #3B82F6;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.2s ease;
}

.settings-save:hover {
  background: #2563EB;
}

/* Data Display Styles */
.webform-data-display {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
}

.data-container {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

.data-item {
  padding: 1rem;
  border-bottom: 1px solid #E5E7EB;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.data-item:last-child {
  border-bottom: none;
}

.data-item strong {
  min-width: 150px;
  color: #374151;
}

.color-preview {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid #E5E7EB;
}

.data-item code {
  background: #F3F4F6;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: monospace;
  color: #374151;
}