@font-face {
  font-family: iransans;
  src: url("../IRANSansX-Regular.woff");
}

@font-face {
  font-family: "wp-administration-style-icons";
  src: url("../wp-administration-style-icons.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "wdashicons";
  src: url("../wdashicons.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

body {
  background-color: white !important;
  font-family: "iransans" !important;
}

.warp {
  font-family: "iransans" !important;
}

#adminmenuwrap {
  margin-right: 10px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background-color: #000f36 !important;
  margin-top: 20px;
  margin-bottom: 50px  !important;;
  height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
}

#adminmenu {
  
  background-color: inherit;
  flex: 1;
  position: sticky  !important;
  border-radius: 12px !important;

  padding-bottom: 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sticky-menu #adminmenuwrap {
  position: sticky !important;
}

#wpbody{
  display: flex !important;

}

#adminmenu::-webkit-scrollbar {
  display: none;
}

#wpadminbar {
  position: fixed !important;
  width: calc(100% - 32px) !important;
  left: 16px !important;
  right: 16px !important;
  top: 8px !important;
  border-radius: 20px !important;
  background-color: #000f36 ;
  font-family: "iransans" !important;

}

#adminmenuback {
  display: none;
}

#custom-admin-logo {
  text-align: center;
  padding: 20px 0;
}

#custom-admin-logo img {
  width: 50px;
  height: auto;
  border-radius: 12px;
  display: inline-block;
}

#adminmenu .wp-submenu {
    background-color: #2c01ff !important;
    width: 100% !important;
    margin-top:10px !important;
}
#adminmenu .wp-has-current-submenu .wp-submenu .wp-submenu-head,
#adminmenu li.current a.menu-top,
#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu {
  background: #2c01ff;
  color: #fff;
  border-radius: 10px;
  margin-right: 5px;
  margin-left: 10px;
  padding: 1px 5px;
  margin-top: 8px;
}

ul#adminmenu a.wp-has-current-submenu:after,
ul#adminmenu > li.current > a.current:after {
  display: none !important;
}

.rtl h1,
.rtl h2,
.rtl h3,
.rtl h4,
.rtl h5,
.rtl h6 {
  font-family: "iransans" !important;
}

#adminmenu li.menu-top:hover,
#adminmenu li.opensub > a.menu-top,
#adminmenu li > a.menu-top:focus {
  background-color: transparent !important;
  color: #ffffff !important;
}
#adminmenu .wp-submenu a:focus,
#adminmenu .wp-submenu a:hover,
#adminmenu a:hover,
#adminmenu li.menu-top > a:focus {
  color: #ffffff !important;
}
#adminmenu li.wp-has-submenu.wp-not-current-submenu:focus-within:after,
#adminmenu li.wp-has-submenu.wp-not-current-submenu:hover:after {
  display: none !important;
}

#adminmenu .wp-menu-image:before {
  color: #ffffff !important;
}

#adminmenu,
#adminmenuwrap,
#adminmenuback {
  width: 190px !important; /* عرض دلخواه مثلا 220px */
}


#wpcontent{
  margin-bottom: 200px !important;
}

#wpcontent,
#wpfooter {
  margin-right: 190px !important; /* برای RTL */
}

/* فقط برای منوهای بغلی که بیرون از سایدبار میاد */
#adminmenu li.menu-item-has-children:hover > .wp-submenu.wp-submenu-wrap {
  position: absolute !important;
  right: 240px !important; /* تنظیم فاصله بیشتر از سایدبار */
  top: 0 !important;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  transition: transform 0.3s ease, opacity 0.3s ease; /* انیمیشن روان */
}


.wp-submenu-wrap .wp-submenu {
    display:none !important;
}






#screen-meta-links {
  display: none !important;
}

#e-admin-top-bar-root .e-admin-top-bar {
  margin-right: 50px !important;
  margin-top: 10px !important;
  font-family: "iransans" !important;
}

#collapse-menu
  #collapse-button[aria-expanded="false"]
  .collapse-button-icon::before {
    font-family: wdashicons !important;
    content: "\e90b" !important;
}
.wp-menu-image.dashicons-admin-media::before {
  font-family: wdashicons !important;
  content: "\e903" !important;
}
.wp-menu-image.dashicons-dashboard::before {
  font-family: wdashicons !important;
  content: "\e902" !important;
}
.wp-menu-image.dashicons-admin-comments::before {
  font-family: wdashicons !important;
  content: "\e904"
  !important;
}
.wp-menu-image.dashicons-archive::before {
  font-family: wp-administration-style-icons !important;
  content: "" !important;
}
.wp-menu-image.dashicons-chart-bar::before {
  font-family: wp-administration-style-icons !important;
  content: "" !important;
}
.wp-menu-image.dashicons-megaphone::before {
  font-family: wp-administration-style-icons !important;
  content: "" !important;
}
.wp-menu-image.dashicons-admin-page::before {
  font-family: wdashicons !important;
  content: "\e905"
  !important;
}
.wp-menu-image.dashicons-admin-users::before {
  font-family: wdashicons !important;
  content: "\e90c" !important;
}
.wp-menu-image.dashicons-admin-settings::before {
  font-family: wdashicons !important;
  content: "\e909" !important;
}
.wp-menu-image.dashicons-admin-appearance::before {
  font-family: wdashicons !important;
  content: "\e900";
 !important;
}
.wp-menu-image.dashicons-admin-post::before {
  font-family: wp-administration-style-icons !important;
  content: "" !important;
}
.wp-menu-image.dashicons-admin-tools::before {
  font-family: wdashicons !important;
  content: "\e907" !important;
}
.wp-menu-image.dashicons-admin-plugins::before {
  font-family: wdashicons !important;
  content: "\e901" !important;
}
.menu-icon-post .dashicons-admin-post::before {
  font-family: wdashicons !important;
  content: "\e906"  !important;
}

#toplevel_page_admin-page-wc-admin-task-payments .wp-menu-image::before {
  font-family: wp-administration-style-icons !important;
  content: "" !important;
  font-size: 20px;
}
#collapse-menu .collapse-button-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
#collapse-menu .collapse-button-icon::before {
 font-family: wdashicons !important;
  content: "\e90b" !important;
  font-size: 20px;
}
#collapse-menu .collapse-button-icon::after {
  content: unset !important;
}

#toplevel_page_woocommerce .wp-menu-image::before {
  font-family: wp-administration-style-icons !important;
  content: "" !important;
  font-size: 20px;
}
input[type="checkbox"]:not(.components-form-toggle__input):checked::before {
  position: absolute !important;
  top: 50% !important;
  right: 50% !important;
  transform: translate(50%, -50%) !important;
  font-size: 8px !important;
  color: #fff !important;
  font-family: wp-administration-style-icons !important;
  content: "" !important;
}

.comments-edit-item-link::before {
  font-family: wp-administration-style-icons !important;
  content: "" !important;
}
.comments-edit-item-link::after {
  content: "ویرایش";
}
.comments-view-item-link::before {
  font-family: wp-administration-style-icons !important;
  content: "" !important;
}

#wp-admin-bar-new-content .ab-icon::before {
  font-family: wdashicons !important;
  content: "\e906"!important;
}
#wp-admin-bar-updates .ab-icon::before {
  font-family: wp-administration-style-icons !important;
  content: "" !important;
}
#wpadminbar #wp-admin-bar-site-name > .ab-item:before {
  font-family: wp-administration-style-icons !important;
  content: "" !important;
}
#wp-admin-bar-comments .ab-icon::before {
  font-family: wp-administration-style-icons !important;
  content: "" !important;
}

#screen-meta-links #contextual-help-link::after {
  font-family: wp-administration-style-icons !important;
  content: "" !important;
}
#screen-meta-links #show-settings-link::after {
  font-family: wp-administration-style-icons !important;
  content: "" !important;
}
#wp-admin-bar-root-default .ab-item {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}
#wp-admin-bar-root-default .ab-item::before {
  font-size: 16px !important;
  top: unset !important;
}
#wp-admin-bar-root-default .ab-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  float: unset !important;
  padding: 0 !important;
  margin: 0 !important;
  background-image: unset !important;
}
#wp-admin-bar-root-default .ab-icon::before {
  top: unset !important;
  font-size: 16px !important;
}

.postbox .handlediv[aria-expanded="false"] .toggle-indicator::before {
  font-family: wp-administration-style-icons !important;
  content: "" !important;
}
.postbox .handlediv[aria-expanded="true"] .toggle-indicator::before {
  font-family: wp-administration-style-icons !important;
  content: "" !important;
}

.postbox .order-higher-indicator::before {
  font-family: wp-administration-style-icons !important;
  content: "" !important;
}
.postbox .order-lower-indicator::before {
  font-family: wp-administration-style-icons !important;
  content: "" !important;
}

#dashboard_right_now .post-count a::before {
  font-family: wp-administration-style-icons !important;
  content: "" !important;
}
#dashboard_right_now .page-count a::before {
  font-family: wp-administration-style-icons !important;
  content: "" !important;
}
#dashboard_right_now .comment-count a::before {
  font-family: wp-administration-style-icons !important;
  content: "" !important;
}

body.admin-color-fresh #adminmenu .wp-menu-image:before,
body.admin-color-fresh #adminmenu li a:focus .wp-menu-image:before,
body.admin-color-fresh #adminmenu li.opensub .wp-menu-image:before,
body.admin-color-fresh #adminmenu li:hover .wp-menu-image:before,
body.admin-color-fresh #wpadminbar #adminbarsearch:before,
body.admin-color-fresh #wpadminbar .ab-icon:before,
body.admin-color-fresh #wpadminbar .ab-item:before {
  color: white !important;
}

*:not(#dashboard-widgets .postbox-container .empty-container) {
  outline: none !important;
}

#wpadminbar .ab-top-menu > li.hover > .ab-item,
#wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus,
#wpadminbar:not(.mobile) .ab-top-menu > li:hover > .ab-item,
#wpadminbar:not(.mobile) .ab-top-menu > li > .ab-item:focus {
  background: #000f36 ;
  color: #ffffff !important;
}

#wpadminbar #wp-admin-bar-my-sites a.ab-item,
#wpadminbar #wp-admin-bar-site-name a.ab-item {
  font-family: "iransans" !important;
}

#wpadminbar ul li:last-child,
#wpadminbar ul li:last-child .ab-item {
  font-family: "iransans" !important;
}

/* حالت جمع‌شده (folded) */
body.folded #adminmenu,
body.folded #adminmenuwrap,
body.folded #adminmenuback {
  width: 36px !important;
}

body.folded #wpcontent,
body.folded #wpfooter {
  margin-right: 36px !important;
}

body.folded #adminmenu .wp-has-current-submenu .wp-submenu .wp-submenu-head,
#adminmenu li.current a.menu-top,
#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu {
  border-radius: 0px;
  margin-right: 0px;
  margin-left: 0px;
  padding: 0px;
  margin-top: 0px;
}

body.folded #custom-admin-logo img {
  width: 28px; /* یا هر مقدار دلخواه */
  transition: all 0.3s ease;
}

body.folded #custom-admin-logo {
  padding: 10px 0 !important;
}

#collapse-button {
  color: #fff !important;
}

#adminmenu .wp-submenu a {
  color: white !important;
}

@media (max-width: 1024px) {
     #adminmenuback {
        display: none !important;
    }



    #adminmenu {
        width: 100% !important;
        border-radius: 0 !important;
        overflow-y: auto !important;
        padding: 10px;
        flex: 1;
    }


  #wpcontent,
  #wpfooter {
    margin: 0 !important;
  }

  #wpadminbar {
    border-radius: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    top: 0px !important;
  }

  #custom-admin-logo {
    padding: 10px 0;
  }

  body.folded #adminmenu,
  body.folded #adminmenuwrap,
  body.folded #adminmenuback {
    width: 100% !important;
  }

  body.folded #wpcontent,
  body.folded #wpfooter {
    margin: 0 !important;
  }
}

@media (max-width: 1024px) {
  


  #adminmenuwrap {

    overflow: scroll;
    }
  

 




  body.admin-bar {
    padding-top: 48px !important;
  }
}








#wpfooter{
   font-family: "iransans" !important;
}

.e-notice__content{
    font-family: 'iransans' !important;
}

.bulk-action-notice .toggle-indicator::before, .meta-box-sortables .postbox .order-higher-indicator::before, .meta-box-sortables .postbox .order-lower-indicator::before, .meta-box-sortables .postbox .toggle-indicator::before, .privacy-text-box .toggle-indicator::before, .sidebar-name .toggle-indicator::before {
    content: "\f142";
    display: inline-block;
    font: normal 12px / 1 dashicons;
    speak: never;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-decoration: none;
}

table{
    border-radius: 16px !important;
    border: 1px solid #000f36 !important;
    overflow: hidden !important;
}

.e-compatibility-update-table{
    border: none !important;
}

.postbox {
    border-radius: 10px !important;

}

.ab-sub-wrapper{
    margin-top: 10px !important;
    border-radius: 10px !important;
    background: #000f36 !important;
}

.display-name {
    font-family: 'iransans' !important;
    color: white !important;
}

#wpadminbar .ab-top-menu > li.hover > .ab-item, #wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus, #wpadminbar:not(.mobile) .ab-top-menu > li:hover > .ab-item{
    border-radius: 40px;
}
#wpadminbar .quicklinks .menupop ul li .ab-item, #wpadminbar .quicklinks .menupop ul li a strong, #wpadminbar .quicklinks .menupop.hover ul li .ab-item, #wpadminbar .shortlink-input, #wpadminbar.nojs .quicklinks .menupop:hover ul li .ab-item{
    color:white !important;
}

.avatar {
    border-radius: 10px !important;
}

#wp-admin-bar-wp-logo-external{
  background: #000f36  !important;
    font-family: 'iransans'  !important;
}

.rtl #wpadminbar #wp-admin-bar-wp-logo-external .ab-item #wp-admin-bar-about {
  font-family: 'iransans'  !important;
}




#adminmenuwrap {
  margin-left: 12px !important;
}


#adminmenuwrap.wdash-dark-mode {
  background-color: #222 !important;
  color: #eee !important; 
}




#adminmenuwrap.wdash-color-1 {
  background-color: #1c00a6  !important; 
  color: #fff !important;
}

#adminmenuwrap.wdash-color-2 {
  background-color: #000000 !important;
  color: #fff !important;
}

#adminmenuwrap.wdash-color-3 {
  background-color: #ef7000 !important;
  color: #fff !important;
}

#adminmenuwrap.wdash-color-4 {
  background-color: #9b59b6 !important;
  color: #fff !important;
}

#adminmenuwrap.wdash-color-5 {
  background-color: #34495e !important; 
  color: #fff !important;
}

#adminmenuwrap.wdash-color-6 {
  background-color: #c0392b !important;
  color: #fff !important;
}

#adminmenuwrap.wdash-default-color {
  background-color: #333 !important; 
  color: #fff !important;
}


#adminmenuwrap.wdash-orginal{
  background: #000f36  !important;
  color: #fff !important;
}



.wdash-set-color.color-preview  {
  width: 30px;
  height: 30px;
  border-radius: 50px; 
  border: 1px solid #ccc;
  margin-left: 5px;
  cursor: pointer;
  overflow: hidden; 
}

.wdash-set-color-menu.color-preview{
  width: 30px;
  height: 30px;
  border-radius: 50px; 
  border: 1px solid #ccc;
  margin-left: 5px;
  cursor: pointer;
  overflow: hidden; 
}
.wdash-set-color-submenu.color-preview{
  width: 30px;
  height: 30px;
  border-radius: 50px; 
  border: 1px solid #ccc;
  margin-left: 5px;
  cursor: pointer;
  overflow: hidden; 
}



#toplevel_page_wdashds_settings .wp-menu-image::before {
  font-family: wdashicons !important;
  content: "\e90d" !important;
  font-size: 13px;
  margin-top: 4px;
}

.page-title-action{
  border-radius:50px !important;
  background: #000f36 !important;
  color: white !important;
}

#footer-upgrade{
  color: white;
  background: #000f36;
  padding: 5px 12px;
  border-radius: 20px;
}

#footer-thankyou {
  font-style: normal !important;
  color:  #000f36;
}


@media screen and (max-width: 782px) {
  #wp-admin-bar-new-content{
    display: none !important;
  }
}
.ab-label{
  font-family: 'iransans' !important;
}

#footer-upgrade > strong > a {
  color:  white  !important;
}


.wp-submenu{
  border-radius: 10px !important;
}


.wp-core-ui .button, .wp-core-ui .button-secondary {
    color: #ffffff !important;
    border-color: transparent !important;
    background: #000f36 !important;
    vertical-align: top !important;
    border-radius: 50px !important;
}



.wp-core-ui select{
  border-color: transparent !important;
}

.wp-core-ui select:focus{
  border-color: transparent !important;
}
input{
  border-radius: 20px !important;
}

@media (max-width: 1024px) {
  #adminmenu {

    
    
       padding: 0px !important;
 
  }

  
  .wdash-set-color-menu.color-preview {
    width: auto; 
    height: auto; 
    border-radius: 0;
    margin: 5px;
    padding: 5px; 
    min-width: 40px; 
}

.wdash-set-color.color-preview {
  width: auto; 
  height: auto; 
  border-radius: 0;
  margin: 5px;
  padding: 5px; 
  min-width: 40px; 
}
  #wpadminbar .ab-top-menu>.menupop>.ab-sub-wrapper
   {
          width: 90% !important;
          right: 18px !important;
            
      
      }

      #wpadminbar #wp-admin-bar-user-actions.ab-submenu{
        padding: 10px !important;
      }
  
}


body.folded #adminmenu .wp-has-current-submenu .wp-submenu .wp-submenu-head, #adminmenu li.current a.menu-top, #adminmenu li.wp-has-current-submenu a.wp-has-current-submenu {
  border-radius: 8px;
}


.hi-text {
  font-weight: 800;
  font-size: 15px;
}


#wpadminbar.wdash-dark-mode {
  background-color: #222 !important;
  color: #eee !important;
}

#wpadminbar.wdash-color-1 {
  background-color: #1c00a6 !important;
  color: #fff !important;
}

#wpadminbar.wdash-color-2 {
  background-color: #000000 !important;
  color: #fff !important;
}

#wpadminbar.wdash-color-3 {
  background-color: #ef7000 !important;
  color: #fff !important;
}

#wpadminbar.wdash-color-4 {
  background-color: #9b59b6 !important;
  color: #fff !important;
}

#wpadminbar.wdash-color-5 {
  background-color: #34495e !important;
  color: #fff !important;
}

#wpadminbar.wdash-color-6 {
  background-color: #c0392b !important;
  color: #fff !important;
}

#wpadminbar.wdash-default-color {
  background-color: #333 !important;
  color: #fff !important;
}

#wpadminbar.wdash-orginal {
  background: #000f36 !important;
  color: #fff !important;
}

#adminmenu .menu-top.wdash-color-1 {
  background-color: #1c00a6 !important;
  color: #fff !important;
}

#adminmenu .menu-top.wdash-color-2 {
  background-color: #000000 !important;
  color: #fff !important;
}

#adminmenu .menu-top.wdash-color-3 {
  background-color: #ef7000 !important;
  color: #fff !important;
}

#adminmenu .menu-top.wdash-color-4 {
  background-color: #9b59b6 !important;
  color: #fff !important;
}

#adminmenu .menu-top.wdash-color-5 {
  background-color: #333 !important;
  color: #fff !important;
}

#adminmenu .menu-top.wdash-color-6 {
  background-color: #c0392b !important;
  color: #fff !important;
}

#adminmenu .menu-top.wdash-default-color {
  background-color: rgb(73, 73, 73) !important;
  color: #fff !important;
}

#adminmenu .menu-top.wdash-orginal {
  background-color: #2c01ff!important;
  color: #fff !important;
}








#adminmenu .wp-submenu.wdash-color-1 {
  background-color: #1c00a6 !important;
  color: #fff !important;
}

#adminmenu .wp-submenu.wdash-color-2 {
  background-color: #000000 !important;
  color: #fff !important;
}

#adminmenu .wp-submenu.wdash-color-3  {
  background-color: #ef7000 !important;
  color: #fff !important;
}

#adminmenu .wp-submenu.wdash-color-4  {
  background-color: #9b59b6 !important;
  color: #fff !important;
}

#adminmenu .wp-submenu.wdash-color-5{
  background-color: #333 !important;
  color: #fff !important;
}

#adminmenu .wp-submenu.wdash-color-6 {
  background-color: #c0392b !important;
  color: #fff !important;
}

#adminmenu .wp-submenu.wdash-default-color {
  background-color: rgb(73, 73, 73) !important;
  color: #fff !important;
}

#adminmenu .wp-submenu.wdash-orginal {
  background-color: #2c01ff!important;
  color: #fff !important;
  }



body:not(.rtl).folded #wpcontent,
body:not(.rtl).folded #wpfooter {
    margin-left: 0 !important; /* یا مقدار پیش‌فرض margin-left */
}



::-webkit-scrollbar {
display : none ;
}


