/**
** Chatbot Component
**/

.nl-chatbot-component{
    height: 70vh;
    background: rgb(159,194,245);
    background: linear-gradient(276deg, rgba(159,194,245,1) 0%, rgba(236,239,244,1) 100%);
    border-radius: 15px;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    padding: 20px;
    position: relative;
    animation: .5s ease-out 0s 1 nlChatbotMessageAnimation;
}

.nl-chatbot-box{
    display: flex;
    justify-content: space-between;
    height: 100%;
}

.nl-chatbot-side{
    width: 25%;
    background-color: rgba(255, 255, 255, .5);
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    border-radius: 12px;
    padding: 15px 0 15px 15px;
    margin-right: 15px;
}
@media (max-width: 1024px){
    .nl-chatbot-side{
        display: none;
    }
}
.nl-chatbot-body{
    /* width: 73%; */
    flex: 1 0;
    background-color: rgba(255, 255, 255, .1);
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    border-radius: 8px;
    position: relative;
    padding: 15px;
}

.nl-chatbot-list{
    height: 100%;
    padding-right: 15px;
    overflow-y: auto;
}
.nl-chatbot-side ::-webkit-scrollbar {
    /* width */
    width: 10px;
}
.nl-chatbot-side ::-webkit-scrollbar-track {
    /* Track */
    background: rgba(255, 255, 255, 0);
    border-radius: 15px;
}
.nl-chatbot-side ::-webkit-scrollbar-thumb {
    /* Handle */
    background: rgba(255, 255, 255, .8);
    border-radius: 15px;
}
.nl-chatbot-side ::-webkit-scrollbar-thumb:hover {
    /* Handle on hover */
    background: rgba(255, 255, 255, .99);
}
.nl-chatbot-item{
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    -webkit-transition: all .2s ease-in-out;
    -moz-transition: all .2s ease-in-out;
    -ms-transition: all .2s ease-in-out;
    -o-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    position: relative;
    animation: .8s ease-out 0s 1 nlChatbotMessageAnimation;
}
.nl-chatbot-item:hover,
.nl-chatbot-item.compose{
    background-color: rgba(255, 255, 255, .65);
}
.nl-chatbot-item.compose{
    background-color: #0D6EFD;
    position: sticky;
    top: 0;
    z-index: 2;
}
.nl-chatbot-item.compose:hover{
    background-color: #3987fd;
}
.nl-chatbot-item.compose span,
.nl-chatbot-item.compose svg{
    color: #fff;
}
.nl-chatbot-item.compose{
    justify-content: center;
}
.nl-chatbot-item.active{
    background-color: rgba(255, 255, 255, .95);
}
.nl-chatbot-item.active::before{
    background-color: #0D6EFD;
    height: 22px;
    width: 6px;
    position: absolute;
    left: -3px;
    top: 9px;
    content: '';
    border-radius: 3px;
}
.nl-chatbot-item.active span{
    color: #0D6EFD;   
}
.nl-chatbot-item span{
    color: #595e61;
    font-size: .85em;
}
.nl-chatbot-item small{
    color: #b3b3b3;
    font-size: .7em;
}
.nl-chatbot-item svg{
    width: 15px;
    height: 15px;
    margin-right: 5px;
}

.nl-chatbot-chat{
    position: relative;
    height: 100%;
    z-index: 2;
    display: flex;
    flex-direction: column;
}
.nl-chatbot-write{
    width: 100%;
    z-index: 3;
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    animation: .8s ease-out 0s 1 nlChatbotMessageAnimation;
}
.nl-chatbot-write-status{
    color: #fff;
    display: flex;
    margin-bottom: 10px;
    max-width: 100%;
}
.nl-chatbot-write-status-notify{
    background-color: rgba(107, 107, 107, 0.6);
    padding: 3px 15px;
    border-radius: 8px;
    box-shadow: #959da533 0px 8px 24px;
    font-size: .9em;
    max-width: 100%;
}
.nl-chatbot-write-status-typing {
    height: 10px;
    aspect-ratio: 2.5;
    --_g: no-repeat radial-gradient(farthest-side,#fff 90%,transparent);
    background:var(--_g), var(--_g), var(--_g), var(--_g);
    background-size: 20% 50%;
    animation: nlChatbotWriteStatusTyping 1s infinite linear; 
}
@keyframes nlChatbotWriteStatusTyping {
    0%     {background-position: calc(0*100%/3) 50% ,calc(1*100%/3) 50% ,calc(2*100%/3) 50% ,calc(3*100%/3) 50% }
    16.67% {background-position: calc(0*100%/3) 0   ,calc(1*100%/3) 50% ,calc(2*100%/3) 50% ,calc(3*100%/3) 50% }
    33.33% {background-position: calc(0*100%/3) 100%,calc(1*100%/3) 0   ,calc(2*100%/3) 50% ,calc(3*100%/3) 50% }
    50%    {background-position: calc(0*100%/3) 50% ,calc(1*100%/3) 100%,calc(2*100%/3) 0   ,calc(3*100%/3) 50% }
    66.67% {background-position: calc(0*100%/3) 50% ,calc(1*100%/3) 50% ,calc(2*100%/3) 100%,calc(3*100%/3) 0   }
    83.33% {background-position: calc(0*100%/3) 50% ,calc(1*100%/3) 50% ,calc(2*100%/3) 50% ,calc(3*100%/3) 100%}
    100%   {background-position: calc(0*100%/3) 50% ,calc(1*100%/3) 50% ,calc(2*100%/3) 50% ,calc(3*100%/3) 50% }
}
.nl-chatbot-write-box{
    background-color: rgba(255, 255, 255, .95);
    padding: 10px 15px;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    border-radius: 12px;
    /* height: 50px; */
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Align items to the top to allow vertical growth */
    height: auto; /* Allow the container to grow vertically */
}
.nl-chatbot-write-box input{
    background-color: transparent;
    width: 100%;
    height: 100%;
    border: 0;
    overflow: auto;
    resize: none;
    flex-grow: 1; /* Allow input to take up available space */
    margin-right: 10px; /* Optional: Add space between input and button */
}
.nl-chatbot-write-box input {
    height: auto !important;
    border-radius: 0 !important;
    border: none !important;
}
.nl-chatbot-write-box textarea {
    background-color: transparent;
    width: 100%;
    border: 0 !important;
    border-radius: 0 !important;
    overflow-y: auto; /* Enable vertical scroll when content exceeds max-height */
    resize: none; /* Disable manual resizing */
    height: auto !important;
    min-height: 50px; /* Set a minimum height */
    max-height: 150px; /* Optional: set a maximum height */
    line-height: 1.5;
    flex-grow: 1; /* Allow textarea to take up available space */
    margin-right: 10px; /* Optional: Add space between textarea and button */
    padding: 0;
    font-family: inherit;
    font-size: inherit;
}
.nl-chatbot-write-box textarea:focus {
    border: 0;
    outline: none;
}
.nl-chatbot-write-box input:focus{
    border: 0;
    outline: none;
}
.nl-chatbot-write-box button{
    background-color: transparent;
    border: 0;
    outline: 0;
    color: #0D6EFD;
    display: flex;
    align-items: center;
    /* cursor: pointer; Add pointer cursor for better UX */
}

.nl-chatbot-messages{
    height: 100%;
    z-index: 2;
    overflow-y: auto;
    padding-right: 10px;
    border-radius: 8px;
}
.nl-chatbot-chat ::-webkit-scrollbar {
    /* width */
    width: 10px;
}
.nl-chatbot-chat ::-webkit-scrollbar-track {
    /* Track */
    background: rgba(255, 255, 255, .2);
    border-radius: 8px;
}
.nl-chatbot-chat ::-webkit-scrollbar-thumb {
    /* Handle */
    background: rgba(255, 255, 255, .5);
    border-radius: 8px;
}
.nl-chatbot-chat ::-webkit-scrollbar-thumb:hover {
    /* Handle on hover */
    background: rgba(255, 255, 255, .8);
}
.nl-chatbot-message{
    display: flex;
    margin-bottom: 25px;
    animation: .5s ease-out 0s 1 nlChatbotMessageAnimation;
}
@keyframes nlChatbotMessageAnimation {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
.nl-chatbot-message.user{
    justify-content: end;
}
.nl-chatbot-message.bot{
    justify-content: start;
}
.nl-chatbot-message-box{
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    max-width: 70%;
    line-height: 1.8;
    font-size: .95em;
}
.nl-chatbot-message.user .nl-chatbot-message-box{
    background: rgb(13,110,253);
    background: linear-gradient(90deg, rgba(13,110,253,1) 0%, rgba(20,93,201,1) 53%, rgba(15,100,226,1) 100%);
    color: #fff;
}
.nl-chatbot-message.bot .nl-chatbot-message-box{
    background: rgb(255,255,255);
    background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(243,244,246,1) 53%, rgba(255,255,255,1) 100%);
    color: #595e61;
}
.nl-chatbot-message-image{
    margin-bottom: 15px;
}
.nl-chatbot-message-image img{
    max-width: 250px;
    border-radius: 8px;
}
.nl-chatbot-message-download-button{
    padding: 5px 15px;
    border-radius: 8px;
    cursor: pointer;
    -webkit-transition: all .2s ease-in-out;
    -moz-transition: all .2s ease-in-out;
    -ms-transition: all .2s ease-in-out;
    -o-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
    background-color: #0D6EFD;
    color: #fff;
    text-align: center;
    display: block;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.nl-chatbot-message-download-button:hover{
    background-color: #3987fd;
    color: #fff;
}
.nl-chatbot-message-download-button svg{
    width: 15px;
    margin-right: 5px;
}
.nl-chatbot-message-icon{
    display: flex;
    justify-content: center;
}
.nl-chatbot-message-icon img,
.nl-chatbot-message-icon svg{
    max-width: 100px;
    fill: #0D6EFD;
}
.nl-chatbot-message-icon{
    margin-bottom: 10px;
}
.nl-chatbot-message-voice{
    display: flex;
    justify-content: start;
    align-items: center;
}
.nl-chatbot-message-voice .btnPlayVoice svg{
    width: 40px !important;
    height: 40px !important;
}
.nl-chatbot-message-voice-wave{
    width: 80px;
    height: 40px;
    color: #0D6EFD;
    display: flex;
    justify-content: start;

}
.nl-chatbot-message-text{
    margin-bottom: 15px;
}

.nl-chatbot-circles{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}
.nl-chatbot-circles li{
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    animation: animateCircles 25s linear infinite;
    bottom: -150px;
    
}
.nl-chatbot-circles li:nth-child(1){
    left: 25%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}
.nl-chatbot-circles li:nth-child(2){
    left: 10%;
    width: 20px;
    height: 20px;
    animation-delay: 2s;
    animation-duration: 12s;
}
.nl-chatbot-circles li:nth-child(3){
    left: 70%;
    width: 20px;
    height: 20px;
    animation-delay: 4s;
}
.nl-chatbot-circles li:nth-child(4){
    left: 40%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
    animation-duration: 18s;
}
.nl-chatbot-circles li:nth-child(5){
    left: 65%;
    width: 20px;
    height: 20px;
    animation-delay: 0s;
}
.nl-chatbot-circles li:nth-child(6){
    left: 75%;
    width: 110px;
    height: 110px;
    animation-delay: 3s;
}
.nl-chatbot-circles li:nth-child(7){
    left: 35%;
    width: 150px;
    height: 150px;
    animation-delay: 7s;
}
.nl-chatbot-circles li:nth-child(8){
    left: 50%;
    width: 25px;
    height: 25px;
    animation-delay: 15s;
    animation-duration: 45s;
}
.nl-chatbot-circles li:nth-child(9){
    left: 20%;
    width: 15px;
    height: 15px;
    animation-delay: 2s;
    animation-duration: 35s;
}
.nl-chatbot-circles li:nth-child(10){
    left: 85%;
    width: 150px;
    height: 150px;
    animation-delay: 0s;
    animation-duration: 11s;
}
@keyframes animateCircles {

    0%{
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }

    100%{
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }

}


/**
** Chatbot Pop
**/
.nl-chatbot-pop{
    min-width: 50px;
    position: fixed;
    right: 0;
    bottom: 0;
    padding: 20px 20px;
    z-index: 1099;
    animation: .5s ease-out 0s 1 nlChatbotMessageAnimation;
}
.nl-chatbot-pop-button{
    background: rgb(13,110,253);
    background: linear-gradient(90deg, rgba(13,110,253,1) 0%, rgba(20,93,201,1) 53%, rgba(15,100,226,1) 100%);
    width: 45px;
    height: 45px;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    cursor: pointer;
    box-shadow: rgba(86, 138, 216, 0.4) 0px 2px 14px;
    -webkit-transition: all .2s ease-in-out;
    -moz-transition: all .2s ease-in-out;
    -ms-transition: all .2s ease-in-out;
    -o-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
}
.nl-chatbot-pop-button:hover{
    background: rgb(10, 95, 223);
    background: linear-gradient(90deg, rgba(10, 95, 223,1) 0%, rgb(10, 87, 202) 53%, rgba(10, 95, 223,1) 100%);
}
.nl-chatbot-pop-button svg{
    width: 25px;
    height: 25px;
}
.nl-chatbot-up{
    position: fixed;
    bottom: 20px;
    right: 80px;
    width: 350px;
    max-width: 70%;
    height: 400px;
    max-height: 90vh;
    background: rgb(159,194,245);
    background: linear-gradient(276deg, rgba(159,194,245,1) 0%, rgba(236,239,244,1) 100%);
    border-radius: 15px;
    box-shadow: rgba(86, 138, 216, 0.4) 0px 2px 14px;
    padding: 10px;
    z-index: 1099;
    display: none;
    font-size: .9em;
    animation: .5s ease-out 0s 1 nlChatbotMessageAnimation;
}
.nl-chatbot-up.active{
    display: block;
}
/* .nl-chatbot-up .nl-chatbot-write{
    height: 60px;
} */
.nl-chatbot-up .nl-chatbot-write-box{
    /* height: 100px; */
    height: auto;
}
.nl-chatbot-up .nl-chatbot-message-box{
    max-width: 90%;
}
.nl-chatbot-pop-messages{
    position: fixed;
    bottom: 80px;
    right: 20px;
    display: flex;
    flex-direction: column;
}
.nl-chatbot-pop-message{
    margin-bottom: 15px;
    display: flex;
    justify-content: end;
    cursor: default;
}
.nl-chatbot-pop-message span{
    background: rgb(84, 112, 155);
    background: linear-gradient(90deg, rgb(84, 112, 155) 0%, rgb(90, 129, 189) 53%, rgba(84, 112, 155) 100%);
    color: #fff;
    border-radius: 15px;
    font-size: .85em;
    box-shadow: rgba(86, 138, 216, 0.4) 0px 0px 12px;
    padding: 10px 15px;
}
.nl-chatbot-pop-message:last-of-type{
    margin-bottom: 0;
}

/**
** Chatbot Suggest
**/
.nl-chatbot-suggest{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100%;
    animation: .5s ease-out 0s 1 nlChatbotMessageAnimation;
}
.nl-chatbot-suggest-box{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.nl-chatbot-suggest-title{
    font-size: 1.3em;
    color: #0D6EFD;
    font-weight: bold;
    margin-bottom: 35px;
}
@media (max-width: 1024px){
    .nl-chatbot-suggest-title{
        margin-bottom: 10px;
        text-align: center;
    }
}
.nl-chatbot-suggest-pop .nl-chatbot-suggest-title{
    margin-bottom: 10px;
    text-align: center;
}
.nl-chatbot-suggest-qs{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 90%;
}
.nl-chatbot-suggest-qi{
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    line-height: 1.8;
    font-size: .95em;
    background: rgb(255,255,255);
    background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(243,244,246,1) 53%, rgba(255,255,255,1) 100%);
    color: #595e61;
    width: 49%;
    cursor: pointer;
    -webkit-transition: all .2s ease-in-out;
    -moz-transition: all .2s ease-in-out;
    -ms-transition: all .2s ease-in-out;
    -o-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
    margin-bottom: 15px;
    animation: .15s ease-out 0s 1 nlChatbotMessageAnimation;
}
@media (max-width: 1024px){
    .nl-chatbot-suggest-qi{
        width: 100%;
    } 
}
.nl-chatbot-suggest-pop .nl-chatbot-suggest-qi{
    width: 100%;
} 
.nl-chatbot-suggest-qi:hover{
    box-shadow: rgba(10, 95, 223, 0.3) 0px 8px 15px;
}
.nl-chatbot-suggest-qi img{
    width: 30px;
    height: 30px;
    margin-right: 5px;
}
.nl-chatbot-suggest-copyright{
    padding-top: 10px;
}

/**
** Chatbot Inline
**/
.nl-chatbot-inlinesuggest-qs{
    overflow-x: auto;
    max-width: 100%;
}
.nl-chatbot-inlinesuggest-qh{
    padding: 5px 0;
}
.nl-chatbot-inlinesuggest-qi{
    display: inline-block;
    border-radius: 8px;
    padding: 2px 10px;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    line-height: 1.8;
    font-size: .95em;
    border: 1px solid #fff;
    background: rgb(255,255,255);
    background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(243,244,246,1) 53%, rgba(255,255,255,1) 100%);
    color: #595e61;
    cursor: pointer;
    -webkit-transition: all .2s ease-in-out;
    -moz-transition: all .2s ease-in-out;
    -ms-transition: all .2s ease-in-out;
    -o-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
    margin-right: 5px;
    margin-bottom: 5px;
}
.nl-chatbot-inlinesuggest-qi:hover{
    border-color: #3987fd;
    color: #3987fd;
}
.nl-chatbot-message-options{
    display: block;
}
.nl-chatbot-message-option{
    padding: 10px 25px;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    line-height: 1.8;
    font-size: .95em;
    border: 1px solid #cacaca;
    background: #fff;
    margin-bottom: 8px;
    border-radius: 8px;
    -webkit-transition: all .2s ease-in-out;
    -moz-transition: all .2s ease-in-out;
    -ms-transition: all .2s ease-in-out;
    -o-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
    color: #595e61;
    cursor: pointer;
}
.nl-chatbot-message-option:hover{
    border-color: #3987fd;
    color: #3987fd;
}

/**
** Chatbot Admin Panel
**/
.nl-chatbot-admin{
    display: flex;
    flex-direction: row;
    overflow-y: auto;
    background-color: #fff;
    min-height: 100vh;
    padding: 100px 0;
}
.nl-chatbot-admin-side{
    width: 300px;
    min-height: 100%;
    background-color: #f2f4f7;
    position: sticky;
    top: 0;
    overflow-y: auto;
}
.nl-chatbot-admin-side ul{
    margin: 0;
    padding: 0;
    list-style: none;
}
.nl-chatbot-admin-side ul li{
    margin: 0;
}
.nl-chatbot-admin-side ul li a{
    display: block;
    padding: 15px;
}
.nl-chatbot-admin-side ul li a:hover{
    background-color: #f7faff;
}
.nl-chatbot-admin-side ul li.active a{
    background-color: #0D6EFD;
    color: #fff;
}
.nl-chatbot-admin-body{
    flex: 1 0;
    padding: 25px;
}
@media (max-width: 1024px){
    .nl-chatbot-admin{
        flex-direction: column;
    }
    .nl-chatbot-admin-body{
        order: 1;
        flex: 0;
    }
    .nl-chatbot-admin-side{
        order: 2;
        position: relative;
        width: 100%;
        height: auto;
        overflow: visible;
        top: auto;
    }
}


/**
** Loader
**/
.nl-chatbot-lds{
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
    width: 100%;
}
.nl-chatbot-lds-inline{
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
}
.nl-chatbot-lds-ring {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}
.nl-chatbot-lds-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 44px;
    height: 44px;
    margin: 8px;
    border: 4px solid #0D6EFD;
    border-radius: 50%;
    animation: nl-chatbot-lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: #0D6EFD transparent transparent transparent;
}
.nl-chatbot-lds-ring div:nth-child(1) {
    animation-delay: -0.45s;
}
.nl-chatbot-lds-ring div:nth-child(2) {
    animation-delay: -0.3s;
}
.nl-chatbot-lds-ring div:nth-child(3) {
    animation-delay: -0.15s;
}
@keyframes nl-chatbot-lds-ring {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.chatbot-admin-card {
    z-index: 1 !important;
}

.gray-icon svg {
    fill: gray !important; /* Make the icon gray */
    cursor: not-allowed;   /* Change the cursor to indicate it's disabled */
}
