/* Fonts: */
@font-face {
    font-family: 'Vazirmatn';
    src: url(/static/fonts/Vazirmatn-Regular.ttf);
}
@font-face {
    font-family: 'Vazirmatn-Bold';
    src: url(/static/fonts/Vazirmatn-Bold.ttf);
}
@font-face {
    font-family: 'Vazirmatn-Medium';
    src: url(/static/fonts/Vazirmatn-Medium.ttf);
}
.fPersian{
    font-family: 'Vazirmatn', sans-serif;
}
.fbPersian{
    font-family: 'Vazirmatn', sans-serif;
    font-weight: bold;
}
.fPersianBold{
    font-family: 'Vazirmatn-Bold', sans-serif;
}
.fPersianM{
    font-family: 'Vazirmatn-Medium', sans-serif;
}

/* Dark mode and light mode start */
/* Dark mode */
@media (prefers-color-scheme: dark) {
    .provider_svg{
        color: #e9e9e9;
        height: 24px;
        width: 24px;
    }
    .chat_response{
        overflow-x: scroll;
    }
    .chat_body{
        background-color: #212121;
        overflow: hidden;
    }
    .chat_user_card{
        background-color: #303030;
        max-width: 600px;
        color: #e9e9e9;
    }
    .chat_input{
        background-color: #2f2f2f;
        max-width: 748px;
    }
    #text_input{
        color: #e9e9e9;
    }
    #text_input::placeholder {
        color: #e9e9e9;
    }
    .chat_model{
        color:#b4b4b4;
        font-weight: normal;
        font-size: 22px;
    }

    /* Offconvas start */
    .chat_offcanvas{
        background-color: #141414;
        max-width: 260px;
    }
    .convoL{
        color: #e9e9e9;
        background-color: #141414;
        font-size: 14px;
    }
    .convoL:hover{
        background-color: #464545;
        color: #e9e9e9;
    }
    /* Offconvas end */

    /* modal start */
    .modal-content{
        background-color: #212121;
        color: #e9e9e9;
    }
    .btn-close{
        background-color: #e9e9e9;
    }
    .modal-title{
        color: #e9e9e9;
    }
    /* modal end */

    #chat_model_name:hover{
        background-color: #323232;
        cursor: pointer;
    }

    .thinking-container {
        display: flex;
        align-items: center;
    }

    .thinking-text {
        font-size: 18px;
        line-height: 1.6;
    }
    
    .cursor {
        display: inline-block;
        width: 3px;
        height: 1.4rem;
        background-color: #e8e8e8;
        margin-left: 2px;
        animation: blink 1s infinite;
        vertical-align: middle;
    }
    
    @keyframes blink {
        0%, 100% { opacity: 1; }
        50% { opacity: 0; }
    }

@keyframes mercuryTypingAnimation {
    0% {
        transform: translateY(0px);
        background-color:#464646;
    }
    28% {
        transform: translateY(-7px);
        background-color:#7d7d7d;
    }
    44% {
        transform: translateY(0px);
        background-color: #c5c5c5;
    }
}

}

@media (prefers-color-scheme: light) {
    nav{
        color: #5d5d5d;
    }
    .provider_svg{
        color: #0d0d0d;
        height: 24px;
        width: 24px;
    }
    .chat_response{
        overflow-x: scroll;
        color: #0d0d0d;
    }
    .chat_body{
        overflow: hidden;
    }
    .chat_user_card{
        background-color: #f4f4f4;
        max-width: 600px;
        color: #0d0d0d;
        border-width: 0px;
    }
    .chat_input{
        color: #0d0d0d;
        max-width: 748px;
        background-color: #ecf0f3;
    }
    #text_input{
        color: #0d0d0d;
    }
    #welcome_text{
        color: #252525;
    }
    .chat_model{
        color:#5d5d5d;
        font-weight: normal;
        font-size: 22px;
    }

    /* Offconvas start */
    .chat_offcanvas{
        color: #0d0d0d;
        background-color: #f1f5f9;
        max-width: 260px;
    }
    .convoL{
        color: #0d0d0d;
        font-size: 14px;
    }
    .convoL:hover{
        background-color: #e0e8e8;
        color: #151c1c;
    }
    .btn.btn-outline-light:active,
    .btn.btn-outline-light:focus,
    .btn.btn-outline-light.active,
    .btn.btn-outline-light.focus{
        background-color: #e0e8e8;
        color: #151c1c;
    }
    /* Offconvas end */

    .modal-title{
        color: #0d0d0d;
    }

    #chat_model_name:hover{
        background-color: rgba(93, 93, 93, 0.05);
        cursor: pointer;
    }

    .thinking-container {
        display: flex;
        align-items: center;
    }

    .thinking-text {
        font-size: 18px;
        line-height: 1.6;
    }
    
    .cursor {
        display: inline-block;
        width: 3px;
        height: 1.4rem;
        background-color: #e8e8e8;
        margin-left: 2px;
        animation: blink 1s infinite;
        vertical-align: middle;
    }
    
    @keyframes blink {
        0%, 100% { opacity: 1; }
        50% { opacity: 0; }
    }

@keyframes mercuryTypingAnimation {
    0% {
        transform: translateY(0px);
        background-color:#464646;
    }
    28% {
        transform: translateY(-7px);
        background-color:#7d7d7d;
    }
    44% {
        transform: translateY(0px);
        background-color: #c5c5c5;
    }
}
}
/* Dark mode and light mode end */

pre, code {
    direction: ltr !important;
    text-align: left !important;
    border-radius: 10px;
    background: #1a1b26;
    padding: 5px 5px 5px 5px;
    position: relative;
}

/* Code tags <code> copy button start */
/* Style for the copy button */
.copy-btn {
    position: absolute;
    top: 1px;
    right: 1px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 12px;
    font-family: 'Vazirmatn', sans-serif;
}

.copy-btn:hover {
    background-color: #0056b3;
}
.code-container {
    position: relative;
}
.code-container-2 {
    position: relative;
    padding: 8px;
}
/* Code tags <code> copy button end */

/* Chat start */
.chat_preview_attachment_pdf{
    font-size: 64px;
}
.user_input{
    white-space: pre-wrap;
}
.chat_card{
    max-width: 748px;
}
.chat_main{
    overflow-y: scroll; 
    scroll-behavior: smooth;
}
.chat_input_send_btn{
    height: 32px;
    width: 32px;
    opacity: 25%;
    transition: opacity 0.3s ease;
}
.chat_input_attachment_btn{
    height: 24px;
    width: 24px;
    opacity: 25%;
    transition: opacity 0.1s ease;
    cursor: pointer;
}
button{
	background: none;
	color: inherit;
	border: none;
	padding: 0;
	font: inherit;
	cursor: pointer;
	outline: inherit;
}
#new_conversation{
    cursor: pointer;
}
.globe_search_icon{
    height: 13px;
    width: 13px;
}
.globe_search_text{
    font-size: 13px;
}
.globe_search_button{
    --bs-btn-padding-y: .25rem;
    --bs-btn-padding-x: .5rem;
    --bs-btn-font-size: .75rem;
}
/* Chat end */

/* Model selection modal start */
.radio-icon{
    height: 20px;
    width: 20px;
}
.model-name{
    font-weight: 500;
}
.model-selection-radio{
    max-width: 800px;
    margin-inline: auto;
}
#model_providers{
    max-width: 600px;
    margin-inline: auto;
}
.model-help-text{
    font-size: 12px;
    direction: rtl;
}
.login-hero-index{
    background-color: #00b65a; 
}
.login-hero-index-btn{
color: #009F6B;
}
/* .model_button{
    height: 100px;
    width: 100px;
} */
/* Model selection modal end */

/* Upload CSS Start */
.upload-preview {
    position: relative;
    width: 100px;
    height: 100px;
}
.upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin-left: 10px;
}
.circular-progress {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 14px;
    display: none;
}
.cancel-button {
    position: absolute;
    top: +5px;
    right: -15px;
    background: #ff4d4d;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
}
.cancel-button:hover {
    background: #e63939;
}
/* Upload CSS End */

/* For desktop */
@media (min-width: 576px) {
    #welcome_text{
        font-size: 40px;
        font-family: 'Vazirmatn-Medium', sans-serif;
    }

    .chat_nav_icons{
        height: 24px;
        width: 24px;
    }
    .chat_nav{
        height: 52px;
    }

    .provider_button{
        height: 110px;
        width: 110px;
    }
    .provider-button-title{
        font-size: 16px;
    }
    .model_icon{
        height: 40px;
        width: 40px;
    }

    /* Sidebar icon display start */
    #desktop_icon_sidebar{
        display: block;
    }
    #mobile_icon_sidebar{
        display: none;
    }
    /* Sidebar icon display end */
}

/* For mobile */
@media (max-width: 576px) {
    #welcome_text{
        font-size: 32px;
        font-family: 'Vazirmatn-Medium', sans-serif;
    }

    .chat_nav_icons{
        height: 24px;
        width: 24px;
    }
    .chat_nav{
        height: 60px;
    }

    .provider_button{
        height: 85px;
        width: 85px;
    }
    .provider-button-title{
        font-size: 12px;
    }
    .model_icon{
        height: 32px;
        width: 32px;
    }

    /* Sidebar icon display start */
    #desktop_icon_sidebar{
        display: none;
    }
    #mobile_icon_sidebar{
        display: block;
        transform: scaleX(-1);
    }
    /* Sidebar icon display end */
}