@font-face {
    font-family: IRANSans;
    src: url('../tools/fonts/IRANSans/IRANSansWeb_Light.woff'),
    url('../tools/fonts/IRANSans/IRANSansWeb_Light.woff') format('truetype');
    font-weight: normal;
  }
 :root {
    --brand:        #C1552C;   /* ترکوتای گرم — به‌جای بنفش ژنریک */
    --brand-light:  #FBEAE0;
    --brand-dark:   #7A331A;
    --brand-mid:    #9C4423;

    --bg-primary:   #ffffff;
    --bg-secondary: #FBF7F2;   /* کرم گرم به‌جای لاواندر سرد */
    --bg-card:      rgba(255, 255, 255, 0.65);

    --text-main:    #241C16;   /* مشکی گرم، نه بنفش‌تیره */
    --text-muted:   #75695E;

    --glass-bg:     rgba(255, 255, 255, 0.55);
    --glass-border: rgba(255, 255, 255, 0.75);
    --glass-shadow: rgba(193, 85, 44, 0.12);

    --nav-bg:       rgba(255, 255, 255, 0.85);
    --radius-md:    8px;
    --radius-lg:    14px;
    --radius-xl:    20px;

    --input-bg:     #ffffff;
    --input-border: #E8DDD2;
    --input-focus:  #C1552C;

    --border-width: 1px;
    --border-color: #ced4da;
}

[data-theme="dark"] {
    --brand-light:  #3A2418;

    --bg-primary:   #1A1410;
    --bg-secondary: #17120E;
    --bg-card:      rgba(50, 38, 28, 0.65);

    --text-main:    #F2E9DF;
    --text-muted:   #B8A896;

    --glass-bg:     rgba(35, 26, 19, 0.70);
    --glass-border: rgba(193, 85, 44, 0.20);
    --glass-shadow: rgba(0, 0, 0, 0.40);

    --nav-bg:       rgba(15, 11, 8, 0.92);

    --input-bg:     rgb(35 26 19 / 56%);
    --input-border: 1px solid #3A2E24;
    --input-focus:  #E8A33D;
}
[dir="rtl"] * {
      font-family:IRANSans;
}

.header-logo{
    height: 3rem;
}
[dir="rtl"] *{
    direction: rtl;
    text-align: right;
}
[dir="ltr"]  *{
    direction: ltr;
    text-align: left;
}
.d-rtl{
    direction: rtl;
}
.d-ltr{
    direction: ltr;
}
.H-5-rem{
    height: 5rem !important;
}
.H-10-rem{
    height: 10rem !important;
}
.header-main {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    background-color: sandybrown;
    line-height: 3.5rem;
    display: flex;
    justify-content: space-around;
    z-index: 20;
    align-items: stretch;
}

.logo {
    max-height: 3.5rem;
}

.dir-ltr{
    direction: ltr !important;
}

/*languege Modal*/
#select-languege-modal{
    display:block;
    overflow-x: hidden;
    overflow-y: auto;
}
/*languege Modal*/

.sidebar-header {
    flex: 0 0 14rem;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.2);
}
.sidebar-header a{
    color: #f0f0f0;
    text-align: center;
}
.sidebar-header a:hover{
    color: sandybrown;
    text-decoration: none;
}

.body-header {
    background-color: #f3f3f3;
    width: calc(100% - 14rem);
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.2);
    z-index:20;
}
@media(min-width:767.98px){
    .body-header {
        display: block !important;
    }

}
@media(max-width:767.98px){
    .header-main {
        display: block;
    }
    .sidebar-header {
        width: 100%;
    }
    .body-header {
        display: none;
        width: 100%;
    }

}
[dir="rtl"] .search-main-area{
    margin-right: 3rem;
}
[dir="ltr"]  .search-main-area{
    margin-left: 3rem;
}
.search-area {
    background-color: #dcdcdc;
    padding: .3rem .6rem;
    border-radius: 2rem;
}

.search-input {
    background-color: rgba(0, 0, 0, 0);
    outline: none;
    border: none;
    margin: 0 .6rem;
}
[dir="rtl"] #full-screen{
    margin-right: 3rem;
}
[dir="ltr"]   #full-screen{
    margin-left: 3rem;
}

[dir="rtl"] #header-profile-collapse{
    margin-left: 1rem;
}
[dir="rtl"] #header-comment-toggle-area{
    margin-left: 0.5rem;
}
[dir="rtl"] #header-notification-toggle-area{
    margin-left: 0.5rem;
}
[dir="ltr"]  #header-profile-collapse{
    margin-right: 1rem;
}
[dir="ltr"]  #header-comment-toggle-area{
    margin-right: 0.5rem;
}
[dir="ltr"]  #header-notification-toggle-area{
    margin-right: 0.5rem;
}

@media only screen and (min-width: 768px) {

    [dir="rtl"] #header-profile-collapse{
        margin-left: 3rem;
    }
    [dir="rtl"] #header-comment-toggle-area{
        margin-left: 1.5rem;
    }
    [dir="rtl"] #header-notification-toggle-area{
        margin-left: 1.5rem;
    }
    [dir="ltr"]  #header-profile-collapse{
        margin-right: 3rem;
    }
    [dir="ltr"]  #header-comment-toggle-area{
        margin-right: 1.5rem;
    }
    [dir="ltr"]  #header-notification-toggle-area{
        margin-right: 1.5rem;
    }

}

.header-notifictation {
    position: absolute;
    margin-top: .2rem;
    width: 16rem;
    background-color: white;
    color: #000000;
    box-shadow: 0 1px 20px 0 rgba(70, 90, 100, 0.08);
    display: none;
}
[dir="rtl"] .header-notifictation{
    left: 0;
}
[dir="ltr"]  .header-notifictation{
    right: 0;
}
.notification-img {
    width: 3rem;
    border-radius: .1rem;
}

.notification-user {
    font-size: .8rem;
    font-weight: bold;
    margin-top: .3rem;
}

.notification-text {
    font-size: .7rem;
    line-height: .7rem;
}

.notification-time {
    font-size: .6rem;
    line-height: .6rem;
    color: #919aa3;
}

.header-comment {
    position: absolute;
    height: calc(100vh - 3.5rem);
    width: 18rem;
    background-color: #FFFFFF;
    color: black;
    box-shadow: 0 1px 20px 0 rgba(70, 90, 100, 0.08);
    border-right: 1px solid rgba(0, 0, 0, 0.125);
    display: none;
}
[dir="rtl"] .header-comment{
    left:0;
}
[dir="ltr"]  .header-comment{
    right:0;
}

.header-comment-wrapper {
    height: calc(100% - 6rem);
    overflow: auto;
}

.header-comment-wrapper::-webkit-scrollbar {
    display: none;
}

.comment-user {
    font-size: .75rem;
    font-weight: bold;
    margin-top: .8rem;
}

.comment-user-status {
    font-size: .4rem;
}

.header-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: .3rem;
    margin: .2rem;
}

.header-username {
    color: #333333;
    font-size: .8rem;
}

.header-profile {
    position: absolute;
    margin-top: .2rem;
    z-index: 11;
    height: auto;
    width: 13rem;
    background-color: #FFFFFF;
    color: #000000;
    box-shadow: 0 1px 20px 0 rgba(70, 90, 100, 0.08);
    display: none;
}
[dir="rtl"] .header-profile{
    left: 0;
}
[dir="ltr"]  .header-profile{
    right: 0;
}

.header-profile-link {
    padding: .4rem;
    font-size: .8rem;
    line-height: 1.4rem;
}

.header-profile-link>i {
    width: 2rem;
    text-align: center;
}

.body-container {
    margin-top: 3.5rem;
    z-index: 5;
    display: flex;
    background-color: #ffffff;
}

.sidebar {
    background-color: #404E67;
    color: #dcdcdc;
    flex: 0 0 14rem;
}
[dir="rtl"] .sidebar-container{
    right: 0;
}
[dir="ltr"]  .sidebar-container{
    left: 0;
}
.sidebar-container {
    height: calc(100vh - 3.5rem);
    position: fixed;
    top: 3.5rem;
    z-index: 15;
    width: 14rem;
}

.sidebar-wrapper {
    padding: 1rem 0;
    overflow: auto;
    height: 100%;
}

.sidebar-wrapper::-webkit-scrollbar {
    display: none;
}
body::-webkit-scrollbar {
    display: none;
}
.modal::-webkit-scrollbar {
    display: none;
}

.overflow-visible{
    overflow: visible !important;
}

.sidebar-part-title {
    font-size: .9rem;
    padding: .5rem 1rem;
    margin-top: 1rem;
    color: #999999;
}

.sidebar-link {
    font-size: .8rem;
    margin-top: 1rem;
    padding: .4rem 1rem;
    display: block;
    text-decoration: none;
    outline: none;
    border: none;
    color: #dcdcdc;
    transition: all .3s;
}

.sidebar-link:hover {
    text-decoration: none;
    color: #FE8A7D;
}

.sidebar-link>i {
    width: 2rem;
    text-align: center;
}

.sidebar-group-link {
    font-size: .8rem;
    padding: .4rem 0;
    color: #dcdcdc;
    transition: all 0.2s;
    -webkit-transition: all 0.2s;
    -moz-transition: all 0.2s;
    -ms-transition: all 0.2s;
    -o-transition: all 0.2s;
}

.sidebar-group-link-active {

    margin-top: 1rem;
    box-shadow: 0 0 34px rgba(0, 0, 0, 0.2)  ;
    -webkit-box-shadow: 0 0 34px rgba(0, 0, 0, 0.2)  ;
    -moz-box-shadow: 0 0 34px rgba(0, 0, 0, 0.2)  ;
    transition: all 0.2s;
    -webkit-transition: all 0.2s;
    -moz-transition: all 0.2s;
    -ms-transition: all 0.2s;
    -o-transition: all 0.2s;
}
[dir="rtl"] .sidebar-group-link-active {
    border-right: #FE8A7D 3px solid;
}
[dir="ltr"]  .sidebar-group-link-active {
    border-left: #FE8A7D 3px solid;
}

.sidebar-group-link>.sidebar-dropdown {
    display: none;
    height: 0;
    transition: all 0.4s;
    -webkit-transition: all 0.4s;
    -moz-transition: all 0.4s;
    -ms-transition: all 0.4s;
    -o-transition: all 0.4s;
}
.sidebar-group-link-active>.sidebar-dropdown-toggle {
    background-color: #4a4848;
}


.sidebar-group-link-active>.sidebar-dropdown {
    height: auto!important;
    display: block!important;
}

.sidebar-dropdown-toggle {
    cursor: pointer;
    padding: .2rem 1rem;
    transition: all .3s;
}

.sidebar-dropdown-toggle:hover span {
    color: #F7F7F7;
}

.sidebar-dropdown-toggle .icon {
    width: 2rem;
    text-align: center;
}

.sidebar-dropdown-toggle .angle {
    padding: .4rem 0;
}

.sidebar-dropdown a,
button {
    padding: .7rem 1rem;
    display: block;
    text-decoration: none;
    background-color: inherit;
    outline: none;
    border: none;
    color: #dcdcdc;
    transition: all .3s;
}

.sidebar-dropdown a::before,
.sidebar-dropdown button::before {
    content: '»';
    margin: .8rem;
}

.sidebar-dropdown a:hover,
button:hover {
    color: #FE8A7D;
}
#sidebar .fa-angle-left {
    font-size: 15px;
    transition: all 0.3s;
  }
[dir="rtl"] #sidebar .sidebar-group-link-active .fa-angle-left {
    transform: rotate(-90deg);
    -webkit-transform: rotate(-90deg);
    -moz-transform: rotate(-90deg);
    -ms-transform: rotate(-90deg);
    -o-transform: rotate(-90deg);
}
[dir="rtl"] #sidebar .sidebar-group-link .fa-angle-left {
    transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
}
[dir="ltr"]  #sidebar .sidebar-group-link-active .fa-angle-left {
    transform: rotate(270deg);
    -webkit-transform: rotate(270deg);
    -moz-transform: rotate(270deg);
    -ms-transform: rotate(270deg);
    -o-transform: rotate(270deg);
}
[dir="ltr"]  #sidebar .sidebar-group-link .fa-angle-left {
    transform: rotate(180deg);
    -webkit-transform: rotate(180deg);
    -moz-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    -o-transform: rotate(180deg);
}
.pageActive{

    color: #FE8A7D !important;
    /* background-color: #fff; */
    border-top-right-radius: 4px !important;
    border-bottom-right-radius: 4px !important;
    margin-right: 3px;


}
[dir="rtl"] .pageActive{
    padding-right: 25px !important;
}
[dir="ltr"]  .pageActive{
    padding-left: 25px !important;
}
.pageActive span{

    font-size: 1rem;

}

.main-body {
    /* width: calc(100% - 14rem); */
    width: 100%;
    padding: 1rem;
    min-height: calc(100vh - 3.5rem);
    background-color: #ffffff;
}
.vertical-inherit {
    vertical-align: inherit !important;
}

@media only screen and (max-width: 767.98px) {
    .sidebar {
        display: none;
        width: 320px;
        z-index: 15;
        height: calc(100% - 3.5rem);
        position: fixed;
        top: 3.5rem;
    }
    [dir="rtl"] .sidebar{
        right: 0;
    }
    [dir="ltr"]  .sidebar{
        left: 0;
    }
    .sidebar-container {
        position: relative;
        width: 320px;
        height: 100%;
        top: 0;
    }
    .main-body {
        width: 100%;
        /* z-index: 1; */
    }
}

.info-box-body h5 {
    font-size: .9rem;
    line-height: 1rem;
}

.info-box-body p {
    font-size: .7rem;
    line-height: 1rem;
}

.info-box-icon i {
    font-size: 2rem;
}

.info-box-footer {
    font-size: .6rem;
}

.main-body-container {
    background-color: #ffffff;
    margin: 1rem 0;
    border-radius: .25rem;
    padding: 1rem;
}

.main-body-container-header h5 {
    font-size: 1rem;
    font-weight: bold;
}

.main-body-container-header p {
    font-size: .8rem;
    color: #777;
}

.body-content p {
    font-size: .8rem;
}
/* Spiner */
.spinner-wrap {
    position: fixed;
    top: 0;
    right:0;
    z-index: 1100;
    width: 100%;
    height:100%;
    display: none;
    background: rgb(17 16 16 / 33%);
    overflow: hidden;
    outline: 0;
}
.spinner-circle {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.spinner-bar {
    width: 40px;
    height: 40px;
    border: 4px #ddd solid;
    border-top: 4px #7f73ba solid;
    border-radius: 50%;
    animation: sp-anime 0.8s infinite linear;
}

@keyframes sp-anime {
    100% {
        transform: rotate(360deg);
    }
}
/* End Spiner */
/* Start Alert */
.hidden {
    visibility: hidden;
}

.alert-box {
    position: fixed;
    z-index: 1080;
    top: 50px;
    right: 0;
    min-width: 270px;
    padding: 20px 30px;
    color: #fff;
    font-size: .8rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    cursor: pointer;
    border-radius: 4px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -ms-border-radius: 4px;
    -o-border-radius: 4px;
    overflow: hidden;
    box-shadow: 0px 1px 8px 2px rgba(0,0,0,0.75);
-webkit-box-shadow: 0px 1px 8px 2px rgba(0,0,0,0.75);
-moz-box-shadow: 0px 1px 8px 2px rgba(0,0,0,0.75);
}
.alert-box.success{
    background: linear-gradient(60deg, #00ce18, #404e67);
}
.alert-box.warning{
    background: linear-gradient(60deg, #cec000, #404e67);
}
.alert-box.danger{
    background: linear-gradient(60deg, #ce0000, #404e67);
}
.alert-box.hide {
    animation: hideAlert 1s ease forwards;
    -webkit-animation: hideAlert 1s ease forwards;
}

@keyframes hideAlert {
    0% {
        transform: translateX(-5%);
        -webkit-transform: translateX(-5%);
        -moz-transform: translateX(-5%);
        -ms-transform: translateX(-5%);
        -o-transform: translateX(-5%);
}

    40% {
        transform: translateX(-0%);
        -webkit-transform: translateX(-0%);
        -moz-transform: translateX(-0%);
        -ms-transform: translateX(-0%);
        -o-transform: translateX(-0%);
}

    80% {
        transform: translateX(-15%);
        -webkit-transform: translateX(-15%);
        -moz-transform: translateX(-15%);
        -ms-transform: translateX(-15%);
        -o-transform: translateX(-15%);
}

    100% {
        transform: translateX(100%);
        -webkit-transform: translateX(100%);
        -moz-transform: translateX(100%);
        -ms-transform: translateX(100%);
        -o-transform: translateX(100%);
}
}



.alert-box.show {
    animation: showAlert 1s ease forwards;
    -webkit-animation: showAlert 1s ease forwards;
}

@keyframes showAlert {
    0% {
        transform: translateX(100%);
        -webkit-transform: translateX(100%);
        -moz-transform: translateX(100%);
        -ms-transform: translateX(100%);
        -o-transform: translateX(100%);
    }

    40% {
        transform: translateX(-15%);
        -webkit-transform: translateX(-15%);
        -moz-transform: translateX(-15%);
        -ms-transform: translateX(-15%);
        -o-transform: translateX(-15%);
    }

    80% {
        transform: translateX(0%);
        -webkit-transform: translateX(0%);
        -moz-transform: translateX(0%);
        -ms-transform: translateX(0%);
        -o-transform: translateX(0%);
    }

    100% {
        transform: translateX(-5%);
        -webkit-transform: translateX(-5%);
        -moz-transform: translateX(-5%);
        -ms-transform: translateX(-5%);
        -o-transform: translateX(-5%);
    }
}


.alert-box.show::before{
    content: '';
    position: absolute;
    height: 4px;
    width: 100%;
    background-color: #00000044;
    bottom: 0;
    left: 0;
    animation: hideMaster 5s linear;
    -webkit-animation: hideMaster 5s linear;
}

@keyframes hideMaster{
    0%{
        width: 100%;
    }
    100%{
        width: 0;
    }
}
/* End Alert */


/*
   **********************************public styles*************************************
  */
      .bg-gray{
          background-color: #404E67;
          color: #dcdcdc;
      }

      .pointer{
          cursor: pointer;
      }
  /*
   **************************************box styles**********************************
  */
      .info-box-body h5{
          font-size: .9rem;
          line-height: 1rem;
      }

      .info-box-body p{
          line-height: 1rem;
          font-size: .7rem;
      }

      .info-box-icon i{
          font-size: 2rem;
      }

      .info-box-footer{
          font-size: .6rem;
      }

  /*
   ********************************custom backgrounds**********************************
  */

  .bg-custom-yellow{
      background: -webkit-gradient(linear, left top, right top, from(#feb798), to(#fe9365));
      background: linear-gradient(to right, #feb798, #fe9365);
  }

  .bg-custom-green{
      background: -webkit-gradient(linear, left top, right top, from(#0df3a3), to(#0ac282));
      background: linear-gradient(to right, #0df3a3, #0ac282);
  }

  .bg-custom-pink{
      background: -webkit-gradient(linear, left top, right top, from(#fe909d), to(#fe5d70));
      background: linear-gradient(to right, #fe909d, #fe5d70);
  }

  .bg-custom-light-green{
      background: -webkit-gradient(linear, left top, right top, from(#01dbdf), to(#01a9ac));
      background: linear-gradient(to right, #01dbdf, #01a9ac);
  }
   /*
   ********************************custom buttom**********************************
  */
  .btn-custom-gray{
    color: #fff;
    background-color: #64596b;
    border-color: #64596b;
  }
  .btn-custom-danger{
    color: #fff;
    background-color: #b63226;
    border-color: #b63226;
  }


  /*
   ********************************custom font size**********************************
  */

  .font-size-10{
      font-size: 10px;
  }

  .font-size-12{
      font-size: 12px;
  }

  .font-size-14{
      font-size: 14px;
  }

  .font-size-16{
      font-size: 16px;
  }

  .font-size-18{
      font-size: 18px;
  }
/*
   ********************************custom size design**********************************
  */
  .text-decoration-line-through {

    text-decoration: line-through !important;
}

  /*
   ********************************body container**********************************
  */


  .main-body-container{
      background-color: #FFFFFF;
      margin: 1rem 0;
      border-radius: .25rem;
      padding: 1rem;
  }


  .main-body-container-header h5{
      font-size: 1.2rem;
      font-weight: bold;
  }


  .main-body-container-header p{
      font-size: .8rem;
      color: #777;
  }

  .main-body {
      font-size: 0.8rem;
  }

  .main-body table {
      font-size: 0.75rem;
  }
  /* admin posts */
  .alert_required{
      color: #ff50a1 !important;
    }
    .switch {
      position: relative;
      display: inline-block;
      width: 60px;
      height: 34px;
    }

    .switch input {
      opacity: 0;
      width: 0;
      height: 0;
    }

    .slider {
      position: absolute;
      cursor: pointer;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-color: #ccc;
      -webkit-transition: .4s;
      transition: .4s;
    }

    .slider:before {
      position: absolute;
      content: "";
      height: 20px;
      width: 20px;
      left: 4px;
      bottom: 3px;
      background-color: white;
      -webkit-transition: .4s;
      transition: .4s;
    }

    input:checked + .slider {
      background-color: #2196F3;
    }

    input:focus + .slider {
      box-shadow: 0 0 1px #2196F3;
    }

    input:checked + .slider:before {
      -webkit-transform: translateX(26px);
      -ms-transform: translateX(26px);
      transform: translateX(26px);
    }

    /* Rounded sliders */
    .slider.round {
      border-radius: 34px;
      margin: 4px;
    }

    .slider.round:before {
      border-radius: 50%;
    }



    /* sweet alert reform */
    .swal2-html-container {
        text-align: center;
    }


    /* toast wrapper */
      .toast-wrapper {
          position: fixed;
          z-index: 20;
          top: 3rem;
          left: 0;
          width: 26rem;
          max-width: 80%;
          padding: 2rem;
      }
 /*
   ********************************Table**********************************
  */
  #tbody_items_list tr {

    cursor: pointer;

}
 /*
   ********************************Modal**********************************
  */
.header_me {
    border-radius: 3px !important;
    margin-top: -20px !important;
    padding-top: 15px !important;
    padding-bottom: 15px !important;
    box-shadow: 0 4px 20px 0px rgba(0, 0, 0, 0.14), 0 7px 10px -5px rgb(0, 0, 0);
    margin: 1rem;
    color: #fff !important;

}

.header_me .close {
    color: #fff !important;
}

[dir="rtl"] .header_me{
    background: linear-gradient(60deg, #FE8A7D, #404e67);

}
[dir="ltr"]  .header_me{
    background: linear-gradient(60deg,#404e67, #FE8A7D);

}
[dir="ltr"]  .header_me .close {
    margin: -1rem auto -1rem -1rem !important;
}

.modal{
    padding:0 !important;
}
.modal-open-second{
    overflow:hidden;
}
.modal-open-second #modal-backdrop-second{
    z-index:600 !important;
}

.modal{
    z-index:500 !important;
}
.modal.modal-second{
    z-index:700 !important;
}
.modal-backdrop{

    z-index:400 !important;

}
.cursorPointer{
    cursor: pointer;
}
/*************************************************************Custom Css**********************************************************/
.form-control{
    border: var(--border-width) solid var(--border-color) !important;
}


