/* Reset default margin and padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Full height body and container */
body, html {
    height: 100%;
    font-family: "Poppins", sans-serif;

}
a{
    transition: all 0.5s linear;
}
a:hover{
    text-decoration: none;
}
.lb-blue{
    color: rgba(47, 96, 213, 1);
}
.chatbox-container {
    display: flex;
    height: 100%;
    font-size: 14px;
}

/* Sidebar styling */
.sidebar {
    width: 330px; /* Adjust width as needed */
    background: #D5DFF766; /* Dark background */

    padding: 20px;
    height: 100%; /* Full height */

}

.sidebar h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin: 15px 0;
    font-size: 1rem;
    cursor: pointer;
}

.sidebar ul li:hover {
    color: #274ba0; /* Highlight color on hover */
}

/* Main content styling */
.main-content {
    flex: 1; /* Takes up remaining space */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background-color: #fff; /* Light background */
    padding: 20px;
    text-align: left;
    flex-direction: column;
}

.main-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.main-content p {
    font-size: 16px;

}

.btn-transparents{
    border-radius: 20px;
    padding: 10px 16px;
    border:1px solid #D9D9D9;
    background: none;
    font-size: 14px;

}
.btn-transparents.back{
    display: flex;
    align-items: center;
    color: #000;
    justify-content: center;
}
.btn-transparents.back:hover{
    background: #D9D9D9;
}
.btn-transparents.back svg{
    margin-right: 5px;
}

.btn-primary-lb{
    border-radius: 20px;
    padding: 10px 16px;
    border:none;
    background: #2F60D5;
    font-size: 14px;
    display: flex;
    align-items: center;
    color:#fff !important;
    justify-content: center;
    transition: all 0.5s linear;
    letter-spacing: 0;
}
.btn-primary-lb:hover{
    background: #274ba0;
    transition: all 0.5s linear;
}
.btn-primary-lb svg{
    margin-right: 5px;
}
.lb-list {
    border: 1px solid rgba(0, 0, 0, .125);
    padding: 0;
    box-shadow: 0px 4px 14px 0px rgba(0, 0, 0, 0.1);
    background: #fff;
    border-radius: 20px;
    max-height: 190px;
    overflow-y: auto;
}

.lb-list .list-group-item {
    position: relative;
    display: block;
    padding: .5rem 30px;
    background-color: transparent;
    border: navajowhite;
    border-bottom: 1px solid rgba(0, 0, 0, .125);
    margin: 0;
    padding-left: 25px;
    font-size: 14px;
}
.lb-list .list-group-item:last-child{
    border: none;
}
.lb-list .list-group-item .chat_text{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 230px;
    display: block;
    color: #000;
    padding: 0 10px;
}
.lb-list .list-group-item .day{
    position: absolute;
    right: 8px;
    top: 9px;
    font-size: 12px;
}
.lb-list .list-group-item .chat_text:hover{
    color: #0061d5 !important;
}
.selected-chat a{
    color: #0061d5 !important;
}

.lb-list .list-group-item .del{
    opacity: 0;
    transition: opacity 0.3s linear;
    position: absolute;
    right: 10px;
    top: 7px;
}
.lb-list li.list-group-item.selected {
    background: #c4e0ff;
}
.lb-list li.list-group-item.selected .day{
    display: none;
}
.lb-list .list-group-item.selected .chat_text {

    color: #2f60d5;

    font-weight: 500;
}
.lb-list li.list-group-item.selected .del{
    opacity: 1;
}
.lb-list .list-group-item:hover .day{
    display: none;
}
.lb-list .list-group-item:hover .del{
    opacity: 1;
}
.lb-list.folders .list-group-item::before {
    background: url(../img/folder_icon.svg) no-repeat;
    content: '';
    width: 18px;
    height: 16px;
    display: block;
    position: absolute;
    left: 10px;
    top: 9px;
}
.sidebar h4{
    color: rgba(0, 97, 213, 1);
    font-size: 20px;
}
.sidebar .sidebar-box{
    margin: 30px 0;
}
.main-content h1{
    font-size: 22px;
}
.main-content .chatbox-content {
    max-width: 850px;
    margin: 0 auto;
    width: 100%;
}
.main-content .chatbox-content ol{
    padding-left: 30px;
}
.chatbox {
    position: relative;

    width: 100%;
    max-width: 850px;
    margin: 50px auto 0;
}
.chatbox textarea {
    background: rgba(213, 223, 247, 0.7) !important;
    border: none !important;
    resize: none !important;
    padding: 20px 20px 38px 20px !important;
    border-radius: 20px !important;
}
.chatbox textarea:focus {
    color: #000;
    background: rgba(213, 223, 247, 0.7);
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 .2rem rgba(0, 123, 255, .25);
}
.chatbox .add-prompts {
    position: absolute;
    background: rgba(47, 96, 213, 1);
    color: #fff;
    display: flex
        ;
    padding: 5px 12px;
    width: 110px;
    justify-content: space-between;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    right: 22px;
    top: -30px;
}
.chatbox .bottom-icons {
    position: absolute;
    bottom: 15px;
    right: 15px;
}
.chatbox .bottom-icons a {
    margin-left: 0;
    padding-right: 10px;
    padding-left: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
    display: inline-block;
}
.chatbox .bottom-icons a:hover img{
    opacity: 0.75;
}
.user-message .message-text {
    background: rgba(47, 96, 213, 1);
    padding: 10px 15px;
    color: #fff;
    display: block;
    border-radius:20px;
    border-bottom-right-radius: 0;
}
.user-message {
    display: flex;
    justify-content: flex-end;
    border-top-right-radius: 20px;
    margin-bottom: 15px;
}
.lb-message{
    display: flex;
    margin-bottom: 35px;
}
.lb-message img{
    width: 45px;
    margin-right: 10px;
}
.lb-message .message-text {
    background: rgba(244, 247, 251, 1);
    padding: 10px 15px;
    color: #000;
    display: block;
    border-radius:20px;
    position: relative;
}
.lb-message p{
    font-size: 14px;
}
.message_actions {
    position: absolute;
    right: 0;
    bottom: -24px;
}
.message_actions a {
    opacity: 0.5;
    margin: 0 5px;
    display: inline-block;
}
.message_actions a:hover svg path{
    fill:#2f60d5;

}
.message_actions a:hover{
    opacity: 1;
}
.chat {
    display: flex;
    flex-direction: column;
    height: 60vh;
    overflow-y: scroll;
    padding-right: 10px;
    font-size: 14px;
}

/* width */
.chat::-webkit-scrollbar,
.lb-list::-webkit-scrollbar,
#subcategory .sub-category::-webkit-scrollbar,
#prompts .prompt-list::-webkit-scrollbar{
    width: 5px;
}

/* Track */
.chat::-webkit-scrollbar-track
.lb-list::-webkit-scrollbar-track,
#subcategory .sub-category::-webkit-scrollbar-track,
#prompts .prompt-list::-webkit-scrollbar-track{
    background: #f1f1f1;
}

/* Handle */
.chat::-webkit-scrollbar-thumb,
.lb-list::-webkit-scrollbar-thumb,
#subcategory .sub-category::-webkit-scrollbar-thumb,
#prompts .prompt-list::-webkit-scrollbar-thumb{
    background: #D9D9D9;
}

/* Handle on hover */
.chat::-webkit-scrollbar-thumb:hover,
.lb-list::-webkit-scrollbar-thumb:hover,
#subcategory .sub-category::-webkit-scrollbar-thumb:hover,
#prompts .prompt-list::-webkit-scrollbar-thumb:hover{
    background: #555;
}
.new-chat {
    position: absolute;
    top: -35px;
    left: 0;
    width: 100%;
    text-align: center;
}
.new-chat a {
    background: rgba(225, 233, 249, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 110px;
    margin: 0 auto;
    padding: 5px;
    border-radius: 11px;
    color: rgba(47, 96, 213, 1)!important;
    font-size: 14px;
    font-weight: 500;
}
.new-chat a img{
    margin-right: 5px;
}
.message_actions a.like.liked,
.message_actions a.dislike.disliked,
.message_actions a.heart.favorite{
    opacity: 1;
}
.message_actions a.like.liked svg path {
    fill: #2f60d5 !important;
}
.message_actions a.dislike.disliked svg path {
    fill: red !important;
}
.message_actions a.dislike:hover svg path{
    fill:red !important;

}
.message_actions a.heart.favorite svg path {
    fill: #2f60d5 !important;
}

#addPromptsModal .modal-dialog,
#addCustomPromptModal .modal-dialog{
    max-width: 620px;
}
#addPromptsModal button.close,
#addCustomPromptModal button.close {
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 1111;
}
#addPromptsModal .modal-body,
#addCustomPromptModal .modal-body{
    padding: 30px;
}
#addPromptsModal .modal-content,
#addCustomPromptModal .modal-content{
    border-radius: 20px;
}
#addPromptsModal h4,
#addCustomPromptModal h4{
    text-align: center;
    margin-bottom: 20px;
    margin-top: 0;
    font-size: 22px;
    font-weight: 700;
}
#addPromptsModal .search-wrapper {
    box-shadow: 0px 0px 14px 0px rgba(0, 0, 0, 0.25);
    border-radius: 20px;
}
#addPromptsModal .search-wrapper .form-control{
    padding: 15px 20px;
    height: auto;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    border: none;
    box-shadow: none;
}
.search-wrapper .dropdown-menu{
    padding: 15px;
    margin: 0;
    background: #fff;
    width: 100%;
    border-radius: 20px;
    box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.05);
}
.search-wrapper .text-danger {
    color: #2f60d5 !important;
    font-weight: bold;
}
.search-wrapper .dropdown-menu .dropdown-item:hover .text-danger{
    color:#fff !important;
}
.search-wrapper .dropdown-menu .dropdown-item{
    background-color: #EEF2FC;
    border: 1px solid #C6C6C6;
    margin-bottom: 10px;
    border-radius: 10px;
    box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.05);
    padding: 10px 15px;
    word-wrap: break-word;
    white-space: normal;
    font-size: 14px;
}
.search-wrapper .dropdown-menu .dropdown-item:hover{
    color: #fff;
    text-decoration: none;
    background-color: #2f60d5;
    border: none;
    border: 1px solid #2f60d5;
}
.search-wrapper .dropdown-menu .dropdown-item.active, .search-wrapper .dropdown-menu .dropdown-item:active {
    color: #fff;
    text-decoration: none;
    background-color: #2f60d5;
    border: 1px solid #2f60d5;
}
.fa-search{
    font-size: 1.75rem !important;
    position: initial !important;
}
.topic{
    border: 1px solid rgba(198, 198, 198, 1);
    box-shadow: 0px 0px 24px 0px rgba(0, 0, 0, 0.25);
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
    align-items: center;
    transition: all 0.3s linear;
}
.topic:hover {
    background: #2f60d5;
}
p#explore {
    text-align: center;
    color: #2f60d5;
    font-weight: bold;
    font-size: 1rem;
}

.topic:hover svg path{
    fill:#fff;
}
.topic svg path{
    fill:#2f60d5;
}
.topic:hover h5,
.topic:hover p{
    color: #fff;
}
.topic h5 {
    color: #0061D5;
    margin: 0;
    font-weight: 500;
    font-size: 18px;
}
.topic p{
    font-size: 14px;
    margin: 2px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 320px;
    display: block;
}
.topic:hover .btn-primary-lb{
    background: #fff;
    color:#2f60d5 !important;
}
.topic .btn-primary-lb{
    border-radius: 10px;
}
.topic .btn-primary-lb svg{
    margin-left: 5px;
}
.topic:hover .btn-primary-lb svg path{
    stroke:#2f60d5;
}
.custom-prompt-btn{
    max-width: 300px;
    margin: 0 auto;
    border-radius: 10px;

}

#subcategory .sub-category,
#prompts .prompt-list{
    max-height: 320px;
    overflow-y: auto;
    padding: 15px;
}
#breadcrumb-container{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}
#breadcrumb-back{
    background: url(../img/back-arrow.svg) no-repeat;
    width: 20px;
    height: 20px;
    background-size: 20px;
    margin-right: 10px;
    display: inline-block;
}
.prompt-list ul {
    padding: 0;
    list-style: none;
}
.prompt-list ul li.prompt-item a {
    background: rgba(238, 242, 252, 1);
    display: block;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(198, 198, 198, 1);
    color: #000;
    box-shadow: 0px 0px 24px 0px rgba(0, 0, 0, 0.25);
}
.prompt-list ul li.prompt-item a:hover {
    background: #2f60d5;
    color: #fff;
}
.prompt-list ul li.prompt-item {
    margin-bottom: 15px;
}
span#breadcrumb-sub::before {
    content: "/";
    display: inline-block;
    margin: 0 5px;
}
.user-message.has-followup {
    flex-direction: column;
    align-items: end;

}
.user-message.has-followup .message-text{
    margin-bottom: 10px;
    position: relative;
}
.user-message.has-followup a.send-followup {
    position: absolute;
    right: 4px;
    background: #2f60d5;
    top: 10%;
    height: 80%;
    padding: 0 10px;
    display: flex
        ;
    align-items: center;
    border-radius: 5px;
}
.user-message.has-followup a.send-followup img{
    width: 20px;
}
.user-message.has-followup .message-text.follow-up {
    padding-right: 60px;
    background: #007bff3b;
    border-radius: 5px;
    color: #000;
    max-width: 70%;
}
#addCustomPromptModal form{
    background: #F4F7FB;
    padding: 30px;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0px 0px 14px 0px rgba(0, 0, 0, 0.25);
}
#addCustomPromptModal form .form-control{
    background: rgba(225, 233, 249, 1);
    border: none;
    padding: 15px;
    height: auto;
    border-radius: 15px;
}
#addCustomPromptModal .modal-footer {
    display: -ms-flexbox;
    display: flex
        ;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: end;
    justify-content: center;
    padding: 0 0 30px;
    border-top: none;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}
#addCustomPromptModal .modal-footer .btn {
    border-radius: 10px;
    width: 100px;
    padding: 8px 10px;
}
#addCustomPromptModal .modal-footer .btn.btn-primary{
    background: rgba(47, 96, 213, 1);
    border-color: rgba(47, 96, 213, 1);
}
@media screen and (min-width:320px) and (max-width:767px){
    .chatbox-container{
        flex-direction: column;
    }
    .sidebar{
        width: 100%;
        height: auto;
    }
    .favorite-chats ul,
    .chat-history ul{
        display: none;
    }
    .favorite-chats h4,
    .chat-history h4{
        background: #2f60d5;
        color: #fff;
        font-size: 16px;
        padding: 10px 20px;
        border-radius: 20px;
        margin: 0;
        cursor: pointer;
    }
    .sidebar .sidebar-box{
        margin: 10px 0;
        position: relative;
    }
    .favorite-chats::after,
    .chat-history::after {
        content: '\f0c9';
        font-family: "FontAwesome";
        position: absolute;
        top: 9px;
        right: 20px;
        color: #fff;
    }
    .message_actions {
        position: relative;
        right: 0;
        bottom: 0;
        text-align: right;
        margin-top: 5px;
    }
    .chatbox .add-prompts {

        padding: 6px 10px;
        width: 110px;

        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
        right: 15px;
        top: -32px;
    }
    .new-chat {
        position: absolute;
        top: -33px;
        left: 16px;
        width: auto;
        text-align: left;
    }
    .topic p {
        font-size: 14px;
        margin: 2px 0 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 150px;
        display: block;
    }
    .topic h5{
        font-size: 16px;
    }
    .topic .btn-primary-lb svg {
        margin-left: 5px;
        width: 12px;
    }
    .topic .btn-primary-lb {
        border-radius: 10px;
        padding: 5px 8px;
        font-size: 12px;
    }
    .col-form-label{
        font-size: 14px;
    }
}

/* editable prompts */
.prompt-list ul li.prompt-item{
    position: relative;
}
.prompt-list ul li.prompt-item a{
    padding-right: 65px;
}
.prompt-list ul li.prompt-item .edit-del {
    position: absolute;
    top: 14%;
    right: 6px;
    display: flex;
    background: #007bff3b;
    padding: 5px 8px;
    border-radius: 9px;
    align-items: center;
    justify-content: center;
}
.prompt-list ul li.prompt-item .edit-del a{
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0 2px;
}
.prompt-list ul li.prompt-item:hover .edit-del{
    background: #fff;
}
.prompt-list ul li.prompt-item:hover .edit{
    color: #2f60d5;
}
.prompt-list ul li.prompt-item.editable-prompt .form-control{
    background: #fff;
    display: block;
    padding: 10px 70px 10px 10px;
    border-radius: 10px;
    border: 2px solid #2f60d5;
    color: #000;
    box-shadow: 0px 0px 24px 0px rgba(0, 0, 0, 0.25);
    height: auto;
}
.prompt-list ul li.prompt-item.editable-prompt .edit-del{
    background: #2F60D5;
    top: 18%;
}

.tooltip-container {
    position: relative;
    display: inline-block;
    margin: 0
}
.tooltip-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    width: 314px;
    background: rgba(201, 216, 245, 1);
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 1px 0px rgba(0, 0, 0, 0.1);
    bottom: 100%;
    left: 0;
    transform: translateX(-83%);
    margin-bottom: 12px;
    transition: opacity 0.2s;
}

.tooltip-content::after {
    content: "";
    position: absolute;
    top: 97%;
    left: 89%;
    margin-left: -15px;
    border-width: 15px;
    border-style: solid;
    border-color: rgba(201, 216, 245, 1) transparent transparent transparent;
}
.tooltip-container:hover {
    background: rgba(201, 216, 245, 1);
    border-radius: 10px;
}


.tooltip-trigger:hover + .tooltip-content {
    visibility: visible;
    opacity: 1;
}
.tooltip-content p {
    margin: 0;
    font-size: 13px;
}
.tooltip-title {
    font-weight: 500;
    margin-bottom: 0;
    color: #333;
    font-size: 16px
}

.tooltip-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
    color: #666;
    font-size: 14px;
}

.tooltip-list li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.tooltip-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #007bff;
}
.uploaded-attachments {
    padding: 15px 20px 30px;
    border: 1px solid #e2e9f9;
    border-radius: 15px;
    margin-bottom: -15px;
    border-bottom: none;
    display: none;
    background: rgba(213, 223, 247, 0.7) !important;
}
.uploaded-attachments p{
    margin: 0 0 5px;
    font-size: 14px;
}
.attachment-wrapper {
    display: flex;
}
.attachment {
    background: rgba(225, 233, 249, 1);
    border-radius: 10px;
    padding: 15px;
    align-items: center;
    position: relative;
    margin-right: 15px;
    border: 2px solid #82a0e6;
}
.attachment.failed .remove {
    position: absolute;
    top: -10px;
    right: -5px;
}
/*
.attachment.failed p{
    margin: 0;
    font-size: 12px;
    opacity: 1;
    color: #2f60d5;
}
*/
.attachment h5 {
    font-size: 14px;
    margin: 0;
    width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.attachment p {
    margin: 0;
    font-size: 12px;
    opacity: 0.5;
}

thinking {
    display: block;
    margin: 12px 0;
    padding: 10px 14px;
    background-color: #f9f9f9;
    border-left: 4px solid #007acc;
    border-radius: 6px;
    font-family: Arial, sans-serif;
    color: gray;
    transition: background-color 0.3s ease;
  }
  
  thinking:hover {
    background-color: #eef6fc;
  }
  
  #toggleBtn,
  .toggle-thinking {
      cursor: pointer;
    padding: 8px 14px;
    background-color: #007acc;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    transition: background-color 0.3s ease;
    margin-bottom: 5px;
  }
  
  #toggleBtn:hover,
  .toggle-thinking:hover {
    background-color: #005fa3;
  }
  .chat-send-btn.disabled {
      opacity: 0.5;
      pointer-events: none;
  }

  @media screen and (min-width:320px) and (max-width:767px){
    .topic svg {
        display: none;
    }
        .topic h5 {
            font-size: 12px;
        }
    .topic p {
            font-size: 12px;
    }
    #addPromptsModal .modal-body, #addCustomPromptModal .modal-body {
        padding: 15px;
    }
    #categories .topic .media-body {
        width: 67%;
        margin: 0 !important;
    }
  }

.search-wrapper .dropdown-menu.show::before {
    content: "Results:";
    color: #0061D5;
    margin-bottom: 5px;
    display: block;
}

@media screen and (min-width:320px) and (max-width:767px){
    #breadcrumb-container {
    
        align-items: self-start;
    
        font-size: 11px;
    }
    #breadcrumb-container span#breadcrumb-title {
        width: 50%;
    }
    #breadcrumb-container span#breadcrumb-sub {
        width: 50%;
    }
}
@media screen and (min-width: 250px) and (max-width: 767px) {
    header .header-container ul li.register .dropdown {
        top: -5px;
        padding: 0;
    }
    header .header-container ul li.register .dropdown a:nth-child(1) {
        border-radius: 0;
        margin-top: 0px !important;
    }
    header .header-container ul li.register .dropdown a:last-child {
        border-radius: 0 !important;
        border-bottom-left-radius:8px !important;
        border-bottom-right-radius:8px !important;
        margin-top: 0px !important;
    }
    header.loggedin-view .header-container ul li.register.has-dropdown::before {
        content: "Logged In As";
        top: 20px;
        left: 23px;
    }
    .lb-message h2, .lb-message h3, .lb-message h4 {
        font-size: 18px;
        margin: 0;
    }
    #subcategory .sub-category .media-body {
        margin: 0 !important;
    }
    .pagination li { 
        padding: 5px 9px;
        border-radius: 5px;
        font-size: 14px;
    }
    .lb-message img{
        display: none;
    }
    .user-message.has-followup .message-text.follow-up{
        max-width:100%;
    }
}