body {
  font-family: Arial, sans-serif;
  background: var(--bg);
  justify-content: center;
  padding-top: 50px;
  color: var(--text);
  display: grid;
  align-items: center;
}
:root {
  --bg: #f5f6f8;
  --card: #ffffff;
  --text: #111111;
  --accent: #4f46e5;
  
}
body.dark {
  --bg: #1b1b1b;
  --card: #3c36b3;
  --text: #535353;
}
.todo-app {
  background: var(--card);
}
header{
  display: flex;
  justify-content: space-between;
}

.app {
  background: white;
  padding: 20px;
  width: 650px;
  border-radius: 10px;
  
}

input {
  padding: 15px;
  border: #000000 1px solid;
  border-radius: 20px;
}
textarea{
  padding: 15px;
  border: #000000 1px solid;
  border-radius: 20px;
}

button {
  padding: 5px 10px;
}

ul {
  list-style-type: none;
  padding-left: 0;
}

li {
  padding: 5px 0;
  cursor: pointer;
}

.done {
  text-decoration: line-through;
  color: gray;
}
li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
}
.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.tab {
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  font-weight: 500;
}

.tab.active {
  background: var(--accent);
  color: white;
}






/*Карточки*/
.todo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  padding-top: 16px;
}

.todo-card {
  background: var(--card);
  padding: 16px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.todo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.todo-card.done {
  opacity: 0.6;
  text-decoration: line-through;
}

.todo-card button {
  align-self: flex-end;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
}






.todo-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.todo-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    display: grid;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
}

.todo-card.done {
    opacity: .6;
    text-decoration: line-through;
}

.todo-card .deadline {
    font-size: 14px;
    color: #777;
}


.todo-card.overdue {
    border: 2px solid #ff4d4d;
}

#todoForm{
  display: grid;
  width: 500px;
  gap: 10px;
}