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

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: 900px;
  margin: 0 auto;
  background-color: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header {
  margin-bottom: 40px;
  border-bottom: 2px solid #eee;
  padding-bottom: 20px;
}

h1 {
  color: #2c3e50;
  font-size: 2em;
  margin-bottom: 8px;
}

.subtitle {
  color: #7f8c8d;
  font-size: 1em;
}

h2 {
  color: #34495e;
  font-size: 1.5em;
  margin-bottom: 12px;
}

.enricher-section {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #eee;
}

.enricher-section:last-child {
  border-bottom: none;
}

.help-text {
  color: #7f8c8d;
  font-size: 0.9em;
  margin-bottom: 12px;
  font-style: italic;
}

textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family:
    "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, monospace;
  font-size: 0.9em;
  margin-bottom: 12px;
  resize: vertical;
}

textarea:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.btn-primary {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-primary:hover {
  background-color: #2980b9;
}

.btn-primary:active {
  background-color: #2472a4;
}

.btn-primary:disabled {
  background-color: #95a5a6;
  cursor: not-allowed;
}

.output {
  margin-top: 20px;
  min-height: 60px;
}

.output.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7f8c8d;
  font-style: italic;
}

.output pre {
  background-color: #f8f9fa;
  padding: 16px;
  border-radius: 4px;
  border-left: 4px solid #3498db;
  overflow-x: auto;
  font-family:
    "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, monospace;
  font-size: 0.85em;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.error {
  background-color: #fee;
  border-left-color: #e74c3c;
  color: #c0392b;
  padding: 12px;
  border-radius: 4px;
  margin-top: 12px;
}

.copy-btn {
  background-color: #2ecc71;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.9em;
  cursor: pointer;
  margin-top: 8px;
  transition: background-color 0.2s;
}

.copy-btn:hover {
  background-color: #27ae60;
}

.copy-btn.copied {
  background-color: #95a5a6;
}

@media (max-width: 768px) {
  .container {
    padding: 20px;
  }

  h1 {
    font-size: 1.5em;
  }

  h2 {
    font-size: 1.2em;
  }
}
