.alert-box {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 1050;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Custom Alert Box */
.custom-alert {
  position: relative;
  padding: 15px;
  border-radius: 8px;
  font-size: 14px;
  color: #ffffff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  animation: slide-in 0.5s ease, fade-out 0.5s 3s forwards;
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

/* Success Message */
.custom-alert.success {
  background-color: #28a745; /* Green */
}

/* Danger (Error) Message */
.custom-alert.error {
  background-color: #dc3545; /* Red */
}

/* Warning Message */
.custom-alert.warning {
  background-color: #ffc107; /* Yellow */
  color: #212529;
}

/* Info Message */
.custom-alert.info {
  background-color: #17a2b8; /* Blue */
}

/* Close Button */
.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 16px;
  color: #ffffff;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: #000000;
}

/* Animations */
@keyframes slide-in {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}