body {
    font-family: "Baloo Thambi 2", system-ui;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

#chat-container {
    display: flex;
    flex-direction: column;
    max-width: 800px;
    height: 100vh;
    width: 100%;
    margin: 0 auto;
    overflow: hidden; 
}

#chat-box {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    background-color: #fafafa;
    display: flex;
    flex-direction: column;
}

.message {
    display: flex;
    word-wrap: break-word;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    position: relative;
    flex-direction: column;
    align-items: center;
}

.bot-message {
    align-self: flex-start;
    animation: fadeInUp 0.5s forwards;
    margin-bottom: 10px;
    flex-direction: row;
}

.user-message {
    margin-bottom: 10px;
    align-self: flex-end;
    animation: fadeInUp 0.5s forwards;
    flex-direction: row-reverse;
}

.message-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 0 10px;
}

.message-content-wrapper {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.message-content {
    padding: 5px;
}

.message-time {
    font-size: 0.8em;
    color: gray;
}

.bot-message .message-content-wrapper {
    margin-left: 10px;
}

.bot-message .message-time {
    margin-left: -3px;
}

.user-message .message-content-wrapper {
    margin-right: 10px;
}

.user-message .message-time {
    margin-right: 10px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#input-container {
    display: flex;
    align-items: center;
    padding: 10px;
    border-top: 1px solid #ddd;
    background-color: #fff;
    font-family: "Poppins", sans-serif;
}

#dynamic-input {
    flex: 1;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    margin-right: 10px;
    outline: none;
    font-family: "Poppins", sans-serif;
}

#dynamic-button {
    background: none;
    border: none;
    cursor: pointer;
    background-color: #41B4AA;
    color: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.arrow-icon {
    font-size: 0.9rem;
    color: #fff;
}

.arrow-icon:hover {
    color: #322364;
}

.message img,
.message video,
.message audio {
    max-width: 100%;
    border-radius: 5px;
}

@media (max-width: 768px) {
    #chat-container {
        max-width: 100%;
        border-radius: 0;
    }

    .message {
        max-width: 90%;
        font-size: 0.9rem;
    }

    #dynamic-input {
        padding: 10px;
        border-radius: 15px;
    }

    #dynamic-button {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    #chat-container {
        max-width: 100%;
        height: 100vh;
        border-radius: 0;
    }

    #input-container {
        flex-direction: row;
        align-items: center;
    }

    #dynamic-input {
        margin-right: 10px;
        margin-bottom: 0;
        border-radius: 15px;
        flex: 1;
    }

    #dynamic-button {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

/* Modal select */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; 
    background-color: rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.3s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    text-align: center;
    border-radius: 10px;
    animation: slideDown 0.3s ease-out;
    box-sizing: border-box;
    position: relative;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.scrollable-content {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
}

#options-list {
    max-height: 300px; /* Define uma altura máxima para a lista de opções */
    overflow-y: auto; /* Adiciona uma barra de rolagem vertical se necessário */
    padding: 10px; /* Adiciona espaço interno */
    box-sizing: border-box; /* Inclui padding e borda no cálculo da largura e altura */
}

.close {
    color: #aaa;
    float: right;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
}

/* Estilo para os itens individuais dentro da lista de opções */
.option-item {
    padding: 10px;
    margin: 5px 0;
    background-color: #41b4aa30;
    border: 1px solid #41b4aa30;
    cursor: pointer;
    border-radius: 10px;
    transition: background-color 0.3s ease; /* Adiciona uma transição suave para a cor de fundo */
}

.option-item:hover {
    background-color: #41b4aa52;
}

.option-item.selected {
    background-color: #41b4aa;
    color: white;
}

.submit-option-button {
    background-color: #41b4aa;
    cursor: pointer;  
    padding: 15px;
    border: 0;
    border-radius: 10px;
    width: calc(100% - 40px);
    margin-top: 10px; /* Adicionado para evitar que o botão fique colado */
    align-self: center; /* Centraliza o botão dentro do modal */
    font-family: "Poppins", sans-serif;
}

.submit-option-button:disabled {
    background-color: #d8f8f5;
    cursor: not-allowed;
}

button.open-modal-button {
    padding: 20px;
    color: #2bb3a3;
    background: #ffffff;
    border: 1px solid;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 10px;
    font-family: "Poppins", sans-serif;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-30%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-30%);
        opacity: 0;
    }
}

@media (max-width: 600px) {
    .modal-content {
        width: 90%;
        height: auto;
        max-height: 90vh;
    }

    button.open-modal-button {
        width: 100%;
        font-size: 0.9rem;
    }

    .submit-option-button {
        font-size: 0.9rem;
    }
}

.escolha-um-container {
    display: flex;
    flex-direction: column;
}

.escolha-um-option {
    border: 1px solid #2bb3a3;
    color: #2bb3a3;
    padding: 10px;
    border-radius: 20px;
    margin: 3px;
    cursor: pointer;
    text-align: center;
    width: 100%;
    transition: all 0.3s;
    font-family: "Baloo Thambi 2", system-ui;
}

.escolha-um-option.selected {
    background-color: #2bb3a3;
    color: #ffffff;
}

.confirm-escolha-um-button {
    margin-top: 5px;
    font-family: "Baloo Thambi 2", system-ui;
    padding: 23px;
    border: none;
    background-color: #d5eeec;
    color: #2bb3a3;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.confirm-escolha-um-button:disabled {
    background-color: #d5eeec;
    color: #a0a0a0;
    cursor: not-allowed;
}

.confirm-escolha-um-button:hover:enabled {
    background-color: #2bb3a3;
    color: #ffffff;
}

.message-content-bot {
    background: #41b4aa;
    padding: 0px 20px;
    border-radius: 10px;
    color: white;
}

.message-content-user {
    padding: 10px 15px;
    background: #aeabd8;
    border-radius: 10px;
    color: white;
}
