﻿.bb-chat-container {
    display: flex;
    position: relative;
    width: 100%;
    gap: 10px;
    --header-margin-top: 6px;
    height: calc(100svh - 115px - var(--header-margin-top));
    margin-top: calc(115px + var(--header-margin-top));
}
.bb-chat-section {
    background-color: white;
}
.bb-chat-section .loader-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bb-chat-section .loader {
    width: 100px;
    margin: auto;
}
.bb-chat-new-chat-section {
    width: 16%;
    display: flex;
    flex-direction: column;
}

.bb-conversations-loader,
.bb-chat-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    width: 100%;
}

.bb-conversations-loader .loader,
.bb-chat-loader .loader {
    width: 50px;
}

.bb-chats-history-container {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 15px;
    min-height: 65%;
}

.bb-chat-new-chat-section .topics-section {
    flex: 1;
}

.bb-chat-new-chat-section .topics-section,
.bb-conversations-actions {
    padding: max(1.4vw, 15px);
}

.bb-topic-rename-input {
    width: 100%;
}

.bb-topic-conversation {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 95%;
    align-items: center;
    font-size: clamp(16px,0.9vw,22px);
    gap: 15px;
}

.bb-topic-conversation.disabled {
    pointer-events: none;
    cursor: default;
}

.bb-topic-conversation-info {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
}

.bb-topic-conversation-info > div {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 10px;
    width: 80%;
    border-radius: 8px;
    cursor: pointer;
}

.bb-related-data-text {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

.text-translate-on-hover {
    transition: transform .3s ease-out;
}

.text-translate-on-hover:hover {
    transform: translateX(5px);
}

.bb-topic-conversation-related-data {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 80%;
    cursor: pointer;
    margin-left: clamp(7px, 0.5vw, 10px);
    padding: 12px 22px;
    border-radius: 8px;
}

.bb-conversations-actions {
    display: flex;
    flex-direction: column;
    font-size: clamp(16px,0.9vw,22px);
    gap: 10px;
}

.conversation-options-line {
    background: #1c1c1c17;
    height: 2px;
}

.bb-conversations-action {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 14px 10px;
}

.bb-topic-conversation.active .bb-topic-conversation-info div,
.bb-topic-conversation-related-data.active
{
    background: #EFEFEF;
}

.bb-conversations-action img,
.bb-topic-conversation-info div img {
    width: clamp(18px, 1.4vw, 34px);
}

.bb-topic-conversation-related-data img {
    width: clamp(16px, 1.3vw, 32px);
}

.bb-topic-conversation-info .three-dots {
    width: clamp(14px, 1.3vw, 28px);
    cursor: pointer;
    height: 30px;
}

.bb-new-chat-btn {
    border: none;
    width: 100%;
    font-size: clamp(16px,1.0vw,22px);
    height: 45px;
    font-weight: 700;
}

.bb-new-chat-btn img {
    width: 28px;
}

.bb-chat-topics-side-section {
    width: 19%;
}

.bb-chat-main-section {
    flex: 1;
    align-items: center;
    justify-content: center;
    display: flex;
}

.bb-converation-options-bubble {
    display: none;
    position: absolute;
    z-index: 2;
    width: fit-content;
    min-width: 120px;
    padding: 8px 5px;
    border-radius: 20px;
    background-color: var(--white);
    box-shadow: 0px 4px 4px 0px rgba(168, 168, 168, 0.25);
    text-align: center;
    cursor: default;
    right: 0px;
    top: 30px;
}

.bb-chat-topics-side-section .bb-primary-title {
    margin-bottom: 30px;
    text-align: center;
}

.bb-conversation-option-btn {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px;
}

.bb-chat-topics-side-section {
    padding: max(2.5vw, 45px) max(1vw, 10px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bb-topic-action-btn-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.bb-topic-action-btn-wrapper {
    width: 80%;
    display: flex;
    align-items: center;
    background: linear-gradient(to right, #8705FD 0, #2B4CE5 100%);
    padding: 2px;
    border-radius: 14px;
}

.bb-topic-action-btn {
    cursor: pointer;
    border-radius: 12px;
    background: white;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 0 12px clamp(5px, 0.7vw, 20px);
    font-weight: 600;
    font-size: clamp(16px, 1.2vw, 24px);
    transition: background-color ease .3s, color ease .3s;
    position: relative; /* Make the button a containing block */
    overflow: hidden; /* Clip the pseudo-element to the button's bounds */
}

.bb-topic-action-btn-wrapper.disabled,
.bb-topic-action-btn.disabled,
.bb-topic-action-btn-wrapper:has(.bb-topic-action-btn.disabled) {
    pointer-events: none;
    cursor: default;
}

.bb-topic-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #8705FD 0, #2B4CE5 100%);
    transition: opacity ease .3s;
    opacity: 0; /* Start with the gradient hidden */
    z-index: 0; /* Place the gradient behind the text */
}

.bb-topic-action-btn:hover::before {
    opacity: 1; /* Show the gradient on hover */
}

.bb-topic-action-btn:hover {
    color: white; /* Change the text color on hover */
}

.bb-topic-action-btn span {
    transition: transform ease .3s;
}

.bb-topic-action-btn:hover span {
    transform: scale(1.1) translate(5%, 5%);
}

.bb-topic-action-btn > * {
    position: relative; /* Ensure the content is above the pseudo-element */
    z-index: 1;
}

.bb-topic-action-btn .bb-topic-action-btn-icon {
    display: block;
}

.bb-topic-action-btn .bb-topic-action-btn-icon-alt {
    display: none;
}

.bb-topic-action-btn:hover .bb-topic-action-btn-icon-alt {
    display: block;
    transform: scale(1.1);
}

.bb-topic-action-btn:hover .bb-topic-action-btn-icon {
    display: none;
}

.bb-topic-action-btn img {
    width: 40px;
    height: 40px;
}

.bb-wizard-nav-buttons {
   /* width: 90%;
    display: flex;
    position: relative;
    align-items: center;
    justify-content: space-between;*/

    /*margin: 40px 0 40px 0;*/
    font-size: clamp(16px,1.2vw,22px);
    font-weight: var(--bold-font-weight);
    width: 70%;
    position: relative;
}

.bb-lesson-wizard-coontainer .bb-wizard-nav-buttons {
    width: 90%;
}

.bb-wizard-nav-buttons button {
    position: absolute;
}

.bb-wizard-next-btn {
    padding: 16px 32px 16px 32px;
    left: 50%; 
    transform: translateX(-50%);
}

.bb-wizard-next-btn:active {
    transform: translateX(-50%) scale(0.98);
    box-shadow: 0px 3.86px 3.86px 0px #00000040 inset;
}

.bb-wizard-prev-btn {
    color: var(--fuschia);
    display: flex;
    align-items: center;
    gap: 10px;
    outline: none;
    border: none;
    background: none;
    transform: translateY(50%);
}

.bb-wizard-prev-btn:disabled { 
    pointer-events: none;
    cursor: default;
    color: var(--disabled-btn-color);
}

.bb-wizard-prev-btn img {
    width: 11px;
}

.bb-chat-menu-items-container {
    display: none;
    justify-content: space-between;
    padding: clamp(1rem, -0.0563rem + 4.2254vw, 4rem);
    width: 100%;
}

.bb-arrow-internal-menu{
    width: 25px; 
    height: 25px;
}

.bb-rotate {
    transform: rotate(180deg);
}

.bb-chat-vectors {
    width: 32px;
    height: 32px;
    object-fit: none;
}

.topics-section > .topics-sections-actions-container{
    margin-top: 5%;
}

.topics-sections-actions-container {
    display: flex;
    width: 100%;
}

.bb-close-flyout{
    display: none;
}

.overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(211, 211, 211, 0.7); /* Light grey color with transparency */
    z-index: 2; /* Below the flyout container */
    display: none; /* Hidden by default */
}

.bb-flyout-chat-menu-visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) !important;
}

/* confirm modal */
.bb-confirm-modal .avatar {
    width: clamp(56px, 5vw, 96px);
    height: clamp(83px, 7.4vw, 140px);
}

.bb-confirm-modal .confirm-text {
    color: var(--fuschia);
    font-weight: var(--bold-font-weight);
    font-size: clamp(16px, 1.3vw, 26px);
    text-align: center;
    padding: 0 20px 0 20px;
}

.bb-confirm-modal .secondary-text {
    margin: 0;
    color: var(--black);
    font-weight: var(--bold-font-weight);
    font-size: clamp(14px, 1vw, 18px);
    text-align: center;
    padding: 0 20px 0 20px;
}

.bb-modal-confirm-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.bb-modal-confirm-buttons button {
    border: none;
    outline: none;
    width: fit-content;
    font-size:clamp(14px,1vw,20px);
    font-weight: var(--bold-font-weight);
    background: transparent;
}

.bb-modal-confirm-buttons .confirm {
    padding: 14px 26px;
    border-radius: 30px;
    background: var(--light-blue);
    color: white;
}

.bb-modal-confirm-buttons .cancel {
    color: var(--light-blue);
    font-size: clamp(14px,0.9vw,18px);
    text-decoration: underline;
    text-underline-offset: 1.5px;
    text-decoration-skip-ink: none;
}

.bb-modal-input {
    max-width: 85%;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid grey;
    margin: 15px 0 22px 0;
}
.bb-modal-input:focus {
    outline: none;
}

.record-button, .attach-button {
    display: none;
}

.bb-main-section-wrapper {
    max-width: 80%;
    /*flex: 1;*/
    /*display: flex;*/
    /*flex-direction: column;*/
    /*align-items: center;*/
    height: 100%;
    width: 100%;
    justify-content: center;
    margin: auto;
    /*margin-top: 3%;*/
}

.bb-chat-services-container {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 45px;
}

.bb-chat-services-container .bb-services-wrapper {
    gap: 50px max(15px, 3vw);
}

.bb-looking-chat-services {
    width: 125px;
}

.bb-chat-services-container .bb-services-title {
    font-size: clamp(18px, 1.2vw, 25px);
}

.bb-chat-services-container .bb-service-card-image {
    display: none;
}

.bb-chat-services-container .bb-service-card-description {
    min-height: 100px;
}

@media (min-width:1000px) and (max-width:1600px) {
    .bb-main-section-wrapper {
        /*margin-top: 10%;*/
    }
}

@media screen and (max-width:1250px) {
    .bb-chats-history-container {
        /*min-height: 60%;*/
    }

    .bb-chat-menu-items-container {
        display: flex;
    }

    .bb-chat-new-chat-section {
        display: none;
    }

    .bb-chat-topics-side-section {
        padding: max(0vw, 15px) max(0vw, 0px);
        display: none;
    }

    .bb-close-flyout {
        display: flex;
    }

    .bb-chat-new-chat-section {
        display: flex;
        height: calc(100svh - clamp(75px, 15vw, 120px));
        width: 60%;
        position: fixed;
        z-index: 3;
        left: 0;
        overflow-x: hidden;
        opacity: 0;
        visibility: hidden;
        transform: translateX(-100%);
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    }

    .bb-chat-topics-side-section {
        display: flex;
        height: 100%;
        width: 60%;
        position: fixed;
        z-index: 3;
        right: 0;
        overflow-x: hidden;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transform: translateX(100%);
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    }

    .bb-chat-new-chat-section .topics-section,
    .bb-conversations-actions {
        padding: 0px 10px;
    }

    .bb-chats-history-container {
        width: 85%;
    }

    .bb-topic-action-btn {
        justify-content: center;
        padding: 12px 0 12px 0;
    }

    .bb-topic-action-btn-wrapper {
        width: 60%;
    }

    .bb-topic-action-btn > span {
        font-size: 18px;
    }

    .bb-main-section-wrapper:has(.chat-container) {
        display: flex;
        flex-direction: column;
    }
    
}

@media screen and (max-width: 1050px) {
    .bb-chat-container {
        height: calc(100svh - 70px - var(--header-margin-top));
        margin-top: calc(70px + var(--header-margin-top));
    }
}


@media screen and (max-width:950px){
    .bb-main-section-wrapper {
        justify-content: unset;
    }


    .bb-chats-history-container {
        /*height: 70%;*/
    }

}

@media screen and (max-width: 850px) {

    .bb-chat-new-chat-section {
        width: 80%;
    }

    .bb-chat-topics-side-section {
        width: 80%;
    }

    .bb-main-section-wrapper{
        max-width: unset;
    }

    .bb-chats-history-container {
        /*height: 75%;*/
    }
}

@media screen and (min-width: 768px) and (max-width: 848px) {
    header .bb-login-btn {
        margin-inline: max(4vw, 20px);
    }
    .bb-chat-menu-items-container {
        /*margin-top: 30px;*/
    }
    /*.bb-navbar ul {
        padding-left: max(3vw, 15px);
    }*/
}

@media screen and (max-width: 768px) {
    .bb-main-section-wrapper {
        display: flex;
        flex-direction: column;
    }

    .bb-wizard-nav-buttons,
    .bb-wizard-nav-buttons button {
        position: initial;
        transform: initial;
    }

        .bb-wizard-nav-buttons button:active {
            transform: scale(0.98);
        }

        .bb-wizard-nav-buttons.first-tab {
            justify-content: center;
        }

    .bb-wizard-nav-buttons {
        display: flex;
        justify-content: space-between;
        width: 90%;
    }

    .bb-chat-container {
        margin-top: clamp(70px, 10vw, 120px);
        height: calc(100svh - clamp(70px, 10vw, 120px));
    }

    .bb-chat-new-chat-section {
        height: calc(100svh - clamp(70px, 10vw, 120px));
    }
    .bb-conversations-action {
        padding: 18px 12px;
    }
}

@media screen and (max-width: 486px) {
    .bb-topic-action-btn-wrapper {
        width: 80%;
    }
    .bb-wizard-nav-buttons {
        width: 98%;
    }
}