body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 1rem;
  background: #f9f9f9;
  color: #333;
}

h1 {
  text-align: center;
  color: #0078d7;
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

input, button {  
  font-size: 16px;
  line-height: 1.4;      /* comfortable spacing */
  padding: 0.5rem 0.75rem;
  box-sizing: border-box;    
  border-radius: 8px;
  border: 1px solid #ccc;
}

button {
  padding: 0.5rem 1rem;
  background: #0078d7;
  color: white;
  border: none;
  cursor: pointer;
}

button:hover {
  background: #005fa3;
}

ul {
  list-style: none;
  padding: 0;
}

li {
  background: white;
  margin-bottom: 0.75rem;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

li button {
  background: #0078d7;
  color: white;
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
}

li button:hover {
  background: #005fa3;
}

.toggle-btn, .delete-btn {
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
}

.toggle-btn {
  color: white;
}

.delete-btn {
  background: red;
  color: white;
  margin-left: 8px;
}

.font-small {
  font-size: 12px;
}


#listSelector {
  display: flex;
  align-items: center;
  gap: 10px; /* space between input and button */
  margin-bottom: 15px; /* spacing before the task form */
}

#listSelector input {
  flex: 1; /* make the textbox expand to match other inputs */
  padding: 0.5rem;
}

/* Mobile responsiveness */
@media (max-width: 500px) {
  body {
    padding: 0.5rem;
  }
  input, button {
    font-size: 0.9rem;
    padding: 0.6rem;
  }
}


