:root {
  --primary-color: #ff9a9e;
  --secondary-color: #ff6b6b;
  --background-color: #f9f9f9;
  --button-hover-color: #3b82db;
}

body {
  font-family: 'Arial', sans-serif;
  background: linear-gradient(135deg, var(--primary-color), #fad0c4);
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
}

.container {
  text-align: center;
  background: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  animation: fadeIn 1s ease-in-out;
}

h1 {
  color: #333;
  font-size: 2.5rem;
  margin-bottom: 20px;
  animation: slideDown 1s ease-out;
}

.input-section {
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

#taskInput, #taskDate, #taskPriority {
  padding: 10px;
  border: 2px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  width: 150px;
}

#addTaskBtn {
  padding: 10px 20px;
  background: var(--button-hover-color);
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#addTaskBtn:hover {
  background: var(--secondary-color);
}

#taskList {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  max-height: 300px;
  overflow-y: auto;
}

#taskList li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--background-color);
  padding: 10px;
  margin: 10px 0;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  animation: popIn 0.5s ease-in-out;
}

#taskList li .task-details {
  flex-grow: 1;
}

#taskList li .deleteBtn {
  background: var(--secondary-color);
  border: none;
  border-radius: 50%;
  color: white;
  padding: 10px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#taskList li .deleteBtn:hover {
  background: #ff4a4a;
}

#loader {
  font-size: 1.5rem;
  color: var(--secondary-color);
  display: none;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes popIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
