.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

header h1 {
  font-size: 2.2rem;
  margin-bottom: 0.25rem;
}

header .subtitle {
  font-size: 1rem;
  color: #6b7280;
  margin-bottom: 2rem;
}

textarea {
  resize: vertical;
}

button {
  font-size: 1rem;
  padding: 0.75rem 0.5rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 600;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

button.primary {
  background-color: #3b82f6;
  color: white;
}

button.secondary {
  background-color: #f3f4f6;
  color: #111827;
}

button.accent {
  background-color: #10b981;
  color: white;
}

button:hover {
  opacity: 0.9;
}

.theme-toggle {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  border-radius: 24px;
  transition: 0.3s;
}

.slider:before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.3s;
}

input:checked + .slider {
  background-color: #4ade80;
}

input:checked + .slider:before {
  transform: translateX(18px);
}

.theme-toggle {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.theme-toggle button {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: inherit;
  transition: transform 0.2s ease;
}

.theme-toggle button:hover {
  transform: scale(1.2);
}
