/* Toast Notification System CSS */

#toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 350px;
}

.toast-notification {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background-color: #fff;
  border-left: 4px solid;
  min-width: 280px;
  max-width: 350px;
  transform: translateX(110%);
  transition: transform 0.3s ease-in-out;
  position: relative;
}

.toast-notification.visible {
  transform: translateX(0);
}

.toast-icon {
  margin-right: 12px;
  font-size: var(--font-size-lg);
  flex-shrink: 0;
}

.toast-message {
  flex-grow: 1;
  font-size: var(--font-size-sm);
  color: #333;
}

.toast-close {
  background: none;
  border: none;
  font-size: var(--font-size-base);
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
  padding: 0;
  margin-left: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.toast-close:hover {
  opacity: 1;
}

/* Toast types */
.toast-success {
  border-left-color: #28a745;
}

.toast-success .toast-icon {
  color: #28a745;
}

.toast-error {
  border-left-color: #dc3545;
}

.toast-error .toast-icon {
  color: #dc3545;
}

.toast-warning {
  border-left-color: #ffc107;
}

.toast-warning .toast-icon {
  color: #ffc107;
}

.toast-info {
  border-left-color: #17a2b8;
}

.toast-info .toast-icon {
  color: #17a2b8;
}

/* Animation for removing toasts */
.toast-notification {
  opacity: 1;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.toast-notification:not(.visible) {
  opacity: 0;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  #toast-container {
    top: auto;
    bottom: 10px;
    left: 10px;
    right: 10px;
    max-width: none;
    align-items: center;
  }
  
  .toast-notification {
    width: calc(100% - 20px);
    max-width: 100%;
    transform: translateY(100%);
  }
  
  .toast-notification.visible {
    transform: translateY(0);
  }
} 