

#nstatus {
    position: absolute;
    bottom: 16px;
    right: 16px;
    padding: 16px;
    background-color: white;
    color: black;
}


#n_container {
    position: fixed;
    overflow: hidden;
    z-index: 9997;
    bottom: 20px;
    right: 20px;
    border-radius: 12px;
    border: 1px solid #eaeaea;
    padding: 0;
    margin: 0;
    /* transition: height 0.3s ease, width 0.3s ease; */
    transition: opacity 0.3s ease;
    opacity: 0;
    background-color: transparent;
    display: none;
    flex-direction: column;
    width: 380px;
    height: 650px;

    /* box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.2); */
}

@media (max-width: 767px) {
    #n_container {
        width: 100%;
        height: 100%;
        bottom:0;
        right: 0;
        border:0;
        border-radius:0;
    }
}

/**
* TOOLBAR
*/

#n_toolbar {
    z-index: 9999;
    width: 100%;
    min-height: 66px;
    overflow: hidden;
    /* border-bottom: 2px solid lightgrey; */
    display: flex;
    align-items: center;
    flex-direction: row;
    background-color: #eaeaea;
    color: black;
    padding: 8px;
    /* box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.2); */
}

#n_toolbar_avatar {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-grow: 1;
}

#n_toolbar_avatar_details {
    color: black;
    line-height: 1em;
    font-size: large;
}

#n_toolbar_avatar img {
    width: 50px;
    height: 50px;
    border-radius: 25px;
    margin-right: 8px;
}

#n_toolbar_button {
    cursor: pointer;
    margin-left: auto;
    padding: 0 12px;
    color: black;
}

#n_toolbar_button_close {
    cursor: pointer;
    padding: 0 12px;
    color: black;
}


#n_toolbar_icon {
    z-index: 9999;
    width: 55px;
    /* height: 60px; */
    position: fixed;
    cursor: pointer;
    bottom: -70px;
    right: 20px;
    transition: bottom 0.7s cubic-bezier(0.68, -0.35, 0.27, 1.55), opacity 0.4s ease-out;
    

    /* background-image: url("../assets/nimbus-chat-icon.svg");
    background-size: contain; */
}

/* #n_toolbar_icon svg {
    filter: drop-shadow(0px 0px 4px rgba(0, 0, 0, 0.2));
} */


@media (max-width: 767px) {
    #n_toolbar_avatar_details {
        font-size: large;
    }
}

.icons {
    font-size: 22px;
}


/**
* CHAT
**/


#n_chat {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    /* Let this grow to fill the remaining space */
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.6);
    /* Semi-transparent color */
    backdrop-filter: blur(40px);
    /* Apply the blur effect */
    -webkit-backdrop-filter: blur(40px);
    /* For Safari support */
    /* border: 3px solid rgba(0, 0, 0, 0.5); */
    /* border-bottom: 0; */
}


#n_chat_content {
    flex-grow: 1;
    /* This allows it to take all remaining space */
    overflow-y: scroll;
    /* If content overflows, make it scrollable */

}

#n_chat_toolbar {
    z-index: 9998;
    /* position: fixed; */
    /* bottom: 40px; */
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 12px;
    margin-top: auto;
}

.n_loader {
    width: 30px;
    aspect-ratio: 4;
    --_g: no-repeat radial-gradient(circle closest-side, #ffffff 90%, #ffffff00);
    background:
        var(--_g) 0% 50%,
        var(--_g) 50% 50%,
        var(--_g) 100% 50%;
    background-size: calc(100%/3) 100%;
    animation: l7 1s infinite linear;
}

@keyframes l7 {
    33%{background-size:calc(100%/3) 0%  ,calc(100%/3) 100%,calc(100%/3) 100%}
    50%{background-size:calc(100%/3) 100%,calc(100%/3) 0%  ,calc(100%/3) 100%}
    66%{background-size:calc(100%/3) 100%,calc(100%/3) 100%,calc(100%/3) 0%  }
}

#n_chat_textarea {
    width: 100%;
    min-height: 40px;
    /* Minimum height */
    max-height: 200px;
    /* Maximum height */
    overflow-y: auto;
    /* Scrollbar appears after reaching max-height */
    border: 3px solid #ccc;
    border-radius: 8px;
    resize: none;
    outline: none;
    box-sizing: border-box;
    /* Include padding and border in height calculations */
    font-weight: 400;
    line-height: 1.3em;
    transition: border-color 0.3s ease;
    box-shadow: none !important;
}

@media (max-width: 767px) {
    #n_chat_textarea {
        font-size: 18px;
    }
}

/*
    Chat Bubbles
*/

.n_bubble_container {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
}

.n_bubble_user {
    max-width: 75%;
    margin: 16px;
    padding: 12px;
    background-color: #f0efef;
    color: #333;
    border-radius: 6px;
}

.n_bubble_chatbot {
    max-width: 75%;
    margin: 16px 16px 16px auto;
    padding: 12px;
    background-color: #dcdcdc;
    color: #333;
    border-radius: 6px;
    white-space: pre-wrap;
    /* Preserves existing line breaks and spaces */
    word-wrap: break-word;
    /* Ensure long words break at spaces */
    overflow-wrap: break-word;
    /* Allow text to wrap naturally */
}

.n_bubble_chatbot a {
    display: inline;
    white-space: normal;
    /* Ensure links behave like normal inline text */
    word-break: break-word;
    /* Allow long links/words to break naturally */
    overflow-wrap: break-word;
    color: inherit;
    font-weight: bold;
    /* Break long words or URLs */
    /* color: #808080;
    text-decoration: none; */
    
}

.n_bubble_chatbot a:hover {
    text-decoration: underline;
    font-weight: bold;
}

@media (max-width: 767px) {
    .n_bubble_user, .n_bubble_chatbot {
        font-size: 20px;
    }
}

