.config-panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.config-panel {
  background: white;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.config-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 8px 8px 0 0;
}

.config-panel-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.close-button {
  background: none;
  border: none;
  color: white;
  font-size: 32px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s;
}

.close-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.config-panel-content {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.config-section {
  margin-bottom: 24px;
}

.config-section h3 {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.input-group {
  display: flex;
  gap: 8px;
}

.config-input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  font-family: 'Courier New', monospace;
}

.config-input:focus {
  outline: none;
  border-color: #667eea;
}

.config-input:disabled {
  background: #f5f5f5;
  cursor: not-allowed;
}

.config-button {
  padding: 10px 16px;
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.config-button:hover:not(:disabled) {
  background: #e0e0e0;
  transform: translateY(-1px);
}

.config-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.config-button.primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: transparent;
}

.config-button.primary:hover:not(:disabled) {
  opacity: 0.9;
}

.config-button.small {
  padding: 6px 12px;
  font-size: 12px;
}

.config-error {
  margin-top: 8px;
  padding: 12px;
  background: #fee;
  border: 1px solid #fcc;
  border-radius: 6px;
  color: #c33;
  font-size: 14px;
}

.config-info {
  padding: 16px;
  background: #f0f8ff;
  border: 1px solid #d0e8ff;
  border-radius: 6px;
  color: #0066cc;
  font-size: 14px;
  text-align: center;
}

.manual-input-section {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.manual-data-input {
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  font-family: 'Courier New', monospace;
  resize: vertical;
  min-height: 120px;
}

.manual-data-input:focus {
  outline: none;
  border-color: #667eea;
}

.data-preview {
  max-height: 300px;
  overflow-y: auto;
  padding: 12px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.data-preview pre {
  margin: 0;
  font-size: 12px;
  font-family: 'Courier New', monospace;
  white-space: pre-wrap;
  word-wrap: break-word;
}
