* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

body {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: #e2e8f0;
}

.app {
  width: 100%;
  max-width: 720px;
}

.card {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

h1 {
  margin-bottom: 8px;
}

.subtitle {
  color: #94a3b8;
  margin-bottom: 18px;
}

.task-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-bottom: 16px;
}

input, select, button {
  border: none;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 1rem;
}

input, select {
  background: #e2e8f0;
  color: #0f172a;
}

button {
  background: #38bdf8;
  color: #0f172a;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.secondary {
  background: #334155;
  color: #e2e8f0;
}

.toolbar {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.task-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.task-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  background: #1e293b;
  border-radius: 14px;
  padding: 14px;
}

.task-item.done .task-text {
  text-decoration: line-through;
  color: #94a3b8;
}

.task-actions {
  display: flex;
  gap: 8px;
}

.task-actions button {
  padding: 10px 12px;
  font-size: 0.9rem;
}

.empty-state {
  text-align: center;
  margin-top: 18px;
  color: #94a3b8;
}

@media (max-width: 600px) {
  .task-form {
    grid-template-columns: 1fr;
  }

  .toolbar {
    flex-direction: column;
  }

  .task-item {
    grid-template-columns: 1fr;
  }

  .task-actions {
    justify-content: flex-end;
  }
}
