:root {
    --color-black: rgb(0, 0, 1);
    --color-red: rgb(242, 51, 51);
    --color-purple: rgb(180, 29, 216);
    --color-blue-violet: rgb(116, 99, 214);
    --color-blue: rgb(33, 146, 212);
    --color-olive: rgb(124, 160, 11);
    --color-orange: rgb(224, 134, 43);
    --color-yellow: rgb(242, 202, 53);
    --color-white: rgb(255, 255, 255);
    --color-black-ligth: #212529
}

.andani-chat-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.andani-chat-button {
    margin-bottom: 10px;
}

#andani-chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid var(--color-purple);
    background-color: var(--color-black);
    color: var(--color-white);
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
}

#andani-chat-toggle:hover {
    background-color: var(--color-blue-violet);
    transform: scale(1.1);
}

.andani-chat-box {
    display: flex;
    /* Cambiado de 'block' a 'flex' */
    flex-direction: column;
    width: 300px;

    /* Altura fija para la animación */
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
    position: absolute;
    bottom: 80px;
    /* Ajusta según sea necesario */
    right: 0;
}

.andani-chat-box.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.andani-chat-header {
    background-color: var(--color-olive);
    color: white;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    /* Evita que el encabezado se encoja */
}

.andani-chat-header h3 {
    margin: 0;
}

#andani-close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.andani-chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
    height: 300px;
}

.andani-section-chat {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.andani-chat-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid #e0e0e0;
    background-color: #f8f8f8;
    align-items: flex-end;
}

.andani-content-human {
    padding: 10px;
    text-align: center;
}

.andani-btn-human {
    width: 100%;
    text-align: center;
    font-weight: 600;
    color: var(--color-orange);
    background-color: var(--color-white);
    border: 1px solid var(--color-orange);
    margin-right: 10px;
    border-radius: 20px;
    -webkit-transition: .3s all ease;
    -o-transition: .3s all ease;
    transition: .3s all ease;
    padding: 0.4rem
}

.andani-btn-human:hover {
    background: var(--color-orange);
    border: 1px solid var(--color-white);
    color: var(--color-white);
}

#andani-chat-input {
    flex-grow: 1;
    min-height: 38px;
    max-height: 100px;
    padding: 5px;
    border-radius: 5px;
    resize: none;
    overflow-y: auto;
    border: 1px solid var(--color-orange);
}

#andani-chat-input:focus,
#andani-chat-input:active {
    outline: none;
    border: 2px solid var(--color-orange);
    box-shadow: 0 0 5px var(--color-orange);

}

#andani-chat-input:hover {
    border: 1px solid var(--color-orange);
}

#sendButtonAndani {
    background-color: var(--color-orange);
    color: #fff;
    border: none;
    padding: 5px 10px;
    margin-left: 5px;
    border-radius: 5px;
    cursor: pointer;
    height: 38px;
}

.andani-content-user {
    margin-bottom: 1rem;
    display: flex;
    justify-content: end;
}

.andani-message-user {
    display: inline-block;
    background: var(--color-yellow);
    color: var(--color-white);
    border-radius: 20px;
    padding: 1rem 1rem;
    max-width: 700px;
    width: auto;
}

.andani-content-assistant {
    color: var(--color-black);
}

.andani-typing-indicator {
    background-color: #e6e6e6;
    border-radius: 50px;
    padding: 10px;
    margin-bottom: 10px;
}

.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #3b5998;
    animation: wave 1.3s linear infinite;
    margin-right: 3px;
}

.dot:nth-child(2) {
    animation-delay: -1.1s;
}

.dot:nth-child(3) {
    animation-delay: -0.9s;
}

@keyframes wave {

    0%,
    60%,
    100% {
        transform: initial;
    }

    30% {
        transform: translateY(-10px);
    }
}



/* .sidebar {
    display: flex;
} */

/*codigo*/
.content-btn-lenguaje {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.code-container {
    width: auto;
}