/* -- PLUGIN CONTAINER -- */
.plugin-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background-color: #f0f0f1;
    width: calc(100% - 20px);
    min-height: 100vh;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-family: 'Arial', sans-serif;
    margin-left: -20px;
    position: relative;
    overflow-x: hidden;
  }
  
  /* Logo section */
  .logo-section {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
  }
  
  .logo-link {
    outline: none;
  }
  .logo-link:focus {
    outline: none;
  }
  .logo-link img {
    border: none;
  }
  
  /* Welcome card */
  .welcome-card-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 20px;
    margin: 20px auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    max-width: 1000px;
  }
  
  .welcome-content {
    max-width: 60%;
  }
  .welcome-content h1 {
    font-size: 28px;
    color: #4b04d7;
    margin-bottom: 20px;
    line-height: 1.6;
    letter-spacing: -0.06em;
  }
  .welcome-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
  }
  .welcome-content a {
    color: #0073aa;
    text-decoration: none;
  }
  .welcome-content a:hover {
    text-decoration: underline;
  }
  
  .activate-btn {
    background-color: #4b04d7;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    display: inline-block;
    margin-top: 20px;
  }
  .activate-btn:hover {
    background-color: #07f09d;
    color: #333;
  }
  
  .decorative-image {
    max-width: 30%;
    height: 100%;
    position: relative;
  }

  .decorative-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    border-radius: 8px;

}

.close-btn {

    position: absolute;

    top: 5px;

    right: 20px;

    background-color: transparent;

    border: none;

    font-size: 24px;

    cursor: pointer;

}

.close-btn:hover {
    color: #ff0000;
}

/* INFO SECTION */

.info-section {

    width: 100%;

    background-color: white;

    border-radius: 8px;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);

    box-sizing: border-box;

    margin: 0 auto;

    position: relative;

    padding: 20px;

}

.info-section h1 {
    font-size: 24px;
    color: #4b04d7;
    margin-bottom: 10px;
    display: flex;
    align-items: center; /* Alinea el texto del H1 y el <select> verticalmente */
}

.info-section p {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
}

.info-section .info-boxes {

    display: flex;

    justify-content: flex-start;

    padding-left: 20px;

    gap: 20px;

}

.info-box {

    width: 50%;

    max-width: 800px;

    background-color: #f9f9f9;

    padding: 20px;

    border-radius: 8px;

    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);

    display: grid;

    grid-template-columns: 1fr auto 1fr;

    gap: 20px;

    align-items: center;

    position: relative;

    margin: 0;

}

.info-box .divider {

    width: 1px;

    height: 80%;

    background-color: #ccc;

    grid-column: 2;

}

.info-box .info-left {

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: flex-start;

    padding: 10px;

}

.info-box .info-left h3 {

    font-size: 16px;

    color: #333;

    margin-bottom: 8px;

    display: block;

}

.info-box .info-left p {

    font-size: 32px;

    color: #000;

    margin: 5px 0;

    display: block;

    padding-left: 5px;

}

.info-box .info-left small {

    font-size: 12px;

    color: #777;

    padding-left: 5px;

}

.info-box .info-right {

    grid-column: 3;

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    padding-left: 20px;

}

.info-box .info-right h3 {

    font-size: 16px;

    color: #333;

    margin-bottom: 8px;

    display: block;

}

.info-box .info-right p {

    font-size: 32px;

    color: #000;

    margin: 5px 0;

    display: block;

    padding-left: 5px;

}

.info-box .info-right small {

    font-size: 12px;

    color: #777;

    padding-left: 5px;

}

.info-box .info-title {

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: flex-start;

    padding-left: 20px;

    text-align: left;

}

.info-box .info-title h3 {

    font-size: 16px;

    color: #333;

    margin-bottom: 8px;

    display: flex;

    align-items: center;

}

.info-box .info-media {

    grid-column: 3;

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    padding-left: 20px;

}

.info-box .info-media h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.info-box .info-media p {
    font-size: 32px;
    color: #000;
    margin: 5px 0;
    display: block;
}

.info-box .info-media small {
    font-size: 12px;
    color: #777;
}

.arrow-indicator {

    display: inline-block;

    margin-left: 10px;

    font-size: 30px;

    font-weight: bold;

}

.arrow-up {
    color: green;
}

.arrow-right {
    color: orange;
}

.arrow-down {
    color: red;
}

#dateSelectors {
    display: flex;
    align-items: center;
    gap: 10px; /* Espacio entre los selectores */
}

#currentMonthSelect, #currentYearSelect {
    background-color: white;
    color: #4b04d7;
    /* border: none; Sin borde */
    border-width: 1px;
    border-color: rgb(160,160,255);
    margin-left: 7px;
    font-size: 24px;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    outline: none;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    /* text-decoration: underline; */
    background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%234b04d7" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpolyline points="6 9 12 15 18 9"%3E%3C/polyline%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 5px center;
    background-size: 16px;
}

#currentMonthSelect:hover, #currentYearSelect:hover {
    background-color: #f5f5f5;
}

#currentMonthSelect:focus {
    outline: none;
}

#donutChatContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#donutChatContainer > :first-child {
    align-self: flex-start;
}

/* CSS con IDs únicos para evitar solapamiento */
#conversion-info-container {
position: relative;
display: inline-block;
}

#conversion-info-text {
font-weight: bold;
font-size: 16px;
display: flex;
align-items: center;
justify-content: center;
}

#conversion-info-icon {
margin-left: 8px;
background-color: #e0f7fa;
border-radius: 15%;
padding: 8px;
font-size: 12px;
color: #00796b;
cursor: pointer;
}

#conversion-popup {
position: absolute;
top: 40px;
left: 95%;
transform: translateX(-50%);
background-color: #00acc1;
color: #fff;
border-radius: 8px;
padding: 10px;
font-size: 14px;
display: none;
width: 250px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#conversion-popup::after {
content: '';
position: absolute;
bottom: 100%;
left: 50%;
transform: translateX(-50%);
border-width: 6px;
border-style: solid;
border-color: transparent transparent #00acc1 transparent;
}

#conversion-canvas {
margin: 20px auto;
}

#conversion-description {
margin-top: 20px;
color: #666;
font-size: 14px;
}

/* Sección geolocalización */
.geolocation-section {

    width: 100%;

    background-color: white;

    border-radius: 8px;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);

    box-sizing: border-box;

    margin: 0 auto;

    padding: 20px;

}

.geolocation-header {
    margin-bottom: 20px;
}

.geolocation-header h1 {
    font-size: 24px;
    color: #4b04d7;
    margin-bottom: 10px;
}

.geolocation-header p {
    font-size: 14px;
    color: #555;
}

#map {

    width: 100%;

    max-width: 100%;

    height: 400px;

    border-radius: 8px;

    margin: 20px 0;

    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);

}

/* Title/Description sections */
.module-title {
font-size: 24px;
font-weight: bold;
color: #4b04d7;
margin-bottom: 15px;
}
.module-description {
font-size: 14px;
color: #333;
margin-bottom: 20px;
}

/* "Escanear mi sitio" section */
.scan-site-section {
width: 100%;
background-color: white;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
box-sizing: border-box;
margin: 20px auto;
padding: 20px;
}

.scan-columns {
display: flex;
justify-content: space-between;
gap: 20px;
margin-top: 20px;
}
.scan-left-column,
.scan-right-column {
width: 48%;
}

.last-scan-info {
text-align: center;
margin-top: 20px;
font-size: 18px;
color: #4b04d7;
font-weight: bold;
}

.scan-type-selection {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
text-align: center;
}

.scan-options {
display: flex;
flex-direction: row;
gap: 1em;
margin-top: 10px;
}

/* Custom checkboxes for scan options */
.visuallyhidden {
border: 0;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
}

.scan-checkbox {
display: flex;
align-items: center;
gap: 0.5em;
}
.scan-checkbox__symbol {
display: inline-flex;
justify-content: center;
align-items: center;
width: 1.5em;
height: 1.5em;
border: 1px solid #5F11E8;
border-radius: 0.2em;
transition: background-color 0.4s ease, box-shadow 0.4s ease;
}
.scan-icon-checkbox {
width: 1em;
height: 1em;
fill: none;
stroke: #5F11E8;
stroke-width: 3;
stroke-linecap: round;
stroke-linejoin: round;
stroke-dasharray: 30px, 31px;
stroke-dashoffset: 31px;
transition: stroke-dashoffset 0.2s ease-in;
}
.scan-checkbox__trigger:checked + .scan-checkbox__symbol .scan-icon-checkbox path {
stroke-dashoffset: 0;
}
.scan-checkbox__trigger:focus + .scan-checkbox__symbol {
box-shadow: 0 0 0 0.2em rgba(95, 17, 232, 0.2);
}
.scan-checkbox__text {
margin: 0;
font-size: 1em;
}
.scan-checkbox.disabled {
opacity: 0.5;
pointer-events: none;
}
.scan-checkbox.disabled .scan-checkbox__symbol {
border-color: #ccc;
}
.scan-checkbox.disabled .scan-icon-checkbox {
stroke: #ccc;
}
.scan-checkbox.disabled .scan-checkbox__text {
color: #ccc;
}

/* Button used for "Escanear" or "Guardar Configuración" */
.btn-scan {
display: block;
margin: 30px auto;
background-color: #4b04d7;
color: white;
border: none;
padding: 15px 30px;
border-radius: 50px;
font-size: 18px;
cursor: pointer;
font-weight: bold;
transition: background-color 0.3s ease, transform 0.3s ease;
}
.btn-scan:hover {
background-color: #05dd90;
transform: scale(1.05);
}
.btn-scan:disabled {
background-color: #ccc;
color: #666;
cursor: not-allowed;
}

.scan-info-box {
background-color: #f9f9f9;
padding: 20px;
border-radius: 8px;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
margin-bottom: 20px;
text-align: center;
}
.scan-info-box h3 {
font-size: 18px;
color: #4b04d7;
margin-bottom: 10px;
}
.scan-info-box p {
font-size: 32px;
color: #333;
font-weight: bold;
margin: 0;
}
.kb-progress-container {
display: flex;
flex-direction: column;
align-items: center;
margin-top: 10px;
}

/* Info & Geolocalización container */
.info-geo-container {
display: flex;
justify-content: space-between;
gap: 20px;
width: 100%;
margin: 20px 0;
align-items: stretch;
}

.compibot-spinner-loader {
    width: 48px;
    height: 48px;
    border: 5px solid #4b04d7;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    margin-top: 5px;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Left side: Info (Visitantes, Conversaciones, Conversiones) */
.info-section {
flex: 1;
display: flex;
flex-direction: column;
gap: 20px;
}
.info-section .header {
display: flex;
align-items: center;
}
.info-section h1 {
font-size: 24px;
color: #4b04d7;
margin-bottom: 10px;
}
.description {
font-size: 14px;
color: #555;
margin-bottom: 20px;
}
.cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
}
.card {
background-color: white;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
padding: 20px;
position: relative;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.card-title {
font-size: 14px;
color: #666;
margin-bottom: 10px;
}
.card-value {
font-size: 36px;
font-weight: bold;
margin-bottom: 5px;
}
.card-trend {
display: flex;
align-items: center;
color: #4caf50;
font-size: 14px;
}
.card-trend svg {
margin-right: 5px;
}
.card-icon {
position: absolute;
bottom: 10px;
right: 10px;
font-size: 48px;
opacity: 0.1;
}

/* Conversion donut chart tooltip */
#donutChatContainer {
display: flex;
flex-direction: column;
align-items: center;
}
#conversion-info-container {
position: relative;
display: inline-block;
}
#conversion-info-text {
font-weight: bold;
font-size: 16px;
display: flex;
align-items: center;
justify-content: center;
}
#conversion-info-icon {
margin-left: 8px;
background-color: #e0f7fa;
border-radius: 15%;
padding: 8px;
font-size: 12px;
color: #00796b;
cursor: pointer;
}
#conversion-popup {
position: absolute;
top: 40px;
left: 95%;
transform: translateX(-50%);
background-color: #00acc1;
color: #fff;
border-radius: 8px;
padding: 10px;
font-size: 14px;
display: none;
width: 250px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
#conversion-popup::after {
content: '';
position: absolute;
bottom: 100%;
left: 50%;
transform: translateX(-50%);
border-width: 6px;
border-style: solid;
border-color: transparent transparent #00acc1 transparent;
}

/* Right side: Geolocalización */
.geolocation-section {
flex: 1;
display: flex;
flex-direction: column;
justify-content: flex-start;
}
.geolocation-header h1 {
font-size: 24px;
color: #4b04d7;
margin-bottom: 10px;
}
.geolocation-header p {
font-size: 14px;
color: #555;
}
.geolocation-map {
height: 400px;
background-color: #e0e0e0;
border-radius: 8px;
display: flex;
justify-content: center;
align-items: center;
color: #666;
font-size: 18px;
margin-top: 20px;
}

/* Animations for the card counters */
@keyframes fadeInUp {
0% {
    opacity: 0;
    transform: translateY(10px);
}
100% {
    opacity: 1;
    transform: translateY(0);
}
}
@keyframes fadeInNumber {
0% {
    opacity: 0;
    transform: scale(0.9);
}
100% {
    opacity: 1;
    transform: scale(1);
}
}
.card-trend svg,
.card-trend span {
opacity: 0;
animation: fadeInUp 0.5s ease-out forwards;
}
.card-trend svg {
animation-delay: 0.2s;
}
.card-trend span {
animation-delay: 0.4s;
}
#visitor-count,
#chatters-count {
animation: fadeInNumber 0.5s ease-out forwards;
}

/* Conversations section */
.conversations-section {
width: 100%;
background-color: white;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
box-sizing: border-box;
margin: 20px auto;
padding: 20px;
}
.conversations-header {
display: flex;
justify-content: end;
align-items: center;
margin-bottom: 20px;
padding: 0 20px;
}
.select-container {
display: flex;
align-items: center;
}
.select-container label {
margin-right: 10px;
color: #333;
font-weight: bold;
}
.select-container select {
padding: 8px 15px;
border: 2px solid #4b04d7;
border-radius: 8px;
background-color: #fff;
color: #333;
font-size: 14px;
cursor: pointer;
transition: background-color 0.3s, border-color 0.3s;
}
.select-container select:focus {
background-color: #f4f4f4;
border-color: #4b04d7;
}
.refresh-button {
background-color: #4b04d7;
color: #fff;
border: none;
border-radius: 5px;
padding: 10px;
font-size: 16px;
cursor: pointer;
margin-left: 15px;
transition: background-color 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
}
.refresh-button:hover {
background-color: #3e03b5;
}
.refresh-button:active {
background-color: #2b027d;
}
.refresh-button i {
font-size: 1.2em;
}

/* Conversation table */
#conversation-table {
width: 100%;
}
#conversation-table-elements {
width: 100%;
border-collapse: separate;
border-spacing: 0;
margin-bottom: 20px;
border-radius: 12px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
overflow: hidden;
}
#conversation-table-elements thead tr th {
background-color: #4b04d7;
color: white;
font-weight: bold;
padding: 15px 15px;
border-right: 1px solid #ddd;
text-align: center;
}
#conversation-table-elements td {
text-align: center;
padding: 12px 20px;
border-bottom: 1px solid #ddd;
font-size: 14px;
word-wrap: break-word;
overflow-wrap: break-word;
word-break: break-word;
max-width: 200px;
overflow: hidden;
text-overflow: ellipsis;
}
#conversation-table-elements tr:hover {
background-color: #f0f0f0;
}

#conversation-table td button {
    position: relative;
    z-index: 2; /* Aseguramos que el botón esté por encima del texto de la etiqueta */
    padding: 8px 16px;
    background-color: #4b04d7;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-sizing: border-box; /* Asegura que el padding no afecte el ancho */
}

#conversation-table .pagination button {
    background-color: #4b04d7;
    color: white;
    padding: 5px 10px;
    margin: 2px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#conversation-table .pagination button.active {
    font-weight: bold;
    background-color: #05dd90;
}

#conversation-table .pagination span {
    margin: 0 5px;
    font-weight: bold;
    color: #888;
}

/* Estilos de la Tabla */
#conversation-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 20px;
    border-radius: 12px;
    /* Bordes redondeados */
    overflow: hidden;
    /* Para asegurarse de que los bordes redondeados se apliquen a las celdas */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    /* Sombra suave alrededor de la tabla */
}

#conversation-table th{
    width: 10%;
    background-color: #4b04d7;
    color: white;
    font-weight: bold;
    padding: 15px 15px;
    border-right :1px solid #ddd;
}

#conversation-table th:last-child tr:last-child{
    border: none;
}

#conversation-table td {
    text-align: center;
    padding: 12px 20px;
    border: 0 1px 1px 1px solid #ddd;
}


#conversation-table td {
    /* Color de fondo de las celdas */
    border-bottom: 1px solid #ddd;
    /* border-right: 1px solid #ddd; */
    /* Borde inferior de las celdas */
    font-size: 14px;
    padding: 8px;
    word-wrap: break-word; /* Permite que el texto largo se divida en varias líneas */
    overflow-wrap: break-word; /* Asegura que las palabras largas se corten correctamente */
    word-break: break-word; /* Asegura que las palabras largas se corten correctamente */
    max-width: 200px; /* Limita el ancho de las celdas para evitar desbordamiento */
    overflow: hidden; /* Oculta el desbordamiento en caso de que el texto sea muy largo */
    text-overflow: ellipsis; /* Muestra "..." en caso de desbordamiento de texto */
}

/* Asegura que la fecha y la hora estén en líneas separadas y centradas */
#conversation-table td[data-label="Fecha"] {
    text-align: center; /* Centra el contenido */
    font-size: 14px;
}

#conversation-table td[data-label="Fecha"] .time {
    display: block; /* Asegura que la hora aparezca en una línea separada */
    font-size: 14px; /* Tamaño más pequeño para la hora */
    color: #666; /* Color gris para diferenciar la hora */
}

/* Efecto hover en las filas */
#conversation-table tr:hover {
    background-color: #f0f0f0;
    /* Color de fondo cuando se pasa el ratón sobre una fila */
}

#empty_conversations {
    font-size: 18px;
    font-weight: bold;
    color: #4b04d7;
    margin-bottom: 15px;
    text-align: center;
}

#conversation-table button {
    padding: 8px 16px;
    cursor: pointer;
    background-color: #4b04d7;
    /* Color de fondo del botón */
    color: white;
    /* Texto blanco */
    border: none;
    border-radius: 5px;
    /* Bordes redondeados */
    transition: background-color 0.3s ease;
}

#conversation-table button:hover {
    background-color: #05dd90;
    /* Color de fondo al pasar el ratón */
}

/* Estilos del Popup */
#conversation-table .popup-row {
    display: none;
    /* Inicialmente oculto */
}

#conversation-table .popup-content {
    max-height: 400px; /* Limitar la altura máxima del popup */
    overflow-y: auto; /* Permitir desplazamiento vertical si el contenido es demasiado largo */
    padding: 10px;
    background-color: #F5F2F9;
    border: 1px solid #ccc;
    border-radius: 5px;
    word-wrap: break-word; /* Para romper palabras largas en el texto */
    word-break: break-word; /* Asegura que las palabras largas se corten correctamente */
    white-space: pre-wrap; /* Mantiene los saltos de línea pero permite que el texto se ajuste */

    /* Estilos del scrollbar */
    scrollbar-width: thin; /* Para Firefox */
    scrollbar-color: #4b04d7 #e0e0e0; /* Para Firefox: color del thumb y track */
}

/* Estilos del scrollbar para navegadores WebKit (Chrome, Safari, Edge) */
#conversation-table .popup-content::-webkit-scrollbar {
    width: 10px; /* Ancho del scrollbar */
}

#conversation-table .popup-content::-webkit-scrollbar-thumb {
    background-color: #4b04d7; /* Color del "thumb" (la parte que se mueve) */
    border-radius: 5px; /* Bordes redondeados */
    border: 2px solid #ffffff; /* Un borde blanco alrededor del "thumb" para mayor contraste */
}

#conversation-table .popup-content::-webkit-scrollbar-track {
    background-color: #e0e0e0; /* Color del track (fondo del scrollbar) */
    border-radius: 5px;
}

/* Opcional: Cambio de color al pasar el ratón por encima */
#conversation-table .popup-content::-webkit-scrollbar-thumb:hover {
    background-color: #3a03c4; /* Color más oscuro cuando se pasa el ratón */
}
#conversation-table .popup-content h3 {
    color: #4b04d7;
    /* Color del título */
}

/* Lista de mensajes */
/* Lista de mensajes */
#conversation-table .popup-content ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Cada mensaje individual */
#conversation-table .popup-content li {
    text-align: initial;
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

#conversation-table .popup-content li .message p{
    margin: 0;
}

/* Meta (nombre y fecha) */
#conversation-table .popup-content .meta {
    font-size: 12px; /* Fuente más pequeña */
    color: #777; /* Color gris */
    margin-bottom: 3px; /* Espaciado debajo del meta */
    display: block;
}

/* Burbuja del usuario */
#conversation-table .popup-content li .user-message {
    background-color: #fff; /* Verde claro de WhatsApp */
    border-radius: 10px 10px 10px 0;
    padding: 8px 12px;
    color: #000000;
    max-width: 70%;
    align-self: flex-start;
    font-size: 14px;
    margin: 2px 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Burbuja del bot */
#conversation-table .popup-content li .bot-message {
    /* min-width: 50%; */
    background-color: #CEFFEE;
    border-radius: 10px 10px 0 10px;
    padding: 8px 12px;
    color: #000000;
    max-width: 70%;
    align-self: flex-end;
    font-size: 14px;
    margin: 2px 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Botón de cierre */
#conversation-table .popup-content button {
    display: block;
    margin: 20px auto 0;
    padding: 10px 20px;
    background-color: #4b04d7; /* Color base del botón */
    color: #fff;
    border: none;
    border-radius: 20px; /* Bordes redondeados */
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sombra ligera */
    transition: background-color 0.3s ease, transform 0.2s ease; /* Animación suave */
}

/* Efecto hover */
#conversation-table .popup-content button:hover {
    background-color: #6a33d1; /* Color más claro al pasar el cursor */
    transform: translateY(-2px); /* Levanta ligeramente el botón */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15); /* Aumenta la sombra */
}

/* Efecto active */
.popup-content button:active {
    background-color: #3a029a; /* Color más oscuro al hacer clic */
    transform: translateY(0); /* Vuelve a su lugar */
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2); /* Reduce la sombra */
}

/* Estilos para hacer la tabla responsiva */
@media (max-width: 1250px) {
    /* Aseguramos que la tabla tenga un layout automático para ajustarse */
    #conversation-table table {
        width: 100%;
        table-layout: auto; /* Asegura que la tabla y sus celdas se ajusten automáticamente */
        box-shadow: none;
    }

    /* Ocultamos los encabezados */
    #conversation-table th {
        display: none;
    }

    /* Hacemos que las filas se apilen */
    #conversation-table tr {
        display: block;
        border-top: 5px solid #4b04d7;
        border-radius: 5px;
        margin-top: 10px;
    }

    #conversation-table th.filterable-field{
        display: block;
        align-items: center;
    }

    /* Hacemos que cada celda ocupe todo el ancho */
    #conversation-table td {
        display: block;
        width: 100%; /* Ocupa todo el ancho disponible */
        text-align: left; /* Alineamos el texto a la izquierda */
        padding-left: 30%; /* Dejamos espacio para los labels */
        position: relative;
        box-sizing: border-box; /* Asegura que el padding se incluya dentro del ancho total */
        padding-bottom: 20px; /* Añadimos un poco de espacio para que no se solapen con los botones */
        border-left: 1px solid #ddd;
    }

    #conversation-table .popup-row td {
        padding: 0;
    }

    /* Etiquetas dentro de las celdas */
    #conversation-table td:before {
        content: attr(data-label); /* Muestra el nombre del encabezado */
        position: absolute;
        left: 10px;
        top: 10px;
        font-weight: bold;
        color: #4b04d7; /* Usamos el color del encabezado */
        font-size: 14px; /* Ajustamos el tamaño de la fuente */
        z-index: 1; /* Aseguramos que el texto no se solape con otros elementos */
    }

    /* Aseguramos que el contenido de las celdas tenga suficiente espacio */
    #conversation-table td button {
        position: relative;
        z-index: 2; /* Aseguramos que el botón esté por encima del texto de la etiqueta */
        padding: 8px 16px;
        background-color: #4b04d7;
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        width: 100%; /* Hacemos que el botón ocupe el 100% del ancho disponible */
        box-sizing: border-box; /* Asegura que el padding no afecte el ancho */
    }

    /* Mejoramos la visualización del botón al pasar el ratón */
    #conversation-table td button:hover {
        background-color: #05dd90;
    }

    /* Eliminamos max-width y overflow en los td para permitir que se ajuste mejor */
    #conversation-table td {
        max-width: none; /* Quitamos el max-width para que ocupe todo el espacio disponible */
        overflow: visible; /* Permite que el texto se muestre completo */
        text-overflow: unset; /* Quitamos el "..." que puede estar ocultando contenido */
    }

    #conversation-table .toggle-column{
        padding-left: 5px;
    }

    .bot-message h1 {
        font-size: 1rem;
    }

    #conversation-table-elements thead {
        display: none;
    }

    #conversation-table .select-container {
        display: flex !important;
        justify-content: flex-start;
        margin-bottom: 10px;
    }
}

/* Config section */
.config-section {
width: 100%;
margin: 20px auto;
background-color: #ffffff;
padding: 2rem;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
box-sizing: border-box;
}

.section {
margin-top: 20px;
padding: 15px;
border: 1px solid #e0e0e0;
border-radius: 10px;
}
.section-title {
font-size: 18px;
color: #4a00d9;
margin-bottom: 20px;
}
.eye-icon {
    width: 1em;  /* Igual al tamaño de la fuente */
    height: 1em;
    vertical-align: middle; /* Asegura que se alinee bien con el texto */
    transition: transform 0.2s ease-in-out;
}

.section-title:hover .eye-icon {
    transform: scale(1.2); /* Efecto de aumento al pasar el cursor */
}
.option {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 15px;
}
.option-label,
.option-label-1,
.option-label-2 {
pointer-events: none; /* So clicking label doesn't toggle the switch forcibly */
}
.icon-container {
display: flex;
align-items: center;
justify-content: center;
height: 16px;
width: 16px;
position: relative;
flex-shrink: 0;
}
.icon-container svg {
height: 100%;
width: 100%;
}
/* Tooltip on icon hover */
.tooltip-text {
visibility: hidden;
width: 200px;
background-color: #333;
color: #fff;
text-align: center;
padding: 5px;
border-radius: 5px;
position: absolute;
bottom: 125%;
left: 50%;
transform: translateX(-50%);
opacity: 0;
transition: opacity 0.3s;
z-index: 1;
}
.tooltip-text::after {
content: '';
position: absolute;
top: 100%;
left: 50%;
margin-left: -5px;
border-width: 5px;
border-style: solid;
border-color: #333 transparent transparent transparent;
}
.icon-container:hover .tooltip-text {
visibility: visible;
opacity: 1;
}

/* Checkbox toggles */
.checkbox-wrapper-2 {
display: flex;
align-items: center;
justify-content: center;
}

.compibot-textarea-input {
    width: 100%;
    max-width: 400px;
    min-height: 80px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    resize: vertical; /* Permite redimensionar verticalmente */
}

.compibot-textarea-input:focus {
    border-color: #6c63ff;
    outline: none;
    box-shadow: 0 0 5px rgba(108, 99, 255, 0.5);
}





.sc-gJwTLC.ikxBAC {
appearance: none;
background-color: #dfe1e4;
border-radius: 72px;
border: none;
flex-shrink: 0;
height: 20px;
width: 30px;
position: relative;
cursor: pointer;
}
.sc-gJwTLC.ikxBAC::after {
content: '';
position: absolute;
top: 3px;
left: 3px;
height: 14px;
width: 14px;
background-color: #ffffff;
border-radius: 50%;
transition: all 0.3s ease;
}
.sc-gJwTLC.ikxBAC:checked {
background-color: #4a00d9;
}
.sc-gJwTLC.ikxBAC:checked::after {
transform: translateX(10px);
}

.sc-gJwTLC.ikxBAC:checked::before {
    content: none;
}

/* Location radio buttons */
.location-options {
display: flex;
gap: 20px;
align-items: center;
margin-left: 20px;
}
.location-options label {
display: flex;
align-items: center;
gap: 8px;
font-size: 14px;
color: #333;
cursor: pointer;
}
.location-options input[type="radio"] {
appearance: none;
width: 18px;
height: 18px;
border: 2px solid #4a00d9;
border-radius: 6px;
background-color: #fff;
cursor: pointer;
position: relative;
transition: all 0.3s ease;
}
.location-options input[type="radio"]:checked {
background-color: #4a00d9;
border-color: #4a00d9;
}
.location-options input[type="radio"]:checked::after {
content: '✔';
color: #fff;
font-size: 14px;
font-weight: bold;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}

/* Design section: color pickers, text fields */
.design-section {
margin-top: 20px;
}
.design-title {
font-size: 18px;
color: #4a00d9;
margin-bottom: 20px;
}
.design-option {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 15px;
}
.design-label {
pointer-events: none;
}
.color-input {
appearance: none;
width: 20px;
height: 18px;
border: none;
cursor: pointer;
border-radius: 50%;
overflow: hidden;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.color-input::-webkit-color-swatch {
border: none;
border-radius: 50%;
}
.color-input::-webkit-color-swatch-wrapper {
padding: 0;
}
.color-input:hover {
transform: scale(1.1);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Preview for custom icon */
/* #compibot-icon-preview {
display: none;
margin-top: 10px;
width: 50px;
} */

.file-upload-wrapper {
    display: flex;
    align-items: center;
    /* gap: 15px; */
    margin-bottom: 10px; /* Ajusta el espaciado */
}

.option-label {
    font-weight: 600;
    white-space: nowrap;
    min-width: 150px; /* Asegura alineación con otros labels */
}

.file-upload-container {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px dashed #ccc;
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
    flex-grow: 0.72;
    justify-content: space-between;
}

.file-upload-container:hover {
    border-color: #6c63ff;
}

.file-upload-container img {
    width: 24px;
    height: 24px;
}

.file-upload-container span {
    font-size: 14px;
    color: #555;
}

.file-upload-container input {
    display: none; /* Ocultamos el input nativo */
}

.file-upload-button {
    background-color: #3f3d56;
    color: white;
    padding: 6px 12px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.file-upload-button:hover {
    background-color: #5553a2;
}

#compibot-icon-preview {
    display: none;
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 5px;
}

#barGraphContainer {
    /* Que ocupe todo el ancho posible */
    width: 100%;  
    max-width: 1200px;   /* Ajusta a tu preferencia */
    margin: 0 auto;      /* Centra el contenedor */
    position: relative;
    height: 400px;       /* Altura fija (puedes usar 50vh, etc.) */
}
  

.ejemplos-uso-modulo {
    text-align: left; /* Alinea el texto a la izquierda */
    margin-bottom: 20px; /* Espaciado inferior */
}

.ejemplos-uso-modulo ul {
    list-style-type: disc; /* Usa puntos negros */
    padding-left: 20px; /* Ajusta el margen izquierdo */
}

.ejemplos-uso-modulo li {
    margin-bottom: 5px; /* Espacio entre los elementos de la lista */
}

.estado-modulo {
    display: flex;
    flex-direction: column; /* Mantiene el texto arriba y el botón abajo */
    align-items: flex-start; /* Alinea el texto a la izquierda */
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    width: 100%;
}

.estado-modulo p {
    margin: 0; /* Elimina márgenes extra */
    font-size: 15px;
}

#estado-texto {
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    color: white;
}

#estado-texto.activo {
    background-color: green;
}

#estado-texto.inactivo {
    background-color: red;
}

/* Centrar solo el botón */
.boton-container {
    width: 100%;
    display: flex;
    justify-content: center; /* Centra el botón */
    margin-top: 10px; /* Espaciado entre texto y botón */
}

#toggle-estado {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    width: 200px; /* Tamaño uniforme */
    text-align: center;
    margin-top: 10px;
}

.boton-activar {
    background-color: green;
    color: white;
}

.boton-desactivar {
    background-color: red;
    color: white;
}




/* "Conducta avanzada" checkboxes reuse .scan-checkbox style above */

/* Modules section */
.modules-section {
width: 100%;
background-color: white;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
padding: 20px;
box-sizing: border-box;

}
.modules-title {
font-size: 24px;
font-weight: bold;
color: #4b04d7;
margin-bottom: 15px;
}
.modules-container {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
row-gap: 40px;
padding: 0 20px;
margin: 0 auto;
width: calc(100% - 40px);
}
.module-card {
background-color: #fff;
border: 2px solid #4b04d7;
border-radius: 20px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
padding: 15px;
width: 300px;
max-width: 100%;
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
margin: 0;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* 🔹 Ajustamos la tarjeta para que la cinta se vea correctamente */
.module-card {
    position: relative;
    border: 2px solid #4b04d7;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    background: white;
    overflow: hidden;
}

/* 🔹 Cinta "¡Recomendado!" */
.ribbon {
    position: absolute;
    top: 70px; /* ✅ Ajuste fino para que no quede muy pegada arriba */
    right: -40px; /* ✅ Ajuste lateral para alinearla mejor */
    background-color: #05dd90;
    color: white;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
    transform: rotate(45deg);
    transform-origin: top right;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    width: auto;
    min-width: 120px; /* ✅ Ajuste para que el texto no se corte */
}

/* 🔹 Si la tarjeta tiene la clase "recommended", muestra la cinta */
.module-card.recommended .ribbon {
    display: block;
}

/* 🔹 Oculta la cinta si la tarjeta no es recomendada */
.module-card:not(.recommended) .ribbon {
    display: none;
}


.module-card h2 {
font-size: 22px;
font-weight: bold;
color: #4e1efa;
margin-bottom: 10px;
border-bottom: 2px solid #4b04d7;
padding-bottom: 5px;
}
.module-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.module-description {
font-size: 14px;
color: #333;
margin-bottom: 20px;
}
.divider {
width: 80%;
height: 1px;
background-color: #4b04d7;
margin: 20px 0;
}
.module-features {
list-style: none;
padding: 0;
margin: 0 0 20px;
text-align: left;
}
.module-features li {
font-size: 14px;
color: #333;
margin-bottom: 10px;
display: flex;
align-items: center;
}
.check-icon {
color: #05dd90 !important;
font-weight: bold;
margin-right: 10px;
}
.module-footer {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
margin-top: 20px;
}
.module-btn {
background-color: #4b04d7;
color: #fff;
border: none;
padding: 10px 20px;
border-radius: 4px;
cursor: pointer;
}
.module-btn:hover {
background-color: #05dd90;
}
.module-status {
font-size: 14px;
display: flex;
align-items: center;
font-weight: bold;
}
.module-status.inactive {
color: red;
}
.module-status.inactive::before {
content: '';
width: 10px;
height: 10px;
border-radius: 50%;
background-color: red;
display: inline-block;
margin-right: 8px;
}
.module-status.active {
color: green;
}
.module-status.active::before {
content: '';
width: 10px;
height: 10px;
border-radius: 50%;
background-color: green;
display: inline-block;
margin-right: 8px;
}

/* PDF section */
.pdf-section {
width: 100%;
background-color: white;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
box-sizing: border-box;
margin: 20px auto;
padding: 20px;
}
.pdf-link {
display: inline-flex;
align-items: center;
background: linear-gradient(45deg, #4b04d7, #05dd90);
color: #fff;
padding: 12px 20px;
border-radius: 30px;
font-size: 1.1rem;
font-weight: bold;
text-decoration: none;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease-in-out;
}
.pdf-link:hover {
transform: translateY(-4px);
box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
background: linear-gradient(45deg, #3c03c2, #03c77a);
color: #f1f1f1;
}
.pdf-link:focus {
background: linear-gradient(45deg, #2a02a6, #02b569);
color: #fff;
transform: translateY(2px);
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.pdf-icon {
font-size: 24px;
margin-right: 12px;
}

/* -- RESPONSIVE MEDIA QUERIES -- */
@media (max-width: 768px) {
.scan-columns {
    flex-direction: column;
    align-items: center;
}
.scan-left-column,
.scan-right-column {
    width: 90%;
    margin: 10px 0;
}
.decorative-image {
    display: none;
}
.welcome-content {
    max-width: 100%;
}
.scan-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}
.info-geo-container {
    flex-direction: column;
}
.geolocation-section {
    margin-top: 20px;
}
.modules-container {
    grid-template-columns: 1fr;
}
.module-card {
    width: 85%;
    margin: 10px auto;
}
}

/* Make conversation table responsive below ~1250px */
@media (max-width: 1250px) {
#conversation-table-elements thead {
    display: none;
}
#conversation-table-elements tr {
    display: block;
    border-top: 5px solid #4b04d7;
    border-radius: 5px;
    margin-top: 10px;
}
#conversation-table-elements td {
    display: block;
    width: 100%;
    text-align: left;
    padding-left: 30%;
    position: relative;
    box-sizing: border-box;
    padding-bottom: 20px;
    border-left: 1px solid #ddd;
}
#conversation-table-elements td:before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    top: 10px;
    font-weight: bold;
    color: #4b04d7;
    font-size: 14px;
}
#conversation-table-elements td button {
    position: relative;
    z-index: 2;
    width: 100%;
}
}

.scan-config-card {
    width: 100%;
    /*max-width: 1000px; /* o el que quieras */
    display: flex;               /* Use flex to place columns side by side */
    flex-wrap: wrap;             /* Wrap columns on smaller screens */
    gap: 2rem;                   /* Space between columns */
    margin: 20px auto; /* para centrarlo */
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    padding: 20px;
}

/* --- Left Column (Escanear mi sitio) and Right Column (Config) --- */
.scan-column,
.config-column {
    /* Each column takes up roughly half the width */
    flex: 1 1 calc(50% - 1rem);
    min-width: 300px;            /* Prevent columns from shrinking too narrow */
    margin-top: 20px;
}

/* (Optional) Title spacing specifically in these columns */
.scan-column h1.module-title,
.config-column h1.module-title {
    margin-top: 0;               /* Remove extra top margin if needed */
}

/* --- For smaller screens, stack columns --- */
@media (max-width: 768px) {
    .scan-column,
    .config-column {
    flex: 1 1 100%;            /* Each column takes full width */
    min-width: auto;           /* Allow them to shrink as needed */
    }
}

/* --- Additional suggestions for styling the scan info boxes, etc. --- */

/* Container holding total elements / scanned elements info */
.scan-info-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.scan-info-box {
    flex: 1 1 calc(50% - 1rem);
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 1rem;
    text-align: center;
}

/* Example styling for headings inside info boxes */
.scan-info-box h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
}

/* Example for the counters in .scan-info-box */
.scan-info-box p {
    font-size: 1.2rem;
    font-weight: bold;
}

/* --- Example styling for .option items in config forms --- */
.config-column .option {
    display: flex;
    align-items: center;
    margin: 1rem 0;
}

.config-column .option-label,
.config-column .option-label-1,
.config-column .option-label-2 {
    flex: 0 0 240px;     /* label width */
    font-weight: 500;
    margin-right: 0.5rem;
}

/* --- Basic styling for your color inputs, text inputs, etc. --- */
.compibot-text-input {
    width: 100%;
    max-width: 400px;
    padding: 0.3rem 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.color-input {
    margin-left: 0.5rem;
    width: 50px;
    height: 30px;
    border: none;
    cursor: pointer;
}

/* --- Buttons used in forms --- */
.btn-scan, .activate-btn {
    background-color: #05dd90;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    font-weight: 600;
}

.btn-scan:hover,
.activate-btn:hover {
    background-color: #04c481;
}

/* Example styling for the advanced config checkboxes */
.scan-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0.5rem 0;
}

.scan-checkbox__symbol {
    width: 28px;
    height: 28px;
    margin-right: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Hide default checkbox visually but keep it accessible */
.scan-checkbox__trigger.visuallyhidden {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Provide a "disabled" look if needed */
.scan-checkbox.disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* Optional text next to custom checkbox */
.scan-checkbox__text {
    font-size: 0.95rem;
    line-height: 1.2;
}


.toast {
    position: fixed;
    top: 25px;
    right: 30px;
    border-radius: 12px;
    background: #d4edda;
    padding: 20px 35px 20px 25px;
    box-shadow: 0 6px 20px -5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transform: translateX(calc(100% + 30px));
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.35);
    z-index: 9999; /* Este valor garantiza que la notificación esté encima de todo */
}

.toast.active {
    transform: translateX(0%);
}

.toast .toast-content {
    display: flex;
    align-items: center;
}

/* Ajustes para pantallas grandes */
@media (min-width: 1200px) {
    .toast {
        padding: 30px 45px 30px 35px; /* Más espacio */
        font-size: 16px; /* Texto más grande */
        top: 30px; /* Ajusta la posición superior */
        /*right: 40px; /* Ajusta la posición derecha */
    }
    .toast-content .check {
        height: 45px; /* Ícono más grande */
        min-width: 45px;
        font-size: 24px;
    }
    .message .text {
        font-size: 18px; /* Texto más legible */
    }
}

@media (max-width: 768px) {
    .toast {
        width: 90%; /* Ocupa el 90% del ancho de la ventana */
        right: 5%; /* Centrado horizontal */
        left: 5%;
        top: 20px; /* Menos margen superior */
        font-size: 14px; /* Tamaño compacto */
        padding: 15px 20px; /* Espaciado más pequeño */
        z-index: 999999999; /* Este valor garantiza que la notificación esté encima de todo */   
    }
    .toast-content .check {
        height: 35px;
        min-width: 35px;
        font-size: 20px; /* Ícono ajustado para móvil */
    }
    .message .text {
        font-size: 14px; /* Texto más compacto */
    }
}

.toast-content .check {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 35px;
    min-width: 35px;
    background-color: #28a745;
    color: #fff;
    font-size: 20px;
    border-radius: 50%;
}

.toast-content .message {
    display: flex;
    flex-direction: column;
    margin: 0 20px;
}

.message .text {
    font-size: 16px;
    font-weight: 400;
    color: #666666;
}

.message .text.text-1 {
    font-weight: 600;
    color: #333;
}

.toast .close {
    position: absolute;
    top: 10px;
    right: 15px;
    padding: 5px;
    cursor: pointer;
    opacity: 0.7;
}

.toast .close:hover {
    opacity: 1;
}

.toast .progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
}

.toast .progress:before {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    height: 100%;
    width: 100%;
    background-color: #28a745;
}

.progress.active:before {
    animation: progress 5s linear forwards;
}

@keyframes progress {
    100% {
        right: 100%;
    }
}

/* --- End of minimal example CSS --- */

/* Container that holds the consolidated box */
.scan-info-container.single-box {
    display: block;  /* You could use flex if needed, but a single box is simpler */
    margin: 1rem 0;
}

/* The main box with a subtle background, some spacing, etc. */
.consolidated-scan-info {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 1.5rem;
    max-width: 500px;     /* Example max width */
    margin: 0 auto;       /* Center it horizontally */
    text-align: center;   /* Center text if you like, or remove */
}

/* Title styling */
.consolidated-scan-info h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #333;
}

/* Container for the rows of info inside the box */
.scan-info-stats {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

/* Each row (scanned vs. total, plus KB usage) */
.scan-info-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: #444;
}

/* Label text for 'Escaneados:', 'KB usados:', etc. */
.scan-info-label {
    font-weight: 600;
    color: #555;
}

/* Optional muted text style for 'totales' etc. */
.text-muted {
    color: #999;
}

/* Simple slash between scanned/total (optional) */
.slash {
    font-weight: 600;
    color: #aaa;
}

/* KB usage row can have different styling if you want */
.scan-info-row.kb-usage {
    font-size: 0.95rem; 
    color: #666;
}

/* Contenedor de módulos */
.contenedor-modulos {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
    width: 100%;
    margin-bottom: 30px;
}

.introjs-skipbutton, .introjs-tooltip-close {
    display: none !important;
}

/* Cuando hay 1 módulo, ocupa el 100% */
.contenedor-modulos.modulo-uno .tarjeta-modulo {
    /* flex: 1 1 100%; */
    flex: 1 1 calc(50% - 10px);

}

/* Cuando hay 2 módulos, cada uno ocupa el 50% del ancho */
.contenedor-modulos.modulo-dos {
    display: flex;
    gap: 20px;
    width: 100%;
    margin-top: 30px;
}

.contenedor-modulos.modulo-dos .tarjeta-modulo {
    flex: 1 1 calc(50% - 10px);
}

/* Cuando hay 3 módulos, cada uno ocupa el 33.3% */
.contenedor-modulos.modulo-tres .tarjeta-modulo {
    flex: 1 1 calc(33.3% - 20px);
}

/* Estilos generales de la tarjeta */
.tarjeta-modulo {
    background-color: #fff;
    border: 2px solid #4b04d7;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    width: 100%;
}

.tarjeta-modulo:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Título de los módulos */
.titulo-modulo {
    font-size: 22px;
    font-weight: bold;
    color: #4e1efa;
    margin-bottom: 10px;
    border-bottom: 2px solid #4b04d7;
    padding-bottom: 5px;
}

/* Sección del formulario */
.seccion-formulario {
    width: 100%;
    text-align: left;
    margin-top: 25px;
}

.seccion-formulario label {
    font-weight: bold;
    color: #333;
    display: block;
    margin-bottom: 15px;
}

.area-texto {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    font-size: 14px;
    resize: none;
}

/* Botón de guardar */
.boton-guardar {
    background-color: #4b04d7;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.boton-guardar:hover {
    background-color: #05dd90;
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 768px) {
    .contenedor-modulos.modulo-uno .tarjeta-modulo,
    .contenedor-modulos.modulo-dos .tarjeta-modulo,
    .contenedor-modulos.modulo-tres .tarjeta-modulo {
        flex: 1 1 100%;
        max-width: 100%;
    }
}



/* Contenedor del formulario */
.seccion-formulario {
    margin-bottom: 15px;
}

.dias-semana {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.dia {
    background-color: #4b04d7;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-weight: bold;
}

.acciones-dias {
    margin-top: 15px;
}

.dia:hover {
    background-color: #4b04d7;
}

.dia.seleccionado {
    background-color: #05dd90;
}


/* Estilo del contenedor de las horas */
.horas-actividad {
    display: flex;
    align-items: center;
    gap: 10px; /* Espaciado entre los inputs y el separador "a" */
    margin-bottom: 10px;
}

/* Estilo de los inputs de hora */
.horas-actividad input[type="time"] {
    appearance: none;
    width: 100%; /* Ajusta el tamaño según tu diseño */
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: white;
    text-align: center;
}

.horas-actividad input[type="time"]::-webkit-datetime-edit {
    text-align: center;
    width: 100%; 
}

/* Elimina el icono de reloj en navegadores WebKit (Chrome, Edge, Safari) */
.horas-actividad input[type="time"]::-webkit-calendar-picker-indicator {
    display: inline-block;
}

/* Elimina el icono de reloj en Firefox */
.horas-actividad input[type="time"]::-moz-calendar-picker-indicator {
    display: inline-block;
}

/* Estilo del separador "a" */
.horas-actividad span {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

/* Enlace "Aplicar 24 horas" */
.aplicar-24h {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    color: #007bff;
    text-decoration: none;
    cursor: pointer;
}

.aplicar-24h:hover {
    text-decoration: underline;
}

/* Opciones de acción fuera de horario */
.seccion-formulario label {
    display: block;
    font-size: 14px;
    margin-bottom: 15px;
}

.seccion-formulario input[type="radio"] {
    margin-right: 5px;
}

/* Botón de guardar */
.boton-guardar {
    background-color: #4b04d7;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.boton-guardar:hover {
    background-color: #05dd90;
}

/* Estilos para los radio buttons */
.opciones-horario {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.opcion-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.opcion-radio input {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #4b04d7;
    border-radius: 4px;
    background-color: white;
    position: relative;
    cursor: pointer;
    transition: background 0.3s;
}

.opcion-radio input:checked {
    background-color: #4b04d7;
    border-color: #4b04d7;
}

.opcion-radio input:checked::after {
    content: "✔";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

/* Texto del radio */
.radio-texto {
    font-size: 12px;  /* Tamaño de la fuente a 12px */
    font-weight: normal;  /* Eliminar negrita */
    color: #333;  /* Mantener color neutral */
}

/* Contenedor del mensaje */
.mensaje-horario-container {
    margin-top: 10px;
    display: none; /* Ocultamos por defecto */
}

.mensaje-horario-container textarea {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    font-size: 14px;
    resize: vertical;
}

/* Tamaño específico solo para los checkboxes del horario */
.checkbox-horario .scan-checkbox__symbol {
    width: 20px !important;
    height: 20px !important;
}

/* Just an example to ensure the three advanced modules line up in a row */
.advanced-modules-row {
    display: flex;
    flex-wrap: wrap;            /* allows wrapping on smaller screens */
    gap: 20px;
    margin: 20px 0;
}

/* Optional: make each module roughly 1/3 width on large screens */
.advanced-modules-row .module-card {
    flex: 1 1 calc(33% - 20px);
    min-width: 280px; /* ensure it doesn't get too narrow */
}

/* On smaller devices, they can stack */
@media (max-width: 768px) {
    .advanced-modules-row .module-card {
    flex: 1 1 100%;
    }
}

/* Container that holds the consolidated box */
.scan-info-container.single-box {
    display: block;  /* You could use flex if needed, but a single box is simpler */
    margin: 1rem 0;
}

/* The main box with a subtle background, some spacing, etc. */
.consolidated-scan-info {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 1.5rem;
    max-width: 500px;     /* Example max width */
    margin: 0 auto;       /* Center it horizontally */
    text-align: center;   /* Center text if you like, or remove */
}

/* Title styling */
.consolidated-scan-info h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #333;
}

/* Container for the rows of info inside the box */
.scan-info-stats {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

/* Each row (scanned vs. total, plus KB usage) */
.scan-info-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: #444;
}

/* Label text for 'Escaneados:', 'KB usados:', etc. */
.scan-info-label {
    font-weight: 600;
    color: #555;
}

/* Optional muted text style for 'totales' etc. */
.text-muted {
    color: #999;
}

/* Simple slash between scanned/total (optional) */
.slash {
    font-weight: 600;
    color: #aaa;
}

/* KB usage row can have different styling if you want */
.scan-info-row.kb-usage {
    font-size: 0.95rem; 
    color: #666;
}



/* Fondo gris semitransparente cuando el modal está activo */
.compibot-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Fondo gris con opacidad */
    z-index: 1000; /* Asegura que esté por encima de todo */
}



/* Mostrar el modal cuando se activa */
.compibot-modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Contenedor del modal más grande */
.compibot-modal-content {
    background: white;
    width: 60%;  /* Aumentamos el ancho */
    max-width: 800px; /* Limite máximo de tamaño */
    height: auto;
    max-height: 80vh; /* Que no sea más alto que el 80% de la pantalla */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
    overflow-y: auto; /* Permite desplazarse si hay mucho contenido */
}

/* Botón de cerrar modal */
.compibot-close-modal {
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 15px;
    color: black;
}

/* Estilos para el contenido del modal */
.compibot-modal-title {
    font-size: 22px;
    font-weight: bold;
    color: #4b04d7;
}

.compibot-modal-subtitle {
    font-size: 16px;
    font-weight: bold;
    margin: 10px 0;
}

.compibot-modal-text {
    font-size: 16px;
    margin: 15px 0;
}

.compibot-modal-info {
    font-size: 14px;
    color: gray;
}

.total {
    font-size: 13px;
    color: lightgray;
}


/* Estilos para la tabla dentro del modal */
.compibot-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

/* Encabezados de la tabla */
.compibot-table thead {
    background: #4b04d7;
    color: white;
}

/* Celdas de la tabla */
.compibot-table th, .compibot-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
    font-size: 13px;
}

/* Alternar color de filas */
.compibot-table tbody tr:nth-child(even) {
    background: #f9f9f9;
}

.compibot-pagination {
    margin-top: 10px;
    text-align: center;
}

.pagination-btn {
    padding: 5px 10px;
    margin: 0 5px;
    cursor: pointer;
    background: #4b04d7;
    border-color: transparent;
    color: white;
    border-radius: 3px;
}

.pagination-btn.active {
    background: #05dd90;
    color: white;
    font-weight: bold;
}


.skeleton-box {
    width: 100%;
    height: 16px;
    background: linear-gradient(90deg, #eee 25%, #ddd 50%, #eee 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite linear;
    border-radius: 4px;
}

.skeleton-loader td {
    padding: 10px;
}

@keyframes loading {
    from {
        background-position: 200% 0;
    }
    to {
        background-position: -200% 0;
    }
}

.go-link {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    font-weight: bold;
    color: #4b04d7; /* Cambia el color del texto */
    transition: color 0.3s;
}

.go-link:hover {
    color: #3503a7; /* Color más oscuro al pasar el mouse */
}

.go-link svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #4b04d7; /* Color del icono */
    transition: stroke 0.3s;
}

.go-link:hover svg {
    stroke: #3503a7; /* Cambia el color al pasar el mouse */
}


/* Estilo para el contenedor de ordenación de la tabla de elementos escaneados */
.compibot-order-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

/* Estilo para el selector de orden para pantallas pequeñas */
@media screen and (max-width:768px) {
    .compibot-order-container {
        justify-content: center;
    }
}


/** Estilo para el mensaje de error en el apartado de "Ver elementos escaneados" */
.compibot-error-message {
    text-align: center;
    color: red;
    font-weight: bold;
    padding: 15px;
    border: 1px solid red;
    background: #ffe6e6;
    border-radius: 5px;
    margin-top: 10px;
}

.retry-button {
    background-color: #4b04d7;
    color: white;
    border: none;
    padding: 8px 15px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.retry-button:hover {
    background-color: #3a029c;
}