/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 4 version
*/

/* Chatbot styling */
.chatbot {
    position: fixed;
    bottom: 60px;
    right: 10px;
    z-index: 1000;
    scrollbar-color: #333 #eeeeff; 
    scrollbar-width: thin;
}

.chatbot-popup {
    max-height: 100vh;
    display: none;
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background-color: #fff;
    border-radius: 15px;
    -webkit-box-shadow: 0 0 128px 0 rgba(0, 0, 0, 0.1), 0 32px 64px -48px rgba(0, 0, 0, 0.5);
            box-shadow: 0 0 128px 0 rgba(0, 0, 0, 0.1), 0 32px 64px -48px rgba(0, 0, 0, 0.5);
    -webkit-transition: all 0.1s ease;
    -o-transition: all 0.1s ease;
    transition: all 0.1s ease;
}

.chatbot-popup.chatbot-active {
    display: block;
}

.chat-header {
    background-image: linear-gradient(180deg, #F28500 10%, #CC5500 30%, #ffc107 100%);
    color: #fff;
    padding: 10px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    text-align: center;
}

.header-info {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    gap: 10px;
}

.chatbot-logo i {
    color: #343a40; 
}

.logo-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: #343a40;
    margin: 0;
}

.chat-body{
    padding: 10px;
    display: flex;
    gap: 15px;
    height: 350px;
    margin-bottom: 82px;
    overflow-y: auto;
    flex-direction: column-reverse;
}


.message {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: end;
        -ms-flex-align: end;
            align-items: flex-end;
    gap: 10px;
}

.bot-message .message-text {
    background-color: #f1f1f1;
    color: #333;
    padding: 10px 15px;
    border-radius: 18px 18px 18px 0;
    max-width: 80%;
}

.user-message {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
   
}

.user-message .message-text {
    background-color: #ffc107;
    color: #fff;
    padding: 10px 15px;
    border-radius: 18px 18px 0 18px;
    max-width: 80%;
}

.bot-avatar i {
    border-radius: 50%;
    padding: 5px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}

.chat-footer{
    bottom: 0;
    width: 100%;
    position: absolute;
    padding: 15px 22px 20px;

}

.chat-footer .chat-form{
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 32px;
    outline: 1px solid #cccce5;
}

.chat-footer .chat-form:focus-within{
    outline: 1.5px solid #CC5500;
}

.chat-form .message-input{
    border: none;
    outline: none;
    height: 47px;
    width: 100%;
    font-size: 0.95rem;
    resize: none;
    padding: 14px 0 13px 18px;
    border-radius: inherit;
}

.chat-form .chat-controls{
    display: flex;
    height: 47px;
    align-items: center;
    gap: 3px;
    align-self: flex-end;
    padding-right: 6px;
}

.chat-form .chat-controls button{
    height: 35px;
    width: 35px;
    border: none;
    cursor:pointer;
    color: #F28500;
    background: none;
    font-size: 1.15rem;
    border-radius: 50%;
    transition: 0.2s ease;

}

.chat-controls button:hover {
    color: #e0a800;
}

.chat-form .chat-controls #send-message{
    background: #F28500;
    color: #fff;
    display: none;
}
.chat-form .message-input:valid~.chat-controls #send-message{
    display: block;
}
.chat-form .chat-controls #send-message:hover{
    background: #CC5500;
}

.chat-form.chat-controls button:hover{
 background: #f1f1ff;
}


.chatbox-button button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #ffc107;
    color: white;
    border: none;
    cursor: pointer;
    -webkit-box-shadow: 0 4px 8px rgba(0,0,0,0.2);
            box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}

/* Thinking Indicator */
.thinking-indicator {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    padding: 10px 15px;
}

.thinking-indicator .dot {
    width: 8px;
    height: 8px;
    margin: 0 2px;
    background-color: #aaa;
    border-radius: 50%;
    -webkit-animation: thinking-bounce 1.4s infinite ease-in-out both;
            animation: thinking-bounce 1.4s infinite ease-in-out both;
}

.thinking-indicator .dot:nth-child(1) {
    -webkit-animation-delay: -0.32s;
            animation-delay: -0.32s;
}

.thinking-indicator .dot:nth-child(2) {
    -webkit-animation-delay: -0.16s;
            animation-delay: -0.16s;
}

@-webkit-keyframes thinking-bounce {
    0%, 80%, 100% {
        -webkit-transform: scale(0);
                transform: scale(0);
    }
    40% {
        -webkit-transform: scale(1.0);
                transform: scale(1.0);
    }
}

@keyframes thinking-bounce {
    0%, 80%, 100% {
        -webkit-transform: scale(0);
                transform: scale(0);
    }
    40% {
        -webkit-transform: scale(1.0);
                transform: scale(1.0);
    }
}


.chatbot-popup::-webkit-scrollbar {
  width: 10px;
}

.chatbot-popup::-webkit-scrollbar-track {
  background-color: #eeeeff;
}
.chatbot-popup::-webkit-scrollbar-thumb {
  background-color: #333; /* Scrollbar color */
  border-radius: 5px;
}
.chatbot-popup::-webkit-scrollbar-thumb:hover {
  background-color: #555; /* Scrollbar color on hover */
}