body {
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  background-color: #f4f4f4;
}

.is-hidden {
  display: none !important;
}

.popup-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10;
}

.popup-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  width: min(400px, 92vw);
  text-align: center;
}

.classroom {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
}

.side {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.side.left {
  margin-top: 95px;
}

.side.center {
  margin-top: 15px;
}

.side.right {
  margin-top: 95px;
}

.row {
  display: flex;
  gap: 10px;
}

.desk {
  width: 60px;
  height: 60px;
  background-color: #ccc;
  border: 1px solid #999;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
  font-size: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  word-wrap: break-word;
  white-space: normal;
  padding: 5px;
}

.desk:empty {
  background-color: #999;
  color: white;
}

.desk[draggable="true"]:not(:empty) {
  background-color: #ffcc00;
  color: black;
  font-weight: bold;
}

.space {
  width: 50px;
}

.teacher-desk {
  width: 200px;
  height: 60px;
  background-color: #999;
  color: white;
  font-weight: bold;
  text-align: center;
  line-height: 60px;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
}

.btn {
  position: relative;
  font-size: 15px;
  text-transform: uppercase;
  padding: 0.6em 1em;
  display: inline-block;
  cursor: pointer;
  border-radius: 4em;
  transition: all 0.2s;
  border: none;
  font-family: inherit;
  font-weight: 500;
  color: #000;
  background-color: #ffcc00;
  margin: 10px 0;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn:active {
  transform: translateY(-1px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

input {
  font-size: 13px;
  text-align: center;
  border: 2px solid #ccc;
  border-radius: 25px;
}

#save-load-buttons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

#load-names,
#save-names {
  background-color: #c4ff76;
  color: #000;
}

#load-names:hover,
#save-names:hover {
  background-color: #b30000;
}

#load-names:active,
#save-names:active {
  background-color: #855000;
}

.toast {
  position: fixed;
  top: 25px;
  right: 30px;
  border-radius: 12px;
  background: #fff;
  padding: 20px 35px 20px 25px;
  box-shadow: 0 6px 20px -5px rgba(0, 0, 0, 0.1);
  transform: translateX(calc(100% + 30px));
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.35);
  z-index: 11;
}

.toast.active {
  transform: translateX(0%);
  opacity: 1;
  visibility: visible;
}

.toast .toast-content {
  display: flex;
  align-items: center;
}

.toast-content .check {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 35px;
  min-width: 35px;
  background-color: #ffcc00;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  border-radius: 50%;
}

.toast-content .message {
  display: flex;
  flex-direction: column;
  margin: 0 20px;
}

.message .text {
  font-size: 16px;
  font-weight: 400;
  color: #666;
}

.message .text.text-1 {
  font-weight: 600;
  color: #333;
}

.toast .close {
  position: absolute;
  top: 10px;
  right: 15px;
  padding: 5px;
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  color: #333;
}

.toast .close:hover {
  opacity: 1;
}
