@import url("uzair_fonts.css?v1");

:root {
    --uz-semibold: 500;
    --uz-border-radius: 16px;
}

[data-uzair-theme="dark"] {
    --m500: #8C004D;
    --m400: #A10058;
    --m300: #E6007E;
    --m200: #EA2B94;
    --m100: #F16BB4;
    --m75: #F596CA;
    --m50: #FDE6F2;

    --b1-50: #E8E8E8;
    --b1-75: #9FA0A0;
    --b1-100: #777879;
    --b1-200: #3C3E3F;
    --b1-300: #141718;
    --b1-400: #0E1011;
    --b1-500: #0C0E0F;

    --b2-50: #E9E9E9;
    --b2-75: #A5A6A6;
    --b2-100: #7F8182;
    --b2-200: #484B4C;
    --b2-300: #232627;
    --b2-400: #222222;
    --b2-500: #1D1D1D;

    --b3-50: #EAEAEA;
    --b3-75: #AAAAAA;
    --b3-100: #878787;
    --b3-200: #535353;
    --b3-300: #303030;
    --b3-400: #191B1B;
    --b3-500: #151718;

    --tg-50: #F6F6F6;
    --tg-75: #D9D9D9;
    --tg-100: #CACACA;
    --tg-200: #B3B3B3;
    --tg-300: #A3A3A3;
    --tg-400: #727272;
    --tg-500: #636363;

    --tw-50: #FDFDFD;
    --tw-75: #F7F7F7;
    --tw-100: #F3F3F3;
    --tw-200: #EEEEEE;
    --tw-300: #EBEBEB;
    --tw-400: #A5A5A5;
    --tw-500: #8F8F8F;

    --border-color: var(--tg-400);
}

[data-uzair-theme="light"] {
    --m500: #8C004D;
    --m400: #A10058;
    --m300: #E6007E;
    --m200: #EA2B94;
    --m100: #F16BB4;
    --m75: #F596CA;
    --m50: #FDE6F2;

    --b1-50: #FEFEFE;
    --b1-75: #FCFCFC;
    --b1-100: #FAFAFA;
    --b1-200: #F8F8F8;
    --b1-300: #FFFFFF;
    --b1-400: #FFFFFF;
    --b1-500: #979797;

    --b2-50: #E9E9E9;
    --b2-75: #A5A6A6;
    --b2-100: #7F8182;
    --b2-200: #484B4C;
    --b2-300: #F7F7F7;
    --b2-400: #222222;
    --b2-500: #1D1D1D;

    --b3-50: #EAEAEA;
    --b3-75: #AAAAAA;
    --b3-100: #878787;
    --b3-200: #535353;
    --b3-300: #303030;
    --b3-400: #191B1B;
    --b3-500: #151718;

    --tg-50: #F6F6F6;
    --tg-75: #D9D9D9;
    --tg-100: #CACACA;
    --tg-200: #B3B3B3;
    --tg-300: #A3A3A3;
    --tg-400: #727272;
    --tg-500: #636363;

    --tw-50: #232B2B;
    --tw-75: #F7F7F7;
    --tw-100: #F3F3F3;
    --tw-200: #EEEEEE;
    --tw-300: #EBEBEB;
    --tw-400: #A5A5A5;
    --tw-500: #8F8F8F;

    --border-color: var(--tg-300);
}

.uzair-interface {
    color: var(--tw-50);
    font-size: 16px;
}

@media (max-width: 90em) {
    .uzair-interface {
        font-size: 13px; /* 14px */
    }
}

.uzair-interface h1,
.uzair-interface h2,
.uzair-interface h3,
.uzair-interface h4,
.uzair-interface h5,
.uzair-interface h6 {
    color: var(--tw-50) !important;
}

.uzair-interface .hb {
    font-weight: bold;
}

.uzair-interface h1.hb {
    font-size: 5.333em; /* 64px */
}

.uzair-interface h2.hb {
    font-size: 4em; /* 48px */
}

.uzair-interface h3.hb {
    font-size: 2.666em; /* 32px */
}

.uzair-interface h4.hb {
    font-size: 2em; /* 24px */
}

.uzair-interface h5.hb {
    font-size: 1.2em; /* 22px */
}

.uzair-interface .hsb {
    font-weight: var(--uz-semibold);
}

.uzair-interface h1.hsb {
    font-size: 5.333em; /* 64px */
}

.uzair-interface h2.hsb {
    font-size: 4em; /* 48px */
}

.uzair-interface h3.hsb {
    font-size: 2.666em; /* 32px */
}

.uzair-interface h4.hsb {
    font-size: 1.4em; /* 28px */
}

.uzair-interface h5.hsb {
    font-size: 1.1em; /* 24px */
}

.uzair-interface span {
    color: var(--tw-50);
}

.uzair-interface span.sub-t1 {
    font-size: 1.4em; /* 24px */
}

.uzair-interface span.sub-t2 {
    font-size: 1.2em; /* 22px */
}

.uzair-interface span.sub-t3 {
    font-size: 1.1em; /* 20px */
}

.uzair-interface span.sub-t4 {
    font-size: 1.05em; /* 18px */
}

.uzair-interface span.sub-t5 {
    font-size: 1em; /* 16px */
}

.uzair-interface span.sub-t6 {
    font-size: 0.6em; /* 14px */
}

.uzair-interface .normal-text {
    font-size: 1.1em;
}

[class^="uz-"], [class*=" uz-"] {
    font-weight: bold !important;
}

.ls-tooltip-content__text {
    color: var(--b1-500) !important;
    font-size: 0.9em !important;
}

.uzair-credit-box {
    border: 2px solid var(--b3-200);
    border-radius: 14px;
    color: var(--tg-300);
    text-align: center;
}

.uzair-controller-icon {
    color: var(--tg-300) !important;
    transition: color 0.5s ease;
    cursor: pointer;
}

.uzair-controller-icon:hover {
    color: var(--tg-400) !important;
}


.uzair-user-message {
    color: var(--tw-300);
    background-color: var(--b1-300);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    position: relative;
    overflow: visible;
}


.uzair-user-message p {
    font-size: unset !important;
    line-height: unset !important;
    font-family: unset !important;
    margin: unset !important;
}

.uzair-message {
    --thread-content-max-width: 60em;
    --spacing: .25em;

    --thread-content-margin: calc(var(--spacing)*6);
    overflow-wrap: break-word;
    color: var(--tw-300);
}

.uzair-message a {
    color: #82aaff;
    text-decoration: underline;
}

/** TABLE START **/
.uzair-message .uzair-table-container {
    --thread-content-width: min(calc(100cqw - var(--thread-content-margin, 0)*2),var(--thread-content-max-width));
    --thread-gutter-size: calc((100cqw - var(--thread-content-width))/2);
    margin-inline: calc(var(--thread-gutter-size)*-1);
    overflow-x: auto;
    pointer-events: none;
    scrollbar-width: none;
    width: 75cqw;
}

.uzair-message .uzair-table-container .table-wrapper {
    margin-inline: var(--thread-gutter-size) var(--thread-content-margin);
    pointer-events: auto;
}

.uzair-message .uzair-table-container table {
    --tw-border-spacing-x: calc(var(--spacing)*0);
    --tw-border-spacing-y: calc(var(--spacing)*0);
    border-collapse: separate;
    border-spacing: var(--tw-border-spacing-x)var(--tw-border-spacing-y);
    /* margin: calc(var(--spacing)*0); */
    min-width: var(--thread-content-width);
    text-align: left;
    width: fit-content;
    font-size: .875em;
    line-height: 1.71429;
    /* margin-bottom: 2em; */
    /* margin-top: 2em; */
    table-layout: auto;
    border-color: inherit;
    text-indent: 0;
}

.uzair-message .uzair-table-container table th,
.uzair-message .uzair-table-container table td {
    border-bottom: 1px solid #ffffff26;
    font-size: 0.8em;
    max-width: calc(var(--thread-content-max-width) * 6 / 24);
    min-width: calc(var(--thread-content-max-width) * 4 / 24);
    padding-bottom: 5px;
    padding-block: calc(var(--spacing) * 2.5);
    padding-left: 5px;
    padding-right: 5px;
}
/** TABLE END **/

.uzair-interface .uzair-radio-container {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Hide the browser's default radio button */
.uzair-interface .uzair-radio-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Create a custom radio button */
.uzair-interface .uzair-radio-container .checkmark {
    position: absolute;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #EAEAEA;
    border-radius: 50%;
    cursor: pointer;
}

.uzair-interface .selected-chat {
    background-color: #2f2f2f;
    border-radius: 8px;
}

/* On mouse-over, add a grey background color */
/* .uzair-interface .uzair-radio-container:hover input ~ .checkmark {
    background-color: #E6007E;
} */

/* When the radio button is checked, add a blue background */
.uzair-interface .uzair-radio-container input:checked ~ .checkmark {
    background-color: #E6007E;
}

/* Buttons:Start */
.uzair-interface .m-button {
    background-color: var(--m300); color: var(--tw-300); border-radius: 23px; border: none !important; font-size: 1.1em; width: 140px; height: 50px;
    cursor: pointer;
    font-weight: 600;
}

.uzair-interface .m-button:hover {
    background-color: #cc006f;
}

.uzair-interface .c-button {
    background-color: transparent !important; color: var(--tw-300); border-radius: 23px; border: 1px solid var(--tg-300) !important; font-size: 1.1em; width: 140px; height: 50px;
    cursor: pointer;
}

.uzair-interface .c-button:hover {
    opacity: 0.9;
}

.uzair-interface .d-button {
    background-color: #EF4444; color: var(--tw-300); border-radius: 23px; border: none !important; font-size: 1.1em; width: 140px; height: 50px;
    cursor: pointer;
}

.uzair-interface .d-button:hover {
    background-color: #DC2626;
}
/* Buttons:End */

.uzair-input {
    color: var(--tw-300);
}

textarea.uzair-input {
    background-color: var(--b1-300);
    border: none !important;
    border-radius: var(--uz-border-radius);
    font-size: 1.1em;
    resize: none;
    color: var(--tw-300);
    box-sizing: border-box;
}

.uzair-interface .uzair-input::placeholder {
    color: var(--tg-500);
}

.uzair-interface textarea.uzair-input:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.uzair-interface .uzair-popup-content {
    background-color: #232627;
    border: 1.5px solid var(--tg-500)
}

.uzair-interface .ls-popup-filter-content {
    border: 1.5px solid var(--tg-500);
}

/* UZAIR TOOLTIP START */
.uzair-tooltip {
    border: 1px solid var(--tg-500);
    text-decoration: none;
    border-radius: var(--uz-border-radius);
    padding: 20px 0 20px 20px;
    background-color: var(--b1-500);

    position: absolute;
    transition: opacity 0.3s;
    z-index: 1;
    width: 200px;
}

.uzair-tooltip:before {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    left: -20px; /* Position the arrow to the left */
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-right-color: var(--tg-500); /* Change arrow direction */
}

.uzair-tooltip:after {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    left: -18px; /* Slightly adjust to avoid overlap */
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border: 9px solid transparent;
    border-right-color: var(--b1-500); /* Change arrow direction */
}

.uzair-tooltip__icon {
    color: var(--tg-300);
}

.uzair-tooltip__text {
    color: var(--tw-300);
}
/* UZAIR TOOLTIP END */

.uzair-interface .version__text {
    color: var(--tg-400);
}


.uzair-interface .normal-text__color {
    color: var(--tw-300)
}

.uzair-interface .contrast-text {
    color: var(--tw-300)
}

.uzair-interface .shimmer-text {
    font-weight: bold;
    background: linear-gradient(
            90deg,
            #888 0%,
            #fff 50%,
            #888 100%
    );
    background-size: 200% auto;
    color: #000;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 2s infinite linear;
}
@keyframes shimmer {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 100% 0;
    }
}

.ai-message-style {
    white-space: normal;
    font-style: unset !important;
}

.ai-message-style h1 {
    font-size: 1.4em !important;
}

.ai-message-style h2 {
    font-size: 1.2em !important;
}

.ai-message-style h3 {
    font-size: 1em !important;
}

.ai-message-style p {
    font-size: unset !important;
    /* margin-bottom: unset !important; */
    line-height: 1.8em;
}

.ai-message-style ul {
    margin: unset !important;
}

.uzair-button {
    cursor: pointer;
}

.uzair-button:hover {
    opacity: 0.8;
}

.uzair-interface .popup-title__text {
    color: var(--tw-300);
}

/*
=========================================================================================
==                                                                                     ==
==                         CUSTOM SCROLLBAR STYLE CLASS                                ==
==                                                                                     ==
==      Usage: Add class="uzair-scrollbar" to the HTML element (div, textarea, etc.)  ==
==      that you want to style.                                                        ==
==                                                                                     ==
=========================================================================================
*/

/* --- General Settings --- */
.uzair-interface .uzair-scrollbar {
    /* This is required to make the element scrollable when its content overflows. */
    /* You might not need this line if the element already has a scrollbar. */
    overflow: auto;
}


/*
========================================================================
1. STANDARD STYLES FOR FIREFOX
   This is the simpler method with less customization.
========================================================================
*/
.uzair-interface .uzair-scrollbar {
    /* The width of the scrollbar (auto: default, thin: a thinner version, none: hidden) */
    scrollbar-width: thin;

    /* Scrollbar color: [Thumb Color] [Track Color] */
    /* Edit the two color codes below to change the colors. */
    scrollbar-color: var(--tg-75) var(--tg-75);
}


/*
========================================================================
2. DETAILED STYLES FOR CHROME, SAFARI, EDGE (WEBKIT-BASED BROWSERS)
   This method offers much more control and customization.
========================================================================
*/

/* General styles for the entire scrollbar */
.uzair-interface .uzair-scrollbar::-webkit-scrollbar {
    /* Width for vertical scrollbars */
    width: 12px;
    /* Height for horizontal scrollbars */
    height: 12px;
}

/* The scrollbar background (the track) */
.uzair-interface .uzair-scrollbar::-webkit-scrollbar-track {
    /* Change the track color here */
    background: var(--tg-75);

    /* You can uncomment this line to make the track's corners rounded */
    /* border-radius: 10px; */
}

/* The draggable handle (the thumb) */
.uzair-interface .uzair-scrollbar::-webkit-scrollbar-thumb {
    /* Change the thumb color here */
    background-color: #888;

    /* To make the thumb rounded (a high value makes it pill-shaped) */
    border-radius: 100px;

    /* This creates a padding effect around the thumb. */
    /* It's usually set to the same color as the track background. */
    border: 3px solid var(--tg-75);
}

/* Style for the handle on mouse hover */
.uzair-interface .uzair-scrollbar::-webkit-scrollbar-thumb:hover {
    /* Change the thumb's hover color here */
    background-color: #555;
}

[data-uzair-theme="light"] {
    .uzair-interface .popup-title__text {
        color: var(--b3-300);
    }

    .uzair-interface .contrast-text {
        color: var(--tg-300)
    }

    .uzair-interface .uzair-popup-content {
        background-color: var(--b1-300);
        border: 1.5px solid var(--tg-300)
    }

    .uzair-controller-icon {
        color: var(--b3-300) !important;
    }

    .uzair-controller-icon:hover {
        color:  var(--b3-100) !important;
    }

    .uzair-credit-box {
        border-color: var(--tg-75);
    }

    .uzair-user-message {
        background-color: var(--b3-50)
    }

    .uzair-message {
        color: var(--b3-300);
    }

    .uzair-interface .uzair-input::placeholder {
        color: var(--tg-200) !important;
    }

    .uzair-input {
        color: var(--b3-300);
    }

    textarea.uzair-input {
        background-color: var(--b1-300);
        border: none !important;
        border-radius: var(--uz-border-radius);
        font-size: 1.1em;
        resize: none;
        box-sizing: border-box;
    }

    .uzair-interface .selected-chat {
        background-color: #e3e3e3
    }

    .uzair-tooltip {
        border: 1px solid var(--tg-300);
        background-color: #FFFFFF;
    }

    .uzair-tooltip:before {
        border-right-color: var(--tg-300);
    }

    .uzair-tooltip:after {
        border-right-color: #FFFFFF;
    }

    .uzair-tooltip__icon {
        color: var(--tg-300);
    }

    .uzair-tooltip__text {
        color: var(--tg-300);
    }

    .version__text {
        color: var(--tg-300);
    }

    .normal-text__color {
        color: #232B2B
    }

    .uzair-interface .c-button {
        background-color: transparent !important;
        border-radius: 23px;
        border: 1px solid var(--tg-300) !important;
        font-size: 1.1em;
        width: 140px;
        height: 50px;
        color: var(--tg-300);
        cursor: pointer;
    }

    .uzair-interface .c-button:hover {
        opacity: 0.9;
    }

    .uzair-message .uzair-table-container table th,
    .uzair-message .uzair-table-container table td {
        border-bottom: 1px solid var(--tg-300);
    }

    .uzair-user-message {
        color: var(--b3-300)
    }
}