/* Sistema de Toast Notifications */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  min-width: 300px;
  max-width: 500px;
  background: var(--color-bg-main);
  border-radius: var(--radius, 8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: flex-start;
  padding: 16px;
  position: relative;
  overflow: hidden;
  animation: slideIn 0.3s ease-out;
  pointer-events: auto;
}

@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  flex-shrink: 0;
  margin-right: 12px;
}

.toast.success .toast-icon {
  background: var(--color-toast-success);
  color: var(--color-text-inverse);
}

.toast.error .toast-icon {
  background: var(--color-toast-error);
  color: var(--color-text-inverse);
}

.toast.warning .toast-icon {
  background: var(--color-toast-warning);
  color: var(--color-text-inverse);
}

.toast.info .toast-icon {
  background: var(--color-toast-info);
  color: var(--color-text-inverse);
}

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

.toast-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.toast-message {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.4;
  word-wrap: break-word;
}

.toast-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding: 4px 8px;
  transition: color 0.2s;
}

.toast-close:hover {
  color: var(--color-text-secondary);
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  animation: progress 3s linear forwards;
}

.toast.success .toast-progress {
  background: var(--color-toast-success);
}

.toast.error .toast-progress {
  background: var(--color-toast-error);
}

.toast.warning .toast-progress {
  background: var(--color-toast-warning);
}

.toast.info .toast-progress {
  background: var(--color-toast-info);
}

@keyframes progress {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}

/* Responsive */
@media (max-width: 768px) {
  #toast-container {
    top: 10px;
    right: 10px;
    left: 10px;
  }

  .toast {
    min-width: auto;
    max-width: none;
  }
}
