
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(120deg, #e0eafc, #cfdef3);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.container {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 500px;
}

h1 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

form {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

form input, form select, form button {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

form button {
  background-color: #4caf50;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button:hover {
  background-color: #45a049;
}

#filters {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
}

.filter-btn {
  background-color: #ddd;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.filter-btn.active, .filter-btn:hover {
  background-color: #4caf50;
  color: white;
}

ul#task-list {
  list-style: none;
}

.task-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  margin-bottom: 10px;
  background-color: #f1f1f1;
  border-radius: 8px;
  animation: fadeIn 0.3s ease-in-out;
}

.task-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.task-item.completed .task-text {
  text-decoration: line-through;
  color: gray;
}

.task-actions button {
  margin-left: 5px;
  border: none;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.task-actions .edit-btn {
  background-color: #ffc107;
  color: white;
}

.task-actions .delete-btn {
  background-color: #f44336;
  color: white;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
