/*.nk-content {*/
/*    padding-top: 0;*/
/*}*/

.fa-2x {
    font-size: 1.5em;
}

.chat_files {
    display: flex;
    overflow-x: scroll;
    /*margin-top: 30px;*/
}

.file_box {
    background: rgb(250 245 255);
    border-radius: 6px;
    border: 1px solid rgb(238, 238, 238);
    display: inline-flex;
    max-width: 250px;
}

.file_name {
    text-overflow: ellipsis;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
    display: inline-block;
}

.file_name em {
    position: relative;
    top: 3px !important;
}

.app {
    color: #2f2f2f;
    position: relative;
    overflow: hidden;
    /*top: 10px;*/
    height: calc(100dvh - 0px);
    margin: auto;
    padding: 0;
    /*border: 1px solid #e9e9e9;*/
    border-radius: 24px; /*0.375rem;*/
}

.app-one {
    height: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, .06), 0 2px 5px 0 rgba(0, 0, 0, .2);
}

.chat_footer {
    position: relative;
    bottom: -5px;
}

.side {
    padding: 0;
    margin: 0;
    border-right: 1px solid rgba(0, 0, 0, .08);
    display: contents;
}
.side-one {
    padding: 0;
    margin: 0;
    height: 100%;
    min-height: calc(100vh - 300px);
    max-height: 700px;
    width: 100%;
    z-index: 1;
    position: relative;
    display: block;
    top: 0;
}

.side-two {
    padding: 0;
    margin: 0;
    height: calc(100% + 40px);
    width: 100%;
    z-index: 1050;
    position: absolute; /*relative;*/
    left: -100%;
    -webkit-transition: left 0.3s ease;
    transition: left 0.3s ease;

}

.side-three {
    padding: 0;
    margin: 0;
    height: calc(100% + 40px);
    width: 100%;
    z-index: 1050;
    position: absolute;
}

.close-side-three {
    cursor: pointer;
}

.heading {
    margin: 0;
    height: 60px;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid #f7f7f7;
}

.heading-avatar {
    padding: 0;
    cursor: pointer;

}

.heading-avatar-icon img {
    border-radius: 50%;
    height: 40px;
    width: 40px;
}

.heading-name {
    /*padding: 0 !important;*/
    cursor: pointer;
}

.heading-name-meta {
    font-weight: 700;
    font-size: 100%;
    padding: 5px;
    padding-bottom: 0;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
    /*color: #000;*/
    display: inline-block;
    overflow-x: hidden;
    width: 100%;
    /*margin-top: 3px;*/
}
.heading-online {
    padding: 0 5px;
    font-size: 12px;
    top: -18px;
    color: #2be296;
    position: relative;
}
.heading-compose {
    padding: 0;
}

.heading-compose i {
    text-align: center;
    padding: 5px;
    cursor: pointer;
}

.heading-dot {
    /*padding: 0;*/
}

.heading-dot i {
    text-align: right;
    cursor: pointer;
}

.searchBox {
    padding: 0 !important;
    margin: 0 !important;
    height: 60px;
    width: 100%;
}

.searchBox-inner {
    height: 100%;
    width: 100%;
    padding: 10px !important;
    background-color: #fbfbfb;
}

.searchBox-inner input:focus {
    outline: none;
    border: none;
    box-shadow: none;
}

.sideBar {
    padding: 0 !important;
    margin: 0 !important;
    background-color: #fff;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid #f7f7f7;
    height: calc(100% - 60px); /* 120px */
}

.sideBar-body {
    position: relative;
    padding: 10px !important;
    border-bottom: 1px solid #f7f7f7;
    /*height: 72px;*/
    margin: 0 !important;
    cursor: pointer;
}

.sideBar-body:hover {
    background-color: #f2f2f2;
}

.sideBar-body-active {
    background-color: #f2f2f2;
}

.sideBar-avatar {
    text-align: center;
    padding: 0 !important;
}

.avatar-icon img {
    border-radius: 50%;
    height: 49px;
    width: 49px;
}

.sideBar-main {
    padding: 0 !important;
}

.sideBar-main .row {
    padding: 0 !important;
    margin: 0 !important;
}

.sideBar-name {
    padding: 0 10px !important;
}

.name-meta {
    font-size: 100%;
    padding: 1% !important;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #000;
    display: inline-block;
    overflow: hidden;
    width: 100%;
}

.sideBar-time {
    padding: 10px !important;
}

.time-meta {
    text-align: right;
    font-size: 12px;
    padding: 1% !important;
    color: rgba(0, 0, 0, .4);
    vertical-align: baseline;
}

/*New Message*/

.newMessage {
    padding: 0 !important;
    margin: 0 !important;
    height: 100%;
    position: relative;
    left: -100%;
}
.newMessage-heading {
    margin: 0 !important;
    height: 60px; /*100px;*/
    width: 100%;
    background-color: #242424;
    z-index: 1001;
}

.newMessage-main {
    padding: 0px 15px 0px 15px !important;
    margin: 0 !important;
    height: 60px;
    width: 100%;
    z-index: 1001;
    color: #fff;
}

.newMessage-title {
    font-size: 16px;
    font-weight: 700;
    padding: 18px 5px !important;
}
.newMessage-back {
    text-align: center;
    vertical-align: baseline;
    padding: 18px 5px !important;
    cursor: pointer;
}
.newMessage-back i {
    margin: auto !important;
}

.composeBox {
    padding: 0 !important;
    margin: 0 !important;
    height: 60px;
    width: 100%;
}

.composeBox-inner {
    height: 100%;
    width: 100%;
    padding: 10px !important;
    background-color: #fbfbfb;
}

.composeBox-inner input:focus {
    outline: none;
    border: none;
    box-shadow: none;
}

.compose-sideBar {
    padding: 0 !important;
    margin: 0 !important;
    background-color: #fff;
    overflow-y: auto;
    border: 1px solid #f7f7f7;
    height: 100%; /*calc(100% - 160px);*/
    max-height: calc(100vh - 50px);
}

/*Conversation*/

.conversation {
    padding: 0 !important;
    margin: 0 !important;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.message {
    padding: 0 !important;
    margin: 0 !important;
    background-size: cover;
    overflow-y: scroll;
    flex: 1;
    flex-direction: column;
    /*border-bottom: 1px solid #f7f7f7;*/
    /*min-height: calc(100% - 330px);*/
    /*max-height: calc(100% - 210px);*/
    /*height: calc(100% - 60px);*/
}

.message-with-files {
    /*max-height: calc(100% - 265px);*/
}

.message-previous {
    margin : 0 !important;
    padding: 0 !important;
    height: auto;
    width: 100%;
}
.previous {
    font-size: 15px;
    text-align: center;
    padding: 10px !important;
    cursor: pointer;
}

.previous a {
    text-decoration: none;
    font-weight: 700;
}

.message-body {
    margin: 0 !important;
    /*padding: 0 !important;*/
    width: 100%; /*was auto*/
    height: auto;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.message-main-receiver {
    padding: 15px 0;
}

.message-main-sender {
    padding: 5px 0 !important;
    margin-left: auto !important;
    max-width: 85%;
    /*text-align: right;*/
}

.message-text {
    margin: 0 !important;
    padding: 5px !important;
    word-wrap:break-word;
    font-weight: 200;
    font-size: 14px;
    padding-bottom: 0 !important;
    /*color: #1b1b1b;*/
    white-space: normal; /* break-spaces */
}

.message-text pre {
    border-radius: 12px;
    background-color: #000000;
}

.message-text .hljs {
    margin-top: 40px;
    margin-bottom: 10px;
    border-top: 1px solid #464343;
}

.message-text .language_name {
    color: #83878F;
    top: 10px;
    position: absolute;
}

.typewriter {
    display: inline;
    overflow: hidden;
    border-right: .22em solid #1a1a1a;
    animation:
            typing 3.5s steps(40, end),
            blink-caret .75s step-end infinite;
}

/* The typing effect */
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

/* The typewriter cursor effect */
@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #1a1a1a; }
}

.message-text h1, .message-text h2, .message-text h3, .message-text h4, .message-text h5, .message-text h6, .message-text pre {
    margin-top: 20px;
    margin-bottom: 20px;
}

.message-text ol, .message-text ul  {
    white-space: normal !important;
    margin-top: 20px;
    margin-bottom: 20px;
}

.message-text ol li, .message-text ul li {
    white-space: normal !important;
}

.message-text ol:not(:first-child), .message-text ul:not(:first-child) {

}

.chat_audio {
    width: 300px;
    height: 30px;
}

.elapsed-time {
    color: #191919; /*#e8e8e8;*/
    padding: 2px 10px;
    border-radius: 12px;
    position: relative;
}

.chat_model_image {
    position: relative;
    top: -1px;
}

.message-text iframe {
    width: 100%
}

.message-time {
    margin: 0 !important;
    margin-left: 5px !important; /* was 50 */
    margin-top: 20px !important;
    font-size: 12px;
    text-align: right;
    color: #9a9a9a;

}

.receiver {
    width: 100% !important;
    max-width: inherit;
    padding: 4px 10px 7px !important;
    border-radius: 10px 10px 10px 0;
    background: #f4f4f4;
    font-size: 12px;
    word-wrap: break-word;
    display: inline-block;
}

.sender {
    float: right;
    width: auto !important;
    min-width: 140px;
    max-width: inherit;
    background: #e9e9e9; /* #dcf8c6;*/
    border-radius: 10px 10px 0 10px;
    padding: 4px 10px 7px !important;
    font-size: 12px;
    display: inline-block;
    word-wrap: break-word;
}


/*Reply*/

.reply {
    min-height: 80px;
    max-height: 385px;
    width: 100%;
    padding: 10px 13px !important;
    margin: 0 !important;
    z-index: 999;
    /*position: absolute;*/
    bottom: 0;
    background-color: #fff;
}

.reply-emojis {
    padding: 4px 4px 0 4px !important;
}

.reply-emojis i {
    text-align: center;
    padding: 5px 5px 5px 5px !important;
    cursor: pointer;
}

.reply-recording {
    padding: 4px 4px 0 4px !important;
}

.reply-recording i {
    text-align: center;
    padding: 5px !important;
    cursor: pointer;
}

.reply-send {
    padding: 4px 4px 0 4px !important;
}

.reply-send i {
    text-align: center;
    padding: 5px !important;
    cursor: pointer;
}

.reply-send-absolute {
    padding: 6px 5px 0px 5px !important;
    position: absolute;
    top: 0;
    right: 5px;
}

.reply-send-absolute i {
    text-align: center;
    padding: 5px !important;
    cursor: pointer;
}

.reply-main {
    padding: 0 0 !important;
    position: relative;
    background: #f6f6f6;
    border-radius: 0.375rem;
    border: 1px solid #e9e9e9;
}

.reply-main textarea {
    width: 100%;
    resize: none;
    /*overflow: scroll;*/
    outline: none;
    border: none;
    box-shadow: none;
    height: 36px; /*100%;*/
    max-height: 160px;
    font-size: 16px;
    min-height: 64px;
    box-sizing: border-box;
    border-radius: 0.375rem 0.375rem  0 0;
}

.reply-main textarea:focus {
    outline: none;
    border: none;
    box-shadow: none;
}

.reply-main textarea::placeholder {
    color: #727272;
}
.icon-spinner {
    animation: spin-animation 1s infinite;
    animation-timing-function: linear;
    display: inline-block;
}

@keyframes spin-animation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(359deg);
    }
}

.circle-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1.3rem;
    height: 1.3rem;
    border: 1px solid transparent;
    border-top: 1px solid #3498db;
    border-radius: 50%;
    animation: circle-spin 2s linear infinite;
}

@keyframes circle-spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@media screen and (max-width: 700px) {
    .app {
        /*top: 0;*/
        /*height: 100%;*/
    }
    .heading {
        height: 60px;
        /*padding-top: 5px;*/
    }
    .heading-name-meta {
        /*margin-top: 7px;*/
    }
    .fa-2x {
        /*font-size: 1.8em !important;*/
    }
    .heading-avatar {
        padding: 0 !important;
    }
    .heading-avatar-icon img {
        height: 50px;
        width: 50px;
    }
    .heading-compose {

    }
    .heading-compose i {
        cursor: pointer;
    }
    .heading-dot {
        margin-top: 5px;
    }
    .heading-dot i {
        cursor: pointer;
    }
    .sideBar {
        height: calc(100% - 130px);
    }
    .sideBar-body {
        /*height: 80px;*/
    }
    .sideBar-avatar {
        text-align: left;
        padding: 0 8px !important;
    }
    .avatar-icon img {
        height: 55px;
        width: 55px;
    }
    .sideBar-main {
        padding: 0 !important;
    }
    .sideBar-main .row {
        padding: 0 !important;
        margin: 0 !important;
    }
    .sideBar-name {
        padding: 0px 5px !important;
    }
    .name-meta {
        font-size: 16px;
        padding: 5% !important;
    }
    .sideBar-time {
        padding: 10px !important;
    }
    .time-meta {
        text-align: right;
        font-size: 14px;
        padding: 4% !important;
        color: rgba(0, 0, 0, .4);
        vertical-align: baseline;
    }
    /*Conversation*/
    .conversation {
        padding: 0 !important;
        margin: 0 !important;
        /*border-left: 1px solid rgba(0, 0, 0, .08);*/
    }
    .message {
        /*height: calc(100% - 140px);*/
    }
    .reply {
    }
    .reply-emojis {
    }
    .reply-emojis i {
        padding: 5px 2px !important;
    }
    .reply-main {
    }
    .reply-main textarea {
        font-size: 14px;
    }
    .reply-recording {
    }
    .reply-recording i {
        padding: 5px 0 !important;
    }
    .reply-send {
    }
    .reply-send i {
        padding: 5px 2px 5px 0 !important;
    }

    .reply-send-absolute {
        padding: 5px 10px !important;
    }
    .reply-send-absolute i {
        padding: 5px 2px 5px 0 !important;
    }
}

/* loader */
.message-spinner {
    display: flex;
    justify-content: space-between;
}

.receiver-spinner {
    width: 100% !important;
}

.ainisa_tool_spinner {
    width: 14.2px;
    height: 14.2px;
    animation: spinner-y0fdc1 2s infinite ease;
    transform-style: preserve-3d;
}

.ainisa_tool_spinner > div {
    background-color: rgba(130,77,215,0.2);
    height: 100%;
    position: absolute;
    width: 100%;
    border: 1px solid #824dd7;
}

.ainisa_tool_spinner div:nth-of-type(1) {
    transform: translateZ(-5.6px) rotateY(180deg);
}

.ainisa_tool_spinner div:nth-of-type(2) {
    transform: rotateY(-270deg) translateX(50%);
    transform-origin: top right;
}

.ainisa_tool_spinner div:nth-of-type(3) {
    transform: rotateY(270deg) translateX(-50%);
    transform-origin: center left;
}

.ainisa_tool_spinner div:nth-of-type(4) {
    transform: rotateX(90deg) translateY(-50%);
    transform-origin: top center;
}

.ainisa_tool_spinner div:nth-of-type(5) {
    transform: rotateX(-90deg) translateY(50%);
    transform-origin: bottom center;
}

.ainisa_tool_spinner div:nth-of-type(6) {
    transform: translateZ(5.6px);
}

@keyframes spinner-y0fdc1 {
    0% {
        transform: rotate(45deg) rotateX(-25deg) rotateY(25deg);
    }

    50% {
        transform: rotate(45deg) rotateX(-385deg) rotateY(25deg);
    }

    100% {
        transform: rotate(45deg) rotateX(-385deg) rotateY(385deg);
    }
}

@keyframes textShine {
    0% {
        background-position: 0 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

.tool-is-running-text {
    font-weight: normal;
    margin: 5px;
    background: linear-gradient(
            to right,
            #7953cd 20%,
            #00affa 30%,
            #0190cd 70%,
            #764ada 80%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
    background-size: 500% auto;
    animation: textShine 5s ease-in-out infinite alternate;
}

.dropzone-container {
    /*border: 1px dashed #9e9e9e;*/
    opacity: 0.5;
}


.scroll_down_container {
    position: relative;
}

#scroll_down_button {
    position: absolute;
    top: -60px;
}


.ai_models_dropdown {
    background-color: rgb(208 193 239) !important;
    cursor: pointer;
    padding: 3px;
}

.realtime_chat_background {
    width: 100%;
    height: 100vh;
    background-color: rgb(255, 242, 253, 0.95);
    position: absolute;
    z-index: 9999;
    top: 0;
    left: 0;
}

.ainisa_first_loading {
    width: 100%;
    height: 100vh;
    position: absolute;
    z-index: 9999;
    top: 0;
    left: 0;
}

.ain_progress {
    width: 64px;
    height: 10.6px;
    border-radius: 9.6px;
    color: #474bff;
    border: 1px solid;
    position: relative;
}

.ain_progress::before {
    content: "";
    position: absolute;
    margin: 1px;
    inset: 0 100% 0 0;
    border-radius: inherit;
    background: currentColor;
    animation: progress-pf82op 2s infinite;
}

@keyframes progress-pf82op {
    100% {
        inset: 0;
    }
}

@keyframes hypnotic-ds34hk {
    100% {
        transform: rotate(calc(var(--s,1)*1turn));
    }
}

.ain_atom {
    position: relative;
    display: flex;
    width: 25px;
    height: 25px;
    align-items: center;
    justify-content: center;
}
.ain_atom:before {
    content: "";
    position: absolute;
    width: 3px;
    height: 3px;
    background: transparent;
    box-shadow: inset 0 0 10px #ecaf6a;
    border-radius: 50%;
}
.ain_line {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.7;
}
.ain_line1 {
    --color: #06d6a0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border-bottom: 3px solid var(--color);
    border-top: 3px solid var(--color);
    animation: animate1 2s linear infinite;
    filter:drop-shadow( 0 0 10px var(--color));
}
@keyframes animate1 {
    0% {
        transform: rotateY(70deg) rotateZ(0deg);
    }
    100% {
        transform: rotateY(70deg) rotateZ(360deg);
    }
}

.ain_line2 {
    --color: #7339e6;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border-right: 3px solid var(--color);
    border-left: 3px solid var(--color);
    animation: animate2 3s linear infinite;
    filter:drop-shadow( 0 0 10px var(--color));
}
@keyframes animate2 {
    0% {
        transform: rotateX(80deg) rotateY(25deg) rotateZ(0deg);
    }
    100% {
        transform: rotateX(80deg) rotateY(25deg) rotateZ(360deg);
    }
}

.ain_line3 {
    --color: #1177fc;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border-right: 3px solid var(--color);
    border-left: 3px solid var(--color);
    animation: animate3 3s linear infinite;
    filter:drop-shadow( 0 0 10px var(--color));
}

@keyframes animate3 {
    0% {
        transform: rotateX(-80deg) rotateY(25deg) rotateZ(0deg);
    }
    100% {
        transform: rotateX(-80deg) rotateY(25deg) rotateZ(360deg);
    }
}

.spinner {
    display: inline-block;
    animation: spin 1s linear infinite; /* Continuous spinning animation */
}

@keyframes spin {
    0% { transform: rotate(0deg); }   /* Start at 0 degrees */
    100% { transform: rotate(360deg); } /* Complete a full rotation */
}

/* Colors */
.heading-bg-color {
    background-color: #1b1b1b;
}

.heading-text-color {
    color: #fff;
}