﻿/*
 * Shared toast/error notification utilities preserved at original cascade point.
 * Extracted from public/styles.css lines 1953-2067.
 */

/* =========================
   TOAST
========================= */

#toast-container {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  color: #e5e7eb;
  background: #1f2937;
  border: 1px solid #374151;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: auto;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
}

.toast.toast-success { border-left: 3px solid #22c55e; }
.toast.toast-error   { border-left: 3px solid #ef4444; }
.toast.toast-info    { border-left: 3px solid #3b82f6; }

/* =========================
   CHAT ERROR NOTIFICATION
========================= */

.msg-error {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  margin: 6px 12px;
  background: #2d1f1f;
  border: 1px solid #7f1d1d;
  border-left: 3px solid #ef4444;
  border-radius: 6px;
  font-size: 13px;
  color: #fca5a5;
  flex-wrap: wrap;
}

.msg-error-text { flex: 1; }

.msg-error-action {
  background: transparent;
  border: 1px solid #ef4444;
  color: #fca5a5;
  border-radius: 4px;
  padding: 2px 10px;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.msg-error-action:hover {
  background: #7f1d1d;
  color: #fff;
}

.msg-error--quota {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.msg-error--studio-unavailable {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.07);
}

.msg-error--studio-unavailable .msg-error-text {
  color: #fcd34d;
}

.msg-error--studio-unavailable .msg-error-note {
  color: #d1a53a;
}

.msg-error-list {
  margin: 2px 0 4px 0;
  padding-left: 18px;
  font-size: 12px;
  color: #fca5a5;
  line-height: 1.7;
}

.msg-error-note {
  font-size: 11px;
  color: #9ca3af;
  margin: 0;
}


