body {
    background: linear-gradient(89deg, #545454 0%, #3b3b3b 44%);
}

main {
    display: flex;
    justify-content: center;
    align-items: center;
}

img {
    width: auto;
    height: auto;
}

textarea {
    flex-grow: 1;
    align-self: stretch;
    background: none;
    color: white;
    letter-spacing: 1px;
}

textarea::placeholder {
    color: white;
}

button {
    background-color: #ff4500;
    border: 0;
    border-radius: 100%;
    padding: 8px;
}

button > img {
    width: 16px;
}

footer {
    height: 36px;
    background-color: #1c1c1c;
    color: #ececec;
	padding: 4px 12px;
	font-size: 16px;
}

.h1-main {
    color: #d2d2d2;
    font-size: 32px;
    font-weight: 400;
    word-wrap: break-word;
}

.section-main {
    width: 100%;
    padding: 0 16px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 10px;
    display: inline-flex;
	height: calc(100vh - 36px);
}

.article-main {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    justify-content: space-between;
    flex-grow: 1;
    padding: 24px 16px;
    gap: 32px;
    height: 75vh;
    overflow: hidden;
}

.div-main {
    align-self: stretch;
    justify-content: center;
    align-items: center;
    gap: 24px;
    display: flex;
    flex-direction: column;
}

.div-main > h1 {
    color: white;
}

.div-main > h2 {
    color: rgb(202, 200, 200);
}

.form-submit {
    display: inline-flex;
    flex-grow: 1;
}

.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: #171717;
}

.div-chat-mensagem.usuario {
    background-color: #ff4500;
}

.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: #626262;
    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: white;
    border-radius: 9999px;
}

.div-input-main {
    align-self: stretch;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 12px;
    display: flex;
}

.div-input {
    align-self: stretch;
	padding: 8px 16px;
    border-radius: 20px;
    border: 2px white solid;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    display: inline-flex;
    flex-grow: 1;
}

.div-menu-itens {
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-radius: 10px;
    background-color: #242723;
    padding: 12px;
}

.div-menu-itens > h3 {
    color: white;
}

.div-chat-form {
    overflow: scroll;
    height: 75vh;
}

.div-chat-main-loading {
    align-self: stretch;
    display: flex;
    justify-content: flex-end;
}

.span-nome {
    color: white;
    font-size: 16px;
    font-weight: 700;
    word-wrap: break-word;
}

.span-tempo {
    color: #c9c9c9;
    font-size: 12px;
    font-weight: 700;
    word-wrap: break-word;
}

.p-mensagem {
    color: white;
    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: white; /* default inativo */
    opacity: 0.4;
    animation: bounce 1.2s infinite ease-in-out;
}

.div-chat-form  {
  overflow: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer e Edge antigo */
}

.div-chat-form ::-webkit-scrollbar {
  display: none; /* Chrome, Safari e Opera */
}

/* Cor branca e mais visível para a bolinha ativa */
.div-balao-ativo {
    background-color: white;
    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;
}
