* {
box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: #111827;
  color: #f9fafb;
}

header {
  text-align: center;
  padding: 2rem;
  background: #1f2937;
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
}

header p {
  color: #d1d5db;
}

main {
  width: min(900px, 92%);
  margin: 2rem auto;
}

.card,
.category {
  background: #1f2937;
  border-radius: 1rem;
  padding: 1rem;
  margin-bottom: 1rem;
}

.stack {
  display: grid;
  gap: 0.75rem;
}

.row {
  display: flex;
  gap: 0.5rem;
}

input,
textarea,
button {
  font: inherit;
}

input,
textarea {
  width: 100%;
  border: 0;
  border-radius: 0.75rem;
  padding: 0.75rem;
}

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

button {
  border: 0;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  background: #8b5cf6;
  color: white;
  cursor: pointer;
}

button:hover {
  background: #7c3aed;
}

.delete {
  background: #ef4444;
}

.delete:hover {
  background: #dc2626;
}

.category-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.note-form {
  margin-top: 1rem;
  display: grid;
  gap: 0.5rem;
}

.note {
  background: #374151;
  border-radius: 0.75rem;
  padding: 0.75rem;
  margin-top: 0.75rem;
  white-space: pre-wrap;
}
