* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  user-select:none;
}

body {
  background: #f5f5f5;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.todo-container {
  background: #ffffff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 500px;
}

.todo-container h1 {
  text-align: center;
  margin-bottom: 20px;
  color: #222;
  font-size: 1.8rem;
}

#todo-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  align-items: center;
}

#todo-form input[type="text"],
#todo-form input[type="date"] {
  flex: 1;
  padding: 10px;
  border: 1.5px solid #ccc;
  border-radius: 8px;
  transition: border-color 0.3s;
}

#todo-form input:focus {
  border-color: #007bff;
  outline: none;
}

#todo-form button {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s, transform 0.2s;
}

#todo-form button[type="submit"] {
  background: #007bff;
  color: #fff;
}

#clear-task {
  background: #dc3567;
  color: #fff;
}

#filter-button {
  background: #ffc107;
  color: #333;
  border-radius: 8px;
  padding: 10px 20px;
  border: none;
  margin-right: 10px;
  transition:background 0.3s, transform 0.2s;
}
#filter-button:hover {
  transform: scale(1.01);
  opacity: 0.8;
  background-color:#ffc100;
}

#todo-form button:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

#filter-options {
  padding: 10px;
  border-radius: 8px;
  border: 1.5px solid #ccc;
  cursor: pointer;
  font-weight: 500;
  margin-left: 5px;
}

.filter-container {
  display: flex;
  gap: 10px;         
  margin-bottom: 20px; 
  align-items: center;
}


#todo-list {
  list-style: none;
  margin-top: 15px;
}

#todo-list li {
  background: #fafafa;
  padding: 12px 15px;
  margin-bottom: 10px;
  border-radius: 8px;
  border: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s;
}

#todo-list li:hover {
  background: #edf7fd;
}

#todo-list li span {
  font-size: 1rem;
}

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

.task-nav button {
  border: none;
  background: #e0e0e0;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.task-nav button:hover {
  background: #007bff;
  color: #fff;
  transform: scale(1.1);
}

.done {
  text-decoration: line-through;
  color: #888;
}