/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* Background */
body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #667eea, #764ba2);
}

/* Container principal */
#container {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 25px 20px;
  border-radius: 16px;
  width: px;
  max-width: 90%;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  animation: fadeIn 0.6s ease-in-out;
}

/* Input + bouton d’ajout */
#new-task {
  width: calc(100% - 90px);
  padding: 12px;
  border: none;
  border-radius: 8px;
  outline: none;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.8);
}

#add-task {
  padding: 12px 18px;
  margin-top: 6px;
  margin-left: 6px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

#add-task:hover {
  background: #4a5fd0;
  transform: translateY(-2px);
}

/* Liste des tâches */
#task-list {
  list-style: none;
  margin-top: 18px;
  padding: 0;
}

#task-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

#task-list li:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

/* Checkbox */
#task-list li input[type="checkbox"] {
  margin-right: 10px;
  accent-color: #667eea;
  cursor: pointer;
}

/* Texte */
#task-list li span {
  flex-grow: 1;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  word-break: break-word;
}

/* Date input */
#task-list li input[type="date"] {
  margin-left: 10px;
  font-size: 12px;
  padding: 4px;
  border-radius: 6px;
  border: none;
  outline: none;
  background: rgba(255, 255, 255, 0.6);
}

/* Boutons */
#task-list li button {
  margin-left: 6px;
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s ease;
}

#task-list li button:first-of-type {
  background-color: #28a745;
  color: white;
}

#task-list li button:first-of-type:hover {
  background-color: #218838;
}

#task-list li button:last-of-type {
  background-color: #dc3545;
  color: white;
}

#task-list li button:last-of-type:hover {
  background-color: #b02a37;
}

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