/* --- Clean & Simple Toast Alert --- */

.custom-alert {
  position: fixed;
  bottom: 5%;
  right: 3%;
  width: 320px;
  border-radius: 10px;
  z-index: 1011;
  opacity: 0;
  transform: translateY(20px); /* Start slightly below */
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* When toast is shown */
.custom-alert.show {
  opacity: 1;
  transform: translateY(0); /* Slide up into place */
  pointer-events: auto;
}

/* Header */
.toast-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 15px;
  color: white !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

/* Toast Body */
.toast-body {
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.5;
  color: #fff;
}

/* Close Button */
.close {
  background-color: transparent;
  border: 0;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: opacity 200ms ease-in-out;
}

.close:hover {
  opacity: 0.7;
}

/* --- Toast Variants --- */
.bg-success .toast-header,
.bg-success .toast-body {
  background-color: #4BB543;
}

.bg-danger .toast-header,
.bg-danger .toast-body {
  background-color: #dc3545;
}

.bg-warning .toast-header,
.bg-warning .toast-body {
  background-color: #ffc107;
  color: #333;
}

.bg-info .toast-header,
.bg-info .toast-body {
  background-color: #17a2b8;
}

/* --- Animation (subtle fade & slide) --- */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(10px);
  }
}