*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    /* font-family:'Segoe UI',sans-serif; */
}
.bot-wrapper{

    display:flex;

    align-items:flex-start;

    gap:10px;

    margin-bottom:15px;
}

.bot-avatar{

    width:36px;

    height:36px;

    border-radius:50%;

    background:#fff;

    border:1px solid #ddd;

    padding:4px;

    flex-shrink:0;
}

.bot-message{

    background:#fff;

    color:#333;

    padding:14px;

    border-radius:16px 16px 16px 4px;

    max-width:85%;

    line-height:1.6;

    box-shadow:
    0 3px 10px rgba(0,0,0,.06);

    word-wrap:break-word;
}
.bot-wrapper{

    display:flex;

    align-items:flex-start;

    gap:10px;

    margin-bottom:15px;
}

.bot-avatar{

    width:38px;

    height:38px;

    border-radius:50%;

    background:#fff;

    border:1px solid #ddd;

    padding:3px;

    flex-shrink:0;
}

.bot-message{

    background:#fff;

    color:#333;

    padding:14px;

    border-radius:16px 16px 16px 4px;

    max-width:85%;

    line-height:1.6;

    box-shadow:
    0 3px 10px rgba(0,0,0,.08);

    word-wrap:break-word;
}
/* ==========================
   CHAT WINDOW
========================== */

#pilog-chat{

    position:fixed;

    right:25px;
    bottom:95px;

    width:380px;

    height:70vh;

    max-height:650px;

    min-height:500px;

    background:#fff;

    border-radius:20px;

    overflow:hidden;

    display:none;

    flex-direction:column;

    border:1px solid #e5e7eb;

    box-shadow:
    0 15px 40px rgba(0,0,0,.18);

    z-index:999999;
}

#pilog-chat.active{
    display:flex;
}

/* ==========================
   HEADER
========================== */

.chat-header{

    background:
    linear-gradient(
        135deg,
        #003366,
        #0056b3
    );

    padding:16px;

    color:#fff;
}

.header-content{

    display:flex;

    align-items:center;
}

.header-logo{

    width:42px;

    background:#fff;

    border-radius:8px;

    padding:4px;

    margin-right:10px;
}

.agent-name{

    font-size:18px;

    font-weight:600;
}

.agent-status{

    font-size:12px;

    color:#d9ffd9;
}

/* ==========================
   CHAT BODY
========================== */

#chatMessages{

    flex:1;

    overflow-y:auto;

    padding:18px;

    background:#f5f7fa;
}

/* Scrollbar */

#chatMessages::-webkit-scrollbar{
    width:6px;
}

#chatMessages::-webkit-scrollbar-thumb{
    background:#c7c7c7;
    border-radius:10px;
}

/* ==========================
   WELCOME CARD
========================== */

.welcome-message{

    background:#fff;

    border-radius:14px;

    padding:18px;

    line-height:1.7;

    box-shadow:
    0 4px 12px rgba(0,0,0,.08);
}

.welcome-message h3{

    color:#003366;

    margin-bottom:12px;

    font-size:24px;
}

.welcome-message p{

    color:#333;

    margin-bottom:10px;
}

/* ==========================
   USER MESSAGE
========================== */

.user-message{

    background:#0056b3;

    color:#fff;

    padding:12px 16px;

    border-radius:16px 16px 4px 16px;

    margin-bottom:15px;

    margin-left:auto;

    max-width:80%;

    word-wrap:break-word;
}

/* ==========================
   BOT MESSAGE
========================== */

.bot-message{

    background:#fff;

    color:#333;

    padding:14px;

    border-radius:16px 16px 16px 4px;

    margin-bottom:15px;

    max-width:90%;

    line-height:1.6;

    box-shadow:
    0 3px 10px rgba(0,0,0,.06);

    word-wrap:break-word;
}

/* ==========================
   FOOTER
========================== */

.chat-footer{

    background:#fff;

    border-top:1px solid #eee;

    padding:12px;

    display:flex;

    gap:10px;
}

.chat-footer input{

    flex:1;

    height:44px;

    border:1px solid #ddd;

    border-radius:10px;

    padding:0 14px;

    outline:none;

    font-size:14px;
}

.chat-footer input:focus{

    border-color:#0056b3;
}

.chat-footer button{

    width:48px;

    height:44px;

    border:none;

    border-radius:10px;

    background:#0056b3;

    color:#fff;

    font-size:18px;

    cursor:pointer;

    transition:.3s;
}

.chat-footer button:hover{

    background:#004494;
}

/* ==========================
   LAUNCHER
========================== */

#pilog-launcher{

    position:fixed;

    right:25px;

    bottom:20px;

    width:220px;

    background:#fff;

    border-radius:16px;

    padding:12px;

    display:flex;

    align-items:center;

    gap:10px;

    cursor:pointer;

    box-shadow:
    0 10px 25px rgba(0,0,0,.15);

    transition:.3s;

    z-index:999999;
}

#pilog-launcher:hover{

    transform:translateY(-2px);
}

.launcher-logo{

    width:48px;

    height:auto;
}

.launcher-title{

    font-size:20px;

    font-weight:600;

    color:#003366;

    line-height:1.2;
}

.launcher-subtitle{

    font-size:12px;

    color:#777;
}

/* ==========================
   MOBILE
========================== */

@media(max-width:768px){

    #pilog-chat{

        width:95%;

        right:2.5%;

        bottom:85px;

        height:80vh;

        max-height:none;
    }

    #pilog-launcher{

        width:200px;

        right:15px;

        bottom:15px;
    }

    .launcher-title{

        font-size:16px;
    }

    .agent-name{

        font-size:16px;
    }
}