/* Estilos de la página principal */
.main-page {
  max-width: 800px;
  padding: 3rem;
  text-align: center;
  background-color: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ancho {
  width: 100%;
}

.hello {
  position: absolute;
  left: 2%;
  top: 47px;
  /* font-size: 18px; */
  font-weight: 200;
  transition: all 0.5s ease;
  pointer-events: none;
}


.form-check-input:disabled {
  opacity: 1;
}

.form-check-input:disabled~.form-check-label,
.form-check-input[disabled]~.form-check-label {
  opacity: 1;
}

input[type="text"]:focus~.hello {
  display: block;
  color: black;
  top: 17px;
  /* font-size: 14px; */
}

input[type="text"]:focus~.enter {
  background-color: #0f1f7a;
  position: absolute;
  content: " ";
  height: 1px;
  right: 45%;
  top: 42px;
  transform: scaleX(5);
}

textarea,
input {
  outline: none;
  border: 0;
  border-bottom: 1px solid #cecece;
  height: 40px;
  width: 50%;
}

/* pagination buttons */
.page-link {
  cursor: pointer;
  /* Cambia el puntero del ratón al icono de la mano */
}

/* Estilo para el botón contenedor */
#animatedButton {
  /* padding: 15px 30px; */
  /* border-radius: 12px; */
  /* Habilitar la transición en el botón para un hover suave */
  transition: all 0.2s ease-in-out;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  /* background-color: #007bff; */
  /* Azul de Bootstrap */
  color: white;
  /* width: 35px;
  height: 35px; */
}

/* ÍCONO DENTRO DEL BOTÓN */
.blinking-icon-example {
  /* font-size: 1vw; */
  /* Tamaño ajustado para el botón */
  /* color: #FFD700; */
  /* Dorado para que destaque */
  /* Quitar el cursor: pointer ya que el botón lo maneja */
  cursor: default;
  /* Asegurar que la transformación se aplique desde el centro del ícono */
  transform-origin: center center;
  /* El ícono necesita su propia transición para resetearse suavemente */
  transition: transform 0.2s;
  display: inline-block;
  /* Necesario para que el transform funcione */
}

/* 1. Definir la animación de un solo parpadeo (CERRAR Y ABRIR usando escalado vertical) */
@keyframes close-eye {
  0% {
    transform: scale(1);
  }

  /* Abierto */
  30% {
    transform: scale(1.1, 0.1);
  }

  /* Cierra (escala Y al 10%) */
  60% {
    transform: scale(1.1, 0.1);
  }

  /* Mantenido cerrado brevemente */
  100% {
    transform: scale(1);
  }

  /* Abierto de nuevo */
}

/* 2. APLICAR LA ANIMACIÓN AL ÍCONO SOLAMENTE CUANDO EL BOTÓN (el #animatedButton) RECIBE HOVER */
#animatedButton:hover .blinking-icon-example {
  /* Ejecuta 'close-eye' durante 0.5s, una sola vez (1) */
  animation: close-eye 0.5s 1;
}

.bi-eye-fill::before {
  cursor: pointer;
}

/* Efecto visual adicional al botón para indicar que está activo */
#animatedButton:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.6);
}

.action-btn {
  margin: auto;
  align-items: center;
  justify-content: center;
  text-align: center;
  display: inline-flex;
}


/* Clases base del botón para transiciones suaves */
.animated-share-btn {
  margin-right: 6px !important;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform: translateY(0);
  border: none;
  overflow: hidden;
  /* Importante para que el avión se vaya "fuera" del botón */
  position: relative;
  /* Necesario para posicionar la estela si se agrega después */
  /* Asegura que el botón sea un cuadrado perfecto (opcional, dependiendo del padding) */
  aspect-ratio: 1 / 1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5) !important;
}

/* Efecto al pasar el ratón (Hover) */
.animated-share-btn:hover {
  transform: translateY(-5px);
  /* Elevación más pronunciada */
  box-shadow: 0 1.2rem 3.5rem rgba(0, 0, 0, 0.35) !important;
  /* Sombra más profunda */
  /* background-color: #dc3545; */
  /* Rojo de Bootstrap */
}

/* Estilo y animación del ícono (fa-paper-plane) */
.animated-share-btn i {
  /* IMPORTANTE: Aseguramos que el ícono sea un bloque para que el transform funcione correctamente */
  display: inline-block !important;
  /* Transición para el movimiento, escala y opacidad */
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1), opacity 0.5s ease-out;
  transform: translate(0, 0) scale(1) rotate(0deg);
  /* Estado inicial */
  opacity: 1;
  transform-origin: center center;
  position: relative;
  z-index: 2;
  /* font-size: .9vw; */
}

/* Animación de "Volando y Desvaneciéndose" del avión */
/* HE AUMENTADO LA ESPECIFICIDAD USANDO EL :hover Y LA CLASE DEL ÍCONO PARA FORZAR LA ANIMACIÓN */
.animated-share-btn:hover .fa-paper-plane {
  /* Mover hacia arriba y a la derecha, rotar, escalar y desvanecer */
  transform: translate(30px, -30px) scale(1.5) rotate(20deg) !important;
  /* Movimiento, rotación y !important */
  opacity: 0 !important;
  /* Desvanecimiento y !important */
}

/* Estilo para el botón contenedor */
#animatedButton2 {
  text-align: center;
  padding-top: 10px;
  justify-content: center;
  align-items: center;
  /* padding: 15px 30px; */
  /* font-size: 2rem; */
  /* border-radius: 12px; */
  transition: all 0.2s ease-in-out;
  border: none;
  color: white;
  margin: auto;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}


/* Estilo general para el cuerpo */
.trash-body {
  /* font-size: .9vw; */
  position: absolute;
  top: -1px;
  left: -0.5px;
  line-height: 1;
  color: #fff;
  /* Gris oscuro para el cuerpo */
  z-index: 5;
}

/* TAPA (SVG INLINE): Elemento que se anima */
.trash-lid {
  position: absolute;
  top: -1px;
  left: 1px;
  width: 100%;
  height: 100%;

  /* AJUSTE MANUAL: Subir -2px y ensanchar a 95% para mejor cobertura */
  transform: translateY(-2px) scale(0.95);

  /* Punto de pivote para la rotación (esquina superior izquierda del icono) */
  transform-origin: 10% 50%;
  transition: transform 0.2s ease-out;
  z-index: 10;
}

/* 1. Definir la animación de levantar la tapa (SOLO ROTACIÓN) */
@keyframes lid-lift {
  0% {
    /* Estado inicial (cerrado) */
    transform: translateY(-2px) scale(0.95) rotate(0deg);
  }

  100% {
    /* Rotamos -35 grados, manteniendo el resto de transformaciones */
    transform: translateY(-2px) scale(0.95) rotate(-35deg);
  }
}

/* 2. Aplicar la animación al SVG de la TAPA CUANDO EL BOTÓN RECIBE HOVER */
#animatedButton2:hover .trash-lid {
  animation: lid-lift 0.6s 1 forwards;
  /* Una sola vez, manteniendo el estado final */
}

/* Estilo para el Rectángulo SVG */
.lid-rect {
  fill: #f0f0f0;
  /* Color gris claro para la tapa */
}

/* Efecto visual adicional al botón para indicar que está activo */
#animatedButton2:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.6);
  /* background-color: #383838; */
}

/* 1. Definición de la animación de "Trazado de Escritura" (Sutil) */
@keyframes writing-motion {

  /* Simula el lápiz moviéndose sutilmente 9px hacia adelante y ligeramente inclinado */
  from {
    transform: translateX(-6px) translateY(0) rotate(0deg);
  }

  to {
    transform: translateX(9px) translateY(-1px) rotate(3deg);
  }
}

/* 2. Estilo general del botón y efectos de hover personalizados */
.pencil-button {
  position: relative;
  z-index: 1;
  /* background-color: #4f46e5; */
  /* border-color: #4f46e5; */
  padding: 0 !important;
  transition: all 0.3s ease;
  transform: scale(1);
  /* font-size: 1rem; */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.pencil-button:hover {
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.4) !important;
  /* Sombra más pronunciada en hover */
  /* transform: scale(1.05); */
  /* Efecto de crecimiento (similar a hover:scale-105) */
  transform: translateY(-5px);
}

/* Ajuste para el tamaño del icono de Lucide (w-6 h-6) */
.pencil-button i {
  padding-top: 0px;
  /* width: 24px;
            height: 24px; */
}

/* 3. Implementación de la línea de "escritura" (Writing Line) */
.writing-line {
  display: inline-block;
  width: 7px;
  /* Ancho final fijo del trazo */
  height: 2px;
  /* Línea más delgada */
  background-color: white;
  /* Color del trazo principal */
  border-radius: 9999px;
  /* Forma circular (garabato redondeado) */

  /* **POSICIONAMIENTO ABSOLUTO: PEGADA AL LÁPIZ** */
  position: absolute;
  left: 0px;
  bottom: 9px;
  /* Posición vertical para pegarla a la punta */

  /* Animación: Crece horizontalmente (scaleX) */
  transform: scaleX(0);
  /* Inicialmente el trazo no tiene ancho */
  transform-origin: left center;
  /* El trazo crece desde el lado izquierdo */

  /* Transición sincronizada con la animación del lápiz */
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1),
    left 0.6s cubic-bezier(0.25, 1, 0.5, 1);

  margin: 0;
}

.pencil-button:hover .writing-line {
  /* Se extiende completamente */
  transform: scaleX(1);
  /* Se desplaza 9px, siguiendo el movimiento translateX(9px) del lápiz: 20px (inicio) + 9px (desplazamiento) = 29px */
  left: 10px;
}

/* 4. Animación del icono (Movimiento de Trazado) */
.pencil-button:hover .pencil-icon {
  /* Aplica la animación sutil y se mantiene al final (forwards) */
  animation: writing-motion 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.pencil-icon {
  /* Asegura que la transformación se aplique solo al icono */
  display: inline-block;
  transition: transform 0.6s, color 0.3s;
  /* padding-top: 10px; */
  /* font-size: .9vw; */
}

/* Estilos para el contenedor de la tarjeta */
.shadow-3xl {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.rounded-3 {
  border-radius: 0.5rem !important;
}

/* 1. Definición de la animación de "Duplicar" */
@keyframes duplicate-action {
  0% {
    transform: translate(0, 0);
    opacity: 1;
  }

  50% {
    transform: translate(-3px, -3px);
    opacity: 0.8;
  }

  /* Icono original se mueve */
  100% {
    transform: translate(0, 0);
    opacity: 1;
  }
}

/* 2. Animación del icono "fantasma" que simula la copia */
@keyframes duplicate-copy-appear {
  0% {
    transform: translate(0, 0) scale(0.5);
    opacity: 0;
  }

  50% {
    transform: translate(3px, 3px) scale(1);
    opacity: 1;
  }

  100% {
    transform: translate(3px, 3px) scale(1.1);
    opacity: 0;
  }

  /* Desaparece rápidamente */
}

/* 3. Estilo general del botón y efectos de hover */
.copy-button {
  /* Cambiado de .pencil-button a .copy-button */
  position: relative;
  z-index: 1;
  /* background-color: #4f46e5; */
  /* border-color: #4f46e5; */
  padding: 0 !important;
  transition: all 0.3s ease;
  transform: scale(1);
  overflow: hidden;
  /* font-size: 1rem; */
  /* Oculta el fantasma antes de aparecer */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.copy-button:hover {
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.4) !important;
  /* transform: scale(1.05); */
  transform: translateY(-5px);
}

/* 4. Estilos del contenedor del icono principal */
.icon-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 2px;
}

/* 5. Estilos y animación del icono principal */
.copy-main-icon {
  /* Asegura que la transformación se aplique solo al icono */
  display: inline-block;
  transition: all 0.2s ease-in-out;
  position: relative;
  /* Para que el fantasma se posicione respecto a este */
  z-index: 2;
  /* Para que esté encima del fantasma al inicio */
  /* font-size: .9vw; */
}

.copy-button:hover .copy-main-icon {
  animation: duplicate-action 0.6s ease-out forwards;
}

/* 6. Estilos del icono "fantasma" o "copia" */
.copy-ghost-icon {
  position: absolute;
  color: rgba(255, 255, 255, 0.6);
  /* Color ligeramente transparente */
  z-index: 1;
  /* Para que esté por debajo del original al principio */
  /* Inicialmente oculto y listo para aparecer */
  transform: translate(0, 0) scale(0.5);
  opacity: 0;
  left: 0;
}

.copy-button:hover .copy-ghost-icon {
  animation: duplicate-copy-appear 0.6s ease-out forwards;
}

/* Ajuste para el tamaño del icono de Font Awesome */
.copy-button i {
  /* width: 24px;
  height: 24px; */
  color: white;
  /* Asegura el color blanco */
  /* font-size: 1.25rem; */
  /* Para Font Awesome */
}

/* Estilos para el contenedor de la tarjeta */
.shadow-3xl {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.rounded-3 {
  border-radius: 0.5rem !important;
}

/* 1. Definición de la animación de Pulso (QR Code) */
@keyframes qr-pulse {

  /* Pulso que simula la activación del QR */
  0% {
    transform: scale(1);
    color: white;
  }

  50% {
    transform: scale(1.1);
    color: #87e2a9;
  }

  /* Color de activación (verde claro) */
  100% {
    transform: scale(1);
    color: white;
  }
}

/* 2. Animación de la línea de Escaneo (para el pseudo-elemento) */
@keyframes qr-scan {

  /* La línea se mueve de arriba abajo */
  0% {
    top: 0%;
    opacity: 0.5;
  }

  50% {
    top: 90%;
    opacity: 1;
  }

  100% {
    top: 90%;
    opacity: 0;
  }

  /* Se desvanece al final del recorrido */
}

/* 3. Estilo general del botón y efectos de hover */
.qr-button {
  position: relative;
  z-index: 1;
  background-color: #28a745;
  border-color: #28a745;
  width: 35px;
  height: 35px;
  padding: 0 !important;
  transition: all 0.3s ease;
  transform: scale(1);
  overflow: hidden;
  /* CRÍTICO: Contiene la línea de escaneo dentro del botón */
}

.qr-button:hover {
  background-color: #28a745;
  border-color: #28a745;
}

.qr-button:hover {
  transform: scale(1.05);
}

/* 4. Estilos para el Icono Principal */
.qr-icon {
  display: inline-block;
  transition: all 0.2s ease-in-out;
  position: relative;
  z-index: 2;
  /* Asegura que el icono esté sobre la línea de escaneo */
}

.qr-button:hover .qr-icon {
  /* Aplica la animación de pulso al icono */
  animation: qr-pulse 0.8s ease-in-out forwards;
}

/* 5. Pseudo-elemento para la línea de escaneo */
.qr-button::after {
  content: "";
  position: absolute;
  width: 80%;
  /* Ancho reducido para centrar la línea */
  height: 3px;
  background: rgba(255, 255, 255, 0.9);
  top: 0;
  left: 10%;
  /* Centra la línea horizontalmente */
  opacity: 0;
  z-index: 3;
  /* Asegura que la línea esté sobre todo */
  border-radius: 9999px;
  /* Bordes redondeados para la línea */
}

.qr-button:hover::after {
  /* Aplica la animación de escaneo al pseudo-elemento */
  animation: qr-scan 0.8s ease-in-out forwards;
}

/* Ajuste para el tamaño del icono de Font Awesome */
.qr-button i {
  width: 24px;
  height: 24px;
  color: white;
  /* font-size: 1.5rem; */
  /* Icono un poco más grande */
}

/* Estilos para el contenedor de la tarjeta */
.shadow-3xl {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.rounded-3 {
  border-radius: 0.5rem !important;
}

/* ------------------------------------------------------------------ */
/* ESTILOS DEL BOTÓN DE DASHBOARD */
/* ------------------------------------------------------------------ */
/* 1. ESTILOS BASE DEL CONTENEDOR */
.gauge-container {
  display: inline-block;
  border-radius: 1rem;
  /* background-color: #ffffff; */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}

/* 2. ESTILO DEL ICONO */
.gauge-icon {
  /* Tamaño grande */
  /* color: #22c55e; */
  /* Color inicial (verde) */
  transition: all 0.3s ease-in-out;
  display: block;
  /* Asegura que la transición de color sea suave */
}

/* 3. ESTILOS HOVER (Añadimos rotación, escala y sombra al contenedor) */
/* .gauge-container:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.5), 0 4px 6px -2px rgba(239, 68, 68, 0.2);
  background-color: #fee2e2; */
/* Fondo de color claro (rojo) */
/* } */

/* 4. ESTILOS DEL ICONO AL HACER HOVER */
/* .gauge-container:hover .gauge-icon { */
/* color: #ef4444; */
/* Rojo para simular alta intensidad */
/* Se aplica una ligera rotación para dar un efecto de dinamismo */
/* transform: rotate(10deg);
} */

/* Estilo para ocultar el ícono de 'gauge-high' por defecto */
.gauge-high-icon {
  display: none;
}

/* Cuando el ratón está sobre el botón, hacemos dos cosas: */
#gaugeContainer:hover .gauge-icon {
  /* 1. Ocultar el ícono normal ('gauge') */
  display: none;
}

#gaugeContainer:hover .gauge-high-icon {
  /* 2. Mostrar el ícono de 'gauge-high' */
  display: inline-block;
}

/* Opcional: Estilo para que el botón no cambie de tamaño al cambiar el ícono */
/* Asegúrate de que el contenedor tenga un ancho suficiente para ambos íconos */
.icon-container {
  width: 1.25em;
  display: inline-block;
  text-align: center;
}

/* ------------------------------------------------------------------ */
/* ESTILOS DEL BOTÓN DE CREAR NUEVA ENCUESTA */
/* ------------------------------------------------------------------ */
/* Contenedor del botón base */
.btn-survey-bs {
  /* Clases de Bootstrap: btn-lg para grande, shadow-lg para sombra */
  position: relative;
  /* Usa inline-flex para alinear iconos y texto */
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  font-size: 1.25rem;
  /* Tamaño de fuente grande */
  font-weight: bold;
  transition: all 0.3s ease-in-out;
  gap: 0.5rem;
  /* Espacio entre los elementos internos */
  border-radius: 0.75rem;
}

/* Color personalizado para el botón principal (azul de Bootstrap) */
.btn-primary {
  --bs-btn-bg: #2563eb;
  --bs-btn-border-color: #2563eb;
  --bs-btn-hover-bg: #1e40af;
  --bs-btn-hover-border-color: #1e40af;
  --bs-btn-active-bg: #1e40af;
  --bs-btn-active-border-color: #1e40af;
}

/* Contenedor del ícono para habilitar el posicionamiento absoluto de la tapa */
.icon-wrapper {
  position: relative;
  display: inline-block;
  /* Establece un tamaño base para el contenedor */
  width: 1rem;
  height: 1rem;
  /* font-size: 2.5rem;  */
}

.btn-size {
  width: 9.5%;
  height: 4.4vh;
}

.icon-size {
  font-size: .9vw;
}

@media screen and (max-width:1280px) {
  .pencil-icon {
    padding-top: 5px;
  }

  .btn-size {
    width: 12.5%;
    height: 5.4vh;
  }
}

@media screen and (max-width: 500px) {
  .btn-size {
    width: 50%;
    height: 7.5vh;
    margin-bottom: 1vh;
  }

  .icon-size {
    font-size: 4vw;
  }
}


/* Icono principal */
.main-icon {
  display: inline-block;
  transition: transform 0.3s ease-in-out;
  /* margin-top: 5px; */
}

/* Icono Plus: Posicionado en la esquina superior derecha y oculto */
.plus-icon {
  position: absolute;
  top: -7px;
  right: -2px;
  font-size: .75rem;
  opacity: 0;
  transform: scale(0);
  color: #28a745;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 10;
  background-color: white;
  border-radius: 100%;
}

/* Estado Hover del botón: pequeño lift (mantenido del código anterior) */
.btn-survey-bs:hover {
  transform: translateY(-2px);
}

/* Estado Hover: Mostrar y escalar el icono Plus */
.btn-survey-bs:hover .plus-icon {
  transform: scale(1.3);
  /* Lo hace un poco más grande que su tamaño inicial de 1rem */
  opacity: 1;
}

/* ------------------------------------------------------------------ */
/* ESTILOS DEL BOTÓN DE CERRAR SESIÓN */
/* ------------------------------------------------------------------ */

/* Contenedor del botón de Cerrar Sesión */
.btn-logout-bs {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-weight: bold;
  transition: all 0.3s ease-in-out;
  border-radius: 0.75rem;
}

/* Estado Hover del botón: pequeño lift */
.btn-logout-bs:hover {
  transform: translateY(-2px);
}

/* .icon-close-container {
  position: relative;
  width: 1.2rem;
  height: 1rem;
} */

/* Estilo base para ambos iconos superpuestos */
.main-icon {
  /* color: white; */
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, color 0.3s ease-in-out;
  /* position: absolute; */
  /* Superpone ambos iconos */
  top: 0;
  left: 0;
}

/* Icono de Salida (fa-right-from-bracket): Visible por defecto */
.icon-exit {
  opacity: 1;
  transform: rotateY(0deg);
}

/* Icono de Entrada (fa-right-to-bracket): Oculto por defecto */
.icon-enter {
  opacity: 0;
  /* Inicia con una rotación para el efecto de "cambio" */
  transform: rotateY(-90deg);
}

/* Efecto Hover: Ocultar icono de Salida y mostrar icono de Entrada */
.btn-logout-bs:hover .icon-exit {
  opacity: 0;
  transform: rotateY(90deg);
  /* Desaparece con rotación */
  color: white;
  /* No cambia de color en este estado */
}

.btn-logout-bs:hover .icon-enter {
  opacity: 1;
  transform: rotateY(0deg);
  /* Aparece sin rotación */
  /* color: #ffda00; */
  /* Cambia a color amarillo en hover */
}

footer {
  position: fixed;
  bottom: 0;
  width: 100vw;
  background: rgba(255, 255, 255, 0.5);
}

@media (max-width: 576px) {
  .ancho {
    width: 100%;
  }

  .titulo-pagina {
    font-size: 1.4dvh;
  }

  .hello {
    left: 6%;
    top: 21px;
  }

  input[type="text"]:focus~.hello {
    top: -3px;
  }

  .iconos {
    margin-bottom: .625rem;
    width: 3rem;
    height: 3rem;
    font-size: 2rem;
  }
}

.footer-img {
  width: 1.25vw;
}

.title-size {
  font-size: 1vw;
}

@media screen and (max-width:500px) {
  .title-size {
    font-size: 3vw;
  }

  .footer-img {
    width: 3.25vw;
  }
}

.form-select {
  font-size: .8vw;
}

/* Contenedor de la Tarjeta */
.survey-item-row {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.survey-item-row:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(13, 202, 240, 0.4);
  transform: translateX(8px);
}

/* Indicador de Estado Lateral */
.survey-status-bar {
  width: 4px;
  height: 35px;
  border-radius: 4px;
}

.survey-status-bar.active {
  background: #0dcaf0;
  box-shadow: 0 0 10px rgba(13, 202, 240, 0.5);
}

.survey-status-bar.inactive {
  background: #6c757d;
}

/* Botones de Acción Minimalistas */
.action-btn-minimal {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.action-btn-minimal:hover {
  background: rgba(13, 202, 240, 0.15);
  color: #0dcaf0;
  border-color: #0dcaf0;
  transform: translateY(-2px);
}

.action-btn-minimal.delete:hover {
  background: rgba(220, 53, 69, 0.15);
  color: #dc3545;
  border-color: #dc3545;
}

/* Badge para encuestas ACTIVAS (Verde) */
.badge-status-active {
  color: #2ecc71 !important;
  /* Verde esmeralda brillante */
  border: 1px solid #2ecc71 !important;
  background: rgba(46, 204, 113, 0.1) !important;
  text-shadow: 0 0 5px rgba(46, 204, 113, 0.5);
  box-shadow: 0 0 10px rgba(46, 204, 113, 0.1);
}

/* Badge para encuestas INACTIVAS (Rojo) */
.badge-status-inactive {
  color: #e74c3c !important;
  /* Rojo vibrante */
  border: 1px solid #e74c3c !important;
  background: rgba(231, 76, 60, 0.1) !important;
  text-shadow: 0 0 5px rgba(231, 76, 60, 0.5);
  box-shadow: 0 0 10px rgba(231, 76, 60, 0.1);
}

/* Ajuste general para los distintivos */
[class^="badge-status-"] {
  font-size: 0.6rem;
  font-weight: 650;
  padding: 2px 10px;
  border-radius: 6px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.op-50 {
  opacity: 0.5;
}

.survey-card-premium {
  display: flex !important;
  align-items: center !important;
  /* Centra TODO verticalmente */
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 1rem;
  position: relative;
  transition: transform 0.2s ease;
  min-height: 90px;
}


.survey-card-premium:hover {
  background: rgba(15, 30, 50, 0.95);
  border-color: #0dcaf0;
  box-shadow: 0 0 25px rgba(13, 202, 240, 0.3);
}

/* 1. Contenedor de las acciones de la tarjeta */
.survey-actions-wrapper {
  display: flex !important;
  align-items: center !important;
  /* Alinea la barra y los botones al centro vertical */
  gap: 12px !important;
  /* Recupera el espacio perdido entre botones */
}

.status-indicator {
  width: 6px !important;
  height: 45px !important;
  border-radius: 10px !important;
  flex-shrink: 0 !important;
  background: #0dcaf0 !important;
  box-shadow: 0 0 10px rgba(13, 202, 240, 0.5);
  /* Sombra más ligera para LCP */
  margin: auto 15px auto 0 !important;
  /* El 'auto' vertical lo centra siempre */
}

/* 3. Unificar estados en Cyan */
.status-indicator.active,
.status-indicator.inactive {
  background: #0dcaf0 !important;
  box-shadow: 0 0 15px rgba(13, 202, 240, 0.6) !important;
}

/* Ajuste para móvil: Que no quede pegada al borde superior en columna */
@media (max-width: 767px) {
  .status-indicator {
    margin-bottom: 15px !important;
    /* Separa de la tarjeta en móvil */
    height: 30px !important;
    /* Un poco más pequeña en móvil */
  }
}

/* Botones ejecutivos */
.btn-action-premium {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #0dcaf0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-action-premium:hover {
  background: #0dcaf0;
  color: #0a1423;
  transform: scale(1.15) rotate(5deg);
}

.btn-action-premium.delete:hover {
  background: #ff4d4d;
  color: white;
  border-color: #ff4d4d;
}

.search-container-premium {
  background: rgba(10, 20, 35, 0.8);
  border: 1px solid rgba(13, 202, 240, 0.3);
  border-radius: 12px;
  padding: 5px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.search-container-premium:focus-within {
  border-color: #0dcaf0;
  box-shadow: 0 0 15px rgba(13, 202, 240, 0.3);
}

.search-icon {
  margin-left: 15px;
  color: #0dcaf0;
  font-size: 1.1rem;
}

.form-control-search {
  background: transparent;
  border: none;
  color: white;
  padding: 12px 15px;
  width: 100%;
  outline: none;
}

.form-control-search::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.search-badge {
  background: rgba(13, 202, 240, 0.1);
  color: #0dcaf0;
  font-size: 0.6rem;
  padding: 4px 8px;
  border-radius: 6px;
  margin-right: 10px;
  text-transform: uppercase;
  font-weight: bold;
  border: 1px solid rgba(13, 202, 240, 0.2);
  white-space: nowrap;
}

.search-wrapper-floating {
  background: rgba(10, 20, 35, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(13, 202, 240, 0.5);
  /* Borde más brillante */
  border-radius: 50px;
  /* Forma de píldora para diferenciarlo de las cards */
  padding: 8px 25px;
  box-shadow: 0 0 20px rgba(13, 202, 240, 0.15);
  transition: all 0.4s ease;
}

.search-wrapper-floating:focus-within {
  box-shadow: 0 0 30px rgba(13, 202, 240, 0.3);
  transform: scale(1.01);
}

.search-box-inner {
  display: flex;
  align-items: center;
  gap: 15px;
}

.search-main-icon {
  color: #0dcaf0;
  font-size: 1.2rem;
}

.input-search-clean {
  background: transparent;
  border: none;
  color: white;
  width: 100%;
  padding: 10px 0;
  font-size: 1rem;
  outline: none !important;
}

.search-status-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(13, 202, 240, 0.1);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.65rem;
  color: #0dcaf0;
  font-weight: bold;
  letter-spacing: 1px;
}

.dot-pulse {
  width: 6px;
  height: 6px;
  background: #0dcaf0;
  border-radius: 50%;
  box-shadow: 0 0 8px #0dcaf0;
  animation: pulseSearch 1.5s infinite;
}

@keyframes pulseSearch {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }

  100% {
    opacity: 1;
  }
}

.search-inner-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-accent-icon {
  color: #0dcaf0;
  font-size: 1.1rem;
  text-shadow: 0 0 10px rgba(13, 202, 240, 0.5);
}

/* Rediseño del Pill "EN VIVO" */
.status-pill-neon {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(13, 202, 240, 0.5);
  padding: 4px 12px;
  border-radius: 50px;
  min-width: fit-content;
}

.pill-text {
  color: #0dcaf0;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  margin-left: 8px;
}

.neon-dot {
  width: 8px;
  height: 8px;
  background-color: #0dcaf0;
  border-radius: 50%;
  box-shadow: 0 0 10px #0dcaf0, 0 0 20px #0dcaf0;
  animation: neon-pulse 1.5s infinite;
}

@keyframes neon-pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.6;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.survey-card-premium h5 {
  color: #ffffff !important;
  /* Blanco puro para el título */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.stats-row span {
  color: #e0f7fa !important;
  /* Azul blanquecino muy claro */
  font-weight: 500;
}

.stats-row i {
  color: #0dcaf0 !important;
  /* Iconos en cian brillante */
}

/* Texto de alto brillo */
.text-glow {
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
  /* Reducido para velocidad */
  letter-spacing: 0.5px;
}

.text-bright {
  color: #f0f9ff !important;
  /* Azul blanquecino ultra-claro */
  font-size: 0.85rem;
}

.text-bright span {
  display: inline-flex;
  align-items: center;
}

/* Asegurar que los botones no se encojan */
.btn-action-premium {
  min-width: 42px;
  min-height: 42px;
  background: rgba(13, 202, 240, 0.15) !important;
  border: 1px solid #0dcaf0 !important;
  color: #0dcaf0 !important;
}

/* Mensaje de No Resultados */
#noResultsMessage {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  display: none;
}

.actions-container {
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
}

.btn-action-premium {
  flex: 1;
  /* Los botones crecen para llenar el ancho en móviles */
  max-width: 50px;
}

.text-bright {
  font-size: 0.75rem !important;
  /* Texto un poco más pequeño en móviles */
}

/* Estilo base de los botones de acción */
.btn-action-premium {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(13, 202, 240, 0.3) !important;
  color: rgba(255, 255, 255, 0.7) !important;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  text-decoration: none;
}

/* Hover General (Azul/Cian) */
.btn-action-premium:hover {
  background: rgba(13, 202, 240, 0.2) !important;
  border-color: #0dcaf0 !important;
  color: #0dcaf0 !important;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(13, 202, 240, 0.3);
}

/* Hover específico para el botón de ELIMINAR (Rojo) */
.btn-action-premium.delete:hover {
  background: rgba(255, 68, 68, 0.2) !important;
  border-color: #ff4444 !important;
  color: #ff4444 !important;
  box-shadow: 0 5px 15px rgba(255, 68, 68, 0.3);
}

/* Iconos internos */
.btn-action-premium i {
  font-size: 1.1rem;
  pointer-events: none;
  /* Evita interferencias con el click */
}

/* Estilo para el ID siempre visible */
.op-70 {
  opacity: 0.7;
  letter-spacing: 0.5px;
}

/* Hover de eliminar (Recuperado) */
.btn-action-premium.delete:hover {
  background: rgba(255, 68, 68, 0.2) !important;
  border-color: #ff4444 !important;
  color: #ff4444 !important;
  box-shadow: 0 0 15px rgba(255, 68, 68, 0.4);
}

/* Ajustes Responsivos */
@media (max-width: 767.98px) {
  .survey-card-premium {
    text-align: center;
    /* Centra el texto en móvil */
    align-items: center !important;
  }

  .actions-container {
    width: 100%;
    justify-content: center !important;
    /* Centra los botones */
    gap: 10px !important;
    /* Espacio controlado entre botones */
    border-top: 1px solid rgba(13, 202, 240, 0.2);
    padding-top: 15px;
    margin-top: 5px;
  }

  .btn-action-premium {
    width: 45px !important;
    height: 45px !important;
  }

  .stats-row {
    justify-content: center;
    /* Centra las estadísticas en móvil */
  }
}

/* --- INDICADOR LATERAL (SEMÁFORO) --- */
.status-bar {
  width: 6px !important;
  min-height: 45px !important;
  border-radius: 20px;
  margin-right: 15px;
  display: block !important;
}

.status-bar.active {
  background-color: #2ecc71 !important;
  box-shadow: 0 0 15px rgba(46, 204, 113, 0.7);
}

.status-bar.inactive {
  background-color: #e74c3c !important;
  box-shadow: 0 0 15px rgba(231, 76, 60, 0.7);
}

/* --- ESTILO DEL ID --- */
.id-tech-label {
  font-family: 'Courier New', monospace;
  color: #0dcaf0 !important;
  font-size: 0.8rem;
  opacity: 0.9;
  letter-spacing: 0.5px;
}

/* --- CONTENEDOR DE BOTONES --- */
.actions-container {
  display: flex !important;
  flex-wrap: nowrap !important;
  min-width: fit-content;
}

.btn-action-premium {
  width: 42px !important;
  height: 42px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(13, 202, 240, 0.3) !important;
  border-radius: 10px;
  color: #fff !important;
  transition: all 0.3s ease;
}

.btn-action-premium:hover {
  background: #0dcaf0 !important;
  color: #000 !important;
}

.btn-action-premium.delete:hover {
  background: #e74c3c !important;
  border-color: #e74c3c !important;
  color: #fff !important;
}

/* --- AJUSTE RESPONSIVO --- */
@media (max-width: 768px) {
  .status-bar {
    display: none !important;
    /* Ocultamos barra lateral en móvil para centrar todo */
  }

  .actions-container {
    justify-content: center !important;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
  }
}

.main-dashboard-container {
  background: rgba(10, 20, 35, 0.4);
  /* Fondo muy translúcido */
  backdrop-filter: blur(10px);
  border: 1px solid rgba(13, 202, 240, 0.1);
  border-radius: 24px;
  padding: 30px;
  margin-top: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.btn-nav-executive {
  background: rgba(15, 25, 40, 0.8);
  border: 1px solid rgba(13, 202, 240, 0.3);
  color: #fff;
  padding: 10px 20px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.btn-nav-executive:hover {
  background: rgba(13, 202, 240, 0.1);
  border-color: #0dcaf0;
  color: #0dcaf0;
  box-shadow: 0 0 15px rgba(13, 202, 240, 0.2);
  transform: translateY(-2px);
}

/* Estilo resaltado para "Crear Nueva" */
.btn-nav-executive.accent {
  border-color: #0dcaf0;
  background: rgba(13, 202, 240, 0.05);
}

.btn-nav-executive.accent i {
  color: #0dcaf0;
}

.top-nav-glass-group {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  padding: 10px 0;
}

.nav-btn-cyber {
  background: rgba(10, 20, 35, 0.85);
  /* Fondo oscuro como las cards */
  backdrop-filter: blur(10px);
  border: 1px solid rgba(13, 202, 240, 0.3);
  padding: 10px 20px;
  border-radius: 12px;
  color: white !important;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.nav-btn-cyber:hover {
  border-color: #0dcaf0;
  background: rgba(13, 202, 240, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 10px rgba(13, 202, 240, 0.2);
}

/* El brillo interno del icono */
.btn-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-btn-cyber .main-icon {
  font-size: 1.1rem;
  color: #0dcaf0;
  z-index: 2;
}

.icon-glow {
  position: absolute;
  width: 20px;
  height: 20px;
  background: #0dcaf0;
  filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s;
}

.nav-btn-cyber:hover .icon-glow {
  opacity: 0.4;
}

/* Botón de acción principal (Crear) */
.nav-btn-cyber.accent {
  border: 1px solid #0dcaf0;
  background: rgba(13, 202, 240, 0.05);
}

/* Responsividad para móviles */
@media (max-width: 768px) {
  .top-nav-glass-group {
    justify-content: center;
    flex-direction: column;
    width: 100%;
  }

  .nav-btn-cyber {
    width: 100%;
    justify-content: center;
  }
}

.top-nav-glass-group {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  padding: 10px 0;
}

.nav-btn-cyber {
  /* Fondo y bordes idénticos para ambos */
  background: rgba(10, 20, 35, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(13, 202, 240, 0.6);
  /* Borde cian unificado */
  border-radius: 12px;

  /* Dimensiones fijas para simetría */
  min-width: 240px;
  height: 48px;

  color: white !important;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Centra el contenido internamente */
  gap: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.nav-btn-cyber:hover {
  background: rgba(13, 202, 240, 0.15);
  border-color: #0dcaf0;
  box-shadow: 0 0 20px rgba(13, 202, 240, 0.3);
  transform: translateY(-2px);
}

.nav-btn-cyber .main-icon {
  color: #0dcaf0;
  font-size: 1.1rem;
}

/* Responsividad */
@media (max-width: 768px) {
  .top-nav-glass-group {
    flex-direction: column;
    align-items: center;
  }

  .nav-btn-cyber {
    width: 100%;
    /* En móvil ocupan todo el ancho */
  }
}

/* Ajustes específicos de los botones para el renglón */
.nav-btn-cyber {
  padding: 0 20px;
  white-space: nowrap;
  min-width: fit-content;
  color: white !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.85rem;
  gap: 10px;
}

.nav-btn-cyber:hover {
  background: rgba(13, 202, 240, 0.15) !important;
  box-shadow: 0 0 15px rgba(13, 202, 240, 0.3);
}

/* Responsividad: Ocultar texto en pantallas medianas para mantener el renglón */
@media (max-width: 1200px) {
  .nav-btn-cyber {
    padding: 0 15px;
  }

  .nav-btn-cyber i {
    margin: 0;
    font-size: 1.2rem;
  }
}

/* Colapso total en móviles */
@media (max-width: 768px) {
  .header-action-row {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-btn-cyber {
    justify-content: center;
  }
}

/* Estilo para la Navbar Superior */
.navbar-custom {
  background: rgba(10, 20, 35, 0.7) !important;
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(13, 202, 240, 0.2);
  padding: 12px 25px;
}

/* El logo de la izquierda */
.navbar-brand-custom {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-text {
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffffff;
  text-transform: uppercase;
}

/* Info de usuario y cerrar sesión */
.user-info-pill {
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 15px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: #e0f7fa;
}

.logout-btn-cyber {
  color: #ff4444 !important;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 15px;
  border-radius: 8px;
}

.logout-btn-cyber:hover {
  color: #ff4444 !important;
  text-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
  transform: scale(1.05);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.id-tech-label {
  display: inline-flex;
  gap: 5px;
  width: 100%;
  /* Asegura que el centrado funcione en el stack móvil */
}

/* Mejora para los botones de la navbar en móvil */
@media (max-width: 576px) {
  .navbar-custom {
    padding: 10px 15px !important;
  }

  .logout-btn-cyber i {
    font-size: 1.3rem;
    /* Icono más grande para tocar fácilmente */
  }
}

@media (max-width: 768px) {
  .stats-row span {
    background: rgba(13, 202, 240, 0.05);
    padding: 5px 12px;
    border-radius: 8px;
    margin: 2px;
    /* Crea un efecto de "chips" individuales */
  }
}

/* Forzar que la navbar no colapse */
.navbar-custom {
  min-height: 65px;
  background: rgba(10, 20, 35, 0.8) !important;
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(13, 202, 240, 0.3);
  padding: 0 15px !important;
}

.user-info-pill {
  background: rgba(13, 202, 240, 0.08);
  border: 1px solid rgba(13, 202, 240, 0.2);
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
}

.logout-btn-cyber {
  color: #ff4444 !important;
  font-size: 1.1rem;
  /* Icono más grande para móvil */
  padding: 8px;
  display: flex;
  align-items: center;
  transition: 0.3s;
}

@media (min-width: 768px) {
  .logout-btn-cyber {
    font-size: 0.85rem;
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: 8px;
    padding: 6px 15px;
  }
}

/* Botones con tamaño consistente */
.nav-btn-cyber {
  height: 48px;
  padding: 0 20px;
  background: rgba(10, 20, 35, 0.85);
  border: 1px solid rgba(13, 202, 240, 0.6);
  border-radius: 12px;
  color: white !important;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  white-space: nowrap;
  /* Evita que el texto se rompa en dos líneas */
  transition: 0.3s ease;
}

/* Responsividad para no romper el renglón */
@media (max-width: 992px) {
  .header-action-row {
    flex-direction: column;
    /* En tablets/móvil se apilan para evitar colisiones */
    align-items: stretch;
  }

  .search-cyber-container {
    flex: 1;
    width: 100%;
  }
}

.search-inner-wrapper {
  position: relative;
  width: 100%;
}

/* Botones con tamaño consistente */
.nav-btn-cyber {
  height: 48px;
  padding: 0 20px;
  background: rgba(10, 20, 35, 0.85);
  border: 1px solid rgba(13, 202, 240, 0.6);
  border-radius: 12px;
  color: white !important;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: 0.3s ease;
}

.nav-btn-cyber:hover {
  background: rgba(13, 202, 240, 0.15);
  box-shadow: 0 0 15px rgba(13, 202, 240, 0.3);
}

/* Responsividad: Se apilan en móvil */
@media (max-width: 992px) {
  .header-action-row {
    flex-direction: column;
    align-items: stretch;
  }

  .search-cyber-container {
    width: 100%;
  }
}

/* Mantiene la píldora BUSCAR en su lugar sin encimarse */
.status-pill-neon {
  flex-shrink: 0;
  /* No permite que se aplaste */
  margin-right: 10px;
  white-space: nowrap;
}

/* Los botones mantienen su tamaño y altura */
.nav-btn-cyber {
  height: 48px !important;
  display: flex;
  align-items: center;
  white-space: nowrap;
  /* Evita que el texto salte de línea */
}

/* 3. El wrapper interno para manejar iconos y píldora */
.search-inner-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0 15px;
}

/* 5. La píldora BUSCAR (Evita que se encime) */
.status-pill-neon {
  flex-shrink: 0;
  /* No permite que el input la aplaste */
  margin-left: 10px;
  white-space: nowrap;
}

/* 6. Los botones de administración */
.nav-btn-cyber {
  height: 48px !important;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  background: rgba(10, 20, 35, 0.85);
  border: 1px solid rgba(13, 202, 240, 0.6);
  border-radius: 12px;
  color: white !important;
  text-decoration: none !important;
  white-space: nowrap;
  transition: 0.3s ease;
}

.nav-btn-cyber:hover {
  background: rgba(13, 202, 240, 0.15);
  box-shadow: 0 0 15px rgba(13, 202, 240, 0.3);
}

/* --- CONFIGURACIÓN FINAL UNIFICADA --- */

/* Contenedor principal: Empuja elementos a los extremos */
.header-action-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  gap: 20px !important;
  /* Espacio real entre buscador y botones */
  margin-bottom: 25px !important;
}

/* Buscador: Se estira para ocupar todo el hueco izquierdo/central */
.search-cyber-container {
  height: 48px !important;
  flex-grow: 1 !important;
  /* Obliga a la barra a crecer */
  background: rgba(10, 20, 35, 0.85) !important;
  border: 1px solid rgba(13, 202, 240, 0.6) !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  max-width: none !important;
  /* Quita cualquier restricción previa */
}

/* Ajuste del campo de texto interno */
.search-input-field {
  flex-grow: 1 !important;
  background: transparent !important;
  border: none !important;
  color: white !important;
  padding: 0 15px !important;
  outline: none !important;
  height: 100% !important;
}

/* Los botones se mantienen juntos a la derecha */
.admin-buttons-group {
  display: flex !important;
  gap: 15px !important;
  flex-shrink: 0 !important;
  /* Impide que los botones se deformen */
}

/* Botones individuales */
.nav-btn-cyber {
  height: 48px !important;
  padding: 0 20px !important;
  display: flex !important;
  align-items: center !important;
  white-space: nowrap !important;
  border-radius: 12px !important;
  border: 1px solid rgba(13, 202, 240, 0.6) !important;
  background: rgba(10, 20, 35, 0.85) !important;
  color: white !important;
  text-decoration: none !important;
}

/* --- RESTAURACIÓN BOTÓN DUPLICAR CON EFECTO FANTASMA --- */

.copy-button {
  background: rgba(13, 202, 240, 0.1) !important;
  border: 1px solid rgba(13, 202, 240, 0.4) !important;
  color: #0dcaf0 !important;
  width: 40px;
  height: 40px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
  /* Importante para el icono fantasma */
  transition: all 0.3s ease;
}

.copy-button:hover {
  background: rgba(13, 202, 240, 0.2) !important;
  box-shadow: 0 0 15px rgba(13, 202, 240, 0.4);
  transform: translateY(-2px);
}

.icon-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* El icono principal */
.copy-main-icon {
  z-index: 2;
  position: relative;
}

/* El icono fantasma que se desvanece */
.copy-ghost-icon {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  z-index: 1;
  color: #0dcaf0;
  pointer-events: none;
}

/* Animación cuando se hace clic (se activa vía JS o al presionar) */
.copy-button:active .copy-ghost-icon {
  animation: ghostCopy 0.6s ease-out;
}

@keyframes ghostCopy {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(2.5);
  }
}

.btn-size {
  padding: 0 !important;
}

.icon-size {
  font-size: 1.1rem;
}

/* Tu nueva clase con el poder de la antigua */
.btn-action-premium.delete {
  background: rgba(255, 68, 68, 0.1) !important;
  border: 1px solid rgba(255, 68, 68, 0.4) !important;
  color: #ff4444 !important;
  transition: all 0.3s ease;
}

.btn-action-premium.delete:hover {
  background: rgba(255, 68, 68, 0.25) !important;
  box-shadow: 0 0 15px rgba(255, 68, 68, 0.4);
  transform: translateY(-2px);
}

/* Aseguramos el tamaño que usaba antes */
.btn-size {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

/* Estilo Premium para el botón de eliminar */
.btn-action-premium.delete {
  background: rgba(255, 68, 68, 0.1) !important;
  border: 1px solid rgba(255, 68, 68, 0.4) !important;
  color: #ff4444 !important;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-action-premium.delete:hover {
  background: rgba(255, 68, 68, 0.25) !important;
  box-shadow: 0 0 15px rgba(255, 68, 68, 0.4);
  transform: translateY(-2px);
  color: #ff6666 !important;
}

/* Asegura que el icono no se mueva */
.btn-action-premium.delete i {
  pointer-events: none;
  /* Evita que el clic caiga en el icono y no en el botón */
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 992px) {

  /* 1. Cambiamos de fila a columna */
  .header-action-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 15px !important;
  }

  /* 2. El buscador ahora ocupa todo el ancho */
  .search-cyber-container {
    width: 100% !important;
    flex: none !important;
    /* Desactivamos el flex-grow para que no pelee */
    margin-right: 0 !important;
  }

  /* 3. El grupo de botones también se expande */
  .admin-buttons-group {
    width: 100% !important;
    justify-content: space-between;
    /* Botones Dashboard y Crear a los lados */
  }

  /* 4. Hacemos que los botones ocupen la mitad del ancho cada uno */
  .nav-btn-cyber {
    flex: 1;
    justify-content: center;
    font-size: 0.9rem;
    /* Texto un poco más pequeño para que quepa */
  }
}

/* Asegura que el texto que escribe el usuario y el placeholder sean legibles */
.search-input-field {
  font-size: 1rem !important;
  /* Tamaño estándar legible */
  width: 100% !important;
  color: white !important;
}

/* Estilo específico para el placeholder (el texto gris) */
.search-input-field::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 0.9rem;
  /* Un poco más pequeño que el texto real para que quepa mejor */
  opacity: 1;
}

/* Ajuste para móviles: si la pantalla es muy pequeña, acortamos visualmente el texto */
@media (max-width: 480px) {
  .search-input-field::placeholder {
    font-size: 0.8rem;
  }

  /* Opcional: Cambiar el texto por uno más corto en JS o dejar que el CSS lo maneje */
  .search-input-field {
    padding: 0 10px !important;
  }
}

.btn-action-premium,
.copy-button.btn-size,
.delete-btn.btn-size {
  width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 8px !important;
  margin: 0 !important;
  /* Quitamos márgenes manuales que rompen el gap */
  flex-shrink: 0 !important;
}