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

body{

    font-family:'Poppins',sans-serif;

    background:#020617;

    color:white;

    overflow-x:hidden;

    overflow-y:auto;
}

.background{
    position:fixed;
    width:100%;
    height:100%;
    background:
    radial-gradient(circle at top left,#2563eb33,transparent 30%),
    radial-gradient(circle at bottom right,#0ea5e933,transparent 30%);
    z-index:-1;
}

.tela{
    width:100%;
    min-height:100dvh;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:20px;
}

.welcome-box,
.formulario,
.loading-box,
.chat-container{

    width:100%;

    max-width:540px;

    background:rgba(15,23,42,0.82);

    backdrop-filter:blur(18px);

    border:1px solid rgba(255,255,255,0.04);

    border-radius:22px;

    padding:22px;

    box-shadow:
    0 10px 35px rgba(0,0,0,0.35);

}


.logo{
    font-size:50px;
    font-weight:700;
    color:#3b82f6;
    margin-bottom:20px;
}

h1{

    font-size:clamp(32px,5vw,58px);

    margin-bottom:20px;
}

p{
    color:#94a3b8;
    line-height:28px;
}

.lista{
    margin-top:30px;
    margin-bottom:35px;
}

.lista div{
    background:#0b1120;
    border:1px solid #1e293b;
    padding:13px;
    border-radius:12px;
    margin-bottom:12px;
}

h2{
    margin-bottom:10px;
}

.subtitulo{
    margin-bottom:25px;
}

input,
textarea{
    width:100%;
    background:#0b1120;
    border:1px solid #1e293b;
    color:white;
    padding:13px;
    border-radius:12px;
    margin-bottom:18px;
    font-size:15px;
    outline:none;
    transition:0.3s;
}

input:focus,
textarea:focus{
    border-color:#2563eb;
    box-shadow:0 0 15px #2563eb33;
}

textarea{
    height:140px;
    resize:none;
}

button{
    width:100%;
    height:42px;
    border:none;
    border-radius:10px;
    background:linear-gradient(90deg,#2563eb,#0ea5e9);
    color:white;
    font-size:14px;
    font-weight:600;
    cursor:pointer;
    transition:0.25s;
}



button:hover{
    transform:translateY(-2px);
    box-shadow:0 0 25px #2563eb55;
}

.loader{
    width:70px;
    height:70px;
    border:6px solid #1e293b;
    border-top:6px solid #3b82f6;
    border-radius:50%;
    margin:0 auto 30px;
    animation:girar 1s linear infinite;
}

.loading-box{
    text-align:center;
}

.topo-chat{
    margin-bottom:20px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:15px;

    flex-wrap:wrap;
}

.online{
    color:#00ff88;
    font-size:14px;
}

.dadosUsuario{
    background:#0b1120;
    border:1px solid #1e293b;
    padding:15px;
    border-radius:12px;
    margin-bottom:20px;
    color:#cbd5e1;
    font-size:14px;
}

.mensagens{

    height:42vh;

    min-height:240px;

    max-height:480px;

    overflow-y:auto;

    margin-bottom:15px;

    padding-right:4px;
}

.msg{
    background:#111827;
    border:1px solid #1e293b;
    padding:15px;
    border-radius:12px;
    margin-bottom:12px;
}

.area-envio{
    display:flex;
    gap:10px;
}

.area-envio input{
    margin-bottom:0;
}

.area-envio button{
    width:60px;
}

@keyframes girar{

    from{
        transform:rotate(0deg);
    }

    to{
        transform:rotate(360deg);
    }
}

@media(max-width:700px){

    body{
        overflow:auto;
    }

    h1{
        font-size:34px;
    }

    .welcome-box,
    .formulario,
    .loading-box,
    .chat-container{
        padding:18px;
    }
}

.msg-user-area{
    width:100%;
    display:flex;
    justify-content:flex-end;
    margin-bottom:15px;
}

.msg-user{
    max-width:75%;
    background:linear-gradient(90deg,#2563eb,#0ea5e9);
    padding:10px 12px;
    border-radius:18px 18px 5px 18px;
    animation:fade .3s ease;
}

.msg-support-area{
    width:100%;
    display:flex;
    align-items:flex-end;
    gap:10px;
    margin-bottom:15px;
}

.avatar{
    width:42px;
    height:42px;
    background:#2563eb;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:18px;
    flex-shrink:0;
}

.msg-support{
    max-width:75%;
    background:#111827;
    border:1px solid #1e293b;
    padding:10px 12px;
    border-radius:18px 18px 18px 5px;
    animation:fade .3s ease;
}

.msg-nome{
    font-size:13px;
    color:#3b82f6;
    margin-bottom:6px;
    font-weight:600;
}

.msg-texto{
    line-height:24px;
}

.msg-hora{
    margin-top:8px;
    font-size:11px;
    color:#94a3b8;
    text-align:right;
}

@media(max-width:900px){

    .welcome-box,
    .formulario,
    .loading-box,
    .chat-container{

        width:100%;

        max-width:100%;

        padding:18px;

        border-radius:18px;
    }

    .mensagens{
        height:50vh;
    }

    input,
    textarea{
        font-size:16px;
    }

    button{
        height:48px;
    }
}



@media(max-width:600px){

    .tela{
        padding:15px;
    }

    .welcome-box,
    .formulario,
    .loading-box,
    .chat-container{

        padding:16px;
    }

    h1{
        line-height:42px;
    }

    .lista div{
        padding:10px 12px;
        font-size:14px;
    }

    .msg-user,
    .msg-support{
        max-width:90%;
    }

    .mensagens{
        height:48vh;
    }

    textarea{
        height:120px;
    }
}

.erro{

    background:#7f1d1d;

    border:1px solid #dc2626;

    color:white;

    padding:15px;

    border-radius:12px;

    margin-bottom:20px;

    text-align:center;
}
