/* hold.css */

/* Cuando se activa el hold, expandimos el chat para mostrar más contenido */
.expanded-chat {
  height: 90vh; /* Aumenta la altura del área de chat */
  transition: height 0.3s ease;
  overflow-y: auto;
}

/* Opcional: estilos adicionales para la vista expandida */
.expanded-chat .chat-box {
  /* Por ejemplo, aumentar el padding o ajustar el scroll */
  padding-bottom: 100px;
}

/* hold.css */

/* Estilos para la burbuja modal que muestra el chat al hacer hold */
.expanded-chat-bubble {
  position: fixed;
  top: 20%;
  left: 10%;
  width: 80%;
  height: 60vh;
  background: #ffffff;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
  z-index: 10000;
  padding: 10px;
  display: none;
  transition: opacity 0.3s ease;
}

/* Indicador de progreso del hold usando un SVG circular */
.hold-progress {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hold-progress svg {
  width: 100%;
  height: 100%;
}

.hold-progress circle {
  fill: none;
  stroke: #066b50;       /* Color del progreso */
  stroke-width: 4;
  stroke-linecap: round;
  /* Para un círculo con radio 20, la circunferencia es ~125.6 */
  stroke-dasharray: 125.6;
  stroke-dashoffset: 125.6;
  animation: progressFill 500ms linear forwards; /* 500ms = holdDuration */
}

@keyframes progressFill {
  from {
    stroke-dashoffset: 125.6;
  }
  to {
    stroke-dashoffset: 0;
  }
}

/* Overlay que cubre toda la pantalla y evita toques en elementos de fondo */
#modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: transparent; /* transparente, pero intercepta los toques */
  z-index: 9999; /* Debe estar por debajo de la burbuja, que tiene z-index: 10000 */
  pointer-events: auto;
}

/* Estilos para el botón de cierre dentro de la burbuja de chat */
.bubble-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background-color: rgb(8, 133, 98); /* Botón semitransparente */
  border: none;
  
  color: white;
  font-size: 20px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.bubble-close-btn:hover {
  background-color: rgba(0, 0, 0, 0.6); /* Oscurecer en hover */
  transform: scale(1.1);
}

.bubble-close-btn:active {
  background-color: rgba(0, 0, 0, 0.8);
  transform: scale(0.9);
}

