* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: linear-gradient(135deg, #89f7fe, #66a6ff);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.container {
  background: #fff;
  width: 100%;
  max-width: 420px;
  border-radius: 16px;
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.15);
  padding: 20px;
  transition: 0.3s ease;
}

.container:hover {
  transform: translateY(-5px);
}
.header {
  text-align: center;
  padding: 12px;
  font-size: 1.8rem;
  font-weight: 700;
  color: #333;
  border-bottom: 2px solid #f0f0f0;
  margin-bottom: 20px;
}
.addTask {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.addTask input {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  outline: none;
  transition: 0.3s;
}

.addTask input:focus {
  border-color: #66a6ff;
  box-shadow: 0px 0px 6px rgba(102, 166, 255, 0.5);
}

.addTask button {
  background: #66a6ff;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.addTask button:hover {
  background: #4d8de5;
}
ul {
  list-style: none;
  padding: 0;
}

li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
  background: #f9f9f9;
  transition: 0.3s;
}

li:hover {
  background: #eef6ff;
}

li button {
  background: #ff4d4d;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  margin-left: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0px 3px 6px rgba(255, 77, 77, 0.3);
}

li button:hover {
  background: #e60000;
  transform: scale(1.05);
}

@media (max-width: 600px) {
  .container {
    max-width: 100%;
    padding: 15px;
  }

  .header {
    font-size: 1.5rem;
  }

  .addTask {
    flex-direction: column;
  }

  .addTask button {
    width: 100%;
  }
}
