/* styles/todo.css — task rows styled like reminders, with labels restored */

/* Composer & controls */
.todo-form.card{ margin-bottom:12px; }
.todo-controls{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  margin:10px 0 12px;
}
.todo-controls .filters{ display:inline-flex; gap:8px; }
.filter{
  padding:8px 12px; border-radius:10px; border:1px solid var(--border);
  background:transparent; color:#cfe3ff;
}
.filter.active{ background:rgba(255,255,255,.06); }
.todo-list{ list-style:none; margin:0; padding:0; }

/* --- Composer layout: task gets more space; date + Add pinned right --- */
#todo-form .composer{
  display:grid;
  grid-template-columns: 1.5fr 1fr auto auto; /* task | labels | No date | Add */
  gap:10px;
  align-items:center;
}
#todo-input{ width:100%; }
#todo-labels{ width:100%; }
#todo-due-btn{ white-space:nowrap; }

/* Row — flex layout like reminders */
.todo-row{
  display:flex; align-items:center; gap:16px;
  width:100%; min-height:52px; padding:8px 16px;
  border-bottom:2px solid rgba(255,255,255,.18);
}
.todo-row:last-child{ border-bottom:none; }

/* Checkbox */
.todo-check{ display:flex; align-items:center; justify-content:center; }
.todo-check input{ width:20px; height:20px; cursor:pointer; }

/* Title + labels (chips) */
.todo-title{
  font-weight:800; font-size:20px; color:#e9f0ff; letter-spacing:.01em;
  min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  flex:1;
}
.todo-title .txt{ vertical-align:middle; }
.todo-tags{
  display:inline-flex; align-items:center; gap:6px;
  margin-left:10px; vertical-align:middle; flex-wrap:wrap;
}
.chip{
  display:inline-flex; align-items:center;
  padding:4px 8px; line-height:1;
  border-radius:999px; border:1px solid var(--border);
  background:rgba(255,255,255,.05); color:#cfe3ff;
  font-size:12px;
}

/* Due pill (small) */
.todo-due{
  padding:4px 10px; font-size:14px; border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.08); color:#d7e6ff; white-space:nowrap;
}

/* Actions */
.todo-edit{ margin-left:auto; }
.todo-edit, .todo-del{
  padding:6px 12px; font-size:14px; min-width:unset;
}
.todo-del{ border-color: rgba(255,120,120,.45); color:#ffd1d1; }

/* Done state */
.todo-row.done .todo-title{ text-decoration:line-through; opacity:.7; }

/* Small screens */
@media (max-width: 720px){
  #todo-form .composer{
    grid-template-columns: 1fr auto auto; /* stack labels under task if needed */
    grid-auto-flow: row;
  }
  #todo-labels{ grid-column: 1 / -1; }
  .todo-row{ gap:12px; }
}