:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #64748b;
  --secondary-dark: #475569;
  --background: #f4f7fa;
  --container-bg: #fff;
  --lavender: #c8a2ff;
}

body {
  font-family: "Segoe UI", Roboto, sans-serif;
  background: var(--background);
  color: #222;
  margin: 0;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

h1 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  text-align: center;
}

.container {
  width: 100%;
  max-width: 420px;
  background: var(--container-bg);
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 1.25rem;
  flex-grow: 1;
}

label {
  display: block;
  margin-top: 0.8rem;
  font-weight: 600;
  font-size: 0.95rem;
}

input,
textarea,
button,
select {
  width: 100%;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-top: 0.3rem;
  padding: 0.55rem 0.65rem;
  box-sizing: border-box;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

button {
  background: var(--primary);
  color: white;
  border: none;
  margin-top: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

button:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: var(--secondary);
  margin-top: 0.4rem;
}

.btn-secondary:hover {
  background: var(--secondary-dark);
}

.btn-copy {
  background: var(--lavender);
  color: #222;
  margin-top: 0.6rem;
}

.btn-copy:hover {
  filter: brightness(1.1);
}

.output {
  margin-top: 1rem;
  background: #f1f5f9;
  padding: 0.8rem;
  border-radius: 8px;
  font-size: 0.95rem;
  word-break: break-word;
  white-space: pre-wrap;
}

footer {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  text-align: center;
  color: #555;
}

footer a {
  color: var(--lavender);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  text-shadow: 0 0 6px rgba(200, 162, 255, 0.4);
}

footer a:hover {
  text-shadow: 0 0 10px rgba(200, 162, 255, 0.8);
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.4rem;
  }

  .container {
    max-width: 95%;
    padding: 1rem;
  }

  input,
  textarea,
  button,
  select {
    font-size: 0.95rem;
    padding: 0.5rem 0.6rem;
  }

  footer {
    font-size: 0.85rem;
  }
}