*{
    margin: 0;
    box-sizing: border-box;
    padding: 0;

}

body{
    position: relative;
    width: 100vw;
    height: 100vh;
    background-color: rgb(145, 213, 213);
    overflow: hidden;
}

main{
    position: relative;
    display: flex;
    align-items: center;
    padding: 0px 32px;
    gap: 32px;
    width: 100%;
    height: 100%;

}

#content{
    position: relative;
    display: flex;
    flex-direction: column;
    height: 90%;
    flex-grow: 1;

    min-width: 0;
    transition: .25s ease-in;
}

.caixa-chat{
    margin: auto;
    max-width: 70%;
    height: 100%;
    padding: 40px 22px 25px 22px;
    display: flex;
    gap: 20px;
    margin-bottom: 82px;
    overflow-y: auto;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: #ccccf5 transparent;

}
.caixa-formulario{
    bottom: 0;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 15px 22px 20px;
}
.formulario-chat{

    display: flex;
    width: clamp(550px,50%,700px);

    align-items: flex-end;
    background-color: #F2F2FF;
    border-radius: 35px 3px 35px 3px;
    outline: 1px solid #CCCCE5;
    

}

.mensagem-input{
    border: none;
    outline: none;
    resize: none;
    height: auto;
    width: 100%;
    overflow: hidden;
    font-size: 0.95rem;

    padding: 20px 0px 6px 20px;
    border-radius: inherit; 

}

.botoes-do-chat{
    display: flex;
    height: 47px;
    gap: 12px;
    align-items: center;
    padding-right: 12px;

}


.botoes-do-chat button{
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
    color: white;
    background: blueviolet;
    border-radius: 50%;
    transition: 0.2s ease;
    margin-bottom: 20px;
    width: 45px;         
    height: 45px;        
    display: flex;       
    align-items: center;  
    justify-content: center; 
    padding: 0;          
}


.caixa-chat .mensagem{
    display: flex;
    align-items: flex-start;
    gap:11px;
    
}

.caixa-chat .mensagem .mensagem-texto{
    padding: 12px 16px;
    max-width: 75%;
    font-size: 1.2em;
    background: #F2F2FF;

}

.caixa-chat .mensagem-bot .mensagem-texto{
    background: #F2F2FF;
    border-radius: 13px 13px 13px 3px;
}


.caixa-chat .mensagem-usuario .mensagem-texto{
    color: #fff;
    background: #5350C4;
    border-radius: 13px 13px 3px 13px;
}

.caixa-chat .mensagem-usuario{
    flex-direction: column;
    align-items: flex-end;
}

.avatar-bot{
    background-image: url("../assets/img/fotoAssistenteMaria.svg");
    background-size: cover;
    height: 50px;
    width: 50px;
    padding: 6px;
    fill: #fff;
    align-self: flex-end;
    margin-bottom: 2px;
    background-color: #5350C4;
    border-radius: 50%;
    flex-shrink: 0;
}


.caixa-chat .mensagem-bot .indicador-pensamento {
    display: flex;
    gap: 4px;
    flex-direction: row;
    padding-block: 0px;
    
}

.caixa-chat .mensagem-bot .indicador-pensamento .dot{
    height: 7px;
    width: 7px;
    opacity: 0.7;
    border-radius: 50%;
    background: #6f6bc2;
    animation: dotPulse 1.8s ease-in-out infinite
}

.caixa-chat .mensagem-bot .indicador-pensamento .dot:nth-child(1){
    animation-delay: 0.2s;
}

.caixa-chat .mensagem-bot .indicador-pensamento .dot:nth-child(2){
    animation-delay: 0.3s;
}

.caixa-chat .mensagem-bot .indicador-pensamento .dot:nth-child(3){
    animation-delay: 0.4s;
}


.caixa-chat .mensagem-bot.indicador-pensamento .mensagem-texto {
    padding: 15px 16px;
}

@keyframes dotPulse{
    0%, 44%{
        transform: translateY(0)
    }
    28%{
        opacity: 0.4;
        transform: translateY(-4px)
    }
    44%{
        opacity: 0.2;

    }

}

.caixa-chat .mensagem-bot .mensagem-texto,
.caixa-chat .mensagem-bot .mensagem-texto * {
    font-family: "Inter", sans-serif;
}

.mensagem-texto p{
    margin-bottom: 1em;
}

.mensagem-texto h1,
.mensagem-texto h2,
.mensagem-texto h3,
.mensagem-texto h4 {
  margin-top: 1.2em;
  margin-bottom: 0.8em;
  font-weight: 600;
  line-height: 1.2;
}

.mensagem-texto ul,
.mensagem-texto ol {
  padding-left: 25px;
  margin-bottom: 1em;
}

.mensagem-texto li {
  margin-bottom: 0.5em;
}

.mensagem-texto > *:last-child {
  margin-bottom: 0;
}

.menu-advogados {
    width: 100%;
    margin-top: 10px;
}

.advogados-lista {
    display: flex;
    overflow-x: auto; 
    gap: 20px;
    padding: 20px;
    scrollbar-width: thin;
    scrollbar-color: #CCCCF5 #f1f1f1;
}


.advogados-lista::-webkit-scrollbar {
  height: 8px;
}

.advogados-lista::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.advogados-lista::-webkit-scrollbar-thumb {
  background: #CCCCF5;
  border-radius: 10px;
}

.advogados-lista::-webkit-scrollbar-thumb:hover {
  background: #5350C4;
}

.advogado-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #E0E0E0;
    padding: 16px;
    text-align: center;
    flex-shrink: 0; 
    width: 250px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    scrollbar-width: none;

}

.advogado-foto {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
    border: 2px solid #5350C4;
}

.advogado-nome {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 4px;
    font-family: "Inter", sans-serif;
}

.advogado-avaliacoes {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 8px;
    font-family: "Inter", sans-serif;
}

.advogado-especialidades {
    font-size: 0.85rem;
    color: #333;
    margin-bottom: 16px;
    flex-grow: 1;
    font-family: "Inter", sans-serif;
}

.advogado-ver-perfil-btn {
    background-color: #2ECC71; 
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 24px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 100%;
    font-family: "Inter", sans-serif;
}

.advogado-ver-perfil-btn:hover {
    background-color: #27AE60; 
}

@media (max-width: 900px) {
    
    .caixa-chat{
        scrollbar-width: none;
        padding: 0px 0px 0px 0px;
        max-width: 85%;
    }

    .formulario-chat{
        width: clamp(550px,50%,700px);
        
    }
    .botoes-do-chat {
        padding-right: 0px;
    }
    .avatar-bot{
        display:none;
    }
    
    .caixa-chat .mensagem .mensagem-texto{
          max-width: 100%;
    }
}

@media (max-width: 400px) {
    
    .caixa-chat{
        scrollbar-width: none;
        padding: 0px 0px 0px 0px;
        max-width: 90%;

    }
    .formulario-chat{
        width: 100%;
        
    }
    .caixa-formulario{
        padding: 15px 0px 00px 0px ;
    }
    .avatar-bot{
        display:none;
    }
    
    .caixa-chat .mensagem .mensagem-texto{
          max-width: 100%;
    }
    .botoes-do-chat {
        padding-right: 0px;
    }
    .botoes-do-chat button{
        scale: .7;
    }
}

