*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f5f5f3;
  color: #1a1a1a;
  min-height: 100vh;
  padding: 2rem 1rem;
}

.container {
  max-width: 480px;
  margin: 0 auto;
}

header h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

/* Input row */
.input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 1.75rem;
}

.input-row input {
  flex: 1;
  padding: 10px 14px;
  font-size: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
}

.input-row input:focus {
  border-color: #888;
}

.input-row button {
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 500;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.input-row button:hover {
  background: #333;
}

.input-row button:active {
  transform: scale(0.97);
}

/* Sections */
.task-section {
  margin-bottom: 1.5rem;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 8px;
}

.empty-msg {
  font-size: 14px;
  color: #aaa;
  padding: 8px 0;
}

/* Task list */
ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.task-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 10px 12px;
}

.task-item.done {
  background: #fafafa;
  opacity: 0.7;
}

.task-text {
  flex: 1;
  font-size: 15px;
  line-height: 1.4;
}

.task-item.done .task-text {
  text-decoration: line-through;
  color: #999;
}

/* Complete button */
.btn-complete {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid #ccc;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, background 0.15s;
  padding: 0;
}

.btn-complete:hover {
  border-color: #4caf50;
  background: #f0faf0;
}

.btn-complete svg {
  width: 12px;
  height: 12px;
  stroke: #aaa;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.15s;
}

.btn-complete:hover svg {
  stroke: #4caf50;
}

/* Done icon */
.icon-done {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  stroke: #4caf50;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Delete button */
.btn-delete {
  flex-shrink: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.15s;
}

.btn-delete:hover {
  background: #fee;
}

.btn-delete svg {
  width: 15px;
  height: 15px;
  stroke: #ccc;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.15s;
}

.btn-delete:hover svg {
  stroke: #e53935;
}