/**
 * Notification Button Styles
 * Estilos para el botón de notificaciones push
 */

.notification-btn,
.notification-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
}

.notification-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.notification-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.notification-btn:active:not(:disabled) {
  transform: translateY(0);
}

.notification-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.notification-btn.loading {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  opacity: 0.8;
}

.notification-badge {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
  cursor: default;
}

.notification-badge.active {
  animation: pulse-success 2s ease-in-out infinite;
}

@keyframes pulse-success {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
}

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

.notification-text {
  white-space: nowrap;
}

.spinner {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .notification-btn,
  .notification-badge {
    padding: 8px 12px;
    font-size: 13px;
  }

  .icon-bell {
    width: 18px;
    height: 18px;
  }

  /* Ocultar texto en móviles pequeños, solo mostrar icono */
  .notification-text {
    display: none;
  }

  .notification-btn,
  .notification-badge {
    padding: 10px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .notification-btn,
  .notification-badge {
    width: 36px;
    height: 36px;
    padding: 8px;
  }

  .icon-bell {
    width: 20px;
    height: 20px;
  }
}

/* Tema oscuro */
@media (prefers-color-scheme: dark) {
  .notification-badge {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.4);
  }
}

/* Animación de entrada */
.notification-btn,
.notification-badge {
  animation: fadeInScale 0.3s ease-out;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
