:root {
  --mt-success: #22c55e;
  --mt-error: #ef4444;
  --mt-info: #3b82f6;
  --mt-warn: #f59e0b;
  --mt-text: #f1f5f9;
  --mt-bg: #1e293b;
}

.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 99999;
}

.toast {
  min-width: 280px;
  background: var(--mt-bg);
  color: var(--mt-text);
  padding: 14px 16px;
  border-radius: 12px;
  border-left: 4px solid white;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  animation: slideIn 0.4s ease forwards;
}

.toast.hide {
  animation: slideOut 0.4s ease forwards;
}

.toast-message {
  padding-right: 0.5em;
}

.toast-message,
.toast-message * {
  font-size: 14px;
  line-height: 1.4;
}

.toast-message a {
  color: #93c5fd;
  text-decoration: none;
}

.toast-message a:hover {
  text-decoration: underline;
}

.toast-message b,
.toast-message strong {
  font-weight: 600 !important;
}

.toast-progress {
  position: absolute;
  background: white;
  bottom: 0;
  left: 0;
  height: 4px;
  width: 100%;
  transform-origin: left;
}

.toast.success .toast-progress { background: var(--mt-success); }
.toast.error .toast-progress { background: var(--mt-error); }
.toast.info .toast-progress { background: var(--mt-info); }
.toast.warn .toast-progress { background: var(--mt-warn); }

.toast.success.use-type-color .toast-message { color: var(--mt-success); }
.toast.error.use-type-color .toast-message { color: var(--mt-error); }
.toast.info.use-type-color .toast-message { color: var(--mt-info); }
.toast.warn.use-type-color .toast-message { color: var(--mt-warn); }

.toast.success { border-left: 4px solid var(--mt-success); }
.toast.error { border-left: 4px solid var(--mt-error); }
.toast.info { border-left: 4px solid var(--mt-info); }
.toast.warn { border-left: 4px solid var(--mt-warn); }

@keyframes slideIn {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(120%); opacity: 0; }
}