body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to right, #83a4d4, #b6fbff);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 60px;
  color: #333;
}

h1 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 28px;
  color: #2c3e50;
}

.input-section {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

#task-input {
  flex: 1;
  padding: 12px 15px;
  font-size: 16px;
  border: 2px solid #3498db;
  border-radius: 6px;
  outline: none;
  transition: 0.3s;
}

#task-input:focus {
  border-color: #2980b9;
  box-shadow: 0 0 5px rgba(41, 128, 185, 0.4);
}

#add-task {
  padding: 12px 20px;
  font-size: 16px;
  border: none;
  background-color: #3498db;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

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

#task-list {
  list-style: none;
  padding: 0;
  max-height: 300px;
  overflow-y: auto;
}

.task {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  background: #f0f0f0;
  margin-bottom: 10px;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.task:hover {
  background: #e2e2e2;
}

.task.completed span {
  text-decoration: line-through;
  color: #888;
}

.task button {
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 10px;
  font-size: 18px;
  padding: 5px;
  border-radius: 4px;
  transition: 0.3s;
}

.task i {
  pointer-events: none;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.container {
  background: #fff;
  margin-top: 100px;
  padding: 20px 30px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 400px;
}

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










.complete-btn {
  color: green;
}

.complete-btn:hover {
  background: rgba(46, 204, 113, 0.1);
}

.delete-btn {
  color: red;
}

.delete-btn:hover {
  background: rgba(231, 76, 60, 0.1);
}
