body {
  font-family: "Montserrat", sans-serif;
  background-color: #ffffff;
  color: #000000;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
}

.container {
  background-color: #ffffff;
  border-radius: 0;
  padding: 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 1000px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.logo-container {
  background-color: #212121;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  width: 300px;
  filter: brightness(0) invert(1);
}

h1 {
  text-align: center;
  margin: 20px 0;
  font-weight: 600;
  color: #212121;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.content {
  padding: 0 20px 40px;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  width: 100%;
}

#addButton,
#clearAllButton {
  width: 100%;
  max-width: 205px;
  padding: 10px 0;
  font-size: 16px;
  text-align: center;
  height: 44px;
  line-height: 24px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.key[data-key="clear"]:hover,
.key[data-key="enter"]:hover {
  opacity: 0.9;
}

input[type="text"],
select,
#confirmButton {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  margin-bottom: 5px;
  border: 1px solid #212121;
  border-radius: 5px;
  font-size: 16px;
  font-family: "Montserrat", sans-serif;
  max-width: 405px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.waitlist-container {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.waitlist-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.waitlist-table th,
.waitlist-table td {
  padding: 15px;
  text-align: left;
}

.waitlist-table th {
  background-color: #212121;
  color: #ffffff;
  font-weight: bold;
}

.waitlist-table td {
  background-color: #f5f5f5;
}

.waitlist-table tr.vip td {
  background-color: #ffffd6;
  color: #333;
}

.waitlist-table .removeButton {
  background-color: #cc0000;
  color: #ffffff;
  border: none;
  padding: 5px 10px;
  border-radius: 50px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.waitlist-table .removeButton:hover {
  background-color: #ff0000;
}

.waitlist-table tr.vip .removeButton {
  background-color: #cc0000;
  color: #ffffff;
}

.waitlist-table tr.vip .removeButton:hover {
  background-color: #ff0000;
}

.error {
  border-color: #ff3b30 !important;
}

.error-message {
  color: #000000;
  font-size: 14px;
  margin-top: 5px;
  display: none;
  background-color: #ffeeee;
  border-radius: 4px;
  padding: 5px;
  margin-bottom: 10px;
}

.error-message.visible {
  display: block;
}

#confirmButton {
  margin-top: 10px;
  width: 100%;
  box-sizing: border-box;
  padding: 2.5px;
}

#confirmButton {
  background-color: #212121;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}



.button-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  width: 100%;
  max-width: 405px;
  margin-left: auto;
  margin-right: auto;
}

#addButton {
  background-color: #212121;
}

#addButton:hover {
  background-color: #333333;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
}

.modal.hidden {
  display: none;
}

.modal:not(.hidden) {
  display: flex;
}

.modal-content {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 0;
  text-align: center;
  max-width: 400px;
  margin: 0 auto;
}

.modal-buttons {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
}

#confirmClear,
#cancelClear {
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
}

#confirmClear {
  background-color: #4caf50;
  color: #ffffff;
}


#cancelClear {
  background-color: #cc0000;
  color: #ffffff;
}

.wait-time {
  font-size: 14px;
  color: #666666;
  margin: 0;
  width: auto;
}

@media (max-width: 768px) {
  .container {
    max-width: 90%;
    padding: 20px;
  }

  button,
  #addButton,
  #clearAllButton {
    font-size: 14px;
  }

  h1 {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .container {
    max-width: 95%;
    padding: 15px;
  }

  button,
  #addButton,
  #clearAllButton {
    font-size: 12px;
  }

  h1 {
    font-size: 18px;
  }
}

#clearAllButton.disabled {
  background-color: #cccccc;
  cursor: not-allowed;
  border: #cccccc;
}

#clearAllButton.disabled:hover {
  background-color: #cccccc;
}

.hidden {
  display: none !important;
}

#formContainer {
  width: 100%;
  max-width: 405px;
  margin: 0 auto 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

#formContainer:not(.hidden) {
  display: flex;
}

@media (max-width: 600px) {
  li {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 5px;
  }

  .remove-button-container {
    grid-column: 1 / -1;
    justify-self: center;
  }
}

/* Larger VIP checkbox */
#vipToggle {
  width: 30px;
  height: 30px;
  cursor: pointer;
  margin: 0;
  padding: 0;
  vertical-align: middle;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 10px;
}

.form-row label {
  margin-right: 10px;
  font-size: 16px;
  line-height: 30px;
  vertical-align: middle;
}

.info-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #ffffff;
  color: #212121;
  text-align: center;
  line-height: 24px;
  font-weight: bold;
  cursor: pointer;
  font-size: 16px;
}

.info-icon:hover {
  background-color: #f0f0f0;
}

#infoModal .modal-content {
  max-width: 80%;
  width: 400px;
  text-align: left;
}

#infoModal h2 {
  margin-top: 0;
  margin-bottom: 15px;
  text-align: center;
}

#infoModal h3 {
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 18px;
}

#infoModal p {
  margin-bottom: 15px;
  line-height: 1.4;
}

#infoModal ul {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 20px;
}

#infoModal li {
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
  line-height: 1.4;
}

#infoModal li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #212121;
}

#closeInfoModal {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #212121;
  color: #ffffff;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: block;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

#closeInfoModal:hover {
  background-color: #333333;
}

/* Tablet styles */
@media (max-width: 1024px) and (min-width: 769px) {
  .container {
    max-width: 95%;
  }

  .logo {
    width: 250px;
  }

  input[type="text"],
  select,
  #confirmButton {
    max-width: 450px;
  }

  .button-container {
    max-width: 450px;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 100%;
    padding: 10px;
  }

  .logo {
    width: 200px;
  }

  .info-icon {
    width: 20px;
    height: 20px;
    line-height: 20px;
    font-size: 14px;
  }

  input[type="text"],
  select,
  #confirmButton {
    max-width: 100%;
  }

  .button-container {
    max-width: 100%;
  }

  .waitlist-table,
  .waitlist-table tbody,
  .waitlist-table tr {
    display: block;
    width: 100%;
  }

  .waitlist-table thead {
    display: none;
  }

  #infoModal .modal-content {
    width: 90%;
    padding: 15px;
  }

  #infoModal h2 {
    font-size: 20px;
  }

  #infoModal h3 {
    font-size: 16px;
  }

  #infoModal p,
  #infoModal li {
    font-size: 14px;
  }

  #closeInfoModal {
    font-size: 14px;
    padding: 8px 16px;
  }
}

@media (max-width: 480px) {
  .waitlist-table,
  .waitlist-table tbody,
  .waitlist-table tr {
    display: block;
    width: 100%;
  }

  .waitlist-table thead {
    display: none;
  }

  .waitlist-table td {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #ddd;
  }

  .waitlist-table td::before {
    content: attr(data-label);
    font-weight: bold;
    text-transform: uppercase;
    flex-basis: 50%;
  }

  .waitlist-table td:last-child {
    border-bottom: none;
  }

  .waitlist-table tr {
    margin-bottom: 20px;
    border: 1px solid #ddd;
  }

  .container {
    padding: 5px;
  }

  h1 {
    font-size: 18px;
  }

  button,
  #addButton,
  #clearAllButton {
    font-size: 12px;
  }
}

@media (min-width: 481px) {
  .waitlist-table {
    display: table;
    width: 100%;
  }

  .waitlist-table thead {
    display: table-header-group;
  }

  .waitlist-table tbody {
    display: table-row-group;
  }

  .waitlist-table tr {
    display: table-row;
  }

  .waitlist-table th,
  .waitlist-table td {
    display: table-cell;
    padding: 10px;
  }

  .waitlist-container {
    overflow-x: auto;
  }
}
.hidden {
  display: none;
}

.editButton,
.saveButton {
  background-color: #4caf50;
  margin-right: 5px;
}

.editButton:hover,
.saveButton:hover {
  background-color: #45a049;
}

.location-edit {
  width: 100%;
  padding: 5px;
  border-radius: 4px;
  border: 1px solid #ddd;
}

#editModal .modal-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#editModal h2 {
  margin-top: 0;
}

#editModal input,
#editModal select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

#editModal .modal-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

#editModal button {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#saveEdit {
  background-color: #4caf50;
  color: white;
}

#saveEdit:hover {
  background-color: #45a049;
}

#cancelEdit {
  background-color: #f44336;
  color: white;
}

#cancelEdit:hover {
  background-color: #d32f2f;
}

.waitlist-table .removeButton,
.waitlist-table .editButton {
  background-color: #cc0000;
  color: #ffffff;
  border: none;
  padding: 5px 10px;
  border-radius: 50px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 70px;
  text-align: center;
}

.waitlist-table .editButton {
  background-color: #4caf50;
  margin-right: 5px;
}

.waitlist-table .removeButton:hover {
  background-color: #ff0000;
}

.waitlist-table .editButton:hover {
  background-color: #45a049;
}

.waitlist-table tr.vip .removeButton,
.waitlist-table tr.vip .editButton {
  color: #ffffff;
}

.waitlist-table tr.vip .removeButton:hover {
  background-color: #ff0000;
}

.waitlist-table tr.vip .editButton:hover {
  background-color: #45a049;
}

@media (max-width: 768px) {
  .waitlist-table .removeButton,
  .waitlist-table .editButton {
    width: 100%;
    margin-top: 5px;
  }

  .waitlist-table .editButton {
    margin-right: 0;
  }
}

.edit-field {
  margin-bottom: 15px;
}

.edit-field label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.edit-field input,
.edit-field select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

#editModal .modal-content {
  max-width: 300px;
}

#locationInput,
#guestsInput,
#editLocation,
#editGuests {
  padding: 12px;
  font-size: 16px;
}

@media (max-width: 768px) {
  #locationInput,
  #guestsInput,
  #editLocation,
  #editGuests {
    height: 48px;
  }
}

#editModal .edit-field input,
#editModal .edit-field select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

#editModal .modal-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

#editModal .modal-buttons button {
  flex: 1;
  padding: 10px 0;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-align: center;
}

#saveEdit {
  background-color: #4caf50;
  color: white;
  margin-right: 10px;
}

#saveEdit:hover {
  background-color: #45a049;
}

#cancelEdit {
  background-color: #f44336;
  color: white;
}

#cancelEdit:hover {
  background-color: #d32f2f;
}

.recently-seated-container {
  margin-top: 30px;
  border-top: 1px solid #ddd;
  padding-top: 20px;
}

.recently-seated-container h2 {
  margin-bottom: 15px;
}

#seatedList {
  list-style-type: none;
  padding: 0;
}

#seatedList li {
  background-color: #f5f5f5;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.waitlist-table .editButton,
.waitlist-table .seatButton,
.waitlist-table tr.vip .editButton,
.waitlist-table tr.vip .seatButton {
  background-color: #212121;
  color: #ffffff;
  border: none;
  min-width: 50px;
  padding: 5px 10px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 14px;
  transition: none;
}

.waitlist-table .editButton:hover,
.waitlist-table .seatButton:hover,
.waitlist-table tr.vip .editButton:hover,
.waitlist-table tr.vip .seatButton:hover {
  background-color: #212121;
}

@media (max-width: 768px) {
  .waitlist-table .editButton,
  .waitlist-table .seatButton,
  .waitlist-table tr.vip .editButton,
  .waitlist-table tr.vip .seatButton {
    width: 100%;
    margin-top: 5px;
  }

  .waitlist-table .editButton,
  .waitlist-table tr.vip .editButton {
    margin-bottom: 5px;
  }
}

#seatedList li {
  background-color: #f5f5f5;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#seatedList li.vip {
  background-color: #ffffd6;
}

.vip-star {
  color: #ffd700;
  margin-right: 5px;
}

#seatedList li {
  background-color: #f5f5f5;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#seatedList li.vip {
  background-color: #ffffd6;
}

.vip-star {
  color: #ffd700;
  margin-right: 5px;
}
.returnButton {
  background-color: transparent;
  color: #ff3b30;
  border: 2px solid #ff3b30;
  padding: 5px 15px;
  max-width: 200px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 14px;
  transition: none;
}

.returnButton:hover{
    background-color: transparent;
}

#clearAllButton {
  background-color: transparent;
  color: #ff3b30;
  border: 2px solid #ff3b30;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 16px;
  cursor: pointer;
  transition: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

#clearAllButton .cross-icon {
  margin-right: 8px;
  font-size: 18px;
}

@media (max-width: 768px) {
  #clearAllButton {
    width: 100%;
  }
}

#seatedList li {
  background-color: #f5f5f5;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#seatedList li.vip {
  background-color: #ffffd6;
}

#seatedList .guest-info {
  display: flex;
  align-items: center;
  flex-grow: 1;
  /* justify-content: space-evenly; */
}

#seatedList .vip-star {
  color: #ffd700;
  margin-right: 5px;
  font-size: 18px;
}

#seatedList .guest-name {
  font-weight: bold;
  margin-right: 5px;
}

#seatedList .guest-details {
  color: #666;
}
@media (max-width: 768px) {
  #seatedList li {
    flex-direction: column;
    align-items: flex-start;
  }

  #seatedList .guest-info {
    margin-bottom: 10px;
  }
}
.waitlist-table td[data-label="Name"] {
  font-weight: bold;
}

.waitlist-table td[data-label="Name"] span.guest-name {
  font-weight: bold;
}

.waitlist-table td[data-label="Name"] .vip-star {
  font-weight: normal;
}

.waitlist-table .editButton,
.waitlist-table .seatButton,
.waitlist-table tr.vip .editButton,
.waitlist-table tr.vip .seatButton {
  border: 2px solid;
  padding: 5px 10px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 14px;
  transition: none;
  margin-right: 5px;
  white-space: nowrap;
  width: 60px;
  text-align: center;
}

.waitlist-table .editButton,
.waitlist-table tr.vip .editButton {
  background-color: transparent;
  color: #6c757d;
  border-color: #6c757d;
}

.waitlist-table .seatButton,
.waitlist-table tr.vip .seatButton {
  background-color: #28a745;
  color: white;
  border-color: #28a745;
}

.waitlist-table .editButton:hover,
.waitlist-table tr.vip .editButton:hover {
  background-color: transparent;
  color: #6c757d;
  border-color: #6c757d;
}

.waitlist-table .seatButton:hover,
.waitlist-table tr.vip .seatButton:hover {
  background-color: #28a745;
  color: white;
  border-color: #28a745;
}

@media (max-width: 768px) {
  .waitlist-table .editButton,
  .waitlist-table .seatButton,
  .waitlist-table tr.vip .editButton,
  .waitlist-table tr.vip .seatButton {
    width: calc(50% - 5px);
    margin-top: 5px;
  }

  .waitlist-table .editButton,
  .waitlist-table tr.vip .editButton {
    margin-right: 5px;
  }

  .waitlist-table .seatButton,
  .waitlist-table tr.vip .seatButton {
    margin-right: 0;
  }
}

.recently-seated-container {
  margin-top: 20px;
}

.recently-seated-container h2 {
  margin-bottom: 10px;
}

#seatedList {
  list-style-type: none;
  padding: 0;
}

#seatedList li {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #e0e0e0;
}

#seatedList li:last-child {
  border-bottom: none;
}

.guest-info {
  display: flex;
  align-items: center;
  flex-grow: 1;
}

.guest-name {
  font-weight: bold;
  margin-right: 10px;
}

.guest-details {
  color: #666;
  font-size: 0.9em;
}


