:root {
  font-family: Arial, sans-serif;
  color: #0f172a;
  background: #f8fafc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1rem;
  display: grid;
  gap: 1rem;
}

.card {
  background: white;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
}

input,
select,
textarea,
button {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  font: inherit;
}

button {
  cursor: pointer;
  background: #2563eb;
  color: white;
}

.heading-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.task-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.task-item {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.8rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.task-title {
  margin: 0;
}

.task-meta,
.task-notes {
  margin: 0.25rem 0 0;
  color: #475569;
  font-size: 0.9rem;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.danger {
  background: #dc2626;
}

.completed .task-title {
  text-decoration: line-through;
  color: #64748b;
}
