/* Sistema de Toast Personalizado */
.toast-container {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 9999;
  max-width: 384px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.custom-toast {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 8px;
  border: 1px solid;
  padding: 16px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

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

.custom-toast.hide {
  transform: translateX(100%);
  opacity: 0;
}

/* Tipos de toast con colores semitransparentes */
.custom-toast.success {
  background-color: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.2);
}

.custom-toast.error {
  background-color: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
}

.custom-toast.warning {
  background-color: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.2);
}

.custom-toast.info {
  background-color: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
}

.toast-inner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.toast-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

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

.toast-icon.error {
  color: #ef4444;
}

.toast-icon.warning {
  color: #f59e0b;
}

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

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

.toast-title {
  font-weight: 500;
  font-size: 14px;
  color: #0f172a;
  margin-bottom: 4px;
  line-height: 1.25;
}

.toast-message {
  font-size: 14px;
  color: #64748b;
  line-height: 1.4;
  margin: 0;
}

.toast-close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.toast-close:hover {
  color: #0f172a;
}

.toast-close svg {
  width: 16px;
  height: 16px;
}

/* Animaciones de entrada */
@keyframes slideInFromRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.custom-toast.animate-in {
  animation: slideInFromRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive */
@media (max-width: 640px) {
  .toast-container {
    top: 16px;
    right: 16px;
    left: 16px;
    max-width: none;
  }
  
  .custom-toast {
    margin-left: 0;
    margin-right: 0;
  }
}

/* Modo oscuro */
@media (prefers-color-scheme: dark) {
  .toast-title {
    color: #f8fafc;
  }
  
  .toast-message {
    color: #94a3b8;
  }
  
  .toast-close {
    color: #94a3b8;
  }
  
  .toast-close:hover {
    color: #f8fafc;
  }
}