@import url("./layout.css");
@import url("./document.css");
@import url("./history.css");
@import url("./chat.css");
@import url("./index.css");
@import url("./tools.css");
@import url("./website.css");
@import url("./columns.css");


.btn:focus,
.btn:active {
    outline: none !important;
    box-shadow: none;
}

.transTitle {
    margin-left: 20px;
    margin-top: 20px;
}

#tokenSize {
    margin-left: 20px;
}

.pageTitle {
    color: #0d6efd;
    font-weight: 500;
    font-size: 1.6em;
    padding: 5px;
    cursor: pointer;
}

.navIcons button {
    margin-right: 10px;
}


/* Fix input highlights  and focus*/
input[type="text"]:focus {
    box-shadow: 0 0 0 rgb(255, 255, 255);
}

input[type="checkbox"]:focus {
    box-shadow: 0 0 0 rgb(255, 255, 255);
}

textarea:focus {
    box-shadow: 0 0 0 rgb(255, 255, 255);
    outline: none;
    border: none;
}


div[contenteditable] {
    outline: none;
}

[contenteditable]:empty:before {
    content: attr(data-placeholder);
    color: #bbb;
    pointer-events: none;
}

.placeholder {
    color: #bbb;
    pointer-events: none;
}

/* Tools **/

.selection {
    margin: 10px 20px 10px 0;
}

/* Chat responses */

pre {
    white-space: pre-wrap;
    /* Since CSS 2.1 */
    white-space: -moz-pre-wrap;
    /* Mozilla, since 1999 */
    white-space: -pre-wrap;
    /* Opera 4-6 */
    white-space: -o-pre-wrap;
    /* Opera 7 */
    word-wrap: break-word;
    /* Internet Explorer 5.5+ */

}

.truncate {
    display: inline-block;
    /* Required for width to apply */
    max-width: 300px;
    /* Set the truncation width */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: top;
    /* Optional, to align with other inline elements */
}

code {
    font-size: 0.9em;
}



/** Spinner **/

.loader {
    border: 12px solid #f3f3f3;
    border-radius: 50%;
    border-top: 12px solid #0d6efd;
    width: 60px;
    height: 60px;
    -webkit-animation: spin 5s linear infinite;
    /* Safari */
    animation: spin 2s linear infinite;
}

/* Safari */
@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Mobile landscape */
@media (orientation: landscape) and (max-width: 896px) {

    html {
        overflow: scroll;
        overflow-x: hidden;
    }

    * {
        -ms-overflow-style: none;
        /* Internet Explorer 10+ */
        scrollbar-width: none;
        /* Firefox, Safari 18.2+, Chromium 121+ */
    }

    ::-webkit-scrollbar {
        display: none;
        /* Older Safari and Chromium */
    }


}

/* Mobile */
@media (max-width: 767px) {

    .transTitle {
        margin-left: 6px;
        margin-top: 5px;
    }

    #tokenSize {
        margin-left: 2px;
    }

    .loader {
        border: 5px solid #fff;
        border-radius: 50%;
        border-top: 5px solid #0d6efd;
        width: 26px;
        height: 26px;
        -webkit-animation: spin 5s linear infinite;
        /* Safari */
        animation: spin 2s linear infinite;
        margin-top: -10px;
    }

    .border-start,
    .border-end,
    .border-bottom {
        border: 0 !important;
    }

    .tab-content div {
        padding: 2px !important;
    }

    .tab-content .row {
        --bs-gutter-x: 1.0rem;
        margin-right: 0px;
        margin-left: 0px;
    }

    * {
        -ms-overflow-style: none;
        /* Internet Explorer 10+ */
        scrollbar-width: none;
        /* Firefox, Safari 18.2+, Chromium 121+ */
    }

    ::-webkit-scrollbar {
        display: none;
        /* Older Safari and Chromium */
    }

}