* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  height: 100vh;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
}

.container {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.todo-card {
  width: 380px;
  background: #121212;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h1 {
  text-align: center;
  color: #ffffff;
  margin-bottom: 20px;
}

h1 i {
  color: #00f2fe;
}

.input-box {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.input-box input {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: none;
  outline: none;
  background: #1f1f1f;
  color: white;
}

.input-box button {
  padding: 10px 14px;
  background: linear-gradient(135deg, #00f2fe, #4facfe);
  border: none;
  border-radius: 8px;
  color: black;
  cursor: pointer;
  transition: 0.3s;
}

.input-box button:hover {
  transform: scale(1.1);
}

ul {
  list-style: none;
}

li {
  background: #1e1e1e;
  color: white;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

li.completed span {
  text-decoration: line-through;
  color: gray;
}

.actions i {
  margin-left: 10px;
  cursor: pointer;
  transition: 0.2s;
}

.actions i:hover {
  transform: scale(1.3);
}

.fa-check {
  color: #00ff88;
}

.fa-trash {
  color: #ff4d4d;
}
