:root {
  --primary-color: #4a90e2;
  --accent-color: #50e3c2;
  --bg-color: #f5f7fa;
  --text-color: #333;
  --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  padding: 2rem;
}

main {
  max-width: 600px;
  margin: auto;
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}

header h1 {
  font-size: 2rem;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 1rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

fieldset {
  border: 1px solid #ddd;
  padding: 1rem;
  border-radius: 8px;
}

legend {
  font-weight: 600;
  font-size: 1.1rem;
}

label {
  font-weight: 600;
}

input[type="number"],
input[type="checkbox"] {
  margin-top: 0.3rem;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.buttons {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

button {
  flex: 1;
  padding: 0.75rem;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  color: white;
  transition: background 0.3s ease;
}

button.generate {
  background-color: var(--primary-color);
}

button.generate:hover {
  background-color: #357ab8;
}

button.copy {
  background-color: var(--accent-color);
}

button.copy:hover {
  background-color: #3ed7b0;
}

.output {
  background-color: #eef6ff;
  padding: 1rem;
  border-radius: 6px;
  font-family: monospace;
  word-wrap: break-word;
  margin-top: 1rem;
  min-height: 2.5rem;
}

footer {
  text-align: center;
  font-size: 0.85rem;
  margin-top: 2rem;
  color: #888;
}

footer a {
  color: var(--primary-color);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .buttons {
    flex-direction: column;
  }
}
