:root {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

body {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 64px;
  background: #f7f7f8;
  color: #1a1a1a;
}

h1 {
  font-size: 1.5rem;
}

section {
  background: #fff;
  border: 1px solid #e2e2e5;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}

#dashboard {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.dashboard-item {
  flex: 1;
  min-width: 120px;
  text-align: center;
}

.dashboard-label {
  display: block;
  font-size: 0.8rem;
  color: #666;
}

.dashboard-value {
  display: block;
  font-size: 1.8rem;
  font-weight: bold;
}

form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

input,
textarea {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
}

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

button {
  align-self: flex-start;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  background: #2563eb;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}

button:hover {
  background: #1d4ed8;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#note-list-section,
#task-list-section {
  background: #e0f7fa;
}

.note-item {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 8px 12px;
}

.note-title {
  font-weight: bold;
}

.note-body {
  white-space: pre-wrap;
  margin: 4px 0;
}

.item-date {
  font-size: 0.75rem;
  color: #888;
}

.task-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 8px 12px;
}

.task-item.done .task-text {
  text-decoration: line-through;
  color: #999;
}

.task-text {
  flex: 1;
}

.task-delete {
  background: #dc2626;
}

.task-delete:hover {
  background: #b91c1c;
}
