.todo-container {
  background: #fff;
  padding: 25px;
  margin: 30px auto;
  border-radius: 5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  font-family: "Poppins", sans-serif;
}

.todo-heading {
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  color: #222;
  margin-bottom: 20px;
}

.add-task {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.add-task input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  outline: none;
  font-size: 14px;
  transition: 0.3s ease;
}

.add-task input:focus {
  border-color: #ab3fbe;
  box-shadow: 0 0 5px rgba(171, 63, 190, 0.2);
}

.add-task .btn {
  background: #ab3fbe;
  border: none;
  color: #fff;
  padding: 10px 25px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: 0.3s ease;
}

.add-task .btn:hover {
  background: #620672;
  box-shadow: 0 3px 10px rgba(171, 63, 190, 0.3);
  color: #fff;
    transform: translateX(4px);
}

/* Grid layout for tasks */
.task-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.task-item {
  flex: 0 0 calc(50% - 8px);
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 5px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.task-item:first-child {
  background: #f0f8ff;
}
.task-item:nth-child(2) {
  background: #f5fae2;
}
.task-item:nth-child(3) {
  background: #f3d4c5;
}
.task-item:nth-child(4) {
  background: #e2f0f1;
}
.task-item:nth-child(5) {
  background: #fff0f5;
}
.task-item:nth-child(6) {
  background: #fff5e6;
}


.task-item:hover {
  background: #f0f8ff;
  border-color: #d6e9ff;
}

.task-item input[type="checkbox"] {
  margin-right: 10px;
  accent-color: #ab3fbe;
  transform: scale(1.2);
  cursor: pointer;
}

.task-item span {
  flex: 1;
  color: #333;
  font-size: 15px;
  cursor: pointer;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.task-item.completed span {
  text-decoration: line-through;
  color: #999;
}

.task-item button {
  background: none;
  border: none;
  cursor: pointer;
  color: #777;
  font-size: 16px;
  margin-left: 8px;
  transition: color 0.3s ease;
}

.task-item .delete-btn:hover {
  color: #dc3545;
}

@media (max-width: 600px) {
  .task-item {
    flex: 0 0 100%;
  }
}
