* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
  padding: 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.workflow {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.step {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.step-title {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  font-size: 1.2rem;
  font-weight: 600;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background-color: #4f46e5;
  color: white;
  border-radius: 50%;
  margin-right: 10px;
  font-size: 0.9rem;
}

.controls {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.control-group label {
  font-weight: 500;
  font-size: 0.9rem;
}

.control-group input[type="range"] {
  width: 100%;
}

.control-group input[type="number"] {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.control-group select {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: white;
}

.control-group button {
  padding: 8px 16px;
  background-color: #4f46e5;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
}

.control-group button:hover {
  background-color: #4338ca;
}

.control-group label:has(input[type="checkbox"]) {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.auto-process-notice {
  background-color: #f0f9ff;
  color: #0369a1;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.preview-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.preview-header {
  background-color: #f9fafb;
  padding: 10px 15px;
  font-weight: 500;
  border-bottom: 1px solid #e5e7eb;
}

.preview-image {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  background-color: #f9fafb;
  padding: 15px;
}

.preview-image img {
  max-width: 100%;
  max-height: 300px;
  image-rendering: pixelated;
}

.preview-info {
  padding: 10px 15px;
  background-color: #f8fafc;
  border-top: 1px solid #e5e7eb;
  font-size: 0.85rem;
  color: #64748b;
}

.tabs {
  display: flex;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 20px;
}

.tab {
  padding: 10px 20px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.tab.active {
  border-bottom-color: #4f46e5;
  color: #4f46e5;
  font-weight: 500;
}

.tab-content {
  display: none;
  margin-bottom: 20px;
}

.tab-content.active {
  display: block;
}

.palette-display {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 15px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  margin-bottom: 20px;
  min-height: 60px;
  align-items: center;
}

.palette-color {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.action-button {
  padding: 10px 20px;
  background-color: #10b981;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  font-size: 1rem;
}

.action-button:hover {
  background-color: #059669;
}

/* Highlight when dragging over */
.highlight {
  border: 2px dashed #4caf50;
  background-color: #f0fff0;
}
