/* Estilo general para el botón flotante de chat */
#chat-button {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background-color: #a80000; /* Verde de Spotify */
    color: white;
    font-size: 25px;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
    height: 60px;
    width: 60px;
    justify-items: center;
}

#chat-button:hover {
    background-color: #a80000c4;
    transform: scale(1.1);
}

#chat-button:focus {
    outline: none;
}

#chat-button:active {
    transform: scale(1.05);
}

/* Estilo para el cuadro de chat */
#chat-box {
    position: fixed;
    bottom: 20px;
    right: 100px;
    width: 500px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    padding: 15px;
    z-index: 10000;
    display: none;
    max-height: 600px;
    height: 500px;
    overflow-y: auto;
}

/* Estilo para el área de texto de la pregunta */
#chat-input {
    width: 100%;
    height: 50px;
    min-height: 50px;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.4;
    resize: none;  /* Desactiva el redimensionamiento */
    overflow: hidden;  
}

/* Estilo para el botón de envío */
#chat-enviar {
    width: 50px;
    height: 50px;
    padding: 10px;
    background-color: #a80000;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
}

#chat-enviar:hover {
    background-color: #a80000b0;
}

/* Estilo para el ícono de chat */
#chat-button i {
    font-size: 30px;
}

#chat-respuesta {
    height: 80%;
    overflow-y: auto;
    margin-bottom: 10px;
}

.chat-bubble {
    max-width: 80%;
    padding: 10px;
    margin: 5px 0;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.4;
}

.user {
    background-color: #a80000;
    color: white;
    text-align: right;
    margin-left: auto;
}

.bot {
    background-color: #323232;
    color: white;
    text-align: left;
    margin-right: auto;
}

div#container_input {
    position: absolute;
    display: flex;
    width: 100% !important;
    bottom: 0px;
    gap: 10px;
    padding: 20px;
    left: 0;
}

/* Loader para indicar generación de audio */
div#loader_spin_chat {
    display: none;
    width: 30px;
    height: 30px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #323232;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

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

@media (max-width: 600px) {
    #chat-box {
        right: 95px !important;
        width: 70% !important;
    }
}

@media (max-width: 992px) {
    #chat-box {
        right: 95px !important;
        width: 70% !important;
    }
}