* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(to right, #667eea, #764ba2);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Main container */
.ToDoList {
  background-color: #ffffff;
  padding: 30px 25px;
  border-radius: 15px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Title */
.ToDoList h1 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

/* Input section */
.search {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
}

.search input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
}

.search button {
  padding: 10px 18px;
  background-color: #667eea;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.search button:hover {
  background-color: #556cd6;
}

/* Task list */
ul.listContainer {
  list-style: none;
}

ul.listContainer li {
  background-color: #f5f5f5;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.2s;
  position: relative;
}

/* Checked task */
ul.listContainer li.checked {
  text-decoration: line-through;
  color: #999;
  background-color: #e0e0e0;
}

/* Delete button */
ul.listContainer li button {
  background-color: transparent;
  color: #ff5c5c;
  font-weight: bold;
  border: none;
  font-size: 16px;
  cursor: pointer;
}

ul.listContainer li button:hover {
  color: #ff0000;
}
