* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f4f6f8;
  color: #1f2937;
}

.container {
  max-width: 560px;
  margin: 48px auto;
  background: #fff;
  padding: 32px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

h1 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.task-form {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.task-form input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.95rem;
}

.task-form button {
  padding: 10px 16px;
  border: none;
  background: #2563eb;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
}

.task-form button:hover { background: #1d4ed8; }

.filter-input {
  width: 100%;
  padding: 9px 12px;
  margin-bottom: 18px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.9rem;
  background: #f9fafb;
}

.task-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.task-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 6px;
  border-bottom: 1px solid #eef0f2;
}

.task-item.done .task-title {
  text-decoration: line-through;
  color: #9ca3af;
}

.task-title {
  flex: 1;
  word-break: break-word;
}

.task-item button {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn-delete { color: #dc2626; }
.btn-delete:hover { color: #991b1b; }

.status {
  margin-top: 14px;
  font-size: 0.85rem;
  color: #6b7280;
  text-align: center;
}
