/* MatbakhLink Toast Notification System */
#matbakh-toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
  width: calc(100% - 48px);
  pointer-events: none;
}

.matbakh-toast {
  pointer-events: auto;
  background: #ffffff;
  border: 1px solid var(--color-gridline, #e5e7eb);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transform: translateY(-10px) scale(0.97);
  opacity: 0;
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.24s ease;
}

.matbakh-toast.toast-visible {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.matbakh-toast.toast-hiding {
  transform: translateY(-6px) scale(0.96);
  opacity: 0;
}

.toast-icon-wrap {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.toast-icon-wrap.success {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.toast-icon-wrap.info {
  background: #fff5f0;
  color: #ff4d00;
  border: 1px solid #fcddcc;
}

.toast-icon-wrap.warning {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
}

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

.toast-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.toast-title {
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, sans-serif);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-ink, #262626);
  letter-spacing: -0.01em;
}

.toast-meta {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: var(--color-slate, #727272);
  background: var(--color-vellum, #f9f9f9);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--color-gridline, #e5e7eb);
}

.toast-message {
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, sans-serif);
  font-size: 12px;
  color: var(--color-slate, #727272);
  line-height: 1.45;
  margin: 0;
}

.toast-close-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--color-slate, #727272);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background 0.15s ease;
}

.toast-close-btn:hover {
  color: var(--color-ink, #262626);
  background: var(--color-vellum, #f9f9f9);
}

@media (max-width: 640px) {
  #matbakh-toast-container {
    top: auto;
    bottom: 20px;
    right: 16px;
    left: 16px;
    width: auto;
    max-width: none;
  }
}
