/* Delete and rename popup modals */
.delete-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 257px; /* Increased width by 99px */
  min-height: 160px;
  height: auto; /* Allow dynamic height for longer content */
  background: #ffcf25; /* Changed from #FFE725 to #FFCF25 */
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 18px 26px; /* 23px top/bottom, 33px left/right */
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* Changed from space-between to align content from top */
  z-index: 1002;
}

/* Duplicate Glubler Popup */
.duplicate-glubler-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 257px;
  height: 160px;
  background: #ffcf25;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 18px 26px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  z-index: 1002;
}

.duplicate-glubler-popup h2 {
  font-size: 22px;
  font-weight: 500;
  color: white;
  margin: 0;
  text-align: center;
}

.duplicate-glubler-popup p {
  color: #666666;
  text-align: center;
  margin: 12px 0;
  font-size: 14px;
  line-height: 1.4;
}

.duplicate-glubler-popup-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  width: 100%;
  align-items: center;
}

.duplicate-glubler-popup-button {
  width: 120px;
  height: 24px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  text-align: center;
  line-height: 24px;
  text-transform: uppercase;
  font-size: 11px;
  background-color: rgba(245, 221, 36, 0.896);
  color: #90773c;
  transition: all 0.3s ease;
}

.duplicate-glubler-popup-button:hover {
  color: white;
  transform: scale(1.05);
}

.duplicate-glubler-popup-button.ok-button {
  background-color: white;
  color: #787578;
}

.duplicate-glubler-popup-button.ok-button:hover {
  background-color: #c7a3a3;
  color: #ffffff;
}

.delete-popup h2 {
  font-size: 22px;
  font-weight: 500;
  color: white; /* Make "Are you sure?" text white */
  margin: 0;
  text-align: center;
}

.delete-popup p {
  color: #666666;
  text-align: center;
  margin: 12px 0; /* Move warning text 15px down */
  font-size: 14px; /* Increased font size */
}

.delete-popup-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px; /* Moved up by 8px (was 16px) */
  width: 100%; /* Take full width of container */
  align-items: center;
}

.delete-popup-button {
  min-width: 144px; /* Increased width */
  width: auto; /* Allow dynamic width */
  padding: 0 28px; /* More horizontal padding */
  height: 28px; /* Fixed height */
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  text-align: center;
  line-height: 28px; /* Match height for vertical centering */
  text-transform: uppercase;
  font-size: 10px; /* Smaller to fit more text */
  background-color: rgba(245, 221, 36, 0.896);
  color: #90773c;
  transition: all 0.3s ease;
  white-space: nowrap; /* Prevent text wrapping */
  display: flex;
  align-items: center;
  justify-content: center;
}

.delete-popup-button:hover {
  color: white;
  transform: scale(1.05);
}

.rename-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 192px; /* Increased width by 99px */
  height: 136px;
  background: #ffcf25; /* Changed from #FFE725 to #FFCF25 */
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 0px 26px; /* 23px top/bottom, 33px left/right */
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* Changed from space-between to align content from top */
  z-index: 1002;
}

.rename-popup h2 {
  font-size: 22px;
  font-weight: 500;
  color: white; /* Make "Are you sure?" text white */
  margin: 0;
  text-align: center;
}

.rename-popup input {
  width: 99%; /* Decreased from 77% */
  padding: 8px;
  font-size: 14px;
  margin: 16px 0 24px; /* Added bottom margin to create space for buttons */
  border-radius: 6px;
  border: none;
  text-align: center;
  font-size: 15px;
  color: #666666;
}

.rename-popup input:focus {
  outline: 2px solid rgba(245, 222, 36, 0.9);
}

.rename-popup-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: -5px;
  width: 100%;
  align-items: center;
}

.rename-popup-button {
  width: 104px;
  height: 19px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  text-align: center;
  line-height: 19px;
  text-transform: uppercase;
  font-size: 11px;
  background-color: rgba(245, 221, 36, 0.896);
  color: #90773c;
  transition: all 0.3s ease;
  outline: none;
}

.rename-popup-button:focus {
  outline: none;
}

.delete-popup-button {
  width: 104px;
  height: 19px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  text-align: center;
  line-height: 19px;
  text-transform: uppercase;
  font-size: 11px;
  background-color: rgba(245, 221, 36, 0.896);
  color: #90773c;
  transition: all 0.3s ease;
  outline: none;
}

.delete-popup-button:focus {
  outline: none;
}

.rename-popup-button:hover {
  color: white;
  transform: scale(1.05);
}

.delete-button {
  background-color: white;
  color: #787578;
}

.cancel-button {
  background-color: #b3b3b3;
  color: white;
}

.delete-button:hover,
.cancel-button:hover {
  background-color: #c7a3a3; /* Set background color */
  color: #ffffff; /* Keep font color the same */
}

.rename-popup-button.confirm-rename {
  background-color: white;
  color: #787578;
}

.rename-popup-button.cancel-rename {
  background-color: #b3b3b3;
  color: white;
}

.rename-popup-button.confirm-rename:hover,
.rename-popup-button.cancel-rename:hover {
  background-color: #c7a3a3; /* Set background color */
  color: #ffffff; /* Keep font color the same */
}

/* Glue Popup Toast - for trial activation and other messages */
.glue-popup {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffcf25;
  color: #666666;
  padding: 15px 30px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  font-size: 16px;
  font-weight: bold;
  opacity: 1;
  visibility: hidden;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1000;
  min-width: 222px;
  max-width: 90%;
  text-align: center;
  overflow: hidden;
}

.glue-popup.show {
  bottom: 42px;
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) scale(1);
  animation: slideUpBounce 0.8s ease-out;
}

.glue-popup.hide {
  bottom: -100px;
  opacity: 1;
  visibility: hidden;
  transform: translateX(-50%) scale(0.95);
  transition: all 0.6s ease-in;
}

@keyframes slideUpBounce {
  0% {
    bottom: -100px;
    opacity: 1;
    transform: translateX(-50%) scale(0.9);
  }
  60% {
    bottom: 47px;
    transform: translateX(-50%) scale(1.02);
  }
  100% {
    bottom: 42px;
    transform: translateX(-50%) scale(1);
  }
}
