/* messageToast.css */

.custom-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  color: #374151;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  min-width: 360px;
  z-index: 9999;
  display: none;
}

.custom-toast.show {
  display: flex;
  animation: custom-fadeIn 0.3s ease, custom-fadeOut 0.5s ease 3.5s;
}

@keyframes custom-fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -10px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes custom-fadeOut {
  from {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -10px);
  }
}

.custom-toast-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
}

.custom-toast-message {
  font-weight: 600;
  flex: 1;
}

.custom-toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  width: 100%;
  border-radius: 0 0 8px 8px;
  animation: custom-progressAnim 4s linear forwards;
}

@keyframes custom-progressAnim {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}

/* Success */
.custom-toast.success .custom-toast-icon {
  border: 2px solid #a3e635;
  color: #65a30d;
}
.custom-toast.success .custom-toast-progress {
  background-color: #4ade80;
}

/* Error */
.custom-toast.error .custom-toast-icon {
  border: 2px solid #f87171;
  color: #dc2626;
}
.custom-toast.error .custom-toast-progress {
  background-color: #f87171;
}

/* Warning */
.custom-toast.warning .custom-toast-icon {
  border: 2px solid #facc15;
  color: #ca8a04;
}
.custom-toast.warning .custom-toast-progress {
  background-color: #facc15;
}
