body {
  font-family: Arial, sans-serif;
  background: #f4f6f9;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  margin: 0;
  padding: 40px;
}

.todo-container {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  width: 350px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

h2 {
  margin: 0 0 20px;
  text-align: center;
  color: #333;
}

.inputBox {
  display: flex;
  margin-bottom: 20px;
}

.inputBox input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px 0 0 8px;
  outline: none;
  resize: none;
  height: 20px; /* same height as input */
}

.inputBox button {
  padding: 10px 15px;
  border: none;
  background: #007bff;
  color: #fff;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
}

.inputBox button:hover {
  background: #0056b3;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul li {
  background: #f9f9f9;
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #eee;
}

ul li span {
  flex: 1;
  cursor: pointer;
}

ul li button {
  background: red;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 5px 8px;
  cursor: pointer;
  margin-left: 10px;
}

ul li button:hover {
  background: darkred;
}

.done span {
  text-decoration: line-through;
  color: gray;
}
