/**
 * GilGamez Mail Platform (GGZ-MAIL v5.0.0)
 * Centralized Toast Notification Stylesheet (Rule #8)
 */

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  z-index: 99999;
  pointer-events: none;
  max-width: 420px;
  width: calc(100vw - 48px);
}

.toast-item {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background-color: var(--bg-card, #121214);
  border: 1px solid var(--border-subtle, #27272a);
  border-radius: var(--radius-md, 8px);
  padding: 14px 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.3);
  color: var(--text-primary, #ffffff);
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  font-size: 13px;
  line-height: 1.45;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(12px) scale(0.97);
  opacity: 0;
  position: relative;
  overflow: hidden;
}

.toast-item.toast-show {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.toast-item.toast-hide {
  transform: translateY(8px) scale(0.96);
  opacity: 0;
}

.toast-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.toast-icon svg {
  width: 18px;
  height: 18px;
}

.toast-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.toast-title {
  font-weight: 600;
  font-size: 13.5px;
  margin-bottom: 2px;
  color: #ffffff;
}

.toast-message {
  color: var(--text-secondary, #a1a1aa);
  word-break: break-word;
}

.toast-close-btn {
  background: none;
  border: none;
  color: var(--text-muted, #71717a);
  cursor: pointer;
  padding: 2px;
  margin-left: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.toast-close-btn:hover {
  color: var(--text-primary, #ffffff);
}

.toast-close-btn svg {
  width: 14px;
  height: 14px;
}

/* Severity Accents */
.toast-success {
  border-left: 3px solid var(--accent-green, #10b981);
}
.toast-success .toast-icon {
  color: var(--accent-green, #10b981);
}

.toast-error {
  border-left: 3px solid var(--cat-spam, #ef4444);
}
.toast-error .toast-icon {
  color: var(--cat-spam, #ef4444);
}

.toast-warning {
  border-left: 3px solid var(--accent-gold, #f59e0b);
}
.toast-warning .toast-icon {
  color: var(--accent-gold, #f59e0b);
}

.toast-info {
  border-left: 3px solid var(--accent-cyan, #38bdf8);
}
.toast-info .toast-icon {
  color: var(--accent-cyan, #38bdf8);
}
