#chatbot-container3 {
    position: fixed;
    bottom: 0px;
    right: 5px;
    z-index: 9999;
}

.chatbot-icon img {
    width: 76px;
}

.chatbot-icon {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.chatbot-icon.active {
    background-color: #333;
}

.chatbot-icon.active:before,
.chatbot-icon.active:after {
    background-color: #fff;
}

/*.chatbot-icon:before {
    content: "\f0e6";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 24px;
    color: #fff;
}
*/
#chatbot-window {
    display: none;
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 360px;
    min-height: 520px;
    max-height: 520px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 9998;
}

#chatbot-header {
    padding: 10px;
    background-color: #37bc9b;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 10px 10px 0 0;
}

#chatbot-header h2 {
    margin: 0;
    font-size: 18px;
}

#close-btn {
    background-color: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
}

#chatbot-content {
    /*      padding: 10px;*/
}
#gradio-container {
    width: 100%;
    height: 600px;
}

iframe {
    width: 100%;
    height: 79%;
    border: none;
}
.tooltip-profile i {
    top: 7px !important;
    right: 7px !important;
}
#admin_profile_modal .modal-content .panel-group{
    padding: 0px 15px
}
#admin_profile_modal .panel {
    /* border-top: 1px solid #d2d6de;*/ margin-bottom: 15px;
}
#admin_profile_modal .form-group{
    margin-bottom: 20px;
}
.modal .close {
    /* font-size: 28px;
     margin: 8px 10px;
     font-weight: 300;*/
}
#profileAccordion3 {
    margin-top: 60px;
}
#profileAccordion3 .modal-header .panel-title a {
    padding: 15px;
    display: block;
    font-size: 18px;
    font-weight: 500;
}
#profileAccordion3 .modal-header {
    padding: 0px;
}
#profileAccordion3 .modal-body {
    padding: 0px 0px 0px;
}

.chat-panel {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 80vh;
}
#chatbox3 {
    background-color: #fff;
    padding: 10px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    animation: fade-in 0.3s ease-in-out;
}
.message-container {
    /*  display: flex;
      justify-content: flex-end;*/
    text-align: right;
}
.user-message-container {
    justify-content: flex-start;
}
.message {
    padding: 10px;
    border-radius: 5px;
    width: fit-content;
    max-width: 80%;
}
.user-message {
    background-color: #b3e6ff;
    color: #000;
}
.bot-message {
    background-color: #d9f5b3;
    color: #000;
}
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
}
.user-avatar {
    /*background-color: #00bfff;*/
}

.input-container {
    display: flex;
    align-items: center;
    padding: 10px;
    border-top: 1px solid #ccc;
    position: sticky;
    bottom: 0;
    background-color: white;
    z-index: 1;
    width: 100%;
}
.input-box {
    flex: 1;
    padding: 5px;
    background-image: url('send-icon.png');
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 20px 20px;
    border: 1px solid #ccc;
    border-radius: 20px;
    height: 30px;
    padding-right: 35px;
    margin-right: 10px;
}

/* Animation for fading in new messages */
@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#chatbot_modal3 .right-modal-po{
    width: 900px !important;
}
#chat-message-window3 {
    height: 91%;
    left: 0px;
    min-width: 600px;
    overflow: hidden;
    position: absolute;
    top: 60px;
    width: 100%;
    z-index: 2;
}
#chat-message-window3 #message-input-wrapper3 #userInput3:focus{
    outline: none;
}
#chat-message-window3 #message-input-wrapper3 {
    bottom: 0px;
    max-height: 150px;
    left: 0px;
    position: absolute;
    width: 100%;
    z-index: 2;
    display: flex;
    flex-direction: row;
}
#chat-message-window3 #message-input3{
    top: -28px !important;
    position: absolute;
    width: 100%;
}
#chat-message-window3 #message-input-wrapper3 #userInput3 {
    left: 50%;
    position: absolute;
    top: 80%;
    transform: translateX(-50%) translateY(-80%);
    background-color: white;
    border-radius: 14px;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 6px, rgba(0, 0, 0, 0.12) 0px 1px 4px;
    height:45px;
    min-height:45px;
    padding: 10px 15px;
    max-height: 150px;
    resize: none;
    line-height: 22px;
    overflow: auto;
    width: 90%;
    border:1px solid transparent;
}
#chat-message-window3 #message-input-wrapper3 #message-input3 #message-input-field {
    border: none;
    color: #666;
    font-size: 1em;
    font-weight: 600;
    margin-left: 20px;
    outline: none;
    width: 430px;
}
#chat-message-window3 #message-input-wrapper3 #message-input3 #send-message-button3 {
    cursor: pointer;
    height: 36px;
    position: absolute;
    right: 45px;
    text-align: center;
    bottom: -12px;
    width: 36px;
}
.course-thumb {
    width: 250px;
    min-width: 250px;
}

.course-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
    display: flex;
    gap: 12px;
    background: #f9f9f9;
}
.course-thumb img {
    width: 120px;
    height: auto;
    border-radius: 6px;
}
.course-details {
    flex: 1;
}
.bot-message .course-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 4px;
    height: auto !important;
    padding: 0px !important;
}
.course-link {
    display: inline-block;
    margin-top: 8px;
    background: #007bff;
    color: #fff;
    padding: 6px 12px;
    text-decoration: none;
    border-radius: 4px;
}
.course-link:hover {
    background: #0056b3;
}


#chatbox3 .message-container .bot-message {
    background-color: #efefef;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 6px, rgba(0, 0, 0, 0.12) 0px 1px 4px;
    display: inline-block;
    max-width: 600px;
    padding: 15px 20px;
    position: relative;
    text-align: left;
    transition: all 0.5s;
    vertical-align: top;
    white-space: normal;
    z-index: 1;
}
.user-message-container .user-message {
    background-color: #212121;
    border-radius: 10px;
    color: #fff;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 6px, rgba(0, 0, 0, 0.12) 0px 1px 4px;
    display: inline-block;
    max-width: 600px;
    padding: 15px 20px;
    position: relative;
    text-align: left;
    transition: all 0.5s;
    vertical-align: top;
    white-space: normal;
    z-index: 1;
}
#chat-message-window3 #chat-message-column-wrapper #chat-message-column .message.received {
    text-align: left;
}
#chat-message-window3 #chat-message-column-wrapper #chat-message-column .message.given {
    text-align: right;
}
#chat-message-window3 #chat-message-column-wrapper #chat-message-column .message.given  .profile-icon {
    box-shadow: none !important;
}

.bot-avatar {
    animation: bounceIn 1s ease-in-out;
    animation-delay: 0.25s;
    border-radius: 100px;
    display: inline-block;
    height: 45px;
    position: relative;
    vertical-align: middle;
    width: 45px;
    z-index: 2;
    float: right;
    margin-left: 10px;
    margin-right: 0px;
}
.user-avatar {
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 6px, rgba(0, 0, 0, 0.12) 0px 1px 4px;
}

#chat-message-window3 #chat-message-column-wrapper #chat-message-column .message {
    animation: expand 0.5s ease-in-out;
    margin-bottom: 20px;
    white-space: nowrap;
}
#chat-message-window3 #chat-message-column-wrapper #chat-message-column {
    bottom: 0px;
    left: 0px;
    min-height: 70px;
    margin-bottom: 70px;
    overflow: hidden;
    padding: 20px 20px 0px 20px;
    width: calc(100% - 40px);
}
#chat-message-window3 #chat-message-column-wrapper #chat-message-column.static {
    position: absolute;
}
#chat-message-window3 .content{
    min-height: auto !important;
}
#chatbot_modal3 .panel-default{
    background: #ff6600;
    border-radius: 0px !important;
    padding: 10px;
    margin:0px !important;
    border: none !important;
}
#chatbot_modal3 .close{
    text-shadow: none !important;
    opacity: 1 !important;
    background: #fff;
    border-radius: 50%;
    font-size: 28px !important;
    width: 30px;
    height: 30px;
    margin-top: 15px !important;
}
#chat-message-window3 input{
    width: 100%;
    outline: none;
    border: none;
    color: #212121;
    padding: 0px 15px;
}
#chatbot_modal3 .btn-blue{
    width: 100%;
    font-size: 16px;
}
#chatbot_modal3 .btn-blue:hover{
    opacity: 0.6;
}
@keyframes wave-typing {
    0%, 40%, 100% {
        opacity: 0.3;
    }
    20%, 60% {
        opacity: 1;
    }
}

.loading-icon {
    position: relative;
    width: 40px;
    height: 20px;
    border-radius: 50%;
    background-color: #f0f0f0;
    overflow: hidden;
}

.loading-icon span {
    display: inline-block;
    width: 8px;
    height: 40%;
    border-radius: 4px;
    background-color: #666;
    margin: 0 2px;
    animation: wave-typing 1.5s infinite;
}

.loading-icon span:nth-child(1) {
    animation-delay: 0s;
}

.loading-icon span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-icon span:nth-child(3) {
    animation-delay: 0.4s;
}

.icon-fly {
    display: inline-block;
    width: 23px;
    height: 23px;
}

.bot-message th, .bot-message td, .bot-message table {
    border: 1px solid #000;
    padding: 5px;
}

.bot-message table {
    margin: 5px 0;
}

.bot-message p {
    padding: 0;
    margin: 0;
}

.bot-message img {
    vertical-align: middle;
    width: 100%;
    padding: 5px;
}
.box3{
    float:right;
    overflow: hidden;
    background: #efefef;
    right: 900px;
    position: absolute;
    height: 100%;
}
.box3 .tabox{
    padding:10px 20px 10px 20px;
    border-bottom: 1px solid #dfdfdf;
}
/* Add padding and border to inner content
for better animation effect */
.box3 .box-inner{
    width: 280px;
    padding: 0px 20px 0px 20px;
    height: calc(100% - 97px);
    overflow: auto;
}
.slide-toggle3{
    float: left;
    cursor: pointer;
    width: 30px;
    background: #fff;
    color: #333;
    text-align: center;
    height: 30px;
    border-radius: 50%;
    line-height: 33px;
    margin: -5px 15px 0px 5px;
    font-size: 14px;
}
/*.slide-toggle.class2{
    transform: rotate(180deg);
}*/
.historylist li {
    padding: 5px 0px;
}
.historylist li div{
    background:  rgba(0,0,0,0.05);
    ;
    padding: 10px;
    border-radius:4px;
    cursor: pointer;
}
.historylist li div:hover{
    background: rgba(255,255,255,1);
    box-shadow: 0px 0px 7px rgba(0,0,0,0.06);
}
.historylist li.active div{
    background: rgba(255,255,255,1);
}
.historylist li span{
    text-overflow: ellipsis;
    width: 75%;
    overflow: hidden;
    display: inline-block;
    white-space: nowrap;
}
.historylist li img{
    width: 20px;
}
#chatbot_modal3 .modal-content{
    border-radius: 0px !important;
}
.icon-historybar{
    width:22px;
    height: 22px;
    margin: 4px 0px 0px -2px;
}
.box3 h4{
    font-weight: 600;
}

.newchatbox{
    text-align: center;
    width: 100%;
    display: inline-block;
    margin-top: 25%;
}
.newchatbox img{
    width: 80px
}
.chat_menu3, .chat_menu_yesterday3, .chat_menu_30days3, .chat_menu_more30days3, .chat_menu_7days3 {
    display: none;
}
#regenrate_text {
    font-size: 15px;
    outline: none;
    display: none;
}
#regenrate_text[disabled] {
    background: #e3e4e4;
}

.btn-neutral {
    background-color: #ffffff;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 2px, rgba(0, 0, 0, 0.12) 0px 1px 5px;
    border: 1px solid #e5e5e5;
    color: rgba(64,65,79,1);
    font-size: .875rem;
    line-height: 1.25rem;
    border-width: 1px;
    white-space: nowrap;
}

.btn-neutral:hover {
    background-color: #f1f1f1;
    border: 1px solid #f1f1f1;
    border-width: 1px;
    font-size: .875rem;
    line-height: 1.25rem;
    border-width: 1px;
    color: rgba(64,65,79,1);
    white-space: nowrap;
}

.btn-chat {
    align-items: center;
    border-radius: .5rem;
    border-width: 1px;
    display: inline-flex;
    font-size: .875rem;
    line-height: 1.25rem;
    padding: .75rem .75rem;
    pointer-events: auto;
}

.regenerate_box {
    text-align: right;
    height: 30px;
    padding: 0 30px;
    margin-top: 5px;
}

.loader1 {
    display:inline-block;
    font-size:0px;
    padding:0px;
    top:45%;
    position: absolute;
}
.loader1 span {
    vertical-align:middle;
    border-radius:100%;
    display:inline-block;
    width:20px;
    height:20px;
    margin:6px 4px;
    -webkit-animation:loader1 0.8s linear infinite alternate;
    animation:loader1 0.8s linear infinite alternate;
}
.loader1 span:nth-child(1) {
    -webkit-animation-delay:-1s;
    animation-delay:-1s;
    opacity:0.4;
}
.loader1 span:nth-child(2) {
    -webkit-animation-delay:-0.8s;
    animation-delay:-0.8s;
    opacity:0.8;
}
.loader1 span:nth-child(3) {
    -webkit-animation-delay:-0.26666s;
    animation-delay:-0.26666s;
}
.loader1 span:nth-child(4) {
    -webkit-animation-delay:-0.8s;
    animation-delay:-0.8s;
    opacity:0.8;

}
.loader1 span:nth-child(5) {
    -webkit-animation-delay:-1s;
    animation-delay:-1s;
    opacity:0.4;
}

#loading_chat3 .loader1 {
    left: 40%;
}

@keyframes loader1 {
    from {
        transform: scale(0, 0);
    }
    to {
        transform: scale(1, 1);
    }
}
@-webkit-keyframes loader1 {
    from {
        -webkit-transform: scale(0, 0);
    }
    to {
        -webkit-transform: scale(1, 1);
    }
}
.showoverflow {
    overflow: hidden !important;
}

.icon-fly{
    opacity: 0.5;
}

.copy_icon {
    width: 30px;
    /* padding-top: 5px; */
    line-height: 27px;
    background: #fff;
    border-radius: 50%;
    height: 30px;
    text-align: center;
    position: absolute;
    right: 0px;
    border: 2px solid #efefef;
}
.copy_ico i{
    font-size: 16px;
}

.copy_icon:hover{
    background: #dfdfdf;
}
.copyButton {
    cursor: pointer;
    color: #63646e;
}

.copyButton:hover {
    color: #000;
}
.close.new-btn-close span{position: relative; top: -2px !important; right: 0px !important;}
.modal-open .modal{overflow-y: auto !important;}