
.custom-toast {
  visibility: hidden;
  min-width: 280px;
  max-width: 400px;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  text-align: left;
  border-radius: 12px;
  padding: 16px 20px;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1050;
  box-shadow: 0 8px 25px rgba(232, 24, 64, 0.25), 0 4px 10px rgba(0, 0, 0, 0.1);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0;
  transform: translateX(100%) scale(0.8);
}

.custom-toast.show {
  visibility: visible;
  opacity: 1;
  transform: translateX(0) scale(1);
}

.custom-toast.hide {
  opacity: 0;
  transform: translateX(100%) scale(0.8);
  transition: all 0.3s ease-in;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 12px;
}
.toast-success,
.toast-error,
.toast-info {
  background: none !important;
  backdrop-filter: none !important;
  background-color: unset !important; 
}

/* Gradient styles */
.toast-success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
}

.toast-error {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
}

.toast-info {
  background: linear-gradient(135deg, #007bff 0%, #17a2b8 100%) !important;
}

.toast-icon {
  font-size: 20px;
  flex-shrink: 0;
  animation: bounce 0.6s ease-out;
}

.toast-message {
  flex: 1;
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
  flex-shrink: 0;
}

.toast-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 0 0 12px 12px;
  animation: progressBar 4s linear forwards;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(-4px); }
}

@keyframes progressBar {
  from { width: 100%; }
  to { width: 0%; }
}

/* Toast contect form style */
.custom-toast {
  position: fixed;
  top: 20px;
  left: 80%;
  transform: translateX(-50%);
  min-width: 280px;
  max-width: 400px;
  border-radius: 8px;
  color: white;
  padding: 12px 16px;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
  display: none;
  z-index: 9999;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.custom-toast.show {
  display: block;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toast-icon {
  font-size: 22px;
  margin-right: 12px;
}

.toast-message {
  flex-grow: 1;
  font-size: 15px;
}

.toast-close {
  background: transparent;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 0 6px;
}

.toast-progress {
  height: 3px;
  background-color: green; /* default green */
  width: 0;
  border-radius: 0 0 8px 8px;
  margin-top: 8px;
  transition: width 3s linear;
}

.custom-toast.success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.25), 0 4px 10px rgba(0, 0, 0, 0.1);
}

.custom-toast.error {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  box-shadow: 0 8px 25px rgba(220, 53, 69, 0.25), 0 4px 10px rgba(0, 0, 0, 0.1);
}

.custom-toast.warning {
  background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
  color: #212529;
  box-shadow: 0 8px 25px rgba(255, 193, 7, 0.25), 0 4px 10px rgba(0, 0, 0, 0.1);
}

.custom-toast.warning .toast-close {
  color: rgba(33, 37, 41, 0.8);
}

.custom-toast.warning .toast-close:hover {
  background: rgba(33, 37, 41, 0.1);
  color: #212529;
}

@media (max-width: 480px) {
  .custom-toast {
    left: 10px;
    right: 10px;
    top: 10px;
    min-width: auto;
    max-width: none;
  }
}
