:root {
    
    --darker-gray: #101011;
    --light-gray: #292929;
    
    --input-bg: #252525;            /* Input Background */
    --model-btn-bg: #333333;        /* Model Button */
    --model-dropup-bg: #252525;     /* Model Button */
    --btn-hover: #3b3b3b;
    --black: #000000;               /* Black */

    --bg: #161718;                  /* Background */
    --border: #3a3a3e;              /* Border */

    --text1: #f8f9fa;               /* Text1 */
    --text2: #b4b4b4;               /* Text2 */
    --text3: #696969;               /* Text3 */
    --gray4: #4d4d4d;               /* Text3 */
}

body {
    background-color: var(--bg);
    border-color: var(--border);
    margin: 0;
    padding: 0;
    color: var(--text1);
    overflow-y: scroll; 
}


body::-webkit-scrollbar {
  width: 12px;
}

body::-webkit-scrollbar-track {
  background: var(--bg);
  border-radius: 10px;
}

body::-webkit-scrollbar-thumb {
  background-color: var(--border);
  border-radius: 10px;
  border: 3px solid var(--bg);
}

body::-webkit-scrollbar-thumb:hover {
  background-color: var(--text1);
}


p {
    padding: 0;
    margin: 0;
    font-size: 16px;
}

button, button:hover, button:focus, button:active{
    border: none;
    outline: none;
    box-shadow: none;
}

.loadingscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg);
    color: var(--text1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 1s ease;
}

.loadingscreen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loadingscreen i {
    font-size: 30px;
}

.site {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.content {
    width: 750px;
}

.input-banner {
    position: fixed;
    bottom: 25px;
    display: flex;
    justify-content: center;
    width: 750px;
    height: 115px;
    border: 1px solid var(--border);
    border-radius: 25px;
    background-color: var(--input-bg);
    box-sizing: border-box;
    z-index: 4;
}

.hide {
    position: fixed;
    display: flex;
    justify-content: center;
    bottom: 0px;
    width: 750px;
    height: 80px;
    background-color: var(--bg);
    z-index: 2;
}

.input-input {
    width: 750px;
    padding: 10px 10px;
    padding-bottom: 0px;
    padding-left: 20.25px;
    padding-right: 20.25px;
    position: fixed;
    bottom: 85px;
}

.input-input textarea, .input-input textarea:focus, .input-input textarea:hover, .input-input textarea:active{
    color: var(--text1);
    display: flex;
    outline: none;
    border: none;
    background: none;
    resize: none;
    width: 707.5px;
    overflow-x: hidden;
    font-size: 17.5px;
    box-sizing: border-box;
    overflow-y: hidden;
    font-family: Arial, Helvetica, sans-serif, sans-serif;
    height: 40px;
    line-height: 1.3;
    max-height: 150px;
}

.input-input textarea::placeholder {
    color: var(--text2);
    display: flex;
    outline: none;
    border: none;
    background: none;
    resize: none;
    width: 707.5px;
    overflow-x: hidden;
    font-size: 17.5px;
    line-height: 1.3;
}

.input-input textarea::-webkit-scrollbar {
    width: 0px;
    height: 0px;
}

.input-input textarea {
    scrollbar-width: 1px;
    -ms-overflow-style: var(--black);
}

.input-banner .bottom {
    position: absolute;
    bottom: 0px;
    width: 750px;
    padding: 10px 10px;
    padding-top: 5px;
    padding-left: 20.25px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.input-banner .bottom .metabtn{
    height: 40.5px;
    border-radius: 50px;
    width: 40.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--text1);
}

.input-banner .bottom .metabtn:disabled{
    height: 40.5px;
    border-radius: 50px;
    width: 40.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--text3);
}

.input-banner .bottom button#addfilebtn{
    background: none;
    padding: 0;
    width: auto;
}
.input-banner .bottom button#addfilebtn svg{
    fill: var(--text1);
}

.input-banner .bottom button#addfilebtn:disabled svg {
  fill: var(--text3);
}

.dropdown-toggle, .dropdown-toggle.show, .dropdown-toggle:hover, .dropdown-toggle:focus, .dropdown-toggle:active, .dropdown-toggle:not(:disabled):not(.disabled):active, .dropdown-toggle:not(:disabled):not(.disabled).active {
    width: 175px;
    border: 1px solid;
    border-color: var(--border);
    background-color: var(--model-btn-bg);
    color: var(--text1);
    font-size: 15px;
    font-weight: 500;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 25px;
    outline: none;
    background-color: var(--model-btn-bg) !important;
    color: var(--text1) !important;
    box-shadow: none !important;
    appearance: none;
}


.dropdown-toggle svg {
    width: 20px;
    height: 20px;
    display: block;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.dropdown-menu {
    width: 225px;
    height: 215px;
    border-color: var(--border);
    background-color: var(--model-dropup-bg);
    border-radius: 15px;
    overflow-y: auto;
    scrollbar-width: none;
}

.dropdown-menu::-webkit-scrollbar {
    display: none;
}

.dropdown-item, .dropdown-item:hover {
    display: flex;
    width: calc(100% - 10px);
    gap: 15px;
    align-items: center;
    color: var(--text1);
    background-color: var(--gray);
    font-size: 14px;
    padding: 7px 12px;
    border-radius: 5px;
    margin-left: 5px;
    margin-right: 5px;
    text-align: left;
}

.dropdown-item:hover {
    background-color: var(--btn-hover);
}

.dropdown-item svg {
    width: 20px;
    height: 20px;
    display: block;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.dropdown-divider {
  border-color: var(--border);
}

#detailTag{
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

p#detailTag {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    color: var(--text1);
    font-weight: 500;
    font-size: 13px;
    border-radius: 8px;
    width: 40px;
    text-align: center;
    letter-spacing: 0.25px;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    margin-left: auto;
}

p#detailTag.good{
    background-color: #d35400;
}
p#detailTag.fast{
    background-color: #007fd3;
}


#dropdownButton::after {
  content: none !important;
}

.tooltip {
    margin-bottom: 2px !important;
}

.tooltip .tooltip-arrow {
    bottom: -1px;
}

.chat {
    font-size: 16px;
    width: 750px;
    max-width: 750px;
    margin-bottom: 200px;
    margin-top: 75px;
    box-sizing: border-box;
}

.message {
    font-size: 17px;
    max-width: 750px;
    width: 100%;
    margin-bottom: 25px;
    color: var(--text1);
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-break: break-word;
}

.user {
    position: relative;
    font-size: 17px;
    margin-left: auto;
    max-width: 550px;
    width: 100%;
    background-color: var(--input-bg);
    padding: 10px 20px;
    border-radius: 25px;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-break: break-word;
}

.user.usererrormessage {
    box-shadow: 0 0 3px 0.5px red;
}

.ai {
    font-size: 17px;
    max-width: 750px;
    width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-break: break-word;
}

.imgmessage img{
    width: auto;
    max-width: 750px;
    height: 300px;
    border-radius: 5px;
}

.ai p {
    font-size: 17px;
    max-width: 750px;
    width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-break: break-word;
}

.infomessage {
    position: fixed;
    bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 750px;
    z-index: 3;
}
p#infomessage {
    color: var(--text1);
    font-size: 13px;
}

.modeltype {
    color: var(--text2);
    font-size: 14px;
    margin: 0px 5px 2px;
    padding: 2px 12px;
}
.fileuploadedcontainer {
    height: 42px;
    max-width: 300px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
}

img#fileuploadedimg {
    height: 42px;
    width: auto;
}

.alert-dark.custom-alert {
  background-color: #000 !important;
  color: #fff !important;
  border: none !important;
}

.alert-dark.custom-alert .btn-close {
    filter: invert(1);
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer;
}

.alert-dark.custom-alert .btn-close:hover,
.alert-dark.custom-alert .btn-close:focus,
.alert-dark.custom-alert .btn-close:active {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}


#alert-container {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 750px;
    z-index: 1050;
}



.chat pre {
    background-color: var(--darker-gray);
    border-radius: 20px;
    max-width: 100%;
    width: auto; 
    box-sizing: border-box;
    padding: 15px;
    padding-top: 40px;
    margin-bottom: 16px;
    margin-top: 16px;
    overflow-x: auto;
    font-size: 14px;
    scrollbar-width: thin;
    scrollbar-color: var(--light-gray) transparent;
}


.chat pre::before {
    content: "";
    color: var(--text1);
    position: absolute;
    top: 10px;
    left: 0;
    width: 100%;
    height: 30px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    background-color: var(--darker-gray);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#copybutton {
    font-family: Arial, Helvetica, sans-serif;
    position: absolute;
    top: 1.5px;
    right: 8px;
    padding: 8px 8px;
    z-index: 1;
    color: var(--text1);
    font-size: 13px;
}

#codelanguage {
    font-family: Arial, Helvetica, sans-serif;
    position: absolute;
    top: 1.5px;
    left: 8px;
    padding: 8px 8px;
    z-index: 1;
    color: var(--text1);
    font-size: 13px;
}

.chat pre::-webkit-scrollbar {
    height: 8px;
}

.chat pre::-webkit-scrollbar-track {
    background: transparent;
}

.chat pre::-webkit-scrollbar-thumb {
    background-color: var(--light-gray);
    border-radius: 20px;
    border: 2px solid transparent;
    background-clip: content-box;
}


.chat code {
    background-color: var(--light-gray);
    color: var(--text1);
    padding: 2px 6px;
    border-radius: 4px;
}

.chat pre code {
    background: none;
    padding: 3px;
}

#copybutton {
    background: none;
}





.dots-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-left: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--text3);
    display: inline-block;
    animation: bounce 1s infinite ease-in-out;
}

.dot:nth-child(1) {
    animation-delay: 0s;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}


@keyframes bounce {
    0%, 80%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.uploadedimages {
    height: 80px;
    width: 300px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

img#usermessageuploadedimg {
    height: 80px;
    width: auto;
}


.image-wrapper {
    position: relative;
    display: inline-block;
    margin: 4px;
}

.image-wrapper img {
    height: 42px;
    width: auto;
    border-radius: 5px;
    display: block;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.delete-button {
    font-family: Arial, Helvetica, sans-serif;
    position: absolute;
    top: 1.5px;
    right: 1.5px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 13px;
    height: 13px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;

    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.delete-button:hover {
    background-color: #c0392b;
}


#scrollBtn {
    position: fixed;
    bottom: 150px;
    right: calc(50% - 365px);

    width: 40.5px;
    height: 40.5px;
    padding: 0;
    margin: 0;

    background: none;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text1);
    cursor: pointer;

    display: none;
    transition: background-color 0.3s ease, opacity 0.3s ease;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
}


#scrollBtn:hover {
    background-color: var(--gray4);
}

#scrollBtn svg.icon {
    width: 20px;
    height: 20px;
    transform: rotate(180deg);
    fill: currentColor;
    display: block;
    margin: 0 auto;
    pointer-events: none;
    box-sizing: content-box;
}

.responsemodelname {
    margin-top: 15px;
    font-size: 14px;
    color: var(--text2);
}

think {
    width: 55%;
    border-radius: 10px;
    padding: 7.5px;
    font-size: 16px;
    display: block;
    color: var(--text1);
    background: var(--light-gray);
    font-style: italic;
    margin-bottom: 10px;
}






@media (max-width: 775px) {
    body::-webkit-scrollbar {
        width: 12px;
    }

    body::-webkit-scrollbar-track {
        background: var(--bg);
        border-radius: 10px;
    }

    body::-webkit-scrollbar-thumb {
        background-color: var(--border);
        border-radius: 10px;
        border: 3px solid var(--bg);
    }

    body::-webkit-scrollbar-thumb:hover {
        background-color: var(--text1);
    }


    p {
        padding: 0;
        margin: 0;
        font-size: 16px;
    }

    button, button:hover, button:focus, button:active{
        border: none;
        outline: none;
        box-shadow: none;
    }

    .loadingscreen {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--bg);
        color: var(--text1);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 9999;
        opacity: 1;
        transition: opacity 1s ease;
    }

    .loadingscreen.hidden {
        opacity: 0;
        pointer-events: none;
    }

    .loadingscreen i {
        font-size: 30px;
    }

    .site {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .content {
        width: 95vw;
    }

    .input-banner {
        position: fixed;
        bottom: 25px;
        display: flex;
        justify-content: center;
        width: 95vw;
        height: 115px;
        border: 1px solid var(--border);
        border-radius: 25px;
        background-color: var(--input-bg);
        box-sizing: border-box;
        z-index: 4;
    }

    .hide {
        position: fixed;
        display: flex;
        justify-content: center;
        bottom: 0px;
        width: 95px;
        height: 80px;
        background-color: var(--bg);
        z-index: 2;
    }

    .input-input {
        width: 95vw;
        padding: 10px 10px;
        padding-bottom: 0px;
        padding-left: 20.25px;
        padding-right: 20.25px;
        position: fixed;
        bottom: 85px;
    }

    .input-input textarea, .input-input textarea:focus, .input-input textarea:hover, .input-input textarea:active{
        color: var(--text1);
        display: flex;
        outline: none;
        border: none;
        background: none;
        resize: none;
        width: 707.5px;
        overflow-x: hidden;
        font-size: 17.5px;
        box-sizing: border-box;
        overflow-y: hidden;
        font-family: Arial, Helvetica, sans-serif, sans-serif;
        height: 40px;
        line-height: 1.3;
        max-height: 150px;
    }

    .input-input textarea::placeholder {
        color: var(--text2);
        display: flex;
        outline: none;
        border: none;
        background: none;
        resize: none;
        width: 707.5px;
        overflow-x: hidden;
        font-size: 17.5px;
        line-height: 1.3;
    }

    .input-input textarea::-webkit-scrollbar {
        width: 0px;
        height: 0px;
    }

    .input-input textarea {
        scrollbar-width: 1px;
        -ms-overflow-style: var(--black);
    }

    .input-banner .bottom {
        position: absolute;
        bottom: 0px;
        width: 95vw;
        padding: 10px 10px;
        padding-top: 5px;
        padding-left: 20.25px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .wrap {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 15px;
    }

    .input-banner .bottom .metabtn{
        height: 40.5px;
        border-radius: 50px;
        width: 40.5px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--text1);
    }

    .input-banner .bottom .metabtn:disabled{
        height: 40.5px;
        border-radius: 50px;
        width: 40.5px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--text3);
    }

    .input-banner .bottom button#addfilebtn{
        background: none;
        padding: 0;
        width: auto;
    }
    .input-banner .bottom button#addfilebtn svg{
        fill: var(--text1);
    }

    .input-banner .bottom button#addfilebtn:disabled svg {
    fill: var(--text3);
    }

    .dropdown-toggle, .dropdown-toggle.show, .dropdown-toggle:hover, .dropdown-toggle:focus, .dropdown-toggle:active, .dropdown-toggle:not(:disabled):not(.disabled):active, .dropdown-toggle:not(:disabled):not(.disabled).active {
        width: 175px;
        border: 1px solid;
        border-color: var(--border);
        background-color: var(--model-btn-bg);
        color: var(--text1);
        font-size: 15px;
        font-weight: 500;
        padding: 8px 12px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-radius: 25px;
        outline: none;
        background-color: var(--model-btn-bg) !important;
        color: var(--text1) !important;
        box-shadow: none !important;
        appearance: none;
    }


    .dropdown-toggle svg {
        width: 20px;
        height: 20px;
        display: block;
        margin: 0;
        padding: 0;
        flex-shrink: 0;
    }

    .dropdown-menu {
        width: 225px;
        height: 215px;
        border-color: var(--border);
        background-color: var(--model-dropup-bg);
        border-radius: 15px;
        overflow-y: auto;
        scrollbar-width: none;
    }

    .dropdown-menu::-webkit-scrollbar {
        display: none;
    }

    .dropdown-item, .dropdown-item:hover {
        display: flex;
        width: calc(100% - 10px);
        gap: 15px;
        align-items: center;
        color: var(--text1);
        background-color: var(--gray);
        font-size: 14px;
        padding: 7px 12px;
        border-radius: 5px;
        margin-left: 5px;
        margin-right: 5px;
        text-align: left;
    }

    .dropdown-item:hover {
        background-color: var(--btn-hover);
    }

    .dropdown-item svg {
        width: 20px;
        height: 20px;
        display: block;
        margin: 0;
        padding: 0;
        flex-shrink: 0;
    }

    .dropdown-divider {
    border-color: var(--border);
    }

    #detailTag{
        margin: 0;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    p#detailTag {
        margin: 0;
        padding: 0;
        font-family: 'Roboto', Arial, Helvetica, sans-serif;
        color: var(--text1);
        font-weight: 500;
        font-size: 13px;
        border-radius: 8px;
        width: 40px;
        text-align: center;
        letter-spacing: 0.25px;
        line-height: 1.5;
        margin: 0;
        padding: 0;
        margin-left: auto;
    }

    p#detailTag.good{
        background-color: #d35400;
    }
    p#detailTag.fast{
        background-color: #007fd3;
    }


    #dropdownButton::after {
    content: none !important;
    }

    .tooltip {
        margin-bottom: 2px !important;
    }

    .tooltip .tooltip-arrow {
        bottom: -1px;
    }

    .chat {
        font-size: 16px;
        width: 95vw;
        max-width: 95vw;
        margin-bottom: 200px;
        margin-top: 75px;
        box-sizing: border-box;
    }

    .message {
        font-size: 17px;
        max-width: 95vw;
        width: 100%;
        margin-bottom: 25px;
        color: var(--text1);
        box-sizing: border-box;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .user {
        position: relative;
        font-size: 17px;
        margin-left: auto;
        max-width: 550px;
        width: 100%;
        background-color: var(--input-bg);
        padding: 10px 20px;
        border-radius: 25px;
        box-sizing: border-box;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .user.usererrormessage {
        box-shadow: 0 0 3px 0.5px red;
    }

    .ai {
        font-size: 17px;
        max-width: 95vw;
        width: 100%;
        box-sizing: border-box;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .imgmessage img{
        width: auto;
        max-width: 95vw;
        height: 300px;
        border-radius: 5px;
    }

    .ai p {
        font-size: 17px;
        max-width: 95vw;
        width: 100%;
        box-sizing: border-box;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .infomessage {
        position: fixed;
        bottom: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 95vw;
        z-index: 3;
    }
    p#infomessage {
        color: var(--text1);
        font-size: 11px;
    }

    .modeltype {
        color: var(--text2);
        font-size: 14px;
        margin: 0px 5px 2px;
        padding: 2px 12px;
    }
    .fileuploadedcontainer {
        height: 42px;
        max-width: 300px;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        gap: 10px;
    }

    img#fileuploadedimg {
        height: 42px;
        width: auto;
    }

    .alert-dark.custom-alert {
    background-color: #000 !important;
    color: #fff !important;
    border: none !important;
    }

    .alert-dark.custom-alert .btn-close {
        filter: invert(1);
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        cursor: pointer;
    }

    .alert-dark.custom-alert .btn-close:hover,
    .alert-dark.custom-alert .btn-close:focus,
    .alert-dark.custom-alert .btn-close:active {
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
    }


    #alert-container {
        position: fixed;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: 95vw;
        z-index: 1050;
    }



    .chat pre {
        background-color: var(--darker-gray);
        border-radius: 20px;
        max-width: 100%;
        width: auto; 
        box-sizing: border-box;
        padding: 15px;
        padding-top: 40px;
        margin-bottom: 16px;
        margin-top: 16px;
        overflow-x: auto;
        font-size: 14px;
        scrollbar-width: thin;
        scrollbar-color: var(--light-gray) transparent;
    }


    .chat pre::before {
        content: "";
        color: var(--text1);
        position: absolute;
        top: 10px;
        left: 0;
        width: 100%;
        height: 30px;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        background-color: var(--darker-gray);
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    #copybutton {
        font-family: Arial, Helvetica, sans-serif;
        position: absolute;
        top: 1.5px;
        right: 8px;
        padding: 8px 8px;
        z-index: 1;
        color: var(--text1);
        font-size: 13px;
    }

    #codelanguage {
        font-family: Arial, Helvetica, sans-serif;
        position: absolute;
        top: 1.5px;
        left: 8px;
        padding: 8px 8px;
        z-index: 1;
        color: var(--text1);
        font-size: 13px;
    }

    .chat pre::-webkit-scrollbar {
        height: 8px;
    }

    .chat pre::-webkit-scrollbar-track {
        background: transparent;
    }

    .chat pre::-webkit-scrollbar-thumb {
        background-color: var(--light-gray);
        border-radius: 20px;
        border: 2px solid transparent;
        background-clip: content-box;
    }


    .chat code {
        background-color: var(--light-gray);
        color: var(--text1);
        padding: 2px 6px;
        border-radius: 4px;
    }

    .chat pre code {
        background: none;
        padding: 3px;
    }

    #copybutton {
        background: none;
    }





    .dots-container {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        margin-left: 10px;
    }

    .dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background-color: var(--text3);
        display: inline-block;
        animation: bounce 1s infinite ease-in-out;
    }

    .dot:nth-child(1) {
        animation-delay: 0s;
    }

    .dot:nth-child(2) {
        animation-delay: 0.2s;
    }

    .dot:nth-child(3) {
        animation-delay: 0.4s;
    }


    @keyframes bounce {
        0%, 80%, 100% {
            transform: translateY(0);
        }
        50% {
            transform: translateY(-10px);
        }
    }

    .uploadedimages {
        height: 80px;
        width: 300px;
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 5px;
    }

    img#usermessageuploadedimg {
        height: 80px;
        width: auto;
    }


    .image-wrapper {
        position: relative;
        display: inline-block;
        margin: 4px;
    }

    .image-wrapper img {
        height: 42px;
        width: auto;
        border-radius: 5px;
        display: block;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    }

    .delete-button {
        font-family: Arial, Helvetica, sans-serif;
        position: absolute;
        top: 1.5px;
        right: 1.5px;
        background-color: #e74c3c;
        color: white;
        border: none;
        border-radius: 50%;
        width: 13px;
        height: 13px;
        font-size: 11px;
        font-weight: bold;
        cursor: pointer;
        padding: 0;

        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;

        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
        transition: transform 0.15s ease, background-color 0.15s ease;
    }

    .delete-button:hover {
        background-color: #c0392b;
    }


    #scrollBtn {
        position: fixed;
        bottom: 150px;
        right: calc(50% - 365px);

        width: 40.5px;
        height: 40.5px;
        padding: 0;
        margin: 0;

        background: none;
        border: 1px solid var(--border);
        border-radius: 50%;
        color: var(--text1);
        cursor: pointer;

        display: none;
        transition: background-color 0.3s ease, opacity 0.3s ease;

        display: flex;
        align-items: center;
        justify-content: center;

        box-sizing: border-box;
    }


    #scrollBtn:hover {
        background-color: var(--gray4);
    }

    #scrollBtn svg.icon {
        width: 20px;
        height: 20px;
        transform: rotate(180deg);
        fill: currentColor;
        display: block;
        margin: 0 auto;
        pointer-events: none;
        box-sizing: content-box;
    }

    .responsemodelname {
        margin-top: 15px;
        font-size: 14px;
        color: var(--text2);
    }

    think {
        width: 55%;
        border-radius: 10px;
        padding: 7.5px;
        font-size: 16px;
        display: block;
        color: var(--text1);
        background: var(--light-gray);
        font-style: italic;
        margin-bottom: 10px;
    }
}




@media (max-width: 400px) {
  
    body::-webkit-scrollbar {
    width: 6px;
    }

    body::-webkit-scrollbar-track {
    background: var(--bg);
    border-radius: 10px;
    }

    body::-webkit-scrollbar-thumb {
    background-color: var(--border);
    border-radius: 10px;
    border: 3px solid var(--bg);
    }

    body::-webkit-scrollbar-thumb:hover {
    background-color: var(--text1);
    }


    p {
        padding: 0;
        margin: 0;
        font-size: 14px;
    }

    button, button:hover, button:focus, button:active{
        border: none;
        outline: none;
        box-shadow: none;
    }

    .loadingscreen {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--bg);
        color: var(--text1);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 9999;
        opacity: 1;
        transition: opacity 1s ease;
    }

    .loadingscreen.hidden {
        opacity: 0;
        pointer-events: none;
    }

    .loadingscreen i {
        font-size: 30px;
    }

    .site {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .content {
        width: 95vw;
    }

    .input-banner {
        position: fixed;
        bottom: 25px;
        display: flex;
        justify-content: center;
        width: 95vw;
        height: 115px;
        border: 1px solid var(--border);
        border-radius: 25px;
        background-color: var(--input-bg);
        box-sizing: border-box;
        z-index: 4;
    }

    .hide {
        position: fixed;
        display: flex;
        justify-content: center;
        bottom: 0px;
        width: 95vw;
        height: 80px;
        background-color: var(--bg);
        z-index: 2;
    }

    .input-input {
        width: 95vw;
        padding: 10px 10px;
        padding-bottom: 0px;
        padding-left: 20.25px;
        padding-right: 20.25px;
        position: fixed;
        bottom: 85px;
    }

    .input-input textarea, .input-input textarea:focus, .input-input textarea:hover, .input-input textarea:active{
        color: var(--text1);
        display: flex;
        outline: none;
        border: none;
        background: none;
        resize: none;
        overflow-x: hidden;
        font-size: 15.5px;
        box-sizing: border-box;
        overflow-y: hidden;
        font-family: Arial, Helvetica, sans-serif, sans-serif;
        height: 40px;
        line-height: 1.3;
        max-height: 150px;
    }

    .input-input textarea::placeholder {
        color: var(--text2);
        display: flex;
        outline: none;
        border: none;
        background: none;
        resize: none;
        overflow-x: hidden;
        font-size: 15.5px;
        line-height: 1.3;
    }

    .input-input textarea::-webkit-scrollbar {
        width: 0px;
        height: 0px;
    }

    .input-input textarea {
        scrollbar-width: 1px;
        -ms-overflow-style: var(--black);
    }

    .input-banner .bottom {
        position: absolute;
        bottom: 0px;
        width: 95vw;
        padding: 10px 10px;
        padding-top: 5px;
        padding-left: 20.25px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .wrap {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 5px;
    }

    .input-banner .bottom .metabtn{
        height: 30px;
        border-radius: 50px;
        width: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--text1);
    }

    .input-banner .bottom .metabtn:disabled{
        height: 30px;
        border-radius: 50px;
        width: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--text3);
    }

    .input-banner .bottom button#addfilebtn{
        background: none;
        padding: 0;
        width: auto;
    }
    .input-banner .bottom button#addfilebtn svg{
        fill: var(--text1);
    }

    .input-banner .bottom button#addfilebtn:disabled svg {
    fill: var(--text3);
    }

    .dropdown-toggle, .dropdown-toggle.show, .dropdown-toggle:hover, .dropdown-toggle:focus, .dropdown-toggle:active, .dropdown-toggle:not(:disabled):not(.disabled):active, .dropdown-toggle:not(:disabled):not(.disabled).active {
        width: 150px;
        border: 1px solid;
        border-color: var(--border);
        background-color: var(--model-btn-bg);
        color: var(--text1);
        font-size: 14px;
        font-weight: 500;
        padding: 8px 12px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-radius: 25px;
        outline: none;
        background-color: var(--model-btn-bg) !important;
        color: var(--text1) !important;
        box-shadow: none !important;
        appearance: none;
    }


    .dropdown-toggle svg {
        width: 15px;
        height: 15px;
        display: block;
        margin: 0;
        padding: 0;
        flex-shrink: 0;
    }

    .dropdown-menu {
        width: 225px;
        height: 215px;
        border-color: var(--border);
        background-color: var(--model-dropup-bg);
        border-radius: 15px;
        overflow-y: auto;
        scrollbar-width: none;
    }

    .dropdown-menu::-webkit-scrollbar {
        display: none;
    }

    .dropdown-item, .dropdown-item:hover {
        display: flex;
        width: calc(100% - 10px);
        gap: 15px;
        align-items: center;
        color: var(--text1);
        background-color: var(--gray);
        font-size: 14px;
        padding: 7px 12px;
        border-radius: 5px;
        margin-left: 5px;
        margin-right: 5px;
        text-align: left;
    }

    .dropdown-item:hover {
        background-color: var(--btn-hover);
    }

    .dropdown-item svg {
        width: 20px;
        height: 20px;
        display: block;
        margin: 0;
        padding: 0;
        flex-shrink: 0;
    }

    .dropdown-divider {
    border-color: var(--border);
    }

    #detailTag{
        margin: 0;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    p#detailTag {
        margin: 0;
        padding: 0;
        font-family: 'Roboto', Arial, Helvetica, sans-serif;
        color: var(--text1);
        font-weight: 500;
        font-size: 13px;
        border-radius: 8px;
        width: 40px;
        text-align: center;
        letter-spacing: 0.25px;
        line-height: 1.5;
        margin: 0;
        padding: 0;
        margin-left: auto;
    }

    p#detailTag.good{
        background-color: #d35400;
    }
    p#detailTag.fast{
        background-color: #007fd3;
    }


    #dropdownButton::after {
    content: none !important;
    }

    .tooltip {
        margin-bottom: 2px !important;
    }

    .tooltip .tooltip-arrow {
        bottom: -1px;
    }

    .chat {
        font-size: 16px;
        width: 95vw;
        max-width: 95vw;
        margin-bottom: 200px;
        margin-top: 75px;
        box-sizing: border-box;
    }

    .message {
        font-size: 17px;
        max-width: 95vw;
        width: 100%;
        margin-bottom: 25px;
        color: var(--text1);
        box-sizing: border-box;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .user {
        position: relative;
        font-size: 17px;
        margin-left: auto;
        max-width: 550px;
        width: 100%;
        background-color: var(--input-bg);
        padding: 10px 20px;
        border-radius: 25px;
        box-sizing: border-box;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .user.usererrormessage {
        box-shadow: 0 0 3px 0.5px red;
    }

    .ai {
        font-size: 17px;
        max-width: 95vw;
        width: 100%;
        box-sizing: border-box;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .imgmessage img{
        width: auto;
        max-width: 95vw;
        height: 300px;
        border-radius: 5px;
    }

    .ai p {
        font-size: 17px;
        max-width: 95vw;
        width: 100%;
        box-sizing: border-box;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .infomessage {
        position: fixed;
        bottom: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 95vw;
        z-index: 3;
    }
    p#infomessage {
        color: var(--text1);
        font-size: 9px;
    }

    .modeltype {
        color: var(--text2);
        font-size: 14px;
        margin: 0px 5px 2px;
        padding: 2px 12px;
    }
    .fileuploadedcontainer {
        height: 42px;
        max-width: 300px;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        gap: 10px;
    }

    img#fileuploadedimg {
        height: 42px;
        width: auto;
    }

    .alert-dark.custom-alert {
    background-color: #000 !important;
    color: #fff !important;
    border: none !important;
    }

    .alert-dark.custom-alert .btn-close {
        filter: invert(1);
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        cursor: pointer;
    }

    .alert-dark.custom-alert .btn-close:hover,
    .alert-dark.custom-alert .btn-close:focus,
    .alert-dark.custom-alert .btn-close:active {
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
    }


    #alert-container {
        position: fixed;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: 95vw;
        z-index: 1050;
    }



    .chat pre {
        background-color: var(--darker-gray);
        border-radius: 20px;
        max-width: 100%;
        width: auto; 
        box-sizing: border-box;
        padding: 15px;
        padding-top: 40px;
        margin-bottom: 16px;
        margin-top: 16px;
        overflow-x: auto;
        font-size: 14px;
        scrollbar-width: thin;
        scrollbar-color: var(--light-gray) transparent;
    }


    .chat pre::before {
        content: "";
        color: var(--text1);
        position: absolute;
        top: 10px;
        left: 0;
        width: 100%;
        height: 30px;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        background-color: var(--darker-gray);
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    #copybutton {
        font-family: Arial, Helvetica, sans-serif;
        position: absolute;
        top: 1.5px;
        right: 8px;
        padding: 8px 8px;
        z-index: 1;
        color: var(--text1);
        font-size: 13px;
    }

    #codelanguage {
        font-family: Arial, Helvetica, sans-serif;
        position: absolute;
        top: 1.5px;
        left: 8px;
        padding: 8px 8px;
        z-index: 1;
        color: var(--text1);
        font-size: 13px;
    }

    .chat pre::-webkit-scrollbar {
        height: 8px;
    }

    .chat pre::-webkit-scrollbar-track {
        background: transparent;
    }

    .chat pre::-webkit-scrollbar-thumb {
        background-color: var(--light-gray);
        border-radius: 20px;
        border: 2px solid transparent;
        background-clip: content-box;
    }


    .chat code {
        background-color: var(--light-gray);
        color: var(--text1);
        padding: 2px 6px;
        border-radius: 4px;
    }

    .chat pre code {
        background: none;
        padding: 3px;
    }

    #copybutton {
        background: none;
    }





    .dots-container {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        margin-left: 10px;
    }

    .dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background-color: var(--text3);
        display: inline-block;
        animation: bounce 1s infinite ease-in-out;
    }

    .dot:nth-child(1) {
        animation-delay: 0s;
    }

    .dot:nth-child(2) {
        animation-delay: 0.2s;
    }

    .dot:nth-child(3) {
        animation-delay: 0.4s;
    }


    @keyframes bounce {
        0%, 80%, 100% {
            transform: translateY(0);
        }
        50% {
            transform: translateY(-10px);
        }
    }

    .uploadedimages {
        height: 80px;
        width: 300px;
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 5px;
    }

    img#usermessageuploadedimg {
        height: 80px;
        width: auto;
    }


    .image-wrapper {
        position: relative;
        display: inline-block;
        margin: 4px;
    }

    .image-wrapper img {
        height: 42px;
        width: auto;
        border-radius: 5px;
        display: block;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    }

    .delete-button {
        font-family: Arial, Helvetica, sans-serif;
        position: absolute;
        top: 1.5px;
        right: 1.5px;
        background-color: #e74c3c;
        color: white;
        border: none;
        border-radius: 50%;
        width: 13px;
        height: 13px;
        font-size: 11px;
        font-weight: bold;
        cursor: pointer;
        padding: 0;

        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;

        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
        transition: transform 0.15s ease, background-color 0.15s ease;
    }

    .delete-button:hover {
        background-color: #c0392b;
    }


    #scrollBtn {
        position: fixed;
        bottom: 150px;
        right: calc(50% - 365px);

        width: 40.5px;
        height: 40.5px;
        padding: 0;
        margin: 0;

        background: none;
        border: 1px solid var(--border);
        border-radius: 50%;
        color: var(--text1);
        cursor: pointer;

        display: none;
        transition: background-color 0.3s ease, opacity 0.3s ease;

        display: flex;
        align-items: center;
        justify-content: center;

        box-sizing: border-box;
    }


    #scrollBtn:hover {
        background-color: var(--gray4);
    }

    #scrollBtn svg.icon {
        width: 20px;
        height: 20px;
        transform: rotate(180deg);
        fill: currentColor;
        display: block;
        margin: 0 auto;
        pointer-events: none;
        box-sizing: content-box;
    }

    .responsemodelname {
        margin-top: 15px;
        font-size: 14px;
        color: var(--text2);
    }

    think {
        width: 55%;
        border-radius: 10px;
        padding: 7.5px;
        font-size: 16px;
        display: block;
        color: var(--text1);
        background: var(--light-gray);
        font-style: italic;
        margin-bottom: 10px;
    }

}

