* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f4f4;
  color: #222;
}

.container {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 16px;
}

h1 {
  margin-bottom: 24px;
}

.card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.task-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

input,
textarea,
button {
  font: inherit;
}

input,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

button {
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  cursor: pointer;
  background: #1f6feb;
  color: white;
}

button:hover {
  background: #1557b0;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.status {
  min-height: 24px;
  color: #555;
}

.task-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.task-item {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.task-item.done {
  opacity: 0.7;
  background: #f0fff4;
}

.task-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.task-title {
  margin: 0;
  font-size: 20px;
}

.task-description {
  margin: 0;
  color: #444;
  white-space: pre-wrap;
}

.task-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-secondary {
  background: #6c757d;
}

.btn-secondary:hover {
  background: #565e64;
}

.btn-danger {
  background: #d73a49;
}

.btn-danger:hover {
  background: #b42331;
}

.empty {
  color: #777;
  padding: 12px 0;
}

.task-meta {
  margin: 4px 0;
  color: #666;
  font-size: 14px;
}