*{
    box-sizing:border-box;
    margin:0;
    padding:0;
}

body{
    font-family:"Segoe UI",sans-serif;
    background:#f4f6fa;

    display:flex;
    justify-content:center;
    align-items:center;

    min-height:100vh;
}


/* janela */

.container{
    width:100%;
    max-width:950px;
    height:88vh;

    background:white;

    border-radius:20px;

    overflow:hidden;

    box-shadow:
    0 10px 35px rgba(0,0,0,.08);

    display:flex;
    flex-direction:column;
}


/* cabeçalho */

.header{
    padding:28px 34px;

    border-bottom:1px solid #e8edf4;
}

.header h1{
    color:#233c72;
    font-size:28px;
    font-weight:700;
}

.header p{
    margin-top:8px;
    color:#6d7891;
}


/* mensagens */

.messages{
    flex:1;
    overflow-y:auto;

    padding:30px;

    display:flex;
    flex-direction:column;

    gap:18px;
}

.message{
    max-width:75%;
    line-height:1.7;

    padding:18px 22px;

    font-size:15px;
}


/* bot */

.message.bot{
    background:white;

    border-left:4px solid #d8973c;

    color:#2d3955;

    box-shadow:
    0 3px 12px rgba(0,0,0,.06);

    border-radius:12px;
}


/* utilizador */

.message.user{
    align-self:flex-end;

    background:#edf3ff;

    color:#233c72;

    border-radius:12px;
}


/* sugestões */

.sugestoes{
    padding:0 30px 20px;

    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.sugestao{

    background:white;

    border:1px solid #dfe5ef;

    color:#233c72;

    border-radius:30px;

    padding:10px 16px;

    cursor:pointer;

    transition:.2s;
}

.sugestao:hover{
    border-color:#d8973c;
    color:#d8973c;
}


/* input */

.input-area{

    padding:24px 30px;

    border-top:1px solid #e8edf4;

    display:flex;

    gap:12px;

    background:white;
}

.input-area input{

    flex:1;

    border:1px solid #dfe5ef;

    border-radius:50px;

    padding:16px 22px;

    font-size:15px;

    outline:none;
}

.input-area input:focus{
    border-color:#d8973c;
}


.input-area button{

    background:#d8973c;

    color:white;

    border:none;

    border-radius:50px;

    padding:0 28px;

    font-weight:600;

    cursor:pointer;
}

.input-area button:hover{
    background:#e2a54f;
}

/* ---------- LINK ---------- */

.link{
    display:inline-flex;
    align-items:center;

    margin-top:14px;

    background:#f8fafc;

    border:1px solid #e2e8f0;

    color:#233c72;

    text-decoration:none;

    padding:10px 16px;

    border-radius:12px;

    font-size:14px;

    transition:.2s;
}

.link:hover{
    color:#d8973c;
    border-color:#d8973c;
}


/* ---------- FEEDBACK ---------- */

.feedback-btn{

    width:40px;
    height:40px;

    border:none;

    background:#f8fafc;

    border:1px solid #e2e8f0;

    border-radius:10px;

    cursor:pointer;

    font-size:18px;

    transition:.2s;
}

.feedback-btn:hover{

    border-color:#d8973c;

    transform:translateY(-1px);
}


/* ---------- LOADING ---------- */

.loading{

    display:flex;

    gap:7px;

    align-items:center;

    width:fit-content;

    background:white;

    padding:18px 22px;

    border-radius:12px;

    border-left:4px solid #d8973c;

    box-shadow:
    0 3px 12px rgba(0,0,0,.06);
}


.loading span{

    width:8px;
    height:8px;

    background:#94a3b8;

    border-radius:50%;

    animation:bounce 1s infinite;
}


.loading span:nth-child(2){
    animation-delay:.15s;
}

.loading span:nth-child(3){
    animation-delay:.3s;
}


@keyframes bounce{

    0%,100%{
        transform:translateY(0);
    }

    50%{
        transform:translateY(-5px);
    }

}