/* custom-admin.css */
:root {
  --color-primary-dark: #0b1e3f;        /* كحلي */
  --color-secondary-dark: #1f2a3a;     /* لون غامق مساعد */
  --color-primary-light: #c600c0;      /* ذهبي */
  --color-secondary-light: #fff5cc;    /* لون فاتح مساعد */
  --color-text-dark-bg: #eeeeee;       /* لون النصوص على خلفية غامقة */
  --color-text-light-bg: #222222;      /* لون النصوص على خلفية فاتحة */
  --color-light-gray: #e5e5e5;      /* لون النصوص على خلفية فاتحة */

  --main-admin-logo: url(images/admin-logo.png)
}


* {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -o-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
}
body {
    background-color: #fff;
     --s: 24px; /* control the size*/
  --c1: #fafbff;
  --c2: #ffffff;
  
  --_l: #0000 46%,var(--c1) 47% 53%,#0000 54%;
  background:
    radial-gradient(100% 100% at 100% 100%,var(--_l)) var(--s) var(--s),
    radial-gradient(100% 100% at 0    0   ,var(--_l)) var(--s) var(--s),
    radial-gradient(100% 100%,#0000 22%,var(--c1) 23% 29%, #0000 30% 34%,var(--c1) 35% 41%,#0000 42%),
    var(--c2);
  background-size: calc(var(--s)*2) calc(var(--s)*2);
}

.wp-core-ui select {
    max-width: 100%;
}



/* تخصيص شريط الأدمن */
#wpadminbar {
    width: calc(100% - 40px);
    margin: 10px auto 0 auto;
    background-color: var(--color-primary-dark) !important;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    padding: 10px;
    left: 20px;
    outline: 0;
    height: 50px;
    display: flex;
}

/* إزالة الالتصاق بالأعلى */
html.wp-toolbar {
  padding-top: 0 !important;
}
div#wp-toolbar {
    width: 95%;
}

div#wpadminbar:before {
    content: " ";
    width: 150px;
    height: 100%;
    display: block;
    background-size: contain;
    margin-inline-end: 10px;
    background-repeat: no-repeat;
    background-position: center;
    background-image: var(--main-admin-logo);
}
#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: #08080866;
    color: var(--color-primary-light);
    border-radius: 50px;
}
#wpadminbar .menupop .ab-sub-wrapper, #wpadminbar .shortlink-input {
    margin: 0;
    padding: 0;
    box-shadow: 0 3px 5px rgba(0, 0, 0, .2);
    background: var(--color-secondary-dark);
    display: none;
    position: absolute;
    float: none;
}
#wpadminbar:not(.mobile)>#wp-toolbar a:focus span.ab-label, #wpadminbar:not(.mobile)>#wp-toolbar li:hover span.ab-label, #wpadminbar>#wp-toolbar li.hover span.ab-label,
#wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover>a, #wpadminbar .quicklinks .menupop ul li a:focus, #wpadminbar .quicklinks .menupop ul li a:focus strong, #wpadminbar .quicklinks .menupop ul li a:hover, #wpadminbar .quicklinks .menupop ul li a:hover strong, #wpadminbar .quicklinks .menupop.hover ul li a:focus, #wpadminbar .quicklinks .menupop.hover ul li a:hover, #wpadminbar .quicklinks .menupop.hover ul li div[tabindex]:focus, #wpadminbar .quicklinks .menupop.hover ul li div[tabindex]:hover, #wpadminbar li #adminbarsearch.adminbar-focused:before, #wpadminbar li .ab-item:focus .ab-icon:before, #wpadminbar li .ab-item:focus:before, #wpadminbar li a:focus .ab-icon:before, #wpadminbar li.hover .ab-icon:before, #wpadminbar li.hover .ab-item:before, #wpadminbar li:hover #adminbarsearch:before, #wpadminbar li:hover .ab-icon:before, #wpadminbar li:hover .ab-item:before, #wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus, #wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover
{
    color: var(--color-primary-light);
}

#wpadminbar #wp-admin-bar-my-account.with-avatar #wp-admin-bar-user-actions>li {
    margin-inline: 10px;
}
#wpadminbar #wp-admin-bar-my-account.with-avatar>a img {
    border: 0;
    border-radius: 50px;
}
@media screen and (max-width: 782px) {
    html #wpadminbar {
        padding: 0px;
    }
    div#wpadminbar:before {
        display: none;
    }
}

/* Main menu */
#adminmenu, #adminmenu .wp-submenu, #adminmenuback, #adminmenuwrap {
    width: 200px;
}
#adminmenuwrap {
    position: relative !important;
    padding-top: 60px;
    padding-bottom: 50px;
    top: auto !important;
    bottom: auto !important;
}

#adminmenu, #adminmenu .wp-submenu, #adminmenuback, #adminmenuwrap {
    background-color: var(--color-secondary-dark) !important;
}
#adminmenu a.menu-top {
    padding-inline-start: 15px;
}
#adminmenu div.wp-menu-name {
    padding: 12px;
    padding-inline-start: 0px;
    border-inline-start: 1px solid #ffffff3b;
}
#adminmenu div.wp-menu-name:before, #adminmenu .wp-submenu li>a:before {
    content: " ";
    min-width: 8px;
    min-height: 8px;
    border: 1px solid;
    display: inline-block;
    margin-inline-end: 10px;
    border-radius: 50px;
    margin-inline-start: -6px;
    background-color: var(--color-secondary-dark);
}



#adminmenu .wp-has-current-submenu ul>li>a, .folded #adminmenu li.menu-top .wp-submenu>li>a, #adminmenu li.menu-top .wp-submenu>li>a {
    padding: 0;
    margin-inline-start: 30px;
    line-height: 33px;
    margin-bottom: 0px;
    border: 0 solid #364b5a;
    border-inline-start-width: 1px;
}
#adminmenu .wp-has-current-submenu ul>li>a, .folded #adminmenu li.menu-top .wp-submenu>li>a, #adminmenu li.menu-top .wp-submenu>li>a {
    display: flex;
    align-items: center;
}
/* #adminmenu .wp-submenu li>a:before {
    content: " ";
    min-width: 8px;
    min-height: 8px;
    display: block;
    border-radius: 50%;
    z-index: 1011;
    border: 1px solid #ffffff3b;
    margin-inline-end: 10px;
    margin-inline-start: -6px;
    background-color: var(--color-secondary-dark);
} */

#adminmenu .wp-submenu {
    border-block: 1px solid #ffffff3b !important;
    padding: 0;
}

#adminmenu a:hover {
    box-shadow: none;
}

.wp-has-current-submenu .wp-menu-name:before, #adminmenu li.menu-top .wp-submenu>li>a.current:before {
    background: var(--color-primary-light) !important;
    border-color: var(--color-primary-light) !important;
}

#adminmenu li.menu-top:hover, #adminmenu li.opensub>a.menu-top, #adminmenu li>a.menu-top:focus,
#adminmenu .wp-submenu a:focus, #adminmenu .wp-submenu a:hover, #adminmenu a:hover, #adminmenu li.menu-top>a:focus
{
    color: var(--color-primary-light) !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: #0000002b;
    color: #fff;
}
#adminmenu li.menu-top:hover, #adminmenu li.opensub>a.menu-top, #adminmenu li>a.menu-top:focus {
    background-color: #0000002b;
}


.folded #adminmenu div.wp-menu-image {
    display: block;
}
.folded #adminmenu a.menu-top {
    padding: 0;
}

/* عنصر بدون ضغط - عنوان - فى القائمة */
#adminmenu [id^="toplevel_page_-menu-section-title-general-"] {
    border-block: 1px solid;
    background: #5b5b5b26;
    pointer-events: none;
    min-height: 25px !important;
}
#adminmenu [id^="toplevel_page_-menu-section-title-general-"] > a {
    font-weight: bold;
    pointer-events: none;
    cursor: default;
    background: none !important;
    border: 0;
    margin: 0 !important;
    padding: 0px;
}
#adminmenu [id^="toplevel_page_-menu-section-title-general-"] > a .wp-menu-name {
    padding: 5px;
    border: 0;
    font-size: 85%;
}
#adminmenu [id^="toplevel_page_-menu-section-title-general-"] > a .wp-menu-name:before {
    display: none;
}
#adminmenu li.wp-menu-separator {
    display: none;
}


li#toplevel_page_add_init_func_data {
    background: #aa0000;
}


/* content */ 
#wpcontent, #wpfooter {
    margin-inline-start: 200px;
}

#wpbody-content {
    padding-top: 60px;
}
#screen-meta-links, #screen-meta {
    margin-inline-end:40px;
}

#screen-meta-links .show-settings {
    padding: 2px 10px;
    font-size: 90%;
    border-radius: 0 0 15px 15px;
    min-height: 15px;
}
#screen-meta-links .show-settings:after {
    display: none;
}

.custom-page-header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.custom-page-header .subsubsub {
  margin-left: auto;
}

/* tables page */
p.search-box {
    margin: 0;
    margin-inline-end: 10px;
    column-gap: 0rem;
}
.search-box input[name="s"], .tablenav .search-plugins input[name="s"], .tagsdiv .newtag {
    margin: 0;
}
input#search-submit {
    border-radius: 0 25px 25px 0;
    margin-inline-start: -12px;
}
.search-box input[name="s"] {
    padding: 0px 13px;
}

/* *** Page head*/ 
.wrap h1.wp-heading-inline {
    font-size: 1.7rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--color-primary-dark);
    padding: 0;
}

.custom-page-header {
  padding: 25px 0 15px;
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
      width: 100%;
}

.custom-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
    width: 100%;
}

.title-column {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.title-column .wp-heading-inline {
  font-size: 20px;
  margin: 0;
}

.title-column .main-t-description {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.button-column .page-title-action {
  white-space: nowrap;
}

@media screen and (max-width: 782px) {
    .custom-header-row {
    flex-direction: column;
    }
}

/* *** Table */
/* === تصميم عصري لجدول لوحة تحكم ووردبريس === */

.wp-list-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  margin-top: 20px;
}

/* رأس الجدول */
.wp-list-table thead {
  background-color: var(--color-primary-dark, #1e2a38);
  color: var(--color-text-dark-bg, #ffffff);
}
.plugins.wp-list-table thead tr {
    background: transparent;
}

.wp-list-table thead th {
  padding: 14px 16px;
  font-weight: bold;
  border-bottom: 1px solid #ccc;
  text-align: left;
  font-size: 14px;
}

/* الصفوف */
.wp-list-table tbody tr {
  transition: background 0.2s ease;
}

.wp-list-table tbody tr:hover {
  background-color: #f5f8fa;
}

.wp-list-table tbody td {
  padding: 14px 16px;
  border-top: 1px solid #eee;
  font-size: 14px;
  color: var(--color-text, #333);
  vertical-align: middle;
}

/* آخر صف */
.wp-list-table tbody tr:last-child td {
  border-bottom: 1px solid #eee;
}

/* الأعمدة الصغيرة (مثلاً: حالة، تاريخ) */
.wp-list-table td.column-date,
.wp-list-table td.column-status {
  text-align: right;
  font-size: 13px;
  color: #888;
}

/* حالة محددة مثل مسودات أو مميزة */
.wp-list-table .post-state {
  background: #f1c40f;
  color: #000;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 11px;
  margin-left: 5px;
}

/* إدخال تنسيقات إضافية للأزرار داخل الجدول */
.wp-list-table .row-actions a {
  color: var(--color-primary, #0066cc);
  font-weight: 500;
}
.wp-list-table .row-actions a:hover {
  text-decoration: underline;
}

/* تكبير الخط العام في الجدول */
.wp-list-table tbody td,
.wp-list-table thead th {
  font-family: "Segoe UI", "Roboto", sans-serif;
}
td.date.column-date {
    text-align: center !important;
}

thead th.sortable a, thead th.sorted a, 
th .comment-grey-bubble:before,
.widefat tfoot tr td, .widefat tfoot tr th, .widefat thead tr td, .widefat thead tr th {
    color: #fff;
}
th.sorted.desc .sorting-indicator.desc:before {
    color: var(--color-primary-light);
}


.row-actions {
    overflow: hidden;
    max-height: 0;
    transition: 0.5s;
}
.comment-item:hover .row-actions, .mobile .row-actions, .no-js .row-actions, .row-actions.visible, tr:hover .row-actions {
    max-height: 50px;
}


@media screen and (max-width: 782px) {
    #wpbody-content {
        padding-top: 10px;
    }
}





/* filters */
.tablenav {
    height: auto;
    padding: 13px 12px 5px;
    background: #f3f3f3;
    border-radius: 15px;
}

.tablenav .actions select {
    border-radius: 15px;
}

.wp-core-ui .button, .wp-core-ui .button-secondary {
    color: #4b4b4b;
    border-color: #cfcfcf;
    border-radius: 15px;
}
.wp-core-ui .button-secondary:hover, .wp-core-ui .button.hover, .wp-core-ui .button:hover {
    border-color: var(--color-primary-light);
}

.search-box input[name="s"], .tablenav .search-plugins input[name="s"], .tagsdiv .newtag {
     border-radius: 15px;
}


/* META */
.meta-box-sortables .postbox {
    padding: 0;
    background: #ebebeb;
    box-shadow: 0 15px 15px rgb(0 0 0 / 9%);
}

.meta-box-sortables .postbox h2.hndle, 
#poststuff .stuffbox>h3, #poststuff h2, #poststuff h3.hndle
{
    padding: 10px;
    background: var(--color-primary-dark);
    margin: 0;
    color: var(--color-text-dark-bg);
}




/* Buttons */ 
.wrap .add-new-h2, .wrap .add-new-h2:active, .wrap .page-title-action, .wrap .page-title-action:active {
    /* font-size: 11px; */
    border: 0;
    background: var(--color-primary-dark);
    color: #fff;
    padding: 2px 15px 3px;
    border-radius: 50px;
}
.wp-core-ui .button-group.button-hero .button, .wp-core-ui .button.button-hero {
    border-radius: 50px;
}

#major-publishing-actions input, 
#minor-publishing-actions .preview, #minor-publishing-actions input,
.wp-core-ui .button-primary
{
    background: var(--color-primary-dark);
    color: #fff;
    padding: 2px 15px 3px;
    border-radius: 50px;
    border: 0;
}
#major-publishing-actions input:hover, 
#minor-publishing-actions .preview:hover, 
#minor-publishing-actions input:hover,
.wp-core-ui .button-primary:hover
{
    background: var(--color-primary-light);
}


/* Notes */ 
.wrap .notice {
    border-radius: 50px;
}
.notice-error, div.error {
    background: #ffe9e9;
    border-color: #d63638;
}
.notice-success, div.updated {
    background: #e6ffec;
    border-color: #00a32a;
}

.notice-warning {
    background: #fff8e4;
    border-color: #dba617;
}


/* Edit page*/

#post-body-content, #postbox-container-1, .postbox-container, #poststuff #post-body.columns-2 #side-sortables {
    float: none !important;
    width: 100% !important;
}
/* تقليل عرض الصفحة وإعطاؤها تصميم نظيف */
body.post-php #poststuff,
body.post-new-php #poststuff {
  max-width: 1200px;
  margin: auto;
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
body.post-php #poststuff, 
body.post-new-php #poststuff
{
    padding-top: 0;
    margin-top: 70px;
}

/* إخفاء الشريط الجانبي مبدئياً */
/* #postbox-container-1 {
  display: none;
} */

/* تحسين مظهر محرر المحتوى */
#postdivrich,
.wp-editor-wrap {
  border: none !important;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
}
.wp-editor-wrap {
    padding: 0;
}
.wp-editor-expand #post-status-info {
    border-radius: 0 0 15px 15px;
    /* width: calc(100% - 40px);
    margin: auto; */
}

/* تنسيق العنوان */
#poststuff #titlewrap {
    padding-top: 30px;
    padding-bottom: 30px;
}
#titlediv #title {
    font-size: 28px;
    font-weight: 800;
    padding: 12px 15px;
    border-radius: 8px;
    border: 0;
    border-bottom: 1px solid #ddd;
    box-shadow: 6px 18px 15px #00000012;
    height: auto;
}

/* تنسيق زر النشر */
#submitpost {
  background: #fff;
  padding: 16px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* تنسيق الحقول الجانبية مثل التصنيفات */
.postbox {
  border-radius: 8px;
  border: none;
  background: #f8f8f8;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  margin-bottom: 20px;
}

.postbox h2.hndle {
  font-size: 16px;
  font-weight: bold;
  padding: 0;
  margin-bottom: 10px;
}

/* شريط أدوات عائم */
.custom-toolbar {
  position: fixed;
  top: 0;
  left: 200px;
  right: 20px;
  background: #fff;
  z-index: 9999;
  padding: 12px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}




#poststuff #post-body.columns-2 {
    margin: 0;
    display: flex;
    flex-direction: column;
}
#post-body.columns-2 #postbox-container-1 {
    order: 2;
}

body:not([class*="settings_page_"]):not([class*="toplevel_page_"]) #major-publishing-actions {
    position: fixed;
    top: 59px;
    left: 50%;
    z-index: 1001;
    width: calc(100% - 100px);
    background: var(--color-secondary-dark);
    padding: 5px 20px;
    box-shadow: 0 1px 9px rgba(0, 0, 0, 0.58);
    width: auto;
    transform: translate(-50%, 0px);
    border-radius: 0 0 25px 25px;
}


#poststuff #post-body.columns-2 #side-sortables {
    flex-direction: row;
    display: flex
;
    flex-wrap: wrap;
    gap: 2%;
}
.postbox {
    width: 49%;
}


#poststuff h2, #poststuff h3.hndle
{
    background: var(--color-secondary-dark);
    border-color: var(--adminthemecolor);
    color: var(--color-text-dark-bg);
}

div#postbox-container-2 .postbox, .tabs-body .postbox {
    width: 100%;
}

/* Slug */ 
#titlediv div.inside {
    margin: 0;
    position: absolute;
    top: -50px;
    left: -35px;
    width: calc(100% + 80px);
}
#edit-slug-box {
background: #fbfbfb;
    border: 1px solid #e8e8e8;
    border-radius: 68px;
    padding: 3px 12px;
    font-size: 90%;
    color: #333;
    display: flex;
    align-items: center;
    width: 100%;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-top: 0;
    line-height: 1;
    margin-bottom: 10px;
    padding: 0;
    overflow: hidden;
}
span#edit-slug-buttons {
    margin-inline-start: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
#edit-slug-box .edit-slug {
  flex-grow: 1;
  border: none;
  font-weight: 600;
  color: #1a73e8; /* لون أزرق كرابط */
  outline: none;
  cursor: text;
  background: #ededed;
min-height: 13px;
margin-inline-end: 10px;
}

#edit-slug-box .edit-slug:focus {
  outline: none;
  background: #fff;
  box-shadow: 0 0 5px #1a73e8;
  border-radius: 4px;
}

#edit-slug-box .default-slug {
  color: #666;
  font-size: 12px;
  margin-left: 6px;
  user-select: none;
}

#edit-slug-box:before {
    content: "www.";
    margin-inline-end: 10px;
    background: #e9e9e9;
    padding: 10px;
}


/* Tabs */
#poststuff .tabs-head {
    margin: 15px 0 0;
    display: flex;
    border-bottom: 5px solid var(--color-primary-light);
}

#poststuff .tabs-head a {
    background-color: var(--color-primary-dark);
    display: block;
    margin: 0 5px 0 0;
    padding: 10px;
    color: #fff;
    font-size: 1.2em;
    text-decoration: none;
}
#poststuff .tabs-head a.active {
    background-color: var(--color-primary-light);
    border-top: 5px solid #000;
    box-shadow: none;
}
#poststuff .tabs-body .hndle,
#poststuff .tabs-body .postbox .handle-order-higher, #poststuff .tabs-body .postbox .handle-order-lower,
#poststuff .tabs-body button.handlediv
{
    display: none;
}
#poststuff .tabs-body .postbox {
    padding-top: 10px;
}
#poststuff .tabs-body .postbox-header {
    border: 0;
}
#poststuff .tabs-body .acf-postbox .acf-hndle-cog {
    position: absolute;
    display: block;
    top: -5px;
    right: 0;
    opacity: 0.5;
}





@media screen and (max-width: 992px) {
    .postbox {
        width: 100%;
    }
}


/* ACF */
.acf-repeater .acf-row:nth-of-type(2n) td {
    background: var(--color-light-gray);
}
.acf-repeater .acf-row:hover td.acf-row-handle.order {
    background: var(--color-primary-dark);
    color: var(--color-text-dark-bg);
}
.acf-fields > .acf-field:hover {
    background: #ededed;
    transition: 0.3s;
}

ul.acf-radio-list, ul.acf-checkbox-list {
    display: flex;
    flex-wrap: wrap;
}

ul.acf-hl.acf-radio-list li, ul.acf-hl.acf-checkbox-list li {
    width: 31%;
    padding: 0;
    border: 1px solid #dedede;
    margin-inline-end: 2%;
}
.acf-fields > .acf-field:nth-of-type(2n), ul.acf-hl.acf-radio-list li:nth-of-type(2n), ul.acf-hl.acf-checkbox-list li:nth-of-type(2n) {
    border-top-width: 0;
    background: #e6e6e6;
}
ul.acf-radio-list li label, ul.acf-checkbox-list li label {
    display: block;
    padding: 5px;
}
ul.acf-hl.acf-radio-list li:hover, ul.acf-hl.acf-checkbox-list li:hover {
    background: #00000012;
}

.active-section-toggle input[type=checkbox]:not(:checked) {
    background: #ffd9d9;
    color: #fff;
    padding: 10px;
    width: 20px;
    height: 20px;
    border-color: red;
}

@media screen and (max-width: 992px) {
    ul.acf-hl.acf-radio-list li, ul.acf-hl.acf-checkbox-list li {
        width: 100%;
        margin-inline-end: 0%;
        margin-bottom: 5px;
    }
}



/* Media popup */
.media-modal .media-frame, .media-modal .media-frame-toolbar .media-toolbar {
    background: var(--color-primary-dark);
}
.media-modal .media-frame-title h1 {
    text-align: center;
    font-weight: bold;
    font-size: 1.2em;
    background: var(--color-primary-dark);
    color: var(--color-text-dark-bg) !important;
    text-transform: uppercase;
}
.media-modal-close {
    width: 30px;
    height: 30px;
    background: var(--color-secondary-dark);
    color: var(--color-text-dark-bg) !important;
}
.media-router {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    border-bottom: 5px solid var(--color-secondary-dark);
    gap: 1%;
    float: none;
    margin: -1px 0 0;
}
.media-router .media-menu-item {
    float: none;
    width: 35%;
    background: var(--color-light-gray);
    border-radius: 25px 25px 0 0;
}

.media-router .active {
    background: var(--color-secondary-dark);
    color: var(--color-text-dark-bg) !important;
    border: 0;
}
.media-router .media-menu-item:focus {
    box-shadow: none;
    outline: 0;
}
.media-modal .acf-expand-details {
    margin-inline-start: auto;
}

.attachments-browser .media-toolbar {
    background: var(--color-light-gray);
    right: 0;
}

.media-sidebar {
    padding-top: 70px;
}


/* taxonomy page */
.edit-tags-php div#col-container {
    display: flex;
    flex-direction: column;
}

.edit-tags-php #col-left, div#col-right {
    width: 100%;
    float: none;
}
form#addtag {
    max-height: 0;
    overflow: hidden;
    transition: 1s;
}
form#addtag.active {
    max-height: 2000px;
    padding: 20px;
    background: var(--color-light-gray);
    border-radius: 15px;
}
#col-left .col-wrap > .form-wrap > h2 {
    background: var(--color-primary-dark);
    color: #fff;
    width: auto;
    display: inline-block;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
}










/* اخفاء عناصر */ 
li#wp-admin-bar-wp-logo, li#wp-admin-bar-updates,
img.avatar.photo,

#adminmenu div.wp-menu-image,
#collapse-button .collapse-button-label,

div#contextual-help-link-wrap,

#wpfooter,

.attachment-details .setting+.description,
.edit-term-notes,
p#home-description, p#tagline-description, p.date-time-doc,
label[for="ping_sites"],
label[for="disallowed_keys"],
label[for="moderation_keys"],
li#menu-dashboard > ul.wp-submenu,

[href="admin.php?page=go_elementor_pro"]
{
    display: none;
}








/* RTL */ 
body.rtl {
    font-family: "Cairo";
}
.rtl input#search-submit {
    border-radius: 25px 0 0 25px;
}