.button-group.pergunte-ai {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    flex-wrap: wrap; /* Adicionado para permitir quebra de linha */
}

button.btn.btn-secondary.btn-padrao.suggestion {
    background-color: #4747478c;
    margin-bottom: 10px; /* Adicionado para espaço entre botões quando em coluna */
    padding: 20px; /* Aumentado para parecer mais com um card */
    font-size: 14px;
    border: 1px solid #cccccc30; /* Adiciona borda */
    border-radius: 10px; /* Adiciona bordas arredondadas */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Adiciona sombra */
    text-align: left; /* Alinha o texto à esquerda para parecer mais com um card */
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1 1 30%; /* Permite que os botões cresçam e encolham */
    margin: 10px; /* Adiciona espaçamento entre os botões */
    color: white;
}

.hidden-textarea {
    display: none;
    width: 100%;
    overflow: hidden; /* Remove a barra de rolagem */
    box-sizing: border-box; /* Inclui padding e border no tamanho total */
    margin-bottom: 30px;
}

.hidden {
    display: none;
}

i.fa.fa-stop {
    color: black;
}

.stop-button i {
    margin: 0; /* Remove margem ao redor do ícone */
}

button#stopButton {
    width: 40px;
    height: 50px;
    margin-right: 1px;
    border: none;
    background-color: white;
    font-size: 18px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn.disabled, .btn:disabled, fieldset:disabled .btn {
    color: var(--bs-btn-disabled-color);
    pointer-events: none;
    background-color: var(--main-color-hover);
    border-color: var(--bs-btn-disabled-border-color);
    opacity: var(--bs-btn-disabled-opacity);
}

#chatContainer {
    display: flex;
    flex-direction: column;
    margin: 20px;
    margin-top: 20px;
}

.chat-bubble {
    max-width: 60%;
    padding: 10px;
    margin: 5px;
    border-radius: 15px;
    position: relative;
    word-wrap: break-word;
}

img.profile-icon {
    width: 30px;
    margin-right: 10px;
    border-radius: 50%;
}

.user-bubble {
    background-color: #66b22e6e;
    color: white;
    align-self: flex-end;
}

.ai-bubble {
    margin-top: 10px;
    background-color: var(--cards-background);
    color: #ffff;
    align-self: flex-start;
}

.chat-bubble::after {
    content: "";
    position: absolute;
    bottom: -10px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
}

.user-bubble::after {
    border-top: 10px solid #66b22e6e;
    right: 10px;
}

.ai-bubble::after {
    border-top: 10px solid #242424;
    left: 10px;
}

.loading-text {
    font-weight: bold;
    font-size: 16px;
    background: linear-gradient(90deg, #f1f1f1, #c0c0c0, #f1f1f1);
    background-size: 200% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}


@media (max-width: 480px) {
    .button-group.pergunte-ai {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (min-width: 768px) {
    .button-group.pergunte-ai {
        flex-direction: row;
        justify-content: space-around; /* Ajusta o espaço entre os botões */
    }

    button.btn.btn-secondary.btn-padrao.suggestion {
        flex: 1 1 30%; /* Mantém os botões responsivos */
        margin: 10px; /* Espaçamento entre os botões */
    }
}
