﻿/*version 04.27.2024*/
body {
    margin: 0;
    background: #f5f7fb;
    color: var(--mainColor); /* ← رنگ متن‌ها */
}

.loginForm input#_btnLogin,
h4 {
    margin: 10px 0
}

a {
    text-decoration: none
}

sup {
    color: red;
    display: contents
}

input[type=radio] {
    vertical-align: middle;
    height: 25px;
    width: 25px;


}
input[type=submit] {
    background: var(--mainColor);
    color: #fff;
}
.login input:focus,
.login textarea:focus {
    border-color: var(--mainColor) !important;
}
input[type=submit] {
    width: 100%;
    height: 40px;
    padding: 10px;
    background: var(--mainColor);
    color: #fff;
    border: none;
    cursor: pointer
}

.link,
.link a,
.login input:hover ~ span.titleForm,
.login textarea:hover ~ span.titleForm,
a.loginLink,
h4 {
    color: var(--mainColor);
}

.form {
    display: inline-block;
    margin-bottom: 30px;
    width: 100%
}

    .form .item,
    .form .item100,
    .form .item30,
    .form .item40,
    .form .item70,
    .form .item75,
    .form .item80 {
        float: right;
        padding: 5px;
        vertical-align: top;
        box-sizing: border-box
    }

    .form .item100 {
        width: 100%
    }

    .form .title {
        min-height: 24px
    }

    .form .control {
        min-height: 40px;
        position: relative
    }

    .form .item70 textarea,
    .form .item75 textarea {
        height: 60px
    }

.select2 {
    width: 100% !important
}

.select2-container--default .select2-selection--multiple,
.select2-container--default .select2-selection--single,
input[type=file],
input[type=number],
input[type=password],
input[type=tel],
input[type=text],
input[type=time],
textarea {
    width: 100%;
    height: var(--inputHeight);
    border-radius: var(--borderRadius);
    border: var(--borderField);
    box-sizing: border-box;
    background: #fff
}

.togglePassword {
    width: 20px;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 10px;
    z-index: 1
}

textarea {
    max-width: 100%;
    max-height: 100%
}

    input:focus,
    textarea:focus {
        outline: 0
    }

.form .item100 textarea,
.login textarea {
    height: 100px
}

.form .categoryTree,
.form .control table {
    border-radius: var(--borderRadius);
    border: var(--border)
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: var(--inputHeight)
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 0 20px 0 8px;
    line-height: 40px
}

.select2-container--default .select2-selection--multiple {
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 40px;
    height: auto
}

.checkBoxList .select2-results__option:before,
.checkboxlst .select2-results__option:before {
    content: "";
    display: inline-block;
    position: relative;
    height: 18px;
    width: 18px;
    border: 1px solid #e9e9e9;
    border-radius: 3px;
    background-color: #fff;
    margin-left: 10px;
    vertical-align: middle;
    text-align: center
}

.checkBoxList .select2-results__option--selected::before,
.checkboxlst .select2-results__option--selected::before {
    content: "\2713";
    background-color: #1269db;
    border: none;
    font-weight: 700;
    color: #fff
}

.ValidationSummary,
.validator {
    display: none
}

.info,
.loginForm > div {
    display: inline-block;
    vertical-align: middle
}

.form .categoryTree span {
    white-space: break-spaces
}

.form .button {
    padding-top: 20px !important
}

input[type=checkbox] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    vertical-align: middle
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border: var(--borderField)
}

.info {
    position: relative;
    cursor: pointer
}

.login,
.loginForm {
    display: flex;
    box-sizing: border-box
}

.info .infoImg {
    width: 18px;
    vertical-align: middle;
    padding: 3px 0;
    filter: invert(20%) sepia(51%) saturate(7073%) hue-rotate(240deg) brightness(102%) contrast(102%)
}
.login .left img {
    width: 900px;
    height: 600px;
    object-fit: cover;
}
.info .infoText {
    position: absolute;
    background-color: #ddd;
    background-color: #ddd;
    top: 114%;
    right: -8px;
    width: max-content;
    max-width: 50vw;
    z-index: 1;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 5px;
    transition: .8s;
    opacity: 0;
    visibility: hidden
}

.info:hover .infoText {
    opacity: 1;
    visibility: visible
}

.info .infoText::after {
    content: "";
    position: absolute;
    bottom: 100%;
    right: 11px;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #ddd
}

.login {
    background: #fcfcfc;
    min-height: 100vh;
    flex-direction: column;
    justify-content: center;
    padding: 20px 0
}

h4 {
    font-weight: 700;
    text-align: center;
    font-size: 16px
}

.loginForm {
    margin: auto;
    background-color: #fff;
    border-radius: .25rem;
    box-shadow: 0 0 .25rem rgb(0 0 0 / 22%);
    justify-content: space-between;
    align-items: center
}

    .loginForm div {
        padding: 10px 0;
        position: relative;
        text-align: center;
        box-sizing: border-box
    }

    .loginForm .right h4 {
        text-align: center;
        font-size: 20px
    }

.login .titleForm {
    background-color: #fff;
    color: #9e9e9e;
    right: 1rem;
    margin-top: calc((var(--inputHeight) - 1.8rem)/ 2);
    transform-origin: right;
    position: absolute;
    user-select: none;
    z-index: 0;
    transition: transform .2s, padding .2s, opacity .1s
}

.loginForm .left {
    float: left;
    padding: 10px
}

    .loginForm .left img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover
    }

.login input:not(input[type=submit]),
.login textarea {
    position: relative;
    z-index: 1;
    padding: 0 8px
}

    .login input[type=number]:placeholder-shown,
    .login input[type=password]:placeholder-shown,
    .login input[type=text]:placeholder-shown,
    .login textarea:placeholder-shown {
        background: 0 0
    }

    .login input[type=number]:not(:placeholder-shown),
    .login input[type=password]:not(:placeholder-shown),
    .login input[type=text]:not(:placeholder-shown),
    .login textarea:not(:placeholder-shown) {
        background: #fff;
        outline: 0;
        border-color: var(--mainColor) !important
    }

        .login input:focus ~ span.titleForm,
        .login input[type=number]:not(:placeholder-shown) ~ span.titleForm,
        .login input[type=password]:not(:placeholder-shown) ~ span.titleForm,
        .login input[type=text]:not(:placeholder-shown) ~ span.titleForm,
        .login textarea:focus ~ span.titleForm,
        .login textarea:not(:placeholder-shown) ~ span.titleForm {
            opacity: 1;
            padding: 0 .3125rem;
            transform: translate(-.1875rem, calc(50px /-2 + .0625rem)) scale(.9);
            color: var(--mainColor);
            z-index: 2
        }

    .login input:focus,
    .login textarea:focus {
        outline: 0;
        border-color: var(--mainColor) !important
    }

footer {
    background: #fff;
    padding: 10px;
    box-sizing: border-box;
    box-shadow: 0 0 20px #0000000d;
    border-radius: var(--borderRadius);
    margin: 10px auto
}

    footer img {
        width: 30px;
        vertical-align: middle
    }

    footer a {
        color: #000
    }

.link {
    text-decoration: underline;
    margin: 0 5px
}




/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    animation: fadeIn 0.3s ease-in-out forwards;
}

.popup-content {
    background: white;
    border-radius: var(--borderRadius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 60%;
    min-width: 30vw;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    animation: slideUp 0.3s ease-in-out forwards;
    margin-top: 60px; /* Add margin to avoid header overlap */
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: var(--border);
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
}

    .popup-header h3 {
        margin: 0;
        font-size: 1.2rem;
        font-weight: 600;
    }

.popup-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    color: #666;
    transition: color 0.2s;
}

    .popup-close:hover {
        color: var(--mainColor);
    }

.popup-body {
    padding: 1rem;
    font-size: 1rem;
    line-height: 1.5;
    max-height: calc(80vh - 120px); /* Adjust based on header and footer height */
    overflow-y: auto;
    color: #000; /* Black text for popup body */
}

.popup-footer {
    display: flex;
    justify-content: flex-end;
    padding: 1rem;
    border-top: var(--border);
    gap: 0.5rem;
    position: sticky;
    bottom: 0;
    background: white;
    z-index: 1;
}

.popup-copy {
    background: linear-gradient(135deg, var(--mainColor), var(--mainColorLighter));
    color: #000; /* Black text for popup copy button */
    border: none;
    padding: 8px 15px;
    border-radius: var(--borderRadiusButton);
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .popup-copy:hover {
        background: linear-gradient(135deg, var(--mainColorLighter), var(--mainColor));
    }

.popup-button {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #000; /* Black text for popup button */
    border: none;
    padding: 8px 15px;
    border-radius: var(--borderRadiusButton);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

    .popup-button:hover {
        background: linear-gradient(135deg, #e9ecef, #dee2e6);
    }

.popup-text {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 14px;
    line-height: 1.6;
    color: #000; /* Black text for popup text */
}

.show-more-btn {
    background: none;
    border: none;
    color: var(--mainColor);
    cursor: pointer;
    font-size: 12px;
    padding: 2px 5px;
    margin-right: 5px;
}

    .show-more-btn:hover {
        text-decoration: underline;
    }

.short-text {
    display: inline-block;
    margin-right: 5px;
}

.popup-success .popup-header {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white; /* White text for header due to gradient background */
}

.popup-error .popup-header {
    background: linear-gradient(135deg, #dc3545, #f86384);
    color: white; /* White text for header due to gradient background */
}

.popup-warning .popup-header {
    background: linear-gradient(135deg, #ffc107, #ffb347);
    color: white; /* White text for header due to gradient background */
}

.popup-info .popup-header {
    background: linear-gradient(135deg, #17a2b8, #0dcaf0);
    color: white; /* White text for header due to gradient background */
}

.popup-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.5rem;
    font-size: 1rem;
    color: #000; /* Black color for popup icons */
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Popup Styles */
@media (max-width: 768px) {
    .popup-content {
        width: 95%;
        margin: 1rem;
    }

    .popup-header h3 {
        font-size: 1.1rem;
    }

    .popup-body {
        font-size: 0.95rem;
    }

    .popup-footer {
        padding: 0.75rem;
    }

    .popup-icon {
        width: 1.25rem;
        height: 1.25rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .popup-content {
        width: 100%;
        margin: 0.5rem;
    }

    .popup-header {
        padding: 0.75rem;
    }

    .popup-body {
        padding: 0.75rem;
    }

    .popup-footer {
        padding: 0.5rem;
        flex-direction: column;
    }

    .popup-copy, .popup-button {
        width: 100%;
        justify-content: center;
    }

    .popup-icon {
        width: 1rem;
        height: 1rem;
        font-size: 0.75rem;
    }
}


@media (min-width:0) {

    .form .item,
    .form .item30,
    .form .item40 {
        width: 50%
    }

    .form .item70,
    .form .item75,
    .form .item80,
    .form .itemM100,
    .loginForm .left {
        width: 100%
    }

    .loginForm {
        width: 95%;
        padding: 15px;
        flex-direction: column-reverse
    }

        .loginForm .right {
            width: 100%;
            padding: 0
        }

    footer {
        width: 95%;
        display: block
    }
}

@media (min-width:768px) {
    .form .item70 {
        width: 70%
    }

    .form .item75 {
        width: 100%
    }
}

@media (min-width:992px) {

    .form .item,
    .form .item30 {
        width: 33%
    }

    .form .item40 {
        width: 40%
    }

    .form .item70 {
        width: 65%
    }

    .form .item75 {
        width: 70%
    }

    .form .item80 {
        width: 80%
    }

    .loginForm {
        width: 73%;
        padding: 0;
        flex-direction: row
    }

        .loginForm .right {
            padding: 20px 40px;
            box-sizing: border-box;
            width: 40%
        }

        .loginForm .left {
            width: 58%
        }

    footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 73%
    }
}

@media (min-width:1200px) {
    .form .item {
        width: 20%
    }

    .form .item30 {
        width: 30%
    }

    .form .item70 {
        width: 70%
    }

    .form .item75 {
        width: 75%
    }
}
/* version 3.24.2024 */
@font-face {
    font-family: 'Shabnam';
    src: url('./fonts/Shabnam.eot');
    src: local('☺'), url('../Fonts/Shabnam.woff') format('woff'), url('../Fonts/Shabnam.ttf') format('truetype');
}

@font-face {
    font-weight: bold;
    font-family: 'Shabnam-Bold';
    src: url('./fonts/Shabnam-Bold.eot');
    src: local('☺'), url('../Fonts/Shabnam-Bold.woff') format('woff'), url('../Fonts/Shabnam-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'iranSans';
    src: url('./fonts/IranNastaliq.eot');
    src: local('☺'), url('../Fonts/IRANSansWeb.woff') format('woff'), url('../Fonts/irsans_p30download.com.ttf') format('truetype');
}

@font-face {
    font-family: 'BNazanin';
    src: url('./fonts/BNazanin.eot');
    src: local('☺'), url('../Fonts/BNazanin.woff') format('woff'), url('../Fonts/BNazanin.ttf') format('truetype');
}


* {
    direction: rtl;
    font-size: 13px;
    font-family: 'iranSans', 'Shabnam', 'Shabnam-Bold', tahoma !important;
}


:root {
    --inputHeight: 40px;
    --borderRadius: 5px;
    --borderRadiusButton: 5px;
    --border: 1px solid #ddd;
    --borderField: 1px solid #a9a7a7;
    --bigWidth: 78%;
    --smallWidth: 20%;
    --mainColor: #c89d47; /* طلایی لوگو */
    --mainColorLighter: #f1e6c9; /* روشن‌تر برای زمینه */
    --mainColorLighterA: #c89d4724; /* سایه طلایی */
    --cancelBtnColor: #3e3e3e; /* خاکستری متعادل‌تر */
    --dengerBtnColor: #ddb55c; /* طلایی روشن */
    --filterMainColor: invert(48%) sepia(34%) saturate(674%) hue-rotate(10deg) brightness(95%) contrast(88%);
    --marginLeftElement: 82px 20% 0 0;
    --urlArrowIcon: url('../Icons/arrow.png');
    --minHeightHeaderSmall: 84px;
    --minHeightHeader: 84px;
    --spaceAboveMenu: 82px;
    --logoWidth: 40px;
}

@media only screen and (max-width: 768px) and (min-width: 0) {
    .main #_backMenu {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: #00000005;
        z-index: 1;
        visibility: hidden;
    }

    .main .active#_backMenu {
        visibility: visible;
    }
}
