
/* 
=============
scrollbar css
=============
*/

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgb(185, 183, 183);
    background-color: #F5F5F5;
    border-radius: 0px;
}

::-webkit-scrollbar-thumb {
    border-radius: 8px;
    background-color: rgba(0, 115, 170, 1);
    -webkit-box-shadow: inset 0 0 6px #ccc;
}



/* 
=============
chat css
=============
*/
.chatbox-wrap {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    display: inline-block;
    padding: 0;
    margin: 0;
    transition: 0.4s;
}

#chat-toggle-btn {
    position: relative;
    width: 50px;
    height: 50px;
    background: rgb(0, 115, 170);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    border: 0 solid;
    box-shadow: inset 0 0 20px rgba(0, 115, 170, 0);
    outline: 1px solid;
    outline-color: rgba(0, 115, 170, .5);
    outline-offset: 0px;
    text-shadow: none;
    transition: all 1250ms cubic-bezier(0.19, 1, 0.22, 1);
}

#chat-toggle-btn i {
    font-size: 25px;
}

#chat-toggle-btn:hover {
    border: 1px solid;
    box-shadow: inset 0 0 20px rgba(0, 115, 170, .5), 0 0 20px rgba(0, 115, 170, .2);
    outline-color: rgba(0, 115, 170, 0);
    outline-offset: 15px;
    text-shadow: 1px 1px 2px #427388;
}

/***/
#my-chatbot {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 340px;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0px 0px 5px 0px #ccc;
    overflow: hidden;
    z-index: 2;
    font-family: Arial, sans-serif;
}

#chat-header {
    width: 100%;
    background: #0073aa;
    color: #fff;
    padding: 10px;
    font-weight: bold;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

#chat-messages {
    height: 380px;
    scroll-behavior: smooth;
    overflow-y: auto;
    padding: 10px;
    border-bottom: 1px solid #ccc;
}

.user-msg {
    padding: 4px 10px;
    float: right;
    border-radius: 6px;
    background: #e1ffc7;
    clear: both;
    max-width: 75%;
    font-size: 12px;
}

.bot-msg {
    background: #f1f1f1;
    padding: 4px 10px;
    color: #666;
    max-width: 75%;
    float: left;
    margin-left: 10px;
    margin: 10px 0;
    position: relative;
    border-radius: 6px;
    clear: both;
    font-size: 12px;
}

#chat-input {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    padding: 10px;
}

#chat-input input {
    width: 100%;
    height: 40px;
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 6px 0px 0px 6px;
    outline: 0;
    box-shadow: none;
}

#chat-input input:focus {
    outline: 0;
    border: 1px solid #0073aa;
}

#chat-input button {
    width: 50px;
    height: 40px;
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 5px;
    cursor: pointer;
    border-radius: 0px 6px 6px 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    outline: 0;
    box-shadow: none;
}





/* 
=============
loader
=============
*/
.loading-msg {
    display: flex;
    align-items: center;
}

.loading-dots::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 6px;
    border-radius: 50%;
    background: #555;
    animation: loadingDots 1s infinite steps(3);
}

@keyframes loadingDots {
    0% { box-shadow: 6px 0 0 #555, 18px 0 0 #555; }
    33% { box-shadow: 6px 0 0 transparent, 18px 0 0 #555; }
    66% { box-shadow: 6px 0 0 #555, 18px 0 0 transparent; }
    100% { box-shadow: 6px 0 0 #555, 18px 0 0 #555; }
}
