﻿:root {
    --color-one: #219C90;
    --color-red: #EE4E4E;
    --color-blue: #80C4E9;
    --color-green: #219C90;
    --color-orang: #EB5B00;
    --color-yellow: yellow;
    --border-color: #CCC;
    --font-main: poppins;
    --font-caption: poppins;
    --font-sx: 18pt;
    --font-s: 10pt;
    --font-n: 12pt;
    --font-l: 14pt;
    --font-lx: 16pt;
    --font-icon: 'Font Awesome 6 Free';
}


/* #region font */
@font-face {
    font-family: poppins;
    font-weight: normal;
    src: url('font/Poppins-Light.woff');
}

@font-face {
    font-family: poppins;
    font-weight: bold;
    src: url('font/Poppins-SemiBold.woff');
}

@font-face {
    font-family: "fa";
    font-style: normal;
    font-weight: normal;
    src: local("‚ò∫"), url("font/fa/Dorweb.woff") format("woff"), url("font/fa/Dorweb.ttf") format("truetype");
}

@font-face {
    font-family: "ar";
    font-style: normal;
    font-weight: normal;
    src: local("‚ò∫"), url("font/ar/Almarai.woff2") format("woff");
}

@font-face {
    font-family: "en";
    font-style: normal;
    font-weight: normal;
    src: local("‚ò∫"), url("font/en/Poppins-Light.woff") format("woff");
}


.font_fa, .cls_fa .text {
    font-family: fa !important;
}


.font_ar, .cls_ar .text {
    font-family: ar !important;
}

.font_en, .cls_en .text {
    font-family: en !important;
}

/* #endregion font */

body {
    padding: 0px;
    margin: 0px;
    direction: ltr;
    font-family: var(--font-main);
    background-color: #F7f7f7;
    font-size: var(--font-n);
}


.center {
    text-align: center !important;
}

img {
    max-width: 100%;
}

/*#region Tabs */

.tabs {
    background-color: var(--color-one);
    border-radius: 2px;
}

ul#tabs-nav {
    list-style: none;
    margin: 0;
    padding: 3px 0 0px 3px;
    overflow: auto;
}

    ul#tabs-nav li {
        float: left;
        font-weight: bold;
        margin-right: 2px;
        padding: 8px 10px;
        border-radius: 2px;
        cursor: pointer;
    }

        ul#tabs-nav li:hover,
        ul#tabs-nav li.active {
            background-color: #fff;
            border-radius: 0px;
        }

            ul#tabs-nav li.active > span,
            ul#tabs-nav li:hover > span {
                color: #000 !important;
                border-radius: 0px;
            }

#tabs-nav li span {
    text-decoration: none;
    color: #FFF;
}

.tab-content {
    padding: 10px;
    border: 3px solid var(--color-one);
    border-top: none;
    background-color: #FFF;
}

/*#endregion */

/* #region page */

.page-menu {
    background-color: var(--color-one);
    color: #FFF;
    position: fixed;
    top: 10px;
    left: 10px;
    bottom: 10px;
    width: 250px
}

    .page-menu h1 {
        color: #FFF;
        padding: 0px;
        margin: 0px 0px;
        text-align: center;
        font-size: var(--font-lx);
        text-transform: uppercase;
    }

    .page-menu a {
        color: #FFF;
        padding: 0px;
        margin: 0px 10px;
        width: calc(100% - 20px);
        display: inline-block;
        text-decoration: none;
        transition-duration: 0.2s;
    }


        .page-menu a.have-chid .fa-angle-down {
            float: right;
            margin-top: 5px;
        }



    .page-menu [class*="fa-"] {
        display: inline-block;
        width: 24px;
        text-align: center;
    }





    .page-menu a:hover {
        background-color: #FFF;
        color: var(--color-one);
    }

        .page-menu a:hover [class*="fa-"] {
        }


    .page-menu .child-box {
        border-left: 2px solid #FFF;
        margin-left: 21px;
    }

        .page-menu .child-box a {
            font-size: var(--font-s);
        }

        .page-menu .child-box [class*="fa-"] {
            font-size: smaller;
        }


    .page-menu .menu-icon {
        display: none;
        cursor: pointer;
    }


.page-main {
    margin: 10px;
    margin-left: 260px;
}

.page-free {
    padding-top: 10px;
    padding-right: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    left: 0px;
    right: 0px;
    bottom: 0px;
    top: 0px;
    overflow: auto;
}

.user-data {
    text-align: center;
    font-size: var(--font-s);
}

@media (max-width:800px) {
    .page-menu {
        top: 0px;
        bottom: unset;
        left: 0px;
        right: 0px;
        width: unset;
        z-index: 850;
    }

        .page-menu .menu-icon {
            display: unset;
            margin-left: 10px;
            margin-right: 10px;
        }

        .page-menu h1 {
            text-align: left;
            display: inline-block;
        }

    .menu-box {
        background-color: var(--color-one);
        position: fixed;
        top: 32px;
        left: 0px;
        bottom: 0px;
        width: 75%;
        max-width: 250px;
        z-index: 850;
        transition-duration: 0.5s;
    }

    .menu-box-bg {
        position: fixed;
        top: 32px;
        left: 0px;
        bottom: 0px;
        right: 0px;
        z-index: 800;
        display: none;
    }



    .page-main {
        margin-top: 42px;
        margin-left: 0px;
    }
}


/* #endregion page */

/* #region grid */
/*
    cd: colum for descktop
    cm: colum for mobile
*/
.r, [class^="r-"] {
    display: flex;
    flex-wrap: wrap;
}


.r-2-1 > div {
    width: 50%;
}

.r-2-2 > div {
    width: 50%;
}

.r-4-2 > div {
    width: 25%;
}


@media (max-width:800px) {
    .r-2-1 > div {
        width: 100%;
    }

    .r-2-2 > div {
        width: 50%;
    }


    .r-4-2 > div {
        width: 50%;
    }
}

.cd-10 {
    width: 10%;
}

.cd-20 {
    width: 20%;
}

.cd-25 {
    width: 25%;
}

.cd-30 {
    width: 30%;
}


.cd-33 {
    width: 33.333%;
}

.cd-40 {
    width: 40%;
}

.cd-50 {
    width: 50%;
}

.cd-60 {
    width: 60%;
}

.cd-70 {
    width: 70%;
}

.cd-75 {
    width: 75%;
}

.cd-80 {
    width: 80%;
}

.cd-90 {
    width: 90%;
}

.cd-100 {
    width: 100%;
}

@media (max-width:800px) {
    .cm-10 {
        width: 10%;
    }

    .cm-20 {
        width: 20%;
    }

    .cm-25 {
        width: 25%;
    }

    .cm-30 {
        width: 30%;
    }

    .cm-33 {
        width: 33.333%;
    }

    .cm-40 {
        width: 40%;
    }

    .cm-50 {
        width: 50%;
    }

    .cm-60 {
        width: 60%;
    }

    .cm-70 {
        width: 70%;
    }

    .cm-75 {
        width: 75%;
    }

    .cm-80 {
        width: 80%;
    }

    .cm-90 {
        width: 90%;
    }

    .cm-100 {
        width: 100%;
    }
}





/* #endregion grid */

/* #region box*/

.r .box,
[class^="r-"] .box {
    height: calc(100% - 32px) !important;
}

.box {
    background-color: #FFF;
    border: 1px solid #DDD;
    padding: 10px;
    margin-left: 10px;
    margin-bottom: 10px;
    line-height: 175%;
    transition-duration: 0.5s;
    overflow:hidden;
}

.box-close{
    /*height:35px;*/
}


    .box hr {
        border: none;
        border-top: 1px solid var(--color-one);
        width: 80%;
        margin-top: 15px;
        margin-bottom: 5px;
        
    }

    .box h1,
    .over-box h1 {
        padding: 0px;
        padding-bottom: 3px;
        margin: 0px;
        margin-bottom: 7px;
        font-size: var(--font-l);
        border-bottom: 2px solid var(--color-one);
        text-transform: uppercase;
        cursor:pointer;
    }


        .box h1::before {
            content: "\f102";
            font-family: "Font Awesome 6 Free";
            margin-right: 10px;
            font-size: 12pt;
            font-weight: bold;
        }


.box-close h1::before {
    content: "\f103" !important;
    font-family: "Font Awesome 6 Free";
    margin-right: 10px;
    font-size: 12pt;
    font-weight: bold;
}






        .box h1 i,
        .over-box h1 i {
            margin-right: 10px;
            font-size: 12pt;
            font-weight: bold;
        }


    .box h2 {
        font-family: var(--font-caption);
        padding: 0px 0px 0px 0px;
        margin: 0px 5px 0px 0px;
        font-size: var(--font-s);
        text-transform: capitalize;
        display: inline-block;
    }

        .box h2::after {
            content: " : ";
        }

    .box .b-box {
        border-top: 1px solid var(--color-one);
        margin-top: 10px;
        padding-top: 10px;
        text-align: center;
    }

    .box .item, .box .item-full {
        margin-bottom: 10px;
        max-width: 500px;
        width: 100%;
    }


    .box .item-full {
        max-width: 100%;
    }


    .box span.read-only {
        background-color: #eee;
        font-size: var(--font-s);
        padding: 3px 10px;
        border-radius: 2px;
    }

    .box .listCount {
        font-size: 13px;
        float:right;
    }

        .box .listCount:before {
            content: '( Count : ';
        }
        .box .listCount:after {
            content:' ) ';
        }

.rf {
    color: var(--color-red);
    font-weight: bold;
    font-size: var(--font-s);
    display: block;
}

/* #endregion box */

/* #region control */




input[type="text"],
textarea,
input[type="password"] {
    font-family: var(--font-main);
    font-size: var(--font-n);
    width: calc(100% - 12px);
    border: 1px solid var(--border-color);
    padding: 5px;
    outline: none;
    transition-duration: 0.2s;
}

    input[type="text"]:focus,
    input[type="password"]:focus {
        border: 1px solid #888;
        box-shadow: 0px 0px 5px #ddd;
    }

    input[type="text"]:hover,
    input[type="password"]:hover {
        box-shadow: 0px 0px 5px #ddd;
    }






.mt {
    margin-top: 10px;
}

.mb {
    margin-bottom: 10px;
}

.mr {
    margin-right: 10px;
}

.ml {
    margin-left: 10px;
}



.btn,
[class^="btn-"],
input[type=button],
input[type=submit] {
    font-family: var(--font-main);
    font-size: var(--font-n);
    border: 1px solid var(--border-color);
    background-color: #EEE;
    color: #000;
    text-decoration: none;
    padding: 5px 15px;
    display: inline-block;
}

    .btn:hover,
    [class^="btn-"]:hover,
    input[type=button]:hover,
    input[type=submit]:hover {
        background-color: #DDD;
        opacity: 0.8 !important;
    }


    [class^="btn-"]::before {
        font-family: 'Font Awesome 6 Free';
        font-size: 10pt;
        margin-right: 5px;
    }



.btn-green {
    background-color: var(--color-green) !important;
    color: #fff !important;
}

.btn-blue {
    background-color: var(--color-blue) !important;
    color: #fff !important;
}

.btn-orang {
    background-color: var(--color-orang) !important;
    color: #fff !important;
}

.btn-red {
    background-color: var(--color-red) !important;
    color: #fff !important;
}

.btn-yellow {
    background-color: var(--color-yellow) !important;
    color: #fff !important;
}

.btn-login::before {
    content: "\f090";
}

.btn-save::before {
    content: "\f0c7";
}

.btn-upload::before {
    content: "\f093";
}

.btn-search::before {
    content: "\f002";
}



select {
    font-family: var(--font-main);
    font-size: var(--font-n);
    border: 1px solid var(--border-color);
    color: #000;
    text-decoration: none;
    padding: 5px 15px;
    display: block;
}



/* #endregion control */


/*#region My Sortabla Style - Grok Style */

/* استایل ظرف والد */
.parent-container {
    width: 100%; /* عرض کامل والد */
    max-width: 1200px; /* حداکثر عرض برای صفحه‌های بزرگ */
    margin: 0 auto; /* وسط‌چین کردن */
}

/* استایل ظرف گرید */
.sortable-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, 100px); /* عرض ثابت 100px برای هر ستون */
    gap: 10px; /* فاصله بین آیتم‌ها */
    padding: 10px;
    min-height: 130px; /* جلوگیری از پرش */
    background: #f9f9f9;
    border: 1px solid #ccc;
    justify-content: start; /* چپ‌چین کردن آیتم‌ها */
}

.static-item {
    width: 100px; /* عرض ثابت برابر با آیتم‌های sortable */
    height: 130px; /* ارتفاع برای تصویر (100px) + دکمه (30px) */
    background: #e0e0e0;
    border: 1px solid #999;
    display: inline-flex; /* برای قرار گرفتن در کنار گرید */
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    padding: 0; /* حذف فضای داخلی */
    margin-right: 10px; /* فاصله از گرید */
    margin-bottom: 10px; /* فاصله عمودی */
}

/* استایل آیتم‌های sortable */
.sortable-item {
    position: relative; /* برای موقعیت‌دهی دکمه حذف */
    width: 100px; /* عرض ثابت */
    height: 130px; /* ارتفاع ثابت */
    background: #e0e0e0;
    border: 1px solid #999;
    cursor: move;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

    /* استایل تصویر */
    .sortable-item img {
        width: 140px; /* عرض ثابت */
        height: 140px; /* ارتفاع ثابت */
        margin: 5px;
        object-fit: cover; /* تنظیم تصویر */
    }

/* استایل دکمه حذف */
.delete-button {
    width: calc(100% - 4px); /* عرض کامل منهای حاشیه */
    background-color: red;
    color: white;
    border: none;
    padding: 2px;
    cursor: pointer;
    text-align: center;
    position: absolute;
    bottom: 2px;
}

/* استایل placeholder */
.ui-sortable-placeholder {
    width: 100px; /* عرض ثابت */
    height: 130px; /* ارتفاع ثابت */
    background: #f0f0f0;
    border: 1px dashed #666;
    visibility: visible !important;
    opacity: 0.5;
    box-sizing: border-box;
}

/*#endregion */



/*#region table*/


.tbl-nowarp, div.tbl-nowarp table {
    white-space: nowrap;
    display: block !important;
    overflow-x: auto !important;
}




div.tbl-list h1 {
    background-color: var(--color-one) !important;
    color: #FFFFFF !important;
    font-size: var(--Font-Normal) !important;
    width: calc(100% - 10px) !important;
    padding: 10px !important;
    border-radius: 4px !important;
    margin: 0px 5px 0px 5px !important;
}

    div.tbl-list h1:before {
        content: ' :: ';
    }

.tbl-list, .tbl-list-caption, div.tbl-list table {
    border-collapse: separate !important;
    border-spacing: 5px !important;
    width: 100% !important;
}

    .tbl-list td, .tbl-list-caption td, div.tbl-list table td {
        background-color: #EEE;
        border-radius: 4px;
        padding: 3px;
        text-align: center;
    }

    .tbl-list-caption tr:first-child td {
        background-color: var(--color-one) !important;
        color: #FFFFFF !important;
        font-size: var(--Font-Noraml) !important;
        padding: 10px !important;
        text-align: right !important;
    }

        .tbl-list-caption tr:first-child td:before {
            content: ' :: ';
        }


    .tbl-list tr:first-child td, .tbl-list-caption tr:nth-child(2) td, div.tbl-list table tr:first-child td {
        background-color: var(--color-one) !important;
        color: #fff !important;
        border-radius: 4px !important;
        padding: 8px !important;
        text-align: center !important;
        text-transform: capitalize;
    }




    .tbl-list tr:nth-child(2n+1) td, .tbl-list-caption tr:nth-child(2n+1) td, div.tbl-list table tr:nth-child(2n+1) td {
        background-color: #F7F7F7;
    }

    .tbl-list tr:hover td, .tbl-list-caption tr:hover td, div.tbl-list table tr:hover td {
        background-color: #ededa0;
    }


    .tbl-list a {
        text-decoration: none !important;
        color: inherit !important;
    }


.pagging-box {
    text-align: center;
    margin-top: 10px;
    border-top: 2px solid var(--color-one);
    padding: 15px;
}

    .pagging-box > a {
        padding: 5px;
        color: #000;
        text-decoration: none;
    }

        .pagging-box > a.active {
            background-color: #888;
            color: #fff;
        }
/*#endregion table*/
[class*="message-line"] {
    color: #FFF;
    padding: 5px 10px;
}

    [class*="message-line"] ul {
        padding-left: 20px;
        margin: 0px;
        display: inline-block;
    }


.message-line-ok {
    background-color: var(--color-one);
}

.message-line-warring {
    background-color: var(--color-orang);
}

.message-line-stop {
    background-color: var(--color-red);
}


[class*="message-line"]::before {
    font-family: 'Font Awesome 6 Free';
    font-size: 16pt;
    margin-right: 5px;
    vertical-align: top;
}


.message-line-ok:before {
    content: "\f00c";
}

.message-line-warring:before {
    content: "\f06a";
}


.message-line-stop:before {
    content: "\f071";
}


.over-bg {
    position: fixed;
    background-color: rgba(0,0,0,0.5);
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    z-index: 1000;
}


.over-box {
    position: fixed;
    background-color: #FFF;
    top: 10%;
    left: 10%;
    right: 10%;
    bottom: 10%;
    z-index: 1001;
    padding: 10px;
}

.over-body {
    height: calc(100% - 90px);
    overflow: auto;
}

.over-btn {
    height: 40px;
    border-top: 1px solid var(--color-one);
    margin-top: 4px;
    padding-top: 5px;
    text-align: center;
}

/* #region UC_Media */
.uc-media .main-box {
    background-color: #FFF;
    border: 1px solid var(--border-color);
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}






/* #endregion */


.AparatBox {
    width: 100%;
    height: 100px;
    background-color: rgba(0,0,0,0.5);
    text-align: center;
    color: white;
    font-family: 'BYekan',Tahoma;
    font-size: 18px;
    pointer-events: none;
}

    .AparatBox::after {
        content: " این ویدئو در پنل مدیریتی قابلیت نمایش ندارد . اما در خروجی سایت نمایش داده میشود و مشکلی ندارد ";
    }



.MediaBox {
    margin: 5px;
    padding: 10px;
    background-color: #eee;
    cursor: pointer;
    position: relative;
    border-radius: 5px;
    padding-top: 75%;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;
    background-origin: padding-box;
    overflow: hidden;
    border: 1px solid #bdbdbd;
}

    .MediaBox input[type='checkbox'] {
        position: absolute;
        top: 2px;
        left: 2px;
        width: 16px;
        height: 16px;
    }

    .MediaBox.select, .MediaBox.select > span {
        background-color: #75f975;
    }

    .MediaBox span {
        white-space: nowrap;
        position: absolute;
        bottom: 0;
        right: 0;
        background-color: #eee;
        width: 100%;
        text-align: center;
    }

.MediaBox_OpenNewTap i {
    position: absolute;
    z-index: 999;
    top: 15px;
    right: 10px;
    color: #474787;
    cursor: alias;
}

.dropzineBtn, .dropzineLoading {
    position: absolute;
    z-index: 9;
    top: 0;
    right: 0;
    background-color: var(--color-blue) !important;
    color: var(--color-yellow) !important;
}

.dropzineLoading {
    background-color: initial !important;
    color: #000 !important;
}
