body {
  font-family: "Poppins", sans-serif;
  background-color: #0f172a;
  color: #e2e8f0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

.container {
  background: #1e293b;
  padding: 30px 25px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.4);
  width: 400px;
  max-width: 90%;
  text-align: center;
}

h1 {
  color: #38bdf8;
  margin-bottom: 20px;
}

/* Input */
.input-box {
  display: flex;
  justify-content: space-between;
  background: #334155;
  border-radius: 8px;
  overflow: hidden;
}

#task-input {
  flex: 1;
  border: none;
  padding: 12px;
  background: transparent;
  color: #e2e8f0;
  font-size: 1rem;
  outline: none;
}

#add-btn {
  background: #38bdf8;
  border: none;
  color: #0f172a;
  padding: 12px 18px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}
#add-btn:hover {
  background: #0ea5e9;
}

/* Search */
.search-box {
  margin-top: 15px;
  background: #334155;
  border-radius: 8px;
  overflow: hidden;
}
#search-input {
  width: 100%;
  border: none;
  padding: 10px 12px;
  background: transparent;
  color: #e2e8f0;
  outline: none;
}

/* Filters */
.filters {
  display: flex;
  justify-content: center;
  margin-top: 15px;
  gap: 10px;
}

.filter-btn {
  background: #334155;
  color: #e2e8f0;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
  transition: 0.3s;
}
.filter-btn:hover {
  background: #475569;
}
.filter-btn.active {
  background: #38bdf8;
  color: #0f172a;
  font-weight: 600;
}

/* Task List */
#task-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  text-align: left;
}

.task {
  background: #334155;
  margin-bottom: 10px;
  padding: 12px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.task.completed {
  text-decoration: line-through;
  opacity: 0.6;
}
.task button {
  background: transparent;
  border: none;
  color: #38bdf8;
  font-size: 1rem;
  cursor: pointer;
  margin-left: 6px;
  transition: 0.3s;
}
.task button:hover {
  color: #0ea5e9;
}

/* Empty Message */
#empty-msg {
  color: #94a3b8;
  margin-top: 15px;
  font-size: 0.9rem;
}

/* Clear All */
#clear-btn {
  margin-top: 15px;
  background: #ef4444;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}
#clear-btn:hover {
  background: #dc2626;
}

/* Smooth completion transition */
.task.completed {
  transition: all 0.4s ease;
}

/* Responsive */
@media (max-width: 480px) {
  .container {
    padding: 25px 20px;
  }
  #task-input {
    font-size: 0.9rem;
  }
  .filter-btn {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
}
