body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  padding-top: 5rem;
  background-color: #f7f9fc;
}

h1 {
  color: #2c3e50;
  text-align: center;
  margin-bottom: 30px;
}

.task-form {
  display: flex;
  margin-bottom: 20px;
}

.task-input {
  flex: 1;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 4px 0 0 4px;
}

.add-button {
  padding: 10px 15px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-size: 16px;
}

.add-button:hover {
  background-color: #2980b9;
}

.task-list {
  list-style: none;
  padding: 0;
}

.task-item {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  background-color: white;
  border-radius: 4px;
  margin-bottom: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.3s ease;
}

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

.task-text {
  flex: 1;
  margin-left: 10px;
}

.complete-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.task-item.completed .task-text {
  text-decoration: line-through;
  color: #95a5a6;
}

.delete-button {
  background-color: #e74c3c;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 14px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.delete-button:hover {
  opacity: 1;
}

.empty-list {
  text-align: center;
  color: #7f8c8d;
  font-style: italic;
  padding: 20px;
}

.task-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  color: #7f8c8d;
  font-size: 14px;
}
