html, body {
  font-family: sans-serif;
  background: #f4f4f4;
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}
header {
  padding-left: 10px;
  display: flex;
  justify-content: space-between;
}
main {
  margin: 10px;
  flex: 1;
}
#addButton {
  aspect-ratio: 1 / 1;  
  width: 100px; 
  height: 100px;
  font-size: 75px;  
  background-color: dodgerblue;
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 0 0 3rem;
}
ul {
  list-style: none;
  padding: 0;
}
li {
  background: white;
  margin: 10px 0;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-left: 8px solid gray;
  cursor: grab;
}
li.dragging {
  opacity: 0.5;
}

.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}
.modal.hidden {
  display: none;
}
.modal-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-content input, .modal-content select {
  padding: 10px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
}

.modal-buttons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.modal-buttons button {
  flex: 1;
  padding: 10px;
  font-size: 1em;
  background-color: dodgerblue;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.modal-buttons button:hover {
  background-color: deepskyblue;
}


footer {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: space-around;
}
footer button {
  padding: 16px 32px;
  font-size: 1rem;
  background: dodgerblue;
  color: white;
  border: none;
  border-radius: 1rem 1rem 0 0;
  cursor: pointer;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
}
footer button:hover {
  background: deepskyblue;
}


/* to-do list item styling */
select {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: #f0f0f0;
  color: #333;
  font-size: 1em;
  cursor: pointer;
  appearance: none; /* Removes default arrow on some browsers */
}

.complete-btn {
  background-color: #f0f0f0;
  color: #555;
  border: none;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
}

.archive-btn {
  background-color: #f0f0f0;
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
}

/* drag and drop for mobile */
.dragging {
  opacity: 0.6;
  z-index: 1000;
  position: relative;
}
