 /* ====== GLOBAL STYLES ====== */
* {
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  transition: all 0.3s ease;
}

body {
  background: linear-gradient(135deg, #ff9a9e, #fad0c4, #fbc2eb, #a6c1ee);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 40px 20px;
}

/* Animated Gradient Background */
@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* ====== CONTAINER ====== */
.container {
  background: rgba(255, 255, 255, 0.15);
  width: 100%;
  max-width: 420px;
  padding: 30px 25px;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ====== HEADER ====== */
h1 {
  text-align: center;
  margin-bottom: 25px;
  font-size: 2rem;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #9cbb58, #de9c89, #6796e8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ====== INPUT AREA ====== */
.task-input {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
}

.task-input input {
  flex: 1;
  padding: 12px;
  border: 2px solid transparent;
  border-radius: 10px;
  outline: none;
  font-size: 1rem;
  color: #333;
  background: #fff;
  transition: 0.3s;
}

.task-input input:focus {
  border-color: #ff80ab;
  box-shadow: 0 0 10px rgba(255, 128, 171, 0.4);
}

.task-input button {
  background: linear-gradient(135deg, #42a5f5, #478ed1);
  border: none;
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 500;
  transition: transform 0.2s, background 0.3s;
}

.task-input button:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #1e88e5, #42a5f5);
}

/* ====== TASK LIST ====== */
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

li {
  background: rgba(255, 255, 255, 0.25);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  border-radius: 10px;
  margin-bottom: 10px;
  color: #787777;
  font-weight: 500;
  backdrop-filter: blur(6px);
  border-left: 5px solid transparent;
}

li:hover {
  transform: translateX(5px);
  background: rgba(255, 255, 255, 0.3);
}

li.completed {
  text-decoration: line-through;
  opacity: 0.6;
  border-left-color: #81c784;
}

/* ====== ACTION BUTTONS ====== */
.actions {
  display: flex;
  gap: 10px;
}

button.delete,
button.done {
  border: none;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: transform 0.2s, background 0.3s;
}

.done {
  background: linear-gradient(135deg, #66bb6a, #43a047);
  color: white;
}

.done:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #4caf50, #2e7d32);
}

.delete {
  background: linear-gradient(135deg, #db1b18, #e53935);
  color: white;
}

.delete:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #d32f2f, #b71c1c);
}

