/* Global toast styles */
#global-toast-container {
  position: fixed;
  z-index: 119999;
  top: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none; /* allow clicks through except items */
}

.toast-item {
  min-width: 240px;
  max-width: 360px;
  background: rgba(0,0,0,0.8);
  color: #fff;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: auto;
}

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

.toast-item .toast-icon {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  flex: 0 0 18px;
}

.toast-item .toast-message {
  flex: 1;
  word-break: break-word;
}

/* Types */
.toast--success { background: rgba(16, 185, 129, 0.95); }
.toast--error   { background: rgba(239, 68, 68, 0.95); }
.toast--warning { background: rgba(245, 158, 11, 0.95); }
.toast--info    { background: rgba(59, 130, 246, 0.95); }

/* Optional: progress bar */
.toast-item .toast-progress {
  position: relative;
  height: 3px;
  background: rgba(255,255,255,0.35);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 6px;
}
.toast-item .toast-progress > span {
  display: block;
  height: 100%;
  background: rgba(255,255,255,0.85);
  width: 100%;
  transform-origin: left center;
}
