body {
	display: flex;
	flex-direction: column;
}

main {
	display: flex;
	flex-grow: 1;
}

.section-main {
	padding: 20px 16px;
	display: flex;
	flex-grow: 1;
}

.article-main {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    overflow: hidden;
	flex-grow: 1;
	height: 82vh
}

.div-footer {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.div-footer-itens {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.div-footer-fields {
	display: flex;
	gap: 4px;
}

.div-chat-main {
    align-self: stretch;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 12px;
    display: flex;
    margin-bottom: 32px;
}

.div-chat {
    align-self: stretch;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 8px;
    display: inline-flex;
	max-width: 1200px;
	width: 80%;
}

.div-chat-usuario {
    align-self: stretch;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 12px;
    display: inline-flex;
}

.div-chat-mensagem {
    padding: 12px;
    border-radius: 10px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 4px;
    display: inline-flex;
}

.div-chat-mensagem.ia {
    background-color: var(--cor-principal);
}

.div-chat-mensagem.usuario {
    background-color: var(--laranja);
}

.div-chat-mensagem.usuario .div-chat-mensagem-info {
    justify-content: flex-end;
}

.div-chat-mensagem-info {
    align-self: stretch;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    display: inline-flex;
	max-width: 940px;
}

.div-resposta {
    align-self: stretch;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 12px;
    display: inline-flex;
    margin-top: 32px;
}

.div-resposta-balao {
    padding: 12px;
    background: var(--cor-principal-normal);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-left-radius: 20px;
    justify-content: center;
    align-items: flex-end;
    gap: 4px;
    display: flex;
    padding: 16px;
}

.div-balao-inativo {
    width: 8px;
    height: 8px;
    background: #aaa;
    border-radius: 9999px;
}

.div-balao-ativo {
    width: 12px;
    height: 12px;
    background: var(--branco);
    border-radius: 9999px;
}

.div-input-main {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    align-self: stretch;
	background: var(--branco) !important;
	padding: 8px 16px;
    border: 2px var(--branco) solid;
    border-radius: 20px;
}

textarea {
	background: var(--branco) !important;
	color: var(--cor-principal) !important;
}

.div-menu-itens {
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-radius: 10px;
    background-color: #242723;
    padding: 12px;
}

.div-menu-itens > h3 {
    color: var(--branco);
}

.div-chat-form {
    overflow: scroll;
}

.div-chat-main-loading {
    align-self: stretch;
    display: flex;
    justify-content: flex-end;
}

.span-nome {
    color: var(--branco);
    font-size: 16px;
    font-weight: 700;
    word-wrap: break-word;
}

.span-tempo {
    color: var(--cor-texto-fraco);
    font-size: 12px;
    font-weight: 700;
    word-wrap: break-word;
}

.p-mensagem {
    color: var(--branco);
    font-size: 14px;
    font-weight: 400;
    word-wrap: break-word;
}

.img-adicionar {
    width: 16px;
}

.div-resposta-balao {
    display: flex;
    gap: 6px;
    align-items: center;
    height: 20px;
    margin: 10px 0;
}

.div-resposta-balao div {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--branco); /* default inativo */
    opacity: 0.4;
    animation: bounce 1.2s infinite ease-in-out;
}

.div-chat-form,
.div-chat-main  {
  overflow: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer e Edge antigo */
}

.div-chat-form ::-webkit-scrollbar ,
.div-chat-main ::-webkit-scrollbar {
  display: none; /* Chrome, Safari e Opera */
}

/* Cor branca e mais visível para a bolinha ativa */
.div-balao-ativo {
    background-color: var(--branco);
    opacity: 1;
}

/* Animação de bounce */
@keyframes bounce {
    0%,
    80%,
    100% {
        transform: scale(0.8);
        opacity: 0.4;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Atrasos para efeito sequencial */
.div-resposta-balao div:nth-child(1) {
    animation-delay: 0s;
}
.div-resposta-balao div:nth-child(2) {
    animation-delay: 0.2s;
}
.div-resposta-balao div:nth-child(3) {
    animation-delay: 0.4s;
}