/**
 * ========================================
 * Global Toast Notification Styles
 * ========================================
 */

/* Toast Container */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  max-width: 400px;
}

/* Individual Toast */
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  color: #1f2937;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  min-width: 200px;
  max-width: 100%;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Toast States */
.toast--visible {
  opacity: 1;
  transform: translateX(0);
}

.toast--hiding {
  opacity: 0;
  transform: translateX(100%);
}

/* Toast Types */
.toast.toast--success {
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.95) 0%,
    rgba(46, 160, 67, 0.95) 100%
  ) !important;
  color: white !important;
  border-color: rgba(34, 197, 94, 0.3) !important;
}

.toast.toast--error {
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.95) 0%,
    rgba(220, 53, 69, 0.95) 100%
  ) !important;
  color: white !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
}

.toast.toast--warning {
  background: linear-gradient(
    135deg,
    rgba(245, 158, 11, 0.95) 0%,
    rgba(217, 119, 6, 0.95) 100%
  ) !important;
  color: white !important;
  border-color: rgba(245, 158, 11, 0.3) !important;
}

.toast.toast--info {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.95) 0%,
    rgba(37, 99, 235, 0.95) 100%
  ) !important;
  color: white !important;
  border-color: rgba(59, 130, 246, 0.3) !important;
}

/* Toast Icon */
.toast i {
  font-size: 16px;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

/* Toast Text */
.toast span {
  flex: 1;
  word-wrap: break-word;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .toast-container {
    top: 16px;
    right: 16px;
    left: 16px;
    max-width: none;
  }

  .toast {
    padding: 10px 14px;
    font-size: 13px;
    min-width: auto;
    max-width: 100%;
  }

  .toast i {
    font-size: 14px;
    width: 18px;
  }
}

/* Tablet Responsive */
@media (min-width: 769px) and (max-width: 1024px) {
  .toast-container {
    top: 18px;
    right: 18px;
    max-width: 350px;
  }

  .toast {
    padding: 11px 15px;
    font-size: 13px;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .toast {
    border-width: 0.5px;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .toast:not(.toast--success):not(.toast--error):not(.toast--warning):not(
      .toast--info
    ) {
    background: rgba(31, 41, 55, 0.95);
    color: #f9fafb;
    border-color: rgba(75, 85, 99, 0.3);
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .toast {
    transition: opacity 0.2s ease;
  }

  .toast--visible {
    transform: none;
  }

  .toast--hiding {
    transform: none;
  }
}
