html,
body {
    height: 100%;
    margin: 0;
}
:root{
    --btn-image: url('/web_assets/frontend/img/icon/send.svg')
}
.chatbot-wrapper {
        margin: auto;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 64px auto;
        padding:0 20px;
    }
.chatbot-container {
    width: 1050px;
    height: 578px;
    border-radius: 16px;
    border: 1px solid #EBEBEB;
    background: #FFFFFF;
    box-shadow: 0px 2px 4px 0px #0000001F;
    display: flex;
    flex-direction: column;
    margin: auto;
}

.chatbot-header {
    background: #313249;
    border-radius: 16px 16px 0 0;
    padding: 14px 20px;
}

.chatbot-title {
    color: #FFFFFF;
    font-weight: 400;
    font-size: 20px !important;
    line-height: 20px;
    margin: 0px;
}

.chatbot-body {
    display: flex;
    flex: 1;
    /* Let it grow to fill the remaining height */
    min-height: 0;
    /* Prevent content from overflowing */
}

.chatbot-sidebar {
    width: 250px;
    background: #FBFBFB;
    height: 100%;
    border-radius: 0px 0px 0px 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.chatbot-sidebar-header{
    padding: 12px 12px 0;
}
.chatbot-main,
.chatbot-main-body-setting {
    flex: 1;
    height: 100%; 
}

.chatbot-sidebar :nth-child(1) {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-sidebar .new-chat {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 6px;
    cursor: pointer;
    background-color: #FFFFFF;
    border-radius: 8px;
    padding: 10px 8px;
    box-shadow: 0px 2px 4px 0px #00000014;
    max-width: 222px;
    width: 100%;
}

.new-chat span {
    color: #313249;
    font-weight: 400;
    font-size: 14px;
    line-height: 14px;
    margin: 0px;
}

.chatbot-sidebar :nth-child(1) .chatbot-sidebar-setting {
    box-shadow: 0px 2px 4px 0px #00000014;
    background: #FFFFFF;
    width: 32;
    height: 36;
    gap: 6px;
    border-radius: 8px;
    padding-top: 10px;
    padding-right: 8px;
    padding-bottom: 10px;
    padding-left: 8px;

}

.chatbot-sidebar-body-item-wrapper {
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: 400px;
    overflow: auto;
}

.chatbot-sidebar-body-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    background-color: #FFFFFF;
    border: 1px solid #EBEBEB;
    border-radius: 8px;
    padding: 8px;
    width: 100%;
    color: #434A51;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;

}
#chatbot_send{
    cursor: pointer;
    min-width: 52px;
    min-height: 42px;
    border: none;
    position: relative;
}

#chatbot_send::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--btn-image);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    z-index: 1;
    width: 52px;
    height: 42px;
}
.chatbot-sidebar-body{
    /* max-height: 386px; */
    overflow: auto;
    display: flex;
    gap: 4px;
    flex-direction: column;
        padding: 0 12px;
}

.chatbot-sidebar-body-title {
    color: #434A51;
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    padding-left: 6px;
}

.chatbot-sidebar-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 0.5px solid #FFBE3C;
    background: #FFFFFF;
    border-radius: 10px;
    border-width: 0.5px;
    padding: 8px;
    margin: auto 12px 12px;

}

.chatbot-sidebar-footer .upgrade-plan {
    display: flex;
    align-items: start;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    border-radius: 8px;
}

.chatbot-sidebar-footer .upgrade-plan span,
.chatbot-main-header-left span,
.chatbot-main-setting-header-left span {
    color: #AFAFAF;
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    margin: 0px;
}

.chatbot-sidebar-footer .upgrade-plan b,
.chatbot-main-header-left .chat-title,
.chatbot-main-setting-header-left b {
    color: #434A51;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
}
.chatbot-main-header-left .chat-title{
    border: none;
    outline: none;
}
.chatbot-main-header,
.chatbot-main-setting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid #EBEBEB;
}

.chatbot-main-header-left,
.chatbot-main-setting-header-left {
    display: flex;
    flex-direction: column;
}

.chatbot-main-header-right,
.chatbot-main-setting-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.chatbot-main-header-right button{
    border: 1px solid #EBEBEB;
    background-color: #FFFFFF;
    padding: 6px;
    border-radius: 8px;
    max-width: 32px;
    max-height: 32px;
    width: 100%;
}

.chatbot-main-body {
    width: 100%;
    max-height: 400px;
    height: 100%;
    overflow: auto;
    position: relative;
    padding: 16px;
}

.chatbot-main-body-setting {
    width: 100%;
    height: 100%;
    display: none;
}

.chatbot-main-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    flex-grow: 1;
}
.chatbot-main-output-item {
    align-self: flex-start;  
    max-width: 80%;    
    position: relative;
}
.chatbot-main-output-item:hover .input-action-bnts,.chatbot-main-input-item:hover .input-action-bnts{
display: flex;
}

.chatbot-main-output-item .text{
    background: #F6F6F6;
    color: #434A51;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0%;
    margin-top: 4px;
}

.chatbot-main-input-item {
    align-self: flex-end;
    text-align: end;
    max-width: 80%;
    position: relative;
}

.chatbot-main-input-item .text{
    background: #FFFAE0;
    color: #434A51;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 14px;
    margin-top: 4px;
    text-align: left;
}
.input-action-bnts{
    position: absolute;
    display: none;
    gap:8px;
    right: 0;
    cursor: pointer;
}
.chatbot-main-output-item .input-action-bnts{
    left: 0;
}
.input-action-bnts span{
    box-shadow: 0px 2px 3px 0px #0000001A;
    border: 1px solid #EBEBEB;
    background: #FFFFFF;
    width: 24px;
    height:24px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    align-self: center;
    justify-content: center;
}
.input-action-bnts span img{
    width: 12px;
    height: 12px;
}
.chatbot-main-footer {
    width: 100%;
    border-top: 1px solid #EBEBEB;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
}
.chatbot-main-footer-left {
    width: 100%;
}
 
 
.chatbot-main-footer-input {
    border: none;
    outline: none;
    resize: none;
    width: 100%;
    font-size: 16px;
    padding: 2px;
}
.edit-chat {
    position: absolute;
    background-color: #FFFAE0;
    padding: 12px 16px;
    border-radius: 8px;
    width: auto;
    z-index: 1;
    top: 50%;
    width: calc(100% - 32px);
    transform: translatey(-50%);
}
.edit-chat input{
    width: 100%;
    background-color: #FFFAE0;
    border: none;
    outline: none;
    color :#434A51;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}
.edit-chat input:focus,.edit-chat input:-webkit-autofill,.edit-chat input:focus-visible,.edit-chat input:active{
    background-color: #FFFAE0 !important;
}
.edit-chat .edit-action-btns{
    display: flex;
    justify-content: end;
    gap: 12px;
    margin-top: 12px;
}
.edit-chat .edit-action-btns button{
    padding: 6px 14px;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    border-radius: 8px;
    border: none;
}
.edit-chat .edit-action-btns button.confirm{
    background: #313249;
    color: #FFFFFF;
    border: 1px solid #313249
}
.edit-chat .edit-action-btns button.cancle{
    background: #FFFFFF;
    color: #313249;
    border: 1px solid #EBEBEB
}
.setting-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.setting-list li {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 12px;
    max-height: 62px;
    align-items: center;
    cursor: pointer;
}

.setting-list li:not(:last-child) {
    border-bottom: 1px solid #EBEBEB;
}

.dropdown-container {
    position: relative;
    user-select: none;
}

.dropdown-value {
    font: 400 14px/18px Roboto;
    letter-spacing: 0;
    color: #434A51;
}

.dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid #EBEBEB;
    cursor: pointer;
    background: #fff;
    border-radius: 8px;
    gap: 10px;
}

.dropdown-menu {
    all: unset;
    position: absolute;
    top: 110%;
    background: #fff;
    display: none;
    height: auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 0px 20px 0px #0000001A;
    border-radius: 8px;
    padding: 6px 0;
    width: 100%;
    z-index: 1;
}

.dropdown-menu p {
    all: unset;
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    letter-spacing: 0%;
    color: #434A51;
    padding: 4px 12px;
    width: 100%;
    text-align: center;
}

.dropdown-container.open .dropdown-menu {
    display: block;
}
.setting-list li span {
    font: 400 14px/20px Roboto;
    color: #434A51;
}

.setting-list li small {
    font: 400 12px/100% Roboto;
    color: #AFAFAF;
}
.setting-list li > div:first-child {
    display: flex;
    flex-direction: column;
    align-items: start; 
}

.progress-range-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #EBEBEB;
    padding: 10px 12px;
    border-radius: 8px;
}
#rangeSlider{
    width: 90px;
}
#rangeSlider {
    width: 90px;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: #EEEBE8;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
  }

  #rangeSlider::-webkit-slider-runnable-track {
    height: 8px;
    background: #EEEBE8;
  }
  
  #rangeSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 0;
    height: 0;
    box-shadow: -1000px 0 0 1000px #FFC700; 
    border: none;
  }
  
  #rangeSlider::-moz-range-track {
    height: 8px;
    background: #EEEBE8;
  }
  
  #rangeSlider::-moz-range-progress {
    height: 8px;
    background: #FFC700;
  }
  
  #rangeSlider::-moz-range-thumb {
    width: 0;
    height: 0;
    background: transparent;
    border: none;
  }
  
  .setting-list li button {
    background: #FF5C5C;
    border-radius: 8px;
    color: #FFFFFF;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0;
    text-align: center;
    padding: 6px 12px;
    gap: 4px;
    border: none;
    outline: none;
  }
  .showChats{
    display: none;
  }
  .showToolTip{
    position: relative;
  }
  .showToolTip::before {
    padding: 2px 6px;
    width: max-content;
    z-index: 10;
    position: absolute;
    background: #313249;
    font-size: 12px;
    font-weight: 400;
    line-height: 12px;
    content: attr(data-tooltip);
    bottom: -23px;
    left: -8px;
    color: #FFFFFF;
    border-radius: 4px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
    box-shadow: 0px 2px 8px -4px #10182814;
    }
      .showToolTip::after {
    width: 0;
    height: 0;
    position: absolute;
    left: 13px;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-bottom: 3px solid #313249;
    border-top: 3px solid transparent;
    bottom: -7px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
    content: "";
}
.showToolTip:hover::before {
    opacity: 1;
}
.showToolTip:hover::after {
    opacity: 1;
}
@media only screen and (max-width: 640px) {
    .chatbot-sidebar {
        display: none;
    }
    .chatbot-sidebar.show{
        z-index: 2;
        display: flex;
        position: absolute;
        width: 100%;
    }
    .chatbot-body{
        position: relative;
    }
    .chatbot-header{
        display: flex;
        gap: 4px;
        align-items: center;
    }
    .chatbot-header .showChats{
        display: block;
        width: 20px;
        height: 20px;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    .chatbot-header .showChats.show{
        transform: scalex(-1)
    }
}