body {
  margin: 0;
  background: #f0f0f0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: Arial, Helvetica, sans-serif;
}

.todo-container {
  background: white;
  padding: 20px;
  border-radius: 10px;
  width: 400px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

h1 {
  text-align: center;
  color: #333;
  margin-bottom: 20px;
}

.input-section {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

#taskInput {
  flex: 1;
  padding: 10px;
  font-size: 1rem;
  border-radius: 5px;
}

button {
  padding: 10px 15px;
  background: #d9d9d9;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  background: #bbb;
}

.completed {
  background: #e0e0e0;
  text-decoration: line-through;
}

.delete-button {
  background: red;
  padding: 5px 10px;
  border-radius: 5px;
  color: white;
  margin-left: 10px;
  cursor: pointer;
}

.delete-button:hover {
  background: darkred;
}

li {
  list-style: none;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 5px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
