/* static/css/floating_button.css - Módulo reutilizable para botón flotante */

/* === CONTENEDOR PRINCIPAL DEL BOTÓN FLOTANTE === */
.floating-button-container {
  position: absolute; /* Cambiado de fixed a absolute */
  bottom: 30px;
  right: 30px;
  z-index: 100; /* Reducido para no interferir con header */
  display: none; /* Oculto por defecto */
}

/* === POSICIONAMIENTO ESPECÍFICO EN ZONA DE PDFs === */
.files-area .floating-button-container {
  position: absolute;
  bottom: 30px;
  right: 30px;
}

.floating-button-container.active {
  display: block;
  animation: fadeInUp 0.3s ease-out;
}

/* === BOTÓN PRINCIPAL === */
.floating-button {
  position: relative;
  width: 64px;
  height: 64px;
  background: #e74c3c;
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(231, 76, 60, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  outline: none;
}

.floating-button:hover {
  background: #c0392b;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(231, 76, 60, 0.6);
}

.floating-button:active {
  transform: scale(0.95);
}

/* === ÍCONO DEL BOTÓN === */
.floating-button .icon {
  font-size: 24px;
  color: white;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.floating-button.menu-open .icon {
  transform: rotate(45deg);
}

/* === CONTADOR === */
.floating-button-counter {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #2c3e50;
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s ease;
}

.floating-button-counter.visible {
  opacity: 1;
  transform: scale(1);
}

/* === MENÚ DESPLEGABLE === */
.floating-menu {
  position: absolute;
  bottom: 80px;
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  padding: 8px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.95);
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
}

.floating-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* === OPCIONES DEL MENÚ === */
.floating-menu-option {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  border: none;
  width: 100%;
  background: none;
  text-align: left;
}

.floating-menu-option:hover {
  background-color: #f8f9fa;
}

.floating-menu-option:active {
  background-color: #e9ecef;
}

.floating-menu-option .option-icon {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-menu-option .option-text {
  font-weight: 500;
}

/* === ÍCONOS ESPECÍFICOS === */
.icon-device {
  color: #3498db;
}

.icon-google-drive {
  color: #4285f4;
}

.icon-dropbox {
  color: #0061ff;
}

/* === ANIMACIONES === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* === ESTADOS ESPECIALES === */
.floating-button.pulse {
  animation: pulse 2s infinite;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .floating-button-container {
    bottom: 20px;
    right: 20px;
  }
  
  .floating-button {
    width: 56px;
    height: 56px;
  }
  
  .floating-button .icon {
    font-size: 20px;
  }
  
  .floating-menu {
    right: -20px;
    min-width: 180px;
  }
  
  .floating-menu-option {
    padding: 10px 14px;
    font-size: 13px;
  }
} 