@import url(reset.css);
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap');

body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh;
    background: linear-gradient(to bottom, #01080E, #144480);
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
}

.container {
    padding: 0 2rem;
}

@media screen and (min-width: 1400px) {
    .container {
        padding: 0 calc((100vw - 1200px) / 2);
    }
}

.cabecalho {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5rem;
    border-bottom: 1px solid #1C5296;
}

.cabecalho__acoes {
    display: flex;
    align-items: center;
    gap: 2rem;
}

@media screen and (min-width: 1400px) {
    .cabecalho__acoes {
        gap: 2.8125rem;
    }
}

.main {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex-grow: 1;
}

.chat {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 10rem - 5rem);
    scrollbar-width: none;
    overflow-y: scroll;
}

.chat::-webkit-scrollbar {
    display: none;
}

.chat__bolha {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    flex-wrap: wrap;
    max-width: calc(100% - 3.5rem);
    width: fit-content;
    padding: 1.5rem;
    border-radius: 10px;
    font-size: 1.375rem;
    margin: 1.5rem 0;
    position: relative;
    word-break: break-word;
}

.chat__bolha--bot {
    background-color: #5385C3;
    align-self: flex-start;
}

.chat__bolha--bot::before {
    content: "";
    display: block;
    height: 2.5rem;
    width: 2.5rem;
    position: absolute;
    top: 0;
    left: calc(-2.5rem - 1rem);
    background-image: url(../img/icone-chatbot.svg);
    background-repeat: no-repeat;
    background-position: center;
}

.chat__bolha--usuario {
    border: 1px solid #5385C3;
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat__bolha--usuario::after {
    content: "";
    display: block;
    height: 2.5rem;
    width: 2.5rem;
    position: absolute;
    top: 0;
    right: calc(-2.5rem - 1rem);
    background-image: url(../img/icone-perfil.svg);
    background-repeat: no-repeat;
    background-position: center;
}

.mensagem-texto {
    flex: 1;
    min-width: 60%;
}

.mensagem-hora {
    font-size: 0.75rem;
    color: #E0E0E0;
    margin-top: 0.5rem;
    display: block;
    width: 100%;
    text-align: right;
}

.digitando::after {
    content: ' ';
    animation: blink 1s infinite steps(1);
}

@keyframes blink {
    0%, 100% { content: ''; }
    50% { content: '.'; }
}

.entrada {
    height: 10rem;
    position: relative;
    display: flex;
    gap: 1.5rem;
    justify-content: stretch;
    align-items: center;
    border-top: 1px solid #1C5296;
}

.entrada__container {
    display: flex;
    gap: 0.8rem;
    justify-content: space-between;
    width: 100%;
    padding: 0 0.5rem;
    background-color: #1C5296;
    border: 1px solid #0C305C;
    border-radius: 4rem;
}

.entrada__input {
    height: 4rem;
    width: 100%;
    background-color: transparent;
    font-size: 1.375rem;
    color: #CED3E0;
    padding-left: 20px;
}

.entrada__input::placeholder {
    color: #CED3E0;
}

.entrada__enviar-audio {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 4rem;
    width: 4rem;
    background-color: #1C5296;
    border: 1px solid #0C305C;
    border-radius: 50%;
}

.entrada__feedback {
    position: absolute;
    bottom: 23px;
    right: calc(2rem + 5.5rem);
}

@media screen and (min-width: 1400px) {
    .entrada__feedback {
        right: calc((100vw - 1200px) / 2 + 5.5rem);
    }
}

.icone {
    display: inline-block;
    height: 4rem;
    width: 4rem;
    background-position: center;
    background-repeat: no-repeat;
}

.icone--enviar-audio {
    background-image: url(../img/icone-audio.svg);
}

.icone--mais-opcoes {
    background-image: url(../img/icone-mais.svg);
}

.icone--enviar-mensagem {
    background-image: url(../img/icone-enviar.svg);
}