/* General reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 450px;
}

.todo-app {
  background: #ffffff;
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Centering the title */
.title {
  color: #002765;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  font-size: 28px;
}

.row {
  display: flex;
  align-items: center;
  background: #f1f3f6;
  border-radius: 30px;
  padding-left: 20px;
  margin-bottom: 25px;
  border: 1px solid #ddd;
}

input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 15px 10px;
  font-size: 16px;
}

button {
  border: none;
  outline: none;
  padding: 15px 35px;
  background: #158306;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 30px;
  transition: 0.3s;
}

button:hover {
  background: #024112;
}

/* Task List Styling */
ul li {
  list-style: none;
  font-size: 17px;
  padding: 12px 45px;
  -webkit-user-select: none; /* Fixed Safari support */
  user-select: none;
  cursor: pointer;
  position: relative;
  border-bottom: 1px solid #eee;
}

ul li::before {
  content: "";
  position: absolute;
  height: 24px;
  width: 24px;
  border-radius: 50%;
  background-image: url(https://cdn-icons-png.flaticon.com/512/481/481078.png);
  background-size: cover;
  top: 10px;
  left: 10px;
}

ul li.checked {
  color: #888;
  text-decoration: line-through;
}

ul li.checked::before {
  background-image: url(https://cdn-icons-png.flaticon.com/512/1442/1442912.png);
}

ul li span {
  position: absolute;
  right: 0;
  top: 5px;
  width: 35px;
  height: 35px;
  font-size: 22px;
  color: #cc0000;
  text-align: center;
  line-height: 35px;
  border-radius: 50%;
}

ul li span:hover {
  background: #ffe5e5;
}

/* Clear All Button Styling */
.btn-clear {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 10px;
  background: none;
  border: 1px solid #ff5945;
  color: #ff5945;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
}

.btn-clear:hover {
  background: #ff5945;
  color: #fff;
}
