#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: 400px;
  width: 100%;
}

.toast {
  pointer-events: all;
  background: #1a1a2e;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  transform: translateX(120%);
  opacity: 0;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease;
  border-left: 4px solid transparent;
}

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

.toast-saindo {
  transform: translateX(120%);
  opacity: 0;
}

.toast-sucesso {
  border-left-color: #22c55e;
}

.toast-erro {
  border-left-color: #ef4444;
}

.toast-aviso {
  border-left-color: #f59e0b;
}

.toast-header {
  display: flex;
  align-items: center;
  padding: 12px 14px 0;
  gap: 8px;
}

.toast-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  color: #fff;
}

.toast-sucesso .toast-icon {
  background: #22c55e;
}

.toast-erro .toast-icon {
  background: #ef4444;
}

.toast-aviso .toast-icon {
  background: #f59e0b;
}

.toast-titulo {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e2e8f0;
  flex: 1;
}

.toast-fechar {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.2s;
}

.toast-fechar:hover {
  color: #fff;
  transform: none;
  box-shadow: none;
}

.toast-msg {
  padding: 8px 14px 12px;
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.4;
}

.toast-progress {
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
}

.toast-progress-bar {
  height: 100%;
  width: 100%;
}

.toast-sucesso .toast-progress-bar {
  background: #22c55e;
}

.toast-erro .toast-progress-bar {
  background: #ef4444;
}

.toast-aviso .toast-progress-bar {
  background: #f59e0b;
}

@media only screen and (max-width: 768px) {
  #toast-container {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
}
