/* Alert Container Styling */
.alert-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Fixed position alert container at top-right */
#alertContainer {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  max-width: 450px;
  width: auto;
  max-height: 80vh;
  overflow-y: auto;
}

/* Mobile responsive alerts */
@media (max-width: 768px) {
  #alertContainer {
    position: fixed;
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
    width: calc(100% - 20px);
  }
}

/* Alert with animation */
.alert {
  animation: slideInRight 0.3s ease-out;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 0.5rem;
}

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

/* Alert dismissal animation */
.alert.fade:not(.show) {
  animation: slideOutRight 0.3s ease-out;
}

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

/* Success alert styling */
.alert-success {
  background-color: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}

.alert-success .btn-close {
  filter: invert(0.5);
}

/* Danger/Error alert styling */
.alert-danger {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

.alert-danger .btn-close {
  filter: invert(0.5);
}

/* Warning alert styling */
.alert-warning {
  background-color: #fff3cd;
  border-color: #ffeaa7;
  color: #856404;
}

.alert-warning .btn-close {
  filter: invert(0.5);
}

/* Info alert styling */
.alert-info {
  background-color: #d1ecf1;
  border-color: #bee5eb;
  color: #0c5460;
}

.alert-info .btn-close {
  filter: invert(0.5);
}
