/* ========================================
   TOAST NOTIFICATION SYSTEM
   ======================================== */

.notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  max-width: 380px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast-notification {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-family: "Montserrat", sans-serif;
  pointer-events: auto;
  animation: slideInRight 0.4s ease-out;
  border-left: 4px solid #702966;
  position: relative;
  overflow: hidden;
}

.toast-notification.toast-hiding {
  animation: slideOutRight 0.3s ease-in forwards;
}

@keyframes slideInRight {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(120%); opacity: 0; }
}

.toast-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.toast-icon.toast-reply {
  background: linear-gradient(135deg, #702966 0%, #8b3479 100%);
  color: white;
}

.toast-icon.toast-ticket {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.toast-icon.toast-resolved {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.toast-icon.toast-reopened {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
}

.toast-content {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-weight: 600;
  font-size: 14px;
  color: #1f2937;
  margin-bottom: 4px;
}

.toast-message {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toast-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.toast-btn {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.toast-btn-primary {
  background: linear-gradient(135deg, #702966 0%, #8b3479 100%);
  color: white;
}

.toast-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(112, 41, 102, 0.3);
  color: white;
  text-decoration: none;
}

.toast-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  font-size: 16px;
  transition: color 0.2s ease;
}

.toast-close:hover {
  color: #4b5563;
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(135deg, #702966 0%, #8b3479 100%);
  animation: progressShrink linear forwards;
}

@keyframes progressShrink {
  from { width: 100%; }
  to { width: 0%; }
}

/* Dark mode support */
[data-theme="dark"] .toast-notification {
  background: #1f2937;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .toast-title {
  color: #f3f4f6;
}

[data-theme="dark"] .toast-message {
  color: #9ca3af;
}

[data-theme="dark"] .toast-close {
  color: #6b7280;
}

[data-theme="dark"] .toast-close:hover {
  color: #d1d5db;
}
