@import "./variables/admin.scss";
@import "mixins";
$bp-lg-up: 961px;
$bp-lg: 960px;
$bp-md-up: 783;
$bp-md: 782px;
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

html {
  // --wp-admin--admin-bar--height: #{$wpadminbar-height};
  --wp-admin--admin-bar--height: 32px;
  scroll-padding-top: var(--wp-admin--admin-bar--height);
}
body {
  background: $bg-base;
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
}
#wpadminbar {
  height: #{$wpadminbar-height};
  padding-top: 22px;
  background: $admin-bg-base;
  color: $text-base-color;
}
#adminmenu {
  margin-top: 0;
}
#wpadminbar .ab-submenu {
  padding: 1rem;
}
html.wp-toolbar {
  padding-top: #{$wpadminbar-height};
}
.interface-interface-skeleton {
  top: #{$wpadminbar-height};
}
#wpadminbar .quicklinks .ab-empty-item,
#wpadminbar .quicklinks a,
#wpadminbar .shortlink-input {
  height: calc(#{$wpadminbar-height}/ 2);
}
#wpadminbar .menupop li.hover > .ab-sub-wrapper,
#wpadminbar .menupop li:hover > .ab-sub-wrapper {
  margin-top: -calc(#{$wpadminbar-height}/ 2);
}
#wpadminbar .ab-label {
  height: calc(#{$wpadminbar-height}/ 2);
}
#wpadminbar #adminbarsearch {
  height: calc(#{$wpadminbar-height}/ 2);
}
#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: $admin-bg-base;
  color: $text-base-color;
}
#wpadminbar #adminbarsearch:before,
#wpadminbar .ab-icon:before,
#wpadminbar .ab-item:before {
  color: $text-base-color;
}
#wpadminbar .menupop .ab-sub-wrapper,
#wpadminbar .shortlink-input {
  background: $admin-bg-base-hover;
}
#wpadminbar .menupop .ab-sub-wrapper,
#wpadminbar .shortlink-input {
  border-radius: $admin-br;
}
#wpadminbar .quicklinks .menupop ul li a,
#wpadminbar .quicklinks .menupop ul li a strong,
#wpadminbar .quicklinks .menupop.hover ul li a,
#wpadminbar.nojs .quicklinks .menupop:hover ul li a {
  color: $text-base-color;
}
#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: $text-base-color-hover;
}
#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 {
  color: $text-base-color-hover;
}
html.interface-interface-skeleton__html-container:not(:has(.is-zoom-out))
  #inoby-notices {
  display: none !important;
}
li#wp-admin-bar-wp-logo {
  display: none;
}
#wpadminbar .quicklinks > ul > li > a {
  padding: 0 12px 0 11px;
}
#adminmenu,
#adminmenu .wp-submenu,
#adminmenuback,
#adminmenuwrap {
  width: $sidebar-width;
  background-color: $admin-bg-base;
}
.sticky-menu #adminmenuwrap {
  position: relative;
}
#adminmenu .wp-menu-open .wp-submenu {
  width: calc(#{$sidebar-width} - 2 *#{$sidebar-pd-left});
}
#adminmenu .wp-not-current-submenu .wp-submenu,
.folded #adminmenu .wp-has-current-submenu .wp-submenu {
  // min-width: $sidebar-width;
  min-width: calc(#{$sidebar-width} - 2 *#{$sidebar-pd-left});
  margin-top: 0 !important;
}
li#wp-admin-bar-site-name {
  padding-left: $sidebar-pd-left !important;
  > a.ab-item {
    font-weight: bold;
    &:before {
      color: $admin-col-sec;
      margin-right: 10px;
    }
  }
}
#adminmenu li {
  padding-left: $sidebar-pd-left;
  padding-right: $sidebar-pd-left;
}
.folded #adminmenu,
.folded #adminmenu li {
  padding-left: 0;
  padding-right: 0;
}
#wpcontent,
#wpfooter {
  margin-left: $sidebar-width;
}
#wpcontent {
  #wpbody-content {
    > .wrap {
      padding-top: 2rem;
    }
  }
}
#adminmenu .wp-submenu {
  left: $sidebar-width;
}
.auto-fold .interface-interface-skeleton {
  left: $sidebar-width;
}
#wpadminbar #wp-admin-bar-my-account.with-avatar > .ab-empty-item img,
#wpadminbar #wp-admin-bar-my-account.with-avatar > a img {
  height: 25px;
  border-radius: 100px;
}
#adminmenu .wp-submenu-head,
#adminmenu a.menu-top {
  position: relative;
  font-size: $base-fs;
  border-radius: $admin-br;
  color: $text-base-color;
  &::after {
    content: none !important;
  }
  &.wp-has-submenu {
    &::after {
      border-color: transparent !important;
      content: "\2192" !important;
      position: absolute;
      top: 0;
      right: 0;
      cursor: pointer;
      padding: 9px;
      display: block;
      color: #dedede;
      font-size: 10px;
      opacity: 0.5;
    }
  }
}
#adminmenu li.menu-top.submenu-open a.wp-has-submenu {
  &::after {
    content: none !important;
  }
}
a {
  color: $admin-col-sec;
}
a:active,
a:hover {
  color: $admin-col-prm-h;
}
.wrap .add-new-h2,
.wrap .add-new-h2:active,
.wrap .page-title-action,
.wrap .page-title-action:active {
  background: $admin-col-sec;
  border-radius: $admin-br;
  color: $base-actions-color;
  border: none;
  margin-bottom: 2rem;
  &:hover {
    background: $admin-col-sec;
    color: $text-base-color-hover;
  }
}
.wp-core-ui select {
  background: $base-actions-color;
  border: none;
  border-radius: $admin-br;
}
.wp-core-ui .button,
.wp-core-ui .button-secondary,
#screen-meta-links .show-settings {
  background: $base-actions-color;
  border: none;
  border-radius: $admin-br;
  color: $base-actions-text-color;
}
.wp-core-ui .button-secondary:hover,
.wp-core-ui .button.hover,
.wp-core-ui .button:hover {
  background: $base-actions-color;
  color: $base-actions-text-color-hover;
}
.wp-core-ui .button-primary,
.components-button.is-primary {
  background: $admin-col-sec !important;
  border: none !important;
  border-radius: $admin-br !important;
  color: $text-base-color-hover !important;
  &:hover {
    color: $text-base-color-hover !important;
  }
}
.alternate,
.striped > tbody > :nth-child(odd),
ul.striped > :nth-child(odd) {
  background-color: $bg-base;
}
#menu-management .menu-edit,
#menu-settings-column .accordion-container,
.comment-ays,
.feature-filter,
.manage-menus,
.menu-item-handle,
.popular-tags,
.stuffbox,
.widget-inside,
.widget-top,
.widgets-holder-wrap,
.wp-editor-container,
p.popular-tags,
table.widefat {
  border: none;
}
#adminmenu div.wp-menu-image {
  transform: scale(0.75);
}
.wrap h1.wp-heading-inline {
  display: block;
  margin-bottom: 1rem;
  font-weight: 500;
  font-size: 34px;
}
#adminmenu .wp-has-current-submenu .wp-submenu .wp-submenu-head,
#adminmenu .wp-menu-arrow,
#adminmenu .wp-menu-arrow div,
#adminmenu li.current a.menu-top,
#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu {
  background: $admin-bg-base-hover;
}
#adminmenu a:focus,
#adminmenu a:hover,
.folded #adminmenu .wp-submenu-head:hover {
  box-shadow: none;
  background-color: $admin-bg-base-hover;
  color: $text-base-color-hover;
}
#adminmenu li.menu-top:hover,
#adminmenu li.opensub > a.menu-top,
#adminmenu li > a.menu-top:focus {
  background-color: transparent;
  color: $text-base-color-hover;
}
#adminmenu .wp-submenu a:focus,
#adminmenu .wp-submenu a:hover,
#adminmenu a:hover,
#adminmenu li.menu-top > a:focus {
  color: $text-base-color-hover;
}
#adminmenu li a:focus div.wp-menu-image:before,
#adminmenu li.opensub div.wp-menu-image:before,
#adminmenu li:hover div.wp-menu-image:before {
  color: $text-base-color-hover;
}

// #adminmenu li.menu-top:not(.wp-menu-open) .wp-submenu {
#adminmenu li.menu-top .wp-submenu {
  position: relative;
  box-shadow: none;
  top: 0;
  left: 0;
  display: none;
}

#adminmenu li.menu-top.submenu-open.menu-active a.wp-has-submenu {
  background-color: $admin-bg-base-hover;
}

#adminmenu .awaiting-mod,
#adminmenu .menu-counter,
#adminmenu .update-plugins {
  padding: 0 5px;
  min-width: 14px;
  height: 14px;
  border-radius: 100px;
  background-color: $admin-col-sec;
  color: $text-base-color-hover;
  font-size: 8px;
  line-height: 14px;
}
#wpadminbar .yoast-issue-counter {
  background-color: $admin-col-sec !important;
}

div#contextual-help-link-wrap {
  display: none;
}

.plugins .active td,
.plugins .active th {
  background-color: $base-actions-color;
}
.plugins .active.update + .plugin-update-tr:before,
.plugins .active.updated + .plugin-update-tr:before {
  background-color: $base-actions-color;
  border-left: 4px solid $admin-col-sec;
}
.plugin-update-tr.active td,
.plugins .active th.check-column {
  border-left: 4px solid $admin-col-sec;
}
.highlight {
  background-color: $base-actions-color;
  color: $base-actions-text-color;
}
.notice-info.notice-alt {
  background-color: $base-actions-color;
}
html {
  scrollbar-color: $admin-col-sec $admin-bg-base;
}
body {
  background-color: $admin-bg-base;
}
#wpcontent:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-color: $admin-bg-base;
}
#wpcontent {
  background-color: $bg-base;
  border-radius: 10px;
  min-height: 90vh;
  margin-right: 15px;
}
div#wpfooter {
  display: none;
}

input[type="color"],
input[type="date"],
input[type="datetime-local"],
input[type="datetime"],
input[type="email"],
input[type="month"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="text"],
input[type="time"],
input[type="url"],
input[type="week"],
select,
textarea {
  box-shadow: 0 0 0 transparent !important;
  border-radius: 8px !important;
  border: 1px solid #8c8f94 !important;
  background-color: $base-actions-color !important;
  color: $base-actions-text-color !important;
  border: none !important;
}

#adminmenu li.menu-top.submenu-open .wp-submenu {
  display: block !important;
}

#adminmenu li.menu-top:not(.menu-active),
#adminmenu li.wp-menu-separator:not(.menu-active) {
  display: none;
}

.back-button {
  cursor: pointer;
  padding: 5px;
  display: block;
  color: #ffffff;
  font-weight: bold;
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(-5px, -31px);
  width: 100%;
  text-align: right;
}

#adminmenu li.menu-top:not(.menu-active),
#adminmenu li.wp-menu-separator:not(.menu-active) {
  display: none;
}

#adminmenu li.current.menu-top {
  display: block !important;
}
#adminmenu:has(li.current.menu-top:not(.wp-has-submenu)) li.menu-top {
  display: block !important;
}

#adminmenu .back-button {
  cursor: pointer;
  transition: all 0.15s ease;
}
