/* notifications.css - Modern, top-right sliding toasts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 380px;
  width: calc(100% - 48px);
  pointer-events: none; /* Let clicks pass through empty space */
}

.custom-toast {
  pointer-events: auto; /* Re-enable clicks for the toasts */
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.98);
  border-left: 5px solid #64748b;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08), 
              0 3px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  animation: toastSlideIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Toast type custom colors */
.custom-toast.toast-error {
  border-left-color: #ef4444; /* red */
  background: #fef2f2;
}

.custom-toast.toast-success {
  border-left-color: #10b981; /* green */
  background: #f0fdf4;
}

.custom-toast.toast-warning {
  border-left-color: #f59e0b; /* yellow/orange */
  background: #fffbeb;
}

.custom-toast.toast-info {
  border-left-color: #3b82f6; /* blue */
  background: #eff6ff;
}

/* Icons */
.toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

.toast-error .toast-icon { color: #ef4444; }
.toast-success .toast-icon { color: #10b981; }
.toast-warning .toast-icon { color: #f59e0b; }
.toast-info .toast-icon { color: #3b82f6; }

/* Content text layout */
.toast-content {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
  line-height: 1.45;
  flex-grow: 1;
}

/* Close action button */
.toast-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 18px;
  padding: 2px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border-radius: 6px;
  margin-top: -2px;
}

.toast-close:hover {
  color: #475569;
  background-color: rgba(0, 0, 0, 0.05);
}

/* Keyframe animations */
@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translate3d(0, -60px, 0) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes toastSlideOut {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    opacity: 0;
    transform: translate3d(50px, 0, 0) scale(0.9);
  }
}

.custom-toast.toast-exit {
  animation: toastSlideOut 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Mobile responsive rules */
@media (max-width: 480px) {
  .toast-container {
    top: 16px;
    right: 16px;
    width: calc(100% - 32px);
  }
  
  .custom-toast {
    padding: 14px 16px;
  }
}
