body {
  font-family: Arial, sans-serif;
  background: #f8f9fa;
  display: flex;
  justify-content: center;
  padding: 2rem;
  /* Paper texture background */
  background-image: url('https://www.transparenttextures.com/patterns/paper-fibers.png');
}
.app {
  background: #fffbe9; /* subtle yellow tint */
  width: 100%;
  max-width: 500px;
  min-height: 400px; /* Medium size */
  padding: 1.5rem;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10), 0 2px 0 #e2e2e2;
  border: 2.5px dashed #d4bfa6; /* Changed to dashed border */
  /* Layered paper texture */
  background-image:
    url('https://www.transparenttextures.com/patterns/paper.png'),
    url('https://www.transparenttextures.com/patterns/paper-fibers.png');
  background-blend-mode: lighten;
}
h1 {
  text-align: center;
  margin-bottom: 1rem;
}
form {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1rem;
}
form input, form button {
  padding: .5rem;
  font-size: 1rem;
}
#task-input {
  flex: 2;
}
#task-date {
  flex: 1;
}
button {
  background: #007bff;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 4px;
}
button:hover {
  background: #0056b3;
}
ul {
  list-style: none;
  padding: 0;
}
li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .5rem;
  border-bottom: 1px solid #ddd;
}
li.completed span.title {
  text-decoration: line-through;
  color: gray;
}
.task-info {
  display: flex;
  flex-direction: column;
}
.task-actions button {
  margin-left: .5rem;
}
.confetti {
  position: absolute;
  width: 18px;
  height: 18px;
  font-size: 18px;
  animation: confetti-fall 1.5s linear forwards;
}

@keyframes confetti-fall {
  to {
    transform: translateY(180px) rotate(360deg);
    opacity: 0;
  }
}
