body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(to bottom, #f9fafb, #edf2f7);
  margin: 0;
  padding: 0;
  color: #1a202c;
}

.container {
  max-width: 480px;
  margin: 80px auto;
  background: #ffffff;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  text-align: center;
}

h1 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.tagline {
  color: #718096;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.todoapp input[type="text"] {
  width: 70%;
  padding: 0.6rem 1rem;
  font-size: 1rem;
  border: 2px solid #cbd5e0;
  border-radius: 0.5rem;
  outline: none;
  transition: border-color 0.2s ease-in-out;
}

.todoapp input[type="text"]:focus {
  border-color: #3182ce;
}

.todoapp button#add-task {
  padding: 0.6rem 1.5rem;
  margin-left: 0.5rem;
  background: #3182ce;
  color: white;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}

.todoapp button#add-task:hover {
  background: #2c5282;
}

#task-list {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
  text-align: left;
  max-height: 300px;
  overflow-y: auto;
}

#task-list li {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
}

#task-list li.completed span {
  text-decoration: line-through;
  color: #718096;
}

#task-list li button.delete {
  background: transparent;
  border: none;
  color: #e53e3e;
  font-weight: 700;
  cursor: pointer;
  font-size: 1.2rem;
}

.footer {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  color: #718096;
  font-size: 0.9rem;
}

#clear-completed {
  background: #e53e3e;
  color: white;
  border: none;
  border-radius: 0.5rem;
  padding: 0.3rem 1rem;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}

#clear-completed:hover {
  background: #9b2c2c;
}
