/**
 * Toast Notification System
 * Sistema de notificaciones moderno con glass-morphism
 */

.toast-notification {
  position: fixed;
  bottom: -100px;
  right: 24px;
  background: linear-gradient(135deg, #1a2332 0%, #0f1419 100%);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 10000;
  min-width: 320px;
  max-width: 420px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 229, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  opacity: 0;
  backdrop-filter: blur(10px);
}

.toast-notification.show {
  bottom: 24px;
  opacity: 1;
}

.toast-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: bold;
  flex-shrink: 0;
  animation: iconPop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes iconPop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.toast-success .toast-icon {
  background: linear-gradient(135deg, rgba(168, 255, 62, 0.2), rgba(168, 255, 62, 0.1));
  color: #a8ff3e;
  border: 2px solid rgba(168, 255, 62, 0.3);
}

.toast-error .toast-icon {
  background: linear-gradient(135deg, rgba(255, 77, 109, 0.2), rgba(255, 77, 109, 0.1));
  color: #ff4d6d;
  border: 2px solid rgba(255, 77, 109, 0.3);
}

.toast-warning .toast-icon {
  background: linear-gradient(135deg, rgba(255, 201, 71, 0.2), rgba(255, 201, 71, 0.1));
  color: #ffc947;
  border: 2px solid rgba(255, 201, 71, 0.3);
}

.toast-info .toast-icon {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(0, 229, 255, 0.1));
  color: #00e5ff;
  border: 2px solid rgba(0, 229, 255, 0.3);
}

.toast-content {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #e8edf8;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.toast-message {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #7a8aaa;
  line-height: 1.4;
}

.toast-close {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(122, 138, 170, 0.1);
  border: 1px solid rgba(122, 138, 170, 0.2);
  color: #7a8aaa;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-close:hover {
  background: rgba(255, 77, 109, 0.2);
  border-color: rgba(255, 77, 109, 0.4);
  color: #ff4d6d;
  transform: rotate(90deg);
}

/* Mobile responsive */
@media (max-width: 640px) {
  .toast-notification {
    left: 16px;
    right: 16px;
    min-width: auto;
    max-width: none;
  }
  
  .toast-notification.show {
    bottom: 16px;
  }
  
  .toast-icon {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }
  
  .toast-title {
    font-size: 14px;
  }
  
  .toast-message {
    font-size: 12px;
  }
}
