@font-face {
    font-family: "Yekan Bakh VF";
    src: url("https://fastcdn.pro/Themes/ariansalamat/assets/fonts/yekanbakh/YekanBakh-VF.woff2") format("woff2"), url("https://fastcdn.pro/Themes/ariansalamat/assets/fonts/yekanbakh/YekanBakh-VF.woff") format("woff");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: "Yekan Bakh VF", sans-serif;
    font-feature-settings: "ss01" on;
    background-color: #f4f6fa;
}

    body.darkmode {
        background-color: #1e1e1e;
    }

.chatbox-ai-section {
    width: clamp(200px, 100%, 800px);
    margin: 0 auto;
    height: calc(100vh - 240px);
    /*    background-color: ghostwhite;*/
    /*    border: 1px solid lightgray;*/
    position: relative;
    overflow-y: auto;
    border-radius: 16px;
    font-family: "Yekan Bakh VF", sans-serif;
}

.darkmode-btn {
    position: absolute;
    left: 15px;
    top: 15px;
    border: unset;
    outline: unset;
    background-color: #545050;
    color: white;
    border-radius: 8px;
    padding: 10px 16px;
}

body.darkmode .darkmode-btn {
    background-color: white;
    color: #545050;
}

.guide-help {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

body.darkmode .guide-help {
    color: white;
}

.chatbox-actions {
    width: 110px;
    display: flex;
    flex-direction: column;
}

.input-checkbox {
    display: flex;
    align-items: center;
    gap: 4px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 32px;
    height: 16px;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transition: 0.4s;
    border-radius: 34px;
    box-shadow: 0 4px 6px 0 rgba(96, 98, 127, 0.12) inset, 0 1px 1px 0 rgba(96, 98, 127, 0.25) inset, 0 0 0 1.5px rgba(208, 208, 220, 0.80);
}

    .slider:before {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        left: 0px;
        content: "";
        height: 16px;
        width: 16px;
        background: linear-gradient(180deg, #cdd3e6 0%, #cdd3e6 100%);
        box-shadow: 0 1px 4px 0 rgba(36, 36, 50, 0.29), 0 2px 6px -2px rgba(53, 53, 70, 0.65);
        transition: 0.4s;
        border-radius: 50%;
    }



input:checked + .slider {
    background: #a6beeb;
    box-shadow: 0 4px 6px 0 rgba(96, 98, 127, 0.12) inset, 0 1px 1px 0 rgba(96, 98, 127, 0.25) inset, 0 0 0 1.5px rgba(46, 165, 245, 0.60);
}

    input:checked + .slider:before {
        transform: translate(16px, -50%);
        background: linear-gradient(180deg, #459ed3 0%, #2b7bab 100%);
        box-shadow: 0 1px 4px 0 rgba(27, 143, 229, 0.30), 0 2px 6px -2px rgba(27, 143, 229, 0.65);
    }

.switch-label {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--charade-800);
    font-size: 15px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
}

body.darkmode .switch-label {
    color: white;
}

.chatbox-text {
    width: 100%;
    position: fixed;
    bottom: 10px;
    left: 0;
    padding: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 auto;
}

.chatbox-text-content {
    display: flex;
    align-items: end;
    gap: 6px;
    padding: 0 8px;
    width: clamp(200px, 100%, 800px);
}


    .chatbox-text-content textarea {
        flex: 1;
        min-height: 60px;
        max-height: 250px;
        direction: rtl;
        padding: 12px;
        border-radius: var(--Border-Radius-8px, 8px);
        border: 1.5px solid var(--grey-200, #cdd3e6);
        background: #fff;
        transition: all 0.2s ease-in-out;
        outline: none;
        color: var(--grey-700, #4a4a5a);
        text-align: right;
        font-family: "Yekan Bakh VF";
        font-size: 18px;
        font-style: normal;
        font-weight: 400;
        line-height: 21px; /* 150% */
    }

body.darkmode .chatbox-text-content textarea {
    background: #545050;
    border: #545050;
    color: white;
}

.chatbox-text-content textarea:focus,
.chatbox-text-content textarea:active {
    border: 1.5px solid var(--blue-700, #005cfd);
    background: var(--White-white-50, #fff);
    box-shadow: 0 0 0 2px rgba(0, 92, 253, 0.2);
}

.chatbox-text-content textarea::placeholder {
    color: var(--grey-400, #8692b4);
    font-family: "Yekan Bakh VF";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 21px;
}

.chatbox-text-content textarea:hover {
    border: 1.5px solid var(--blue-700, #005cfd);
}

.chatbox-text button {
    width: 85%;
    padding: 6px 12px;
    outline: unset;
    border: unset;
    border-radius: 8px;
    background-color: #545050;
    color: white;
    font-family: "Yekan Bakh VF", sans-serif;
}

.user-text {
    padding: 12px 8px;
    display: flex;
    align-items: center;
    justify-content: end;
}

.bot-text {
    padding: 12px 8px;
    display: flex;
    align-items: center;
    justify-content: start;
}

.user-text-bubble {
    background-color: dimgray;
    padding: 8px 12px;
    border-radius: 8px;
    max-width: 90%;
    font-size: 16px;
    color: white;
    direction: rtl;
}

.bot-text-content {
    color: dimgray;
    direction: rtl;
    width: 100%;
}

body.darkmode .bot-text-content {
    color: white;
}

iframe {
    overflow-y: auto;
    width: 100%;
    height: 50vh;
    color: white;
    border: unset;
    outline: unset;
    direction: rtl !important;
}

.loading {
    width: 80px;
    height: 80px;
}

    .loading img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }


.error-text {
    background-color: #ff00002b;
    border: 1px solid red;
    width: fit-content;
    padding: 8px 16px;
    margin: 12px;
    border-radius: 12px;
    color: #000000ab;
    font-weight: 600;
}

body.darkmode .error-text {
    color: white;
}
