/* Custom Message Popup Styles */
#custom-message-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 800px;
  width: auto;
}

.message-popup {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.icon {
  width: 40px;
  border-radius: 50px;
  height: 40px;
  object-fit: cover;
}

.main-message {
  flex: 1;
  position: relative;
  line-height: 28px;
  display: inline-block;
  max-width: 618px;
  word-wrap: break-word;
}

.main {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 6px 0px 0px;
  box-sizing: border-box;
  max-width: 608px;
}

.secondary-message {
  align-self: stretch;
  position: relative;
  font-size: 13px;
  line-height: 18px;
  color: #666;
}

.text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  min-width: 296px;
  max-width: 608px;
  flex: 1;
}

.icon1 {
  position: absolute;
  height: 58.75%;
  width: 58.75%;
  top: 20.54%;
  right: 20.71%;
  bottom: 20.71%;
  left: 20.54%;
  max-width: 100%;
  overflow: hidden;
  max-height: 100%;
}

.close-icon1 {
  flex: 1;
  position: relative;
  height: 24px;
}

.close-icon {
  width: 24px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 0px 0px;
  box-sizing: border-box;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.close-icon:hover {
  opacity: 0.7;
}

.pop-up-notification {
  width: 100%;
  position: relative;
  box-shadow: 0px 2px 2px -2px rgba(0, 0, 0, 0.3), 0px 28px 20px -6px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 32px;
  box-sizing: border-box;
  gap: 32px;
  max-width: 800px;
  text-align: left;
  font-size: 20px;
  color: #191b1b;
  font-family: Verdana;
  margin-bottom: 10px;
}

/* Message type specific styles */
.message-error {
  background-color: #fef0f0;
  border-left: 4px solid #d32f2f;
}

.message-warning {
  background-color: #fff8e1;
  border-left: 4px solid #f57c00;
}

.message-status {
  background-color: #e8f5e8;
  border-left: 4px solid #4caf50;
}

.message-info {
  background-color: #e3f2fd;
  border-left: 4px solid #2196f3;
}

/* Auto-hide animation */
.message-popup.auto-hide {
  animation: fadeOut 0.5s ease-out 4.5s forwards;
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

/* Responsive design */
@media (max-width: 768px) {
  #custom-message-container {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }

  .pop-up-notification {
    padding: 20px;
    gap: 20px;
  }

  .main-message {
    font-size: 16px;
    line-height: 24px;
    max-width: none;
  }

  .secondary-message {
    font-size: 12px;
    line-height: 16px;
  }
}

/* Print styles */
@media print {
  #custom-message-container {
    display: none;
  }
}