body {
  font-family: 'Poppins', Arial, sans-serif;
  background: linear-gradient(135deg, #89f7fe, #66a6ff);
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;  
  align-items: center;  
  height: 100vh;        
}

.container {
  max-width: 600px;
  width: 100%;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

h1 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
  letter-spacing: 1px;
}

form {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

input[type="text"], input[type="date"], select {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 14px;
  transition: 0.3s;
}

input:focus, select:focus {
  border-color: #007bff;
  box-shadow: 0 0 6px rgba(0,123,255,0.3);
  outline: none;
}

button {
  padding: 10px 16px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  background: #007bff;
  color: white;
  font-weight: 500;
  transition: 0.3s;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

button:hover {
  background: #0056b3;
  transform: scale(1.05);
}

button.edit {
  background: #28a745;
}

button.delete {
  background: #dc3545;
}

.actions button {
  margin-left: 6px;
  font-size: 12px;
  padding: 6px 12px;
}

.controls {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 8px;
}

#searchInput {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 14px;
}

.filters button {
  background: #6c757d;
  margin-left: 4px;
}

.filters button:hover {
  background: #5a6268;
}

ul {
  list-style: none;
  padding: 0;
}

li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.9);
  margin-bottom: 12px;
  padding: 12px 15px;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s;
}

li.show {
  opacity: 1;
  transform: translateY(0);
}

li:hover {
  background: rgba(245,245,245,1);
  transform: scale(1.02);
}

li.completed span {
  text-decoration: line-through;
  color: gray;
}

.priority {
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 6px;
  margin-left: 8px;
  color: white;
  font-weight: bold;
}

.priority.personal {
  background: #17a2b8;
}

.priority.work {
  background: #007bff;
}

.priority.urgent {
  background: #dc3545;
}

.due-date {
  font-size: 12px;
  margin-left: 10px;
  color: #555;
}

.visually-hidden {
  position: absolute;
  left: -9999px;
}

@media (max-width: 480px) {
  form {
    flex-direction: column;
  }
  .controls {
    flex-direction: column;
  }
}
