/* General body styles */
body {
  font-family: 'Poppins', sans-serif;
  background: #e0e5ec;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

/* Container */
.todo-container {
  background: #e0e5ec;
  border-radius: 20px;
  box-shadow: 20px 20px 60px #bebebe, -20px -20px 60px #ffffff;
  width: 400px;
  max-width: 90%;
  padding: 30px;
  text-align: center;
  animation: fadeIn 1s ease;
}

/* Fade-in animation */
@keyframes fadeIn {
  from {opacity: 0; transform: translateY(-20px);}
  to {opacity:1; transform: translateY(0);}
}

/* Title */
h1 {
  color: #333;
  margin-bottom: 25px;
  font-size: 2em;
  text-shadow: 1px 1px 2px #fff;
}

/* Input section */
.input-section {
  display: flex;
  margin-bottom: 25px;
}

#taskInput {
  flex: 1;
  padding: 12px 15px;
  border-radius: 50px 0 0 50px;
  border: none;
  outline: none;
  font-size: 1em;
  background: #e0e5ec;
  box-shadow: inset 6px 6px 10px #bebebe, inset -6px -6px 10px #ffffff;
  transition: all 0.3s ease;
}

#taskInput:focus {
  box-shadow: inset 3px 3px 6px #bebebe, inset -3px -3px 6px #ffffff;
}

/* Add button */
#addBtn {
  padding: 12px 25px;
  border: none;
  border-radius: 0 50px 50px 0;
  background: #6c63ff;
  color: white;
  font-weight: bold;
  cursor: pointer;
  font-size: 1em;
  box-shadow: 6px 6px 10px #bebebe, -6px -6px 10px #ffffff;
  transition: all 0.3s ease;
}

#addBtn:hover {
  background: #5750d3;
  transform: translateY(-2px);
  box-shadow: 4px 4px 8px #bebebe, -4px -4px 8px #ffffff;
}

/* Task list */
#taskList {
  list-style: none;
  padding: 0;
  margin: 0;
}

#taskList li {
  background: #e0e5ec;
  margin: 12px 0;
  padding: 12px 20px;
  border-radius: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1em;
  box-shadow: 6px 6px 10px #bebebe, -6px -6px 10px #ffffff;
  transition: all 0.3s ease;
  cursor: pointer;
}

#taskList li.completed {
  text-decoration: line-through;
  color: #888;
  opacity: 0.7;
}

#taskList li:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px 8px #bebebe, -4px -4px 8px #ffffff;
}

#taskList li .deleteBtn {
  background: #ff6b6b;
  border: none;
  color: white;
  padding: 6px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}
.deleteBtn {
  background-color: #ff6b6b;
  border: none;
  color: white;
  padding: 6px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.deleteBtn:hover {
  background-color: #e04343;
  transform: scale(1.1);
}

/* Responsive */
@media(max-width: 500px) {
  .todo-container {
    width: 90%;
    padding: 20px;
  }

  #taskInput, #addBtn {
    font-size: 0.9em;
    padding: 10px;
  }

  #taskList li {
    font-size: 0.9em;
    padding: 10px 15px;
  }
}
