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

body {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: space-between;
    width: 100vw;
    height: 100vh;
    color: #333;
    font-family: 'Inter', sans-serif;
}

.container {
    padding: 0 2rem;
}

.container.cabecalho{
    background-color: #02406A;
}

.cabecalho {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 14px 15px;
    border-bottom: 1px solid #c6c6c6;
}

.cabecalho__acoes {
    display: flex;
    gap: 1rem;
}

.cabecalho__logo{
    border-radius: 50%;
    display: flex;
    justify-content: center;
    width: 55px;
}

.cabecalho__logo img {
    height: 60px;
    margin: auto;
}

.cabecalho__titulo{
    margin: auto 0;
    display: flex;
    flex-direction: column;
}

.cabecalho__titulo span{
    font-size: 1rem;
}

.cabecalho__titulo b{
    font-size: 1.5rem;
}

.cabecalho__opcoes{
    margin-left: auto;
    display: flex;
}

.logo-tipografia {
    font-family: 'Righteous', sans-serif;
    font-size: 2.4rem !important; 
    color: #f0443c;
    vertical-align: middle;
    display: inline-block;
  }

  .destaque-mundau {
    font-family: 'Righteous', sans-serif;
    color: #f0443c;
    font-size: inherit;
    display: inline;
    white-space: nowrap;
  }

.main {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex-grow: 1;
    overflow: auto;
    padding: 0 15px;
}

.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 {
    max-width: calc(100% - 3.5rem);
    width: fit-content;
    padding: 1.5rem;    
    border-radius: 10px;
    font-size: 1.1rem;
    margin: 1.5rem 0;
    position: relative;
    display: block; 
  }

.chat__bolha--bot {
    background-color: #0063b8;
    color: #fff;
    margin-left: 4.0rem;
}

.chat__bolha--bot::after {
    content: "";
    display: block;

    height: 5.5rem;
    width: 5.5rem;

    position: absolute;
    top: 0;
    left: -6.0rem;
    border-radius: 10%;

    background-image: url(../img/mundau_perfil.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 81px;
    /*border: 1px solid #c3c3c3; */
}

.chat__bolha--usuario {
    border: 1px solid #c6c6c6;
    align-self: flex-end;
    margin-right: 30px;
}

/* Ícone do usuário */
/* .chat__bolha--usuario::before {
    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;
} */

.botao-copiar {
    align-self: flex-start; /* alinha à esquerda */
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.botao-copiar:hover {
    opacity: 1;
}

.icone-copiar {
    width: 1rem;
    height: 1rem;
    display: block;
}

.acoes-bolha {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.acoes-bolha button {
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    padding: 0;
    display: flex;
    align-items: center;
}

.acoes-bolha button:hover {
    opacity: 1;
}

.icone-feedback {
    width: 1rem;
    height: 1rem;
    display: block;
}

button.ativo {
    opacity: 1;
    filter: drop-shadow(0 0 2px black);
    border-radius: 100%;
    border-color: black;
    border: none; 
}

.entrada {
    display: flex;
    flex-shrink: 0;
    gap: 1.5rem;
    justify-content: stretch;
    align-items: center;
    padding: 0 15px;
}

.entrada__container {
    display: flex;
    width: 100%;
    padding: 20px 15px;
    border: 1px solid #c6c6c6;
    border-radius: 28px;
}

.entrada__input {
    background-color: transparent;
    font-size: 1.1rem;
    font-family: 'Inter', sans-serif;
    color: #333;
    width: inherit;
    resize: none;
    field-sizing: content;
    max-height: 150px;
    scrollbar-width: none;
}

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

.entrada__input:focus-visible{
    border: none;
    outline: none;
}

.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);
}

#botao-enviar{
    background-color: #0067ae;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    transition: 0.3s ease;
}


#botao-enviar:hover{
    background-color: #0067ae;
}

#botao-enviar img{
    /* width: 29px; */
    height: 24px;
    margin: auto 3px;
}

.tooltip-wrapper {
    position: relative;
    display: inline-block;
  }

  .tooltip-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url('/static/img/alert-icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
}
  
  .tooltip-wrapper .tooltip-custom {
    visibility: hidden;
    width: 280px;
    background-color: #333;
    color: #fff;
    text-align: left;
    border-radius: 4px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    top: 130%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    line-height: 1.4;
    box-shadow: 0px 2px 10px rgba(0,0,0,0.2);
  }
  
  .tooltip-wrapper .tooltip-custom::after {
    content: "";
    position: absolute;
    bottom: 100%;    
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent #333 transparent; 
 }
  
  .tooltip-wrapper:hover .tooltip-custom {
    visibility: visible;
    opacity: 1;
  }

.toggle-button {
    margin: auto;
    padding: 10px 15px;
    border: 1px solid #316EB9;
    background-color: #f0f8ff;
    color: #316EB9;
    font-size: 1.1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: 0.3s ease;
    display: flex;
    gap: 0.5rem
}

.toggle-button svg{
    height: 23px;
}
.toggle-button.modo1 {
    background-color: #007BFF;
    color: #ffffff;
}
.toggle-button:hover {
    background-color: #316EB9;
    color: #fff;
}

@media screen and (min-width: 1400px){
    .chat__bolha {
        max-width: 60%;
    }
}

@media screen and (max-width: 576px) {
    .cabecalho__titulo b{font-size: 1.2rem;}

    .cabecalho__opcoes span{
        display: none;
    }

    .entrada__input{
        font-size: 1.2rem;
    }
}

.credits{
    margin: 10px 0;
    text-align: center;
    font-size: 0.8rem;
    color: #515151;
}

.dots::after {
    content: "";
    display: inline-block;
    width: 1em;
    text-align: left;
    animation: dots 3s steps(4, end) infinite;
}

@keyframes dots {
    0%   { content: ""; }
    25%  { content: "."; }
    50%  { content: ".."; }
    75%  { content: "..."; }
    100% { content: ""; }
}

.botao-parar {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin: 2px;
    border-radius: 4px;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.botao-parar:hover {
    background-color: rgba(255, 68, 68, 0.1);
}

.botao-parar .icone-feedback {
    width: 16px;
    height: 16px;
    filter: grayscale(1);
    transition: filter 0.2s;
}

.botao-parar:hover .icone-feedback {
    filter: none;
}

/* Se você não tiver um ícone de stop, pode usar um texto simples */
.botao-parar.texto-simples {
    font-size: 12px;
    color: #ff4444;
    padding: 2px 6px;
}

.botao-parar.texto-simples:hover {
    background-color: #ff4444;
    color: white;
}

/* Estilo para o botão quando está no modo parar */
#botao-enviar.botao-parar-ativo {
    background-color: #ff4444;
    transform: scale(1.05);
}

#botao-enviar.botao-parar-ativo:hover {
    background-color: #cc0000;
}

/* Estilo para o ícone de parar */
.icone--parar {
    filter: brightness(0) invert(1); /* Torna o ícone branco */
}

/* Estilo para input desabilitado */
.entrada__input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}