body {
  font-family: 'Orbitron', sans-serif;
  background-color: #f3e5f5;
  margin: 0;
  padding: 0;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #9c27b0;
  padding: 10px;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}

.nav-title {
  color: white;
  margin: 0;
}

.nav-buttons {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 10px;
}

button {
  background-color: #ab47bc;
  color: white;
  padding: 12px 18px;
  border-radius: 15px;
  font-size: 16px;
  border: none;
  cursor: pointer;
}

button:focus {
  outline: none;
}

button:hover {
  background-color: #ba68c8;
}

.hidden {
  display: none;
}

#listContainer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  padding: 15px;
}

.list {
  background-color: #ce93d8;
  padding: 10px;
  border-radius: 15px;
  width: 250px;
  position: relative;
}

#lists h2 {
  text-align: center;
}

ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px; /* Add some space between the list items */
}

li span {
  flex-grow: 1;
  margin-left: 10px; /* Add margin to separate from checkboxes */
  font-size: 1.1em; /* Increase font size */
}

li button {
  margin-left: 5px;
}

li input[type="checkbox"] {
  margin-right: 5px;
}
li input[type="checkbox"]:before {
  content: " ";
  width: 20px;
  height: 20px;
  display: inline-block;
  border: 2px solid #9c27b0;
  border-radius: 4px; /* Rounder edges */
  margin-right: 5px;
  box-shadow: 0 0 5px rgba(156, 39, 176, 0.5); /* Purple glow */
}

li input[type="checkbox"]:checked:before {
  background-color: #9c27b0;
  border-color: #9c27b0;
}

li input[type="checkbox"]:focus-visible {
  outline: none;
}

.list h3 {
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #ba68c8;
}

/* New styles */

.delete-item-container {
  text-align: left;
}

.delete-item-btn {
  text-align: right;
}

#createList {
  text-align: center;
}

#createList form {
  display: inline-block;
}

.custom-checkbox {
  width: 20px;
  height: 20px;
    border-radius: 4px; /* Rounder edges */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  box-shadow: 0 0 5px rgba(156, 39, 176, 0.5); /* Purple glow */
  position: relative;
}

.custom-checkbox:checked {
  background-color: #9c27b0;
  }

.custom-checkbox:checked:after {
  content: " ";
  display: block;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 3px 3px 0;
  position: absolute;
  top: 3px;
  left: 8px;
  transform: rotate(45deg);
}

.custom-checkbox:focus-visible {
  outline: none;
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: #9c27b0;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Dark mode styles */
body.dark-mode {
  background-color: #311b92;
  color: white;
}

nav.dark-mode {
  background-color: #1a237e;
}

.list.dark-mode {
  background-color: #4527a0;
}

button.dark-mode {
  background-color: #5e35b1;
}

button.dark-mode:hover {
  background-color: #7e57c2;
}