body {
  background: #232142;
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  color: #fff;
}

.container {
  background: #31285c;
  margin: 3em auto;
  max-width: 500px;
  padding: 2em;
  border-radius: 1em;
  box-shadow: 0 6px 48px #0002;
}

h1 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 1em;
}

#todo-form {
  display: flex;
  gap: 0.5em;
  margin-bottom: 1.5em;
}

#task-input, #task-datetime, #todo-form button {
  font-size: 1em;
  padding: 0.6em 0.8em;
  border-radius: 0.5em;
  border: none;
  outline: none;
}

#task-input, #task-datetime {
  flex: 2;
}

#todo-form button {
  flex: 1;
  background: #6d5dfc;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}
#todo-form button:hover {
  background: #8f81fd;
}

#task-list {
  list-style-type: none;
  padding: 0;
}

.task-item {
  background: #3a2d5d;
  margin-bottom: 0.8em;
  border-radius: 8px;
  padding: 1em;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.task-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.task-title.completed {
  text-decoration: line-through;
  opacity: 0.7;
}

.task-actions button {
  margin-left: 0.3em;
  padding: 0.2em 0.7em;
  background: #6d5dfc;
  border: none;
  color: #fff;
  border-radius: 0.3em;
  cursor: pointer;
  font-size: 0.9em;
}
.task-actions button:hover {
  background: #8f81fd;
}
.task-datetime {
  font-size: 0.85em;
  color: #cbc9d8;
}

@media (max-width: 500px) {
  .container { max-width: 95vw; padding: 1em; }
  #todo-form { flex-direction: column; gap: 0.7em; }
}
