* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(to right, #f5f7fa, #c3cfe2);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px;
}

/* Layout */
.container {
  display: flex;
  flex-direction: row;
  gap: 30px;
  width: 90%;
  max-width: 1200px;
}

/* Left & Right Panels */
.left-panel, .right-panel {
  background-color: #fff;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  flex: 1;
}

.left-panel h1 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

.task-form input,
.task-form select,
.task-form button {
  display: block;
  width: 100%;
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 8px;
  font-size: 16px;
}

.task-form button {
  background-color: #4CAF50;
  color: white;
  border: none;
  font-weight: bold;
  cursor: pointer;
}

.task-form button:hover {
  background-color: #45a049;
}

/* Right Side */
.search-and-clear {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.search-and-clear input {
  flex: 1;
  padding: 8px;
}

.search-and-clear button {
  padding: 8px 12px;
  border: none;
  background-color: #f44336;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}

.filters {
  margin-bottom: 15px;
}

.filters button {
  margin-right: 10px;
  padding: 5px 10px;
  background-color: #ddd;
  border-radius: 5px;
  cursor: pointer;
  border: none;
}

ul#taskList {
  list-style: none;
  max-height: 400px;
  overflow-y: auto;
}

#taskList li {
  background: #f0f0f0;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.priority {
  padding: 2px 6px;
  border-radius: 5px;
  margin-left: 10px;
  font-size: 0.8em;
  font-weight: bold;
  color: white;
}

.priority.low {
  background-color: #4caf50;
}

.priority.medium {
  background-color: #ff9800;
}

.priority.high {
  background-color: #f44336;
}
#taskList li.completed {
  text-decoration: line-through;
  color: gray;
  opacity: 0.7;
  background-color: #e0ffe0;
  animation: completeTask 0.3s ease-in-out;
}

@keyframes completeTask {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.delete-btn {
  background-color: #ff4d4d;
  border: none;
  padding: 5px 10px;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}

/* Dark Mode */
body.dark-mode {
  background-color: #121212;
  color: #ffffff;
}
.container.dark-mode .left-panel,
.container.dark-mode .right-panel {
  background-color: #1e1e1e;
  color: white;
}
#darkModeToggle {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 10px 15px;
  background-color: #555;
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }
}
/* Task Added Notification */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #4CAF50;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  z-index: 999;
}

.notification.show {
  opacity: 1;
}