body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #121212;
  color: #f2f2f2;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 40px 20px;
}

.container {
  width: 100%;
  max-width: 600px;
  background: #1e1e2f;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

h1 {
  text-align: center;
  color: #00ffd5;
  margin-bottom: 25px;
}

.task-input {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.task-input input,
.task-input button {
  padding: 10px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
}

#taskInput {
  flex: 2;
}

#dateInput {
  flex: 1.5;
}

#addBtn {
  flex: 1;
  background: #00ffd5;
  color: #000;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

#addBtn:hover {
  background: #00c9aa;
}

ul {
  list-style: none;
  padding: 0;
}

li {
  background: #292942;
  margin-bottom: 12px;
  padding: 15px;
  border-radius: 8px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: 0.3s;
}

li.completed {
  text-decoration: line-through;
  color: #888;
  background: #2e2e2e;
}

.task-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.task-top span {
  flex: 1;
  font-weight: bold;
}

.task-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.task-actions button {
  background: none;
  border: none;
  color: #00ffd5;
  font-size: 16px;
  cursor: pointer;
}

.task-actions button:hover {
  color: #ff4081;
}

@media screen and (max-width: 500px) {
  .task-input {
    flex-direction: column;
  }
}