body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    margin: 0px;
}

#chat_section {
    display: flex;
    flex-direction: column;
    height: 100vh;
    justify-content: center;
    align-items: center;
}

#chat_contenedor {
    display: flex;
    width: 80vw;
    height: 80vh;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

#barra_lateral {
    width: 30%;
    border-right: 1px solid #ddd;
    display: flex;
    flex-direction: column;
}

#caja_herramientas {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#search_bar {
    width: 90%;
    padding: 10px;
    border: none;
    border-radius: 5px;
}

#chat_display {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 70%;
}

#chat_history {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    flex-direction: column;
    max-height: calc(100vh - 100px); /* Adjust the max-height according to your layout */
}

#chats {
    flex-grow: 1;
    overflow-y: auto;
    max-height: calc(100vh - 100px); /* Adjust the max-height according to your layout */
}

#message_input {
    flex-grow: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
    margin-right: 10px;
}

#send_button {
    padding: 10px 20px;
    background-color: #0084ff;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#chat_info {
    display: flex;
    align-items: center;
    background-color: aliceblue;
    padding-left: 20px;
    padding-right: 20px;
    height: 5vh;
}

#guest_profile {
    max-height: calc(100vh - 100px); /* Adjust the max-height according to your layout */
    height: 100%;
    display: none;
    flex-direction: column;
}

/* Additional styles */
#chat_info {
    cursor: pointer;
}


.chat_card.active {
    background-color: #b0d0ff; /* Color de fondo diferente para el chat activo */
}


.chat_card {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
}

.chat_card:hover{
    background-color: #d3e4ff;
}
.chat_card img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.chat_card .chat_info {
    flex-grow: 1;
}

.chat_card .chat_info .guest_name {
    display: flex;
    font-weight: bold;
    justify-content: space-between;
    
}


.message {
    display: flex;
    margin-bottom: 10px;
}

.message.user {
    justify-content: flex-start;
}

.message.assistant {
    justify-content: flex-end;
}

.message .message_content {
    max-width: 60%;
    padding: 10px;
    border-radius: 10px;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}


.message.user .message_content {
    background-color: #e0e0e0;
    border-top-left-radius: 0;
}

.message.assistant .message_content {
    background-color: #0084ff;
    color: white;
    border-top-right-radius: 0;
}

.message_text{
    word-wrap: break-word;
    overflow: hidden;
    white-space: normal;
    max-width: 89%;
}

#submit_message {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ddd;
}

.time_message {
    font-size: 10px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}


.last_message{
    max-width: 17vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auto-resize {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    width: 100%; /* Ajusta el ancho según sea necesario */
    box-sizing: border-box; /* Incluye padding y border en el ancho y alto */
    padding: 10px; /* Ajusta el padding según sea necesario */
    font-size: 16px; /* Ajusta el tamaño de fuente según sea necesario */
    line-height: 1.5; /* Ajusta la altura de línea según sea necesario */
    resize: none; /* Evita que el usuario cambie el tamaño del textarea manualmente */
}


.user_pic {
    width: 100%;
    height: auto;
    border-radius: 50%;
}

#assistants {
    font-family: Arial, sans-serif;
    max-width: 800px;
    margin: auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: #f9f9f9;
}

#cabecera {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

#cabecera button, #cabecera select {
    padding: 10px 15px;
    font-size: 14px;
    margin-right: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
}

#cabecera button:hover, #cabecera select:hover {
    background-color: #e9e9e9;
}

#formulario {
    margin-bottom: 20px;
}

#assistant_form label {
    display: block;
    margin-top: 10px;
}

#assistant_form input, #assistant_form textarea, #assistant_form select {
    width: calc(100% - 20px);
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#assistant_form button {
    padding: 10px 20px;
    font-size: 16px;
    margin-top: 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background-color: #28a745;
    color: #fff;
}

#assistant_form button:hover {
    background-color: #218838;
}

.tool, .param {
    margin-top: 15px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f1f1f1;
}

.tool label, .param label {
    display: inline-block;
    width: 100px;
}

.tool select, .param input, .param textarea {
    width: calc(100% - 120px);
    padding: 5px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#tools_list .tool {
    margin-bottom: 10px;
}

#params_list .param {
    margin-top: 10px;
}
