.toastContainer {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 400px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background: var(--surface-color, #ffffff);
  border: 1px solid var(--border-color, #e0e0e0);
  pointer-events: auto;
  min-width: 300px;
}

.toast.success {
  border-left: 4px solid #22c55e;
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.08) 0%, var(--surface-color, #ffffff) 100%);
}

.toast.error {
  border-left: 4px solid #ef4444;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.08) 0%, var(--surface-color, #ffffff) 100%);
}

.toast.warning {
  border-left: 4px solid #f59e0b;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.08) 0%, var(--surface-color, #ffffff) 100%);
}

.toast.info {
  border-left: 4px solid #3b82f6;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.08) 0%, var(--surface-color, #ffffff) 100%);
}

.icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon.success {
  color: #22c55e;
}

.icon.error {
  color: #ef4444;
}

.icon.warning {
  color: #f59e0b;
}

.icon.info {
  color: #3b82f6;
}

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

.title {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-color, #1f2937);
  margin: 0 0 0.25rem 0;
}

.message {
  font-size: 0.8125rem;
  color: var(--text-secondary, #6b7280);
  margin: 0;
  white-space: pre-line;
  line-height: 1.4;
}

.closeButton {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  color: var(--text-secondary, #9ca3af);
  border-radius: 4px;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.closeButton:hover {
  background: var(--hover-color, rgba(0, 0, 0, 0.05));
  color: var(--text-color, #374151);
}

/* Dark theme support */
:global(.dark) .toast {
  background: var(--surface-color, #1f2937);
  border-color: var(--border-color, #374151);
}

:global(.dark) .toast.success {
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.12) 0%, var(--surface-color, #1f2937) 100%);
}

:global(.dark) .toast.error {
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.12) 0%, var(--surface-color, #1f2937) 100%);
}

:global(.dark) .toast.warning {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.12) 0%, var(--surface-color, #1f2937) 100%);
}

:global(.dark) .toast.info {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.12) 0%, var(--surface-color, #1f2937) 100%);
}
