body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: white;
  display: flex;
  justify-content: center;
}

.container {
  margin-top: 60px;
  width: 420px;
  background: rgba(30, 41, 59, 0.9);
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

h1 {
  text-align: center;
  margin-bottom: 20px;
}

.input-box {
  display: flex;
  gap: 8px;
}

input {
  padding: 10px;
  border-radius: 8px;
  border: none;
  outline: none;
}

#taskInput {
  flex: 1;
}

button {
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: #22c55e;
  color: white;
  cursor: pointer;
  transition: 0.2s;
}

button:hover {
  background: #16a34a;
}

ul {
  margin-top: 20px;
  padding: 0;
}

li {
  list-style: none;
  background: #334155;
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.task-text {
  flex: 1;
  text-align: left;
  cursor: pointer;
}

.task-text small {
  display: block;
  font-size: 12px;
  color: #94a3b8;
}

.completed {
  text-decoration: line-through;
  opacity: 0.6;
}

.actions i {
  margin-left: 10px;
  cursor: pointer;
}

.fa-pen {
  color: #38bdf8;
}

.fa-trash {
  color: #ef4444;
}