* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(to top, #dfe9f3 0%, white 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: all 0.3s ease-in-out;
}

.app-container {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 40px;
  text-align: center;
  width: 100%;
  max-width: 450px;
  transition: transform 0.3s ease;
  transform: translateY(30px);
  animation: slideUp 0.6s ease-out forwards;
}

.input-task {
  padding: 10px;
  width: 80%;
  font-size: 16px;
  border: 2px solid #4caf50;
  border-radius: 5px;
  margin-bottom: 20px;
  background: #f9f9f9;
  transition: all 0.3s ease-in-out;
}

.input-task:focus {
  border-color: #2e7d32;
  outline: none;
  background: #fff;
}

.add-btn {
  padding: 12px 25px;
  background-color: #4caf50;
  border: none;
  color: white;
  font-size: 18px;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.add-btn:hover {
  background-color: #45a049;
  transform: scale(1.1);
}

.task-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.task-item {
  margin-bottom: 15px;
}

.task-text {
  word-break: break-word;
  display: block;
  margin-bottom: 10px;
}

.task-item.completed .task-text {
  text-decoration: line-through;
}

.task-item.completed button:first-child {
  text-decoration: line-through;
}

.task-item.completed button:last-child {
  text-decoration: none;
}

.task-item button {
  padding: 8px 12px;
  border: none;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
}

.task-item button:first-child {
  background-color: #4caf50; /* ✅ green for complete */
}

.task-item button:first-child:hover {
  background-color: #43a047;
}

.task-item button:last-child {
  background-color: #00897b; /* ❌ green-ish for delete */
}

.task-item button:last-child:hover {
  background-color: #00695c;
}

.status-container {
  margin-top: 30px;
}

.points {
  font-size: 22px;
  font-weight: bold;
  color: #4caf50;
  margin-bottom: 15px;
}

.progress-bar-container {
  background-color: #ddd;
  border-radius: 5px;
  width: 100%;
  height: 25px;
  margin-top: 10px;
}

.progress-bar {
  height: 100%;
  background-color: #4caf50;
  width: 0%;
  border-radius: 5px;
  transition: width 0.4s ease-in-out;
}

.task-completion-message {
  margin-top: 20px;
  font-size: 18px;
  font-weight: bold;
  color: #2e7d32;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 2s forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
  }
  to {
    transform: translateY(0);
  }
}
