/* -- 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;
  }

  .compibot-auth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
  }

  .compibot-auth-actions .activate-btn {
    margin-top: 0;
  }

  .compibot-register-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border: 1px solid #4b04d7;
    border-radius: 4px;
    background-color: #fff;
    color: #4b04d7;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  }

  .compibot-register-btn:hover {
    background-color: #4b04d7;
    border-color: #4b04d7;
    color: #fff;
    text-decoration: none !important;
  }

  .compibot-register-btn:focus,
  .compibot-register-btn:focus-visible,
  .compibot-register-btn:active {
    text-decoration: none !important;
  }
  
  .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;
}

#conversation-table .popup-content {
    max-height: 460px;
    overflow-y: auto;
    padding: 14px;
    background-color: #f6f7f9;
    border: 1px solid #dfe3ea;
    border-radius: 8px;
    word-wrap: break-word;
    word-break: break-word;
    white-space: pre-wrap;
    scrollbar-width: thin;
    scrollbar-color: #4b04d7 #e0e0e0;
}

#conversation-table .popup-content::-webkit-scrollbar {
    width: 10px;
}

#conversation-table .popup-content::-webkit-scrollbar-thumb {
    background-color: #4b04d7;
    border-radius: 5px;
    border: 2px solid #ffffff;
}

#conversation-table .popup-content::-webkit-scrollbar-track {
    background-color: #e0e0e0;
    border-radius: 5px;
}

#conversation-table .popup-content::-webkit-scrollbar-thumb:hover {
    background-color: #3a03c4;
}

#conversation-table .popup-content ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#conversation-table .popup-content li {
    text-align: initial;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    border-bottom: 0;
    padding: 0;
}

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

#conversation-table .popup-content .meta {
    font-size: 13px;
    color: #5e6a7d;
    margin: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.35;
    min-width: 170px;
    max-width: 170px;
    flex-shrink: 0;
}

#conversation-table .popup-content li .user-message,
#conversation-table .popup-content li .bot-message {
    background-color: #fff;
    border-radius: 0;
    padding: 12px 16px;
    color: #111827;
    max-width: 100%;
    align-self: stretch;
    font-size: 14px;
    margin: 0;
    box-shadow: none;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

#conversation-table .popup-content li .user-message .meta {
    color: #2f6cf6;
    font-weight: 600;
}

#conversation-table .popup-content li .bot-message .meta {
    color: #16a56b;
    font-weight: 600;
}

#conversation-table .popup-content li .user-message p,
#conversation-table .popup-content li .bot-message .bot-output-markdown {
    flex: 1;
    margin: 0;
    padding-left: 14px;
    border-left: 3px solid transparent;
    line-height: 1.45;
}

#conversation-table .popup-content li .user-message p {
    border-left-color: #2f6cf6;
}

#conversation-table .popup-content li .bot-message .bot-output-markdown {
    border-left-color: #16a56b;
}

#conversation-table .popup-content li .bot-message .bot-output-markdown,
#conversation-table .popup-content li .bot-message .bot-output-markdown * {
    font-family: inherit;
    letter-spacing: normal;
    white-space: normal;
    word-break: break-word;
}

#conversation-table .popup-content li .bot-message .bot-output-markdown pre,
#conversation-table .popup-content li .bot-message .bot-output-markdown code {
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

#conversation-table .popup-content button {
    display: block;
    margin: 14px 0 0 auto;
    padding: 10px 20px;
    background-color: #4b04d7;
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#conversation-table .popup-content button:hover {
    background-color: #6a33d1;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.popup-content button:active {
    background-color: #3a029a;
    transform: translateY(0);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}

@media (max-width: 900px) {
    #conversation-table .popup-content .meta {
        min-width: 120px;
        max-width: 120px;
        font-size: 12px;
    }
}

@media (max-width: 680px) {
    #conversation-table .popup-content li .user-message,
    #conversation-table .popup-content li .bot-message {
        flex-direction: column;
        gap: 8px;
    }

    #conversation-table .popup-content .meta {
        min-width: 100%;
        max-width: 100%;
    }

    #conversation-table .popup-content li .user-message p,
    #conversation-table .popup-content li .bot-message .bot-output-markdown {
        padding-left: 10px;
    }
}
/* 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%);
}

.theme-mode-radios-legacy {
display: none !important;
}

.theme-mode-cards {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 14px;
width: 100%;
margin-top: 10px;
}

.theme-mode-card {
display: flex;
flex-direction: column;
gap: 10px;
}

.theme-mode-card__select {
appearance: none;
width: 100%;
display: flex;
flex-direction: column;
align-items: stretch;
gap: 12px;
box-sizing: border-box;
padding: 12px;
border: 1px solid #d9deeb;
border-radius: 20px;
background: #ffffff;
color: inherit;
font: inherit;
text-align: left;
cursor: pointer;
transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.theme-mode-card__select:hover {
border-color: #4a00d9;
box-shadow: 0 8px 22px rgba(74, 0, 217, 0.1);
transform: translateY(-1px);
}

.theme-mode-card__select:focus-visible,
.theme-custom-presets__button:focus-visible {
outline: 2px solid #4a00d9;
outline-offset: 2px;
}

.theme-mode-card__title-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
}

.theme-mode-card__title {
font-size: 15px;
font-weight: 700;
color: #1f2937;
}

.theme-mode-card__check {
width: 22px;
height: 22px;
border-radius: 999px;
border: 1px solid #cfd5e2;
background: #f7f8fb;
position: relative;
flex: 0 0 22px;
}

.theme-mode-card.is-selected .theme-mode-card__select {
border-color: #4a00d9;
box-shadow: 0 12px 28px rgba(74, 0, 217, 0.14);
}

.theme-mode-card.is-selected .theme-mode-card__check {
border-color: #4a00d9;
background: #4a00d9;
}

.theme-mode-card.is-selected .theme-mode-card__check::after {
content: '';
position: absolute;
top: 5px;
left: 7px;
width: 5px;
height: 9px;
border-right: 2px solid #fff;
border-bottom: 2px solid #fff;
transform: rotate(45deg);
}

.theme-chatshot {
--theme-preview-surface: #f8f8fb;
--theme-preview-border: #efefef;
--theme-preview-panel: #ffffff;
--theme-preview-header: #ffffff;
--theme-preview-divider: #ececf2;
--theme-preview-title: #36018d;
--theme-preview-contact: #ffffff;
--theme-preview-contact-border: #e4e5ee;
--theme-preview-contact-text: #1e1e1e;
--theme-preview-user: #4e1efa;
--theme-preview-user-text: #ffffff;
--theme-preview-input-surface: #ffffff;
--theme-preview-input-border: #36018d;
--theme-preview-send: #01f49d;
display: block;
}

.theme-chatshot--dark {
--theme-preview-surface: #171b26;
--theme-preview-border: #2d3244;
--theme-preview-panel: #1c1f2a;
--theme-preview-header: #1c1f2a;
--theme-preview-divider: #2d3244;
--theme-preview-title: #00d88a;
--theme-preview-close: #00d88a;
--theme-preview-contact: #2a3042;
--theme-preview-contact-border: #3e4660;
--theme-preview-contact-text: #f5f7ff;
--theme-preview-user: #4e1efa;
--theme-preview-user-text: #ffffff;
--theme-preview-input-surface: #171b26;
--theme-preview-input-border: #00d88a;
--theme-preview-send: #00d88a;
}

.theme-chatshot__window {
display: flex;
flex-direction: column;
min-height: 270px;
overflow: hidden;
border-radius: 20px;
border: 1px solid var(--theme-preview-border);
background: var(--theme-preview-panel);
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.theme-chatshot__header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 14px;
border-bottom: 1px solid var(--theme-preview-divider);
background: var(--theme-preview-header);
}

.theme-chatshot__brand {
display: flex;
align-items: center;
gap: 7px;
}

.theme-chatshot__logo {
width: 22px;
height: 22px;
border-radius: 999px;
background: radial-gradient(circle at 35% 35%, #ffdb4d 0 18%, #d90d11 20% 100%);
box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.06);
}

.theme-chatshot__brand-text {
font-size: 18px;
font-weight: 700;
line-height: 1;
color: var(--theme-preview-title);
}

.theme-chatshot__close {
position: relative;
width: 18px;
height: 18px;
flex: 0 0 18px;
}

.theme-chatshot__close::before,
.theme-chatshot__close::after {
content: '';
position: absolute;
top: 8px;
left: 1px;
width: 16px;
height: 2px;
border-radius: 999px;
background: var(--theme-preview-close, var(--theme-preview-title));
}

.theme-chatshot__close::before {
transform: rotate(45deg);
}

.theme-chatshot__close::after {
transform: rotate(-45deg);
}

.theme-chatshot__body {
display: flex;
flex-direction: column;
gap: 14px;
padding: 16px 12px 12px;
background: var(--theme-preview-surface);
flex: 1 1 auto;
}

.theme-chatshot__bubble {
max-width: 92%;
padding: 12px 13px;
border-radius: 14px;
font-size: 11px;
line-height: 1.45;
box-sizing: border-box;
}

.theme-chatshot__bubble--bot {
align-self: flex-start;
color: var(--theme-preview-contact-text);
background: var(--theme-preview-contact);
border: 1px solid var(--theme-preview-contact-border);
box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.theme-chatshot__bubble--lead {
max-width: 96%;
}

.theme-chatshot__bubble--user {
align-self: flex-end;
padding: 11px 13px;
color: var(--theme-preview-user-text);
background: var(--theme-preview-user);
box-shadow: 0 10px 20px rgba(91, 36, 255, 0.28);
}

.theme-chatshot__composer {
display: flex;
align-items: center;
gap: 10px;
padding: 9px 12px 10px;
border-top: 1px solid var(--theme-preview-divider);
background: var(--theme-preview-panel);
}

.theme-chatshot__input {
flex: 1 1 auto;
min-width: 0;
padding: 7px 12px;
border-radius: 999px;
border: 1px solid var(--theme-preview-input-border);
background: var(--theme-preview-input-surface);
font-size: 10px;
font-weight: 600;
line-height: 1.2;
color: var(--theme-preview-title);
}

.theme-chatshot__send {
position: relative;
width: 34px;
height: 24px;
border-radius: 999px;
background: var(--theme-preview-send);
flex: 0 0 34px;
}

.theme-chatshot__send::before {
content: none;
}

.theme-chatshot__footer {
padding: 7px 12px 10px;
font-size: 10px;
font-weight: 600;
text-align: center;
color: color-mix(in srgb, var(--theme-preview-title) 70%, #ffffff 30%);
background: var(--theme-preview-panel);
}

.theme-custom-preview {
--theme-custom-accent: #4a00d9;
--theme-custom-accent-soft: #ece5ff;
--theme-custom-surface: #ffffff;
--theme-custom-ink: #1f2937;
--theme-custom-muted: #667085;
display: flex;
flex-direction: column;
gap: 16px;
padding: 18px;
min-height: 270px;
border-radius: 20px;
border: 1px solid #d9deeb;
background:
radial-gradient(circle at top right, rgba(74, 0, 217, 0.1) 0, transparent 42%),
linear-gradient(160deg, #ffffff, #f8f9fd);
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.theme-custom-preview__badge {
justify-self: flex-start;
padding: 6px 10px;
border-radius: 999px;
background: var(--theme-custom-accent-soft);
color: var(--theme-custom-accent);
font-size: 11px;
font-weight: 700;
letter-spacing: 0.04em;
text-transform: uppercase;
}

.theme-custom-preview__hero {
display: flex;
flex-direction: column;
gap: 6px;
}

.theme-custom-preview__eyebrow {
font-size: 12px;
font-weight: 700;
letter-spacing: 0.04em;
text-transform: uppercase;
color: var(--theme-custom-accent);
}

.theme-custom-preview__headline {
font-size: 18px;
line-height: 1.15;
font-weight: 800;
color: var(--theme-custom-ink);
}

.theme-custom-preview__copy {
font-size: 13px;
line-height: 1.45;
color: var(--theme-custom-muted);
}

.theme-custom-preview__features {
display: grid;
gap: 10px;
}

.theme-custom-preview__feature {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 12px;
border-radius: 14px;
background: rgba(255, 255, 255, 0.82);
border: 1px solid #e7eaf2;
}

.theme-custom-preview__feature-icon {
position: relative;
width: 22px;
height: 22px;
border-radius: 999px;
flex: 0 0 22px;
}

.theme-custom-preview__feature-icon--title {
background: #e8deff;
}

.theme-custom-preview__feature-icon--surface {
background: #e9eefc;
}

.theme-custom-preview__feature-icon--action {
background: #def8eb;
}

.theme-custom-preview__feature-icon::after {
content: '';
position: absolute;
top: 6px;
left: 6px;
width: 10px;
height: 10px;
border-radius: 999px;
background: var(--theme-custom-accent);
}

.theme-custom-preview__feature-icon--surface::after {
background: #4f6bff;
}

.theme-custom-preview__feature-icon--action::after {
background: #05dd90;
}

.theme-custom-preview__feature-text {
font-size: 12px;
font-weight: 700;
color: var(--theme-custom-ink);
}

.theme-custom-preview__statement {
display: flex;
align-items: center;
gap: 10px;
padding: 12px 14px;
border-radius: 14px;
background: #f6f3ff;
border: 1px solid #e3dbff;
}

.theme-custom-preview__statement-mark {
width: 18px;
height: 18px;
border-radius: 999px;
background: var(--theme-custom-accent);
position: relative;
flex: 0 0 18px;
}

.theme-custom-preview__statement-mark::after {
content: '';
position: absolute;
top: 4px;
left: 6px;
width: 4px;
height: 8px;
border-right: 2px solid #fff;
border-bottom: 2px solid #fff;
transform: rotate(45deg);
}

.theme-custom-preview__statement-text {
font-size: 13px;
font-weight: 700;
color: var(--theme-custom-accent);
}

.theme-custom-presets {
grid-column: 1 / -1;
display: flex;
align-items: center;
justify-content: space-between;
gap: 14px;
padding: 12px 14px;
border: 1px solid #e1e5ef;
border-radius: 12px;
background: #f8f9fc;
}

.theme-custom-presets__label {
font-size: 13px;
font-weight: 700;
color: #263041;
}

.theme-custom-presets__actions {
display: flex;
flex-wrap: wrap;
gap: 10px;
}

.theme-custom-presets__button {
appearance: none;
padding: 9px 14px;
border: 1px solid #d7dced;
border-radius: 999px;
background: #ffffff;
color: #273041;
font: inherit;
font-size: 13px;
font-weight: 600;
cursor: pointer;
transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.theme-custom-presets__button:hover,
.theme-custom-presets__button:focus-visible {
border-color: #4a00d9;
color: #4a00d9;
box-shadow: 0 0 0 3px rgba(74, 0, 217, 0.08);
outline: none;
}

@media (max-width: 960px) {
.theme-mode-cards {
grid-template-columns: 1fr;
}

.theme-custom-presets {
flex-direction: column;
align-items: stretch;
}

.theme-chatshot__window,
.theme-custom-preview {
min-height: 240px;
}
}

/* 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: #fff;
    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;
    color: #fff;
}

#compibot-icon-preview,
#compibot-branding-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%;
}
.compibot-auth-actions {
    flex-direction: column;
    align-items: stretch;
}
.compibot-auth-actions .activate-btn,
.compibot-register-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
}
.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;
}

.compibot-quick-questions__rows {
    display: grid;
    gap: 8px;
    margin-bottom: 10px;
}

.compibot-quick-questions__panel {
    padding: 14px;
    border: 1px solid #e4e8f1;
    border-radius: 16px;
    background: #fbfcff;
    margin-bottom: 18px;
}

.compibot-quick-question-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #e7ebf3;
    border-radius: 12px;
    background: #ffffff;
    width: 100%;
    box-sizing: border-box;
}

.compibot-quick-question-row.has-content {
    border-color: #d6caFF;
    background: #fbf9ff;
}

.compibot-quick-question-meta {
    display: block;
}

.compibot-quick-question-label {
    font-size: 12px;
    font-weight: 700;
    color: #394150;
    display: block;
}

.compibot-quick-question-input {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid #d5d9e2;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.35;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-sizing: border-box;
}

.compibot-quick-question-input:focus {
    border-color: #4b04d7;
    box-shadow: 0 0 0 3px rgba(75, 4, 215, 0.12);
    outline: none;
}

.scan-checkbox--compact {
    margin: 0;
    flex-shrink: 0;
}

.compibot-quick-questions__rows.is-disabled {
    opacity: 0.55;
}

.compibot-quick-questions__hint {
    margin: 2px 0 0;
    color: #5f6573;
    font-size: 12px;
}

.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);
}

/* Cuando hay 4 módulos, se muestran 2 por fila */
.contenedor-modulos.modulo-cuatro .tarjeta-modulo {
    flex: 1 1 calc(50% - 10px);
    max-width: calc(50% - 10px);
}

/* 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%;
    min-width: 0;
}

.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,
    .contenedor-modulos.modulo-cuatro .tarjeta-modulo {
        flex: 1 1 100%;
        max-width: 100%;
    }
}



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

#custom-colors-wrapper {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
}

#custom-colors-wrapper[hidden],
#custom-colors-hint[hidden] {
    display: none !important;
}

#custom-colors-wrapper .option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #e3e3ea;
    border-radius: 6px;
    background: #fcfcfe;
}

#custom-colors-wrapper .option-label {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    margin-right: 0;
    white-space: normal;
}

.custom-color-picker {
    -webkit-appearance: none;
    appearance: none;
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    height: 28px !important;
    border: 1px solid #b8b8c8;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    padding: 0;
    flex: 0 0 34px;
    display: block;
}

.custom-color-picker::-webkit-color-swatch-wrapper {
    padding: 0;
}

.custom-color-picker::-webkit-color-swatch {
    border: none;
    border-radius: 3px;
}

.custom-color-picker::-moz-color-swatch {
    border: none;
    border-radius: 3px;
}

@media (max-width: 680px) {
    #custom-colors-wrapper {
        grid-template-columns: minmax(0, 1fr);
    }
}

.chat-icon-bg-option {
    flex-direction: column;
    align-items: flex-start;
}

.chat-icon-upload-row {
    display: flex;
    align-items: stretch;
    gap: 12px;
    width: 100%;
}

.chat-icon-upload-row .chat-icon-usage-toggle {
    flex: 0 0 260px;
}

.chat-icon-upload-row .file-upload-container {
    flex: 1 1 auto;
}

.chat-icon-usage-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #d9deeb;
    border-radius: 14px;
    background: #f8f9fc;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.chat-icon-usage-toggle:hover {
    border-color: #4a00d9;
    background: #f6f2ff;
}

.chat-icon-usage-toggle__input:focus + .chat-icon-usage-toggle__control {
    box-shadow: 0 0 0 3px rgba(74, 0, 217, 0.12);
}

.chat-icon-usage-toggle__control {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #ffffff;
    color: #4a00d9;
    border: 1px solid #d7dced;
    flex: 0 0 42px;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.chat-icon-usage-toggle__icon {
    position: absolute;
    font-size: 16px;
    line-height: 1;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.chat-icon-usage-toggle__icon--off {
    opacity: 0;
    transform: scale(0.9);
}

.chat-icon-usage-toggle__content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chat-icon-usage-toggle__title {
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
}

.chat-icon-usage-toggle__status {
    font-size: 12px;
    color: #667085;
}

.chat-icon-usage-toggle.is-enabled {
    border-color: #cdbdff;
    background: #f8f9fc;
}

.chat-icon-usage-toggle.is-enabled .chat-icon-usage-toggle__control {
    background: #ffffff;
    border-color: #cdbdff;
    color: #4a00d9;
}

.chat-icon-usage-toggle.is-enabled .chat-icon-usage-toggle__icon--on {
    opacity: 1;
    transform: scale(1);
}

.chat-icon-usage-toggle.is-enabled .chat-icon-usage-toggle__icon--off {
    opacity: 0;
    transform: scale(0.9);
}

.chat-icon-usage-toggle:not(.is-enabled) .chat-icon-usage-toggle__icon--on {
    opacity: 0;
    transform: scale(0.9);
}

.chat-icon-usage-toggle:not(.is-enabled) .chat-icon-usage-toggle__icon--off {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 900px) {
    .chat-icon-upload-row {
        flex-direction: column;
    }

    .chat-icon-upload-row .chat-icon-usage-toggle {
        flex-basis: auto;
        width: 100%;
    }
}

.chat-icon-bg-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
    width: 100%;
}

.chat-icon-bg-picker {
    width: 56px;
    min-width: 56px;
    height: 32px;
    padding: 2px;
    border: 1px solid #cfd0da;
    border-radius: 8px;
    background: #fff;
}

.chat-icon-bg-toggle {
    display: inline-flex !important;
    align-items: center;
    flex: 1 1 240px;
    gap: 8px;
    margin: 0 !important;
    font-weight: 600;
    color: #1f2937;
}

.chat-icon-bg-toggle .scan-checkbox__text {
    white-space: normal;
}

.chat-icon-bg-help {
    display: block;
    margin-top: 6px;
    color: #666;
}

.customization-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.boton-secundario {
    background: #f8f9fc !important;
    color: #1f2937 !important;
    border: 1px solid #d7dae6 !important;
}

.boton-secundario:hover {
    background: #eef1f8 !important;
}

.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;
}

.compibot-scan-required-warning {
    margin-top: 16px;
    padding: 12px 14px;
    border: 1px solid #dc2626;
    border-radius: 10px;
    background: #fef2f2;
    color: #991b1b;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

.compibot-scan-required-warning.is-hidden {
    display: none;
}

.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;
}

/* Switch Design section to stacked layout earlier (tablet/smaller desktop) */
@media (max-width: 1315px) {
    .design-section .option {
        display: grid !important;
        grid-template-columns: 1fr !important;
        align-items: start !important;
        gap: 8px !important;
    }

    .design-section .option .option-label,
    .design-section .option .option-label-1,
    .design-section .option .option-label-2 {
        min-width: 0 !important;
        margin-right: 0 !important;
        white-space: normal !important;
    }

    .design-section .location-options {
        margin-left: 0 !important;
        width: 100%;
        flex-wrap: wrap;
        gap: 12px;
    }

    .design-section .file-upload-container {
        width: 100%;
        min-width: 0;
        flex: 1 1 auto;
    }

    .design-section .chat-icon-style-options {
        margin-left: 0 !important;
        width: 100%;
        display: flex !important;
        flex-wrap: wrap;
        gap: 12px !important;
    }
}

/* Final mobile fixes for Design section layout */
@media (max-width: 768px) {
    .config-column .option,
    .design-section .option {
        display: grid !important;
        grid-template-columns: 1fr !important;
        align-items: start !important;
        gap: 8px !important;
    }

    .config-column .option-label,
    .config-column .option-label-1,
    .config-column .option-label-2,
    .design-section .option .option-label,
    .design-section .option .option-label-1,
    .design-section .option .option-label-2 {
        min-width: 0 !important;
        margin-right: 0 !important;
        white-space: normal !important;
    }

    .design-section .location-options {
        margin-left: 0 !important;
        width: 100%;
        flex-wrap: wrap;
        gap: 12px;
    }

    .design-section .file-upload-container {
        width: 100%;
        min-width: 0;
        flex: 1 1 auto;
    }

    .design-section .chat-icon-style-options {
        margin-left: 0 !important;
        width: 100%;
        display: flex !important;
        flex-wrap: wrap;
        gap: 12px !important;
    }
}
