* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  min-height: 100vh;
  background: radial-gradient(circle at top, #2b000a 0%, #050510 35%, #020208 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  overflow: hidden;
}

.background-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  background: rgba(255, 0, 76, 0.12);
  filter: blur(120px);
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  z-index: 0;
}

.container {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 20px;
  position: relative;
  z-index: 1;
}

.todo-card {
  width: 100%;
  max-width: 460px;
  background: rgba(10, 10, 18, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  padding: 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
}

.todo-card h1 {
  text-align: center;
  color: #ff4d73;
  margin-bottom: 25px;
  font-size: 2rem;
}

.input-area {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.input-area input {
  flex: 1;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: #131320;
  color: white;
  outline: none;
  font-size: 15px;
  transition: 0.3s;
}

.input-area input:focus {
  border-color: #ff4d73;
  box-shadow: 0 0 10px rgba(255, 77, 115, 0.25);
}

.input-area button,
#clearAllBtn,
.filter-btn,
.delete-btn {
  border: none;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

.input-area button {
  background: linear-gradient(135deg, #ff2f5b, #b3123f);
  padding: 0 18px;
  border-radius: 12px;
  font-weight: bold;
}

.input-area button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(255, 47, 91, 0.3);
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

#taskCounter {
  color: #cfcfd6;
  font-size: 14px;
}

#clearAllBtn {
  background: #1a1a28;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
}

#clearAllBtn:hover {
  border-color: #ff4d73;
  color: #ff4d73;
}

.filters {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.filter-btn {
  flex: 1;
  background: #141421;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 14px;
}

.filter-btn.active {
  background: linear-gradient(135deg, #ff2f5b, #a80f35);
}

#taskList {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.task-item {
  background: #141421;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 14px 16px;
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: fadeIn 0.25s ease;
}

.task-text {
  flex: 1;
  cursor: pointer;
  word-break: break-word;
  transition: 0.3s;
}

.task-item.completed .task-text {
  text-decoration: line-through;
  opacity: 0.5;
}

.delete-btn {
  background: linear-gradient(135deg, #ff2f5b, #a80f35);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-weight: bold;
  font-size: 16px;
  margin-left: 12px;
}

.delete-btn:hover {
  transform: scale(1.08);
}

.empty-message {
  text-align: center;
  color: #9a9aa5;
  padding: 14px 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
