*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, sans-serif;
}

/* Floating Chat Icon */

#chat-icon{

    position:fixed;
    bottom:25px;
    right:25px;

    width:65px;
    height:65px;

    border-radius:50%;

    background:linear-gradient(135deg,#8b0000,#c62828);

    color:white;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:30px;

    cursor:pointer;

    box-shadow:0 8px 25px rgba(0,0,0,0.3);

    z-index:99999;

    transition:0.3s;
}

#chat-icon:hover{

    transform:scale(1.08);
}

/* Chatbot Window */

#chatbot-container{

    position:fixed;

    bottom:100px;
    right:25px;

    width:350px;
    height:500px;

    background:white;

    border-radius:20px;

    overflow:hidden;

    display:none;
    flex-direction:column;

    box-shadow:
    0 15px 40px rgba(0,0,0,0.25);

    z-index:99999;
}

/* Header */

#chat-header{

    background:
    linear-gradient(135deg,#7b1e1e,#b71c1c);

    color:white;

    padding:18px;

    display:flex;
    align-items:center;
    justify-content:space-between;
}

#chat-header-left{

    display:flex;
    align-items:center;
}

#bot-avatar{

    width:45px;
    height:45px;

    border-radius:50%;

    background:white;

    color:#7b1e1e;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:22px;

    margin-right:12px;
}

#chat-title{

    font-size:18px;
    font-weight:bold;
}

#chat-subtitle{

    font-size:12px;
    opacity:0.9;
}

#close-btn{

    font-size:20px;
    cursor:pointer;
}

/* Chat Body */

#chat-body{

    flex:1;

    padding:18px;

    overflow-y:auto;

    background:#f5f7fb;
}

/* Bot Message */

.bot{

    background:white;

    padding:14px;

    border-radius:
    18px 18px 18px 5px;

    margin-bottom:15px;

    max-width:85%;

    box-shadow:
    0 3px 10px rgba(0,0,0,0.08);

    line-height:1.5;
}

/* User Message */

.user{

    background:
    linear-gradient(135deg,#8b0000,#c62828);

    color:white;

    padding:14px;

    border-radius:
    18px 18px 5px 18px;

    margin-bottom:15px;

    margin-left:auto;

    max-width:85%;

    text-align:left;

    box-shadow:
    0 3px 10px rgba(0,0,0,0.15);

    line-height:1.5;
}

/* Footer */

#chat-footer{

    padding:15px;

    background:white;

    border-top:1px solid #eee;

    display:flex;
    align-items:center;
}

/* Input */

#message{

    flex:1;

    padding:14px 16px;

    border:1px solid #ddd;

    border-radius:30px;

    outline:none;

    font-size:14px;
}

#message:focus{

    border-color:#8b0000;
}

/* Button */

#send-btn{

    width:50px;
    height:50px;

    margin-left:10px;

    border:none;

    border-radius:50%;

    background:
    linear-gradient(135deg,#8b0000,#c62828);

    color:white;

    font-size:18px;

    cursor:pointer;

    transition:0.3s;
}

#send-btn:hover{

    transform:scale(1.05);
}

/* Scrollbar */

#chat-body::-webkit-scrollbar{

    width:6px;
}

#chat-body::-webkit-scrollbar-thumb{

    background:#ccc;
    border-radius:10px;
}

/* Mobile */

@media(max-width:480px){

    #chatbot-container{

        width:95%;
        height:90%;

        right:2.5%;
        bottom:80px;
    }
}