/* 🌈 Background dan pengaturan umum */
body {
  font-family: "Poppins", Arial, sans-serif;
  background: linear-gradient(135deg, #619afc, #e0f7fa, #f0dd34);
  background-size: 400% 400%;
  animation: gradien 10s ease infinite;
  color: #333;
  margin: 40px auto;
  max-width: 500px;
  text-align: center;
  min-height: 100vh;
}



/* Judul halaman */
h2 {
  color: hsl(244, 75%, 57%);
  margin-bottom: 20px;
  background: rgb(255, 255, 255);
  display: block;
  padding: 20px 20px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Input teks */
input {
  padding: 10px;
  width: 60%;
  border: 2px solid #cccccc00;
  border-radius: 20px;
  outline: none;
  transition: 0.3s;
}
input:focus {
  border-color: #f1f2f5ef;
}

/* Tombol tambah */
button {
  padding: 10px 15px;
  border: none;
  background: #6f6af7;
  color: white;
  font-weight: bold;
  border-radius: 20px;
  cursor: pointer;
  transition: 0.3s;
}
button:hover {
  background: #0c56f5;
}

/* Daftar item */
ul {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

/* Item satu per satu */
li {
  background: rgba(255, 255, 255, 0.9);
  margin: 8px 0;
  padding: 10px 15px;
  border-radius: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  animation: fadeIn 0.3s ease;
}

/* Efek saat item dicentang (selesai) */
li.selesai span {
  text-decoration: line-through;
  color: #fefdfd;
  opacity: 0.7;
}

/* Bagian kiri: checkbox + teks */
.kiri {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Tombol hapus */
li button {
  background: #7281f8;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 0.9em;
}
li button:hover {
  background: #022bf8;
}

/* Checkbox lucu */
input[type="checkbox"] {
  accent-color: #ff80ab;
  transform: scale(1.3);
  cursor: pointer;
}

/* Animasi masuk */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}
