/**
 * Toast Notification Styles
 * Matches platform design with teal theme
 */

.toast-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  min-width: 300px;
  max-width: 500px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
  z-index: 999999;
  isolation: isolate;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.toast-notification.show {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  position: relative;
}

.toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 14px;
}

.toast-message {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: #383A47;
}

.toast-close {
  background: none;
  border: none;
  color: #70727F;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

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

/* Success Toast (Teal) */
.toast-success {
  border-left: 4px solid #0D9488;
}

.toast-success .toast-icon {
  background: #F0FDFA;
  color: #0D9488;
}

/* Error Toast (Red) */
.toast-error {
  border-left: 4px solid #EF4444;
}

.toast-error .toast-icon {
  background: #FEF2F2;
  color: #EF4444;
}

/* Warning Toast (Orange) */
.toast-warning {
  border-left: 4px solid #F59E0B;
}

.toast-warning .toast-icon {
  background: #FFFBEB;
  color: #F59E0B;
}

/* Info Toast (Blue) */
.toast-info {
  border-left: 4px solid #3B82F6;
}

.toast-info .toast-icon {
  background: #EFF6FF;
  color: #3B82F6;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .toast-notification {
    top: 10px;
    right: 10px;
    left: 10px;
    min-width: auto;
    max-width: none;
  }

  .toast-notification {
    transform: translateY(-100px);
  }

  .toast-notification.show {
    transform: translateY(0);
  }
}

/* Dark theme support (if sidebar is dark) */
@media (prefers-color-scheme: dark) {
  .toast-notification {
    background: #2a2d3a;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
  }

  .toast-message {
    color: rgba(255, 255, 255, 0.95);
  }

  .toast-close {
    color: rgba(255, 255, 255, 0.5);
  }

  .toast-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
  }
}
