#notificationArea {
  position: fixed;
  bottom: 20px;  /* Changed from top to bottom */
  right: 20px;
  max-width: 300px;
  z-index: 1000;
  display: flex;
  flex-direction: column-reverse;  /* Changed to reverse for bottom-up stacking */
  gap: 10px;
  pointer-events: none;
}

.notification {
  background-color: #6a1b9a; /* Default purple */
  color: white;
  margin: 10px;
  padding: 15px;
  border-radius: 5px;
  font-size: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(10px);  /* Changed direction to move from bottom */
  transition: opacity 0.5s ease, transform 0.5s ease;
  max-width: 300px;
  pointer-events: auto;  /* Allow clicking on notifications */
}

/* Type-specific styles with higher specificity */
.notification.success {
  background-color: #4caf50 !important; /* Green */
}

.notification.error {
  background-color: #f44336 !important; /* Red */
}

.notification.warning {
  background-color: #ff9800 !important; /* Orange */
}

.notification.info {
  background-color: #2196f3 !important; /* Blue */
}

.notification.show {
  opacity: 1;
  transform: translateY(0);
}

.notification.hide {
  opacity: 0;
  transform: translateY(10px);  /* Changed direction to match enter animation */
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }  /* Changed direction */
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(5px); }  /* Changed direction */
}
