/* ================================/* ===========================================
   CRIARSITEAPP IA - CSS COMPLETO 
   =========================================== */

/* Caixa principal */
#ia-box {
    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
    background: #ffffff;
    border-radius: 26px;
    padding: 20px;
    box-shadow: 0 12px 45px rgba(0,0,0,0.12);
    font-family: "Inter", Arial, sans-serif;
}

/* Cabeçalho */
.ia-header {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    padding: 14px;
    background: linear-gradient(90deg, #4a4aff, #6a6aff);
    color: white;
    border-radius: 20px;
    margin-bottom: 18px;
}

/* Área do chat */
#ia-chat {
    height: 260px;
    overflow-y: auto;
    background: #f7f7fc;
    border-radius: 20px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
    border: 1px solid #ececff;
}

/* Mensagem do usuário */
.msg-user {
    align-self: flex-end;
    background: #4a4aff;
    color: white;
    padding: 12px 18px;
    border-radius: 20px 20px 6px 20px;
    max-width: 75%;
    font-size: 15px;
    line-height: 1.4;
    box-shadow: 0 4px 12px rgba(0,0,120,0.25);
}

/* Mensagem da IA */
.msg-bot {
    align-self: flex-start;
    background: #ececff;
    color: #333;
    padding: 12px 18px;
    border-radius: 20px 20px 20px 6px;
    max-width: 75%;
    font-size: 15px;
    line-height: 1.4;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* Wrap do input */
.ia-input-wrap {
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 16px;
    gap: 12px;
}

/* Input ESTILO fino + longo + pílula */
#ia-input {
    flex: 1;
    height: 38px !important;          /* Fino */
    border-radius: 999px;             /* Super arredondado */
    border: 1px solid #ddd;
    padding: 0 20px;
    background: white;
    font-size: 15px;
    outline: none;
    transition: 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

#ia-input:focus {
    border-color: #4a4aff;
    box-shadow: 0 0 0 2px rgba(74, 74, 255, 0.25);
}

/* Botão enviar  */
#ia-send {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: #4a4aff;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    box-shadow: 0 5px 18px rgba(0,0,255,0.25);
}

#ia-send:hover {
    background: #3737d6;
    transform: scale(1.05);
}

/* Scrollbar clean */
#ia-chat::-webkit-scrollbar {
    width: 6px;
}
#ia-chat::-webkit-scrollbar-thumb {
    background: #c8c8ff;
    border-radius: 10px;
}

/* Mobile responsivo */
@media (max-width: 480px) {
    #ia-box {
        padding: 14px;
        border-radius: 20px;
    }

    #ia-chat {
        height: 200px;
        padding: 14px;
    }

    #ia-input {
        height: 36px !important;
    }

    #ia-send {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}
