body.dark-mode {
  background: #111;
  color: #f5f5f5;
}
.generator {
  font-family: 'Inter', sans-serif;
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  background: var(--bg, #fff);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.group {
  display: flex;
  flex-direction: column;
}
.group label {
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.group input, .group select, .group button {
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid #ccc;
}
.preview {
  margin-top: 2rem;
  text-align: center;
}
#previewButton {
  padding: 10px 20px;
  border-radius: 8px;
  background-color: #4f46e5;
  color: white;
  border: none;
  font-size: 16px;
  transition: all 0.3s ease;
}
#previewButton:hover {
  background-color: #4338ca;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}
pre {
  text-align: left;
  margin-top: 1rem;
  background: #f4f4f4;
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
}
