/**
 * Toast Notification System
 * Standardized across Admin e OMS
 */

#toast-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  top: auto;
  right: auto;
  z-index: 10000;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  max-width: 400px;
}

.toast {
  background: white;
  border-radius: 8px;
  padding: 16px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  transform: translateX(-400px); /* Slide from left */
  opacity: 0;
  transition: all 0.3s ease;
  border-left: 4px solid #2D2A29;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast.hide {
  transform: translateX(-400px);
  opacity: 0;
}

.toast-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
  color: #333;
}

.toast-message {
  font-size: 13px;
  color: #6c757d;
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  font-size: 18px;
  color: #6c757d;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast-close:hover {
  color: #333;
}

/* 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;
}
