body {
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #2a2abf, #6a5cff, #9f7bff);
  display: flex;
  justify-content: center;
  padding: 50px;
  min-height: 100vh;
}

.container {
  background: linear-gradient(145deg, #ffffffcc, #e9e6ffcc);
  backdrop-filter: blur(10px);
  padding: 40px;
  width: 500px;
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
}

.container:hover {
  transform: translateY(-3px);
}

h1 {
  text-align: center;
  color: #271585;
}

.subtitle {
  text-align: center;
  font-size: 13px;
  color: gray;
  margin-bottom: 10px;
}

.stats {
  display: flex;
  justify-content: space-between;
  margin: 15px 0;
}

#total, #active, #completed {
  color: #2c08e3;
  font-weight: bold;
}

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

input {
  flex: 1;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  outline: none;
}

input:focus {
  border-color: #6a5cff;
  box-shadow: 0 0 5px rgba(106, 92, 255, 0.4);
}

/* BUTTON BASE STYLE */
button {
  padding: 10px 14px;
  cursor: pointer;
  border-radius: 8px;
  border: none;
  transition: all 0.2s ease;
}

/* ADD BUTTON */
#addBtn {
  background: #007bff;
  color: white;
}

#addBtn:hover {
  background: #0056d2;
  transform: scale(1.05);
}

/* FILTER BUTTONS */
.filters {
  margin: 15px 0;
  display: flex;
  justify-content: space-between;
}

.filter {
  background: #f0f0f0;
}

.filter:hover {
  background: #6a5cff;
  color: white;
  transform: translateY(-2px);
}

/* ACTIVE FILTER */
.filter.active {
  background: #7ab1eb;
  color: rgb(8, 40, 223);
  border: 2px solid #2c08e3;
}

/* TASK LIST */
ul {
  list-style: none;
  padding: 0;
  background-color: #f2f1f6d4;
  border-radius: 12px;
  overflow: hidden;
}

li {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  border-bottom: 1px solid #ddd;
  transition: background 0.2s ease;
}

li:hover {
  background: #ecebff;
}

li.completed span {
  text-decoration: line-through;
  color: gray;
}

/* TASK ITEM */
.task-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

input[type="checkbox"] {
  accent-color: #007bff;
  cursor: pointer;
}

/* DELETE BUTTON */
li button {
  background: transparent;
  font-size: 16px;
}

li button:hover {
  color: red;
  transform: scale(1.2);
}

/* CLEAR COMPLETED */
#clearCompleted {
  margin-top: 15px;
  width: 100%;
  background: #ff4d4d;
  color: white;
}

#clearCompleted:hover {
  background: #cc0000;
  transform: translateY(-2px);
}