body {
  margin: 0;
  font-family: "Arial";
  background: linear-gradient(135deg,#ffe4f2,#e0f7ff);
  transition: 0.3s;
}

.dark {
  background: linear-gradient(135deg,#1a1a2e,#16213e);
  color: white;
}

.bg {
  position: fixed;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(#ffffff33 1px, transparent 1px);
  background-size: 12px 12px;
  z-index: -1;
}

.container {
  width: 420px;
  margin: 50px auto;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.dark .container {
  background: rgba(0,0,0,0.4);
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

h1 {
  color: #ff5fa2;
}

.input-box {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

input, select {
  padding: 8px;
  border-radius: 10px;
  border: 1px solid #ddd;
}

button {
  background: #ff5fa2;
  border: none;
  color: white;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.2s;
}

button:hover {
  transform: scale(1.05);
}

li {
  background: white;
  margin-top: 10px;
  padding: 10px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  animation: pop 0.2s ease;
}

.dark li {
  background: #222;
}

@keyframes pop {
  from {transform: scale(0.9); opacity: 0;}
  to {transform: scale(1); opacity: 1;}
}

.done {
  text-decoration: line-through;
  opacity: 0.5;
}

.low { border-left: 5px solid #4caf50; }
.mid { border-left: 5px solid #ffb300; }
.high { border-left: 5px solid #ff5252; }