@font-face {
  font-family: "dashicons";
  src: url("/ms-admin/assets/fonts/dashicons.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
/* Toolbar ucun custom css */
.admin-bar {
  background: #111418;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
  top: 0;
  left: 0;
  font-size: 13px;
  z-index: 1000000;
  height: 35px;
  position: fixed;
  font-family: Inter, sans-serif;
  border-bottom: 1px solid #000;
}
.admin-bar-elements {
  display: flex;
  flex-wrap: wrap;
}
.admin-bar-sub-element {
  position: absolute;
  background: #1b2028;
  padding: 3px 0;
  min-width: 150px;
  display: none;
}
.admin-bar-element > a {
  display: block;
  color: #c9ced6;
  height: 35px;
  line-height: 35px;
  padding: 0 10px;
}
.admin-bar a:hover {
  background: #23282f;
  color: #fff;
}
.admin-bar-sub-element a {
  padding: 5px 10px;
  display: block;
  color: #e3e6ea;
}
.admin-bar-element:hover .admin-bar-sub-element {
  display: block;
}
.admin-bar-element > a:before {
  font-family: dashicons;
  margin-right: 5px;
  color: #8a929d;
  display: inline-block;
  vertical-align: middle;
  font-size: 18px;
  line-height: 1;
}
.go-site > a:before {
  content: "\f102";
  transform: translateY(-2px);
}
.add-new > a:before {
  content: "\f132";
}
.edit-admin-bar > a:before {
  content: "\f327";
  transform: translateY(-2px);
}
.admin-bar-lang {
  height: 35px;
  color: white;
  flex-wrap: wrap;
  align-items: center;
  background: #444;
  padding: 0 10px;
  display: none;
}
.admin-bar-lang:first-child {
  display: flex;
  background: #23282d;
}
.all-languages:hover .admin-bar-lang {
  display: flex;
}
.admin-bar-lang img {
  width: 18px;
  margin-right: 10px;
}
.admin-bar-error {
  color: black;
  display: flex;
  align-items: center;
  font-size: 14px;
  background: red;
  font-weight: 600;
  padding: 0 35px;
}
.translate-php .admin-bar-element.select-lang,
.translate-admin-php .admin-bar-element.select-lang,
.translate-extra-php .admin-bar-element.select-lang {
  display: none;
}
@media (max-width: 767px) {
  .front .admin-bar-element {
    display: none;
  }
  .front .go-site,
  .front .admin-bar-element.logout {
    display: block;
  }
}

/* Language switcher */
.admin-language-switcher ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.admin-language-switcher li,
.admin-language-switcher li a {
  display: flex;
  align-items: center;
  color: white;
}
.admin-ls-current-lang {
  height: 35px;
  padding: 0 10px;
}
.admin-language-switcher img {
  width: 18px;
  margin-right: 10px;
}
.admin-language-switcher li a {
  padding: 0 10px;
  height: 35px;
}
.admin-language-switcher li a:hover {
  color: #00a0d2;
}
.admin-ls-sub-menu {
  display: none;
  background: #444;
}
.admin-language-switcher:hover .admin-ls-sub-menu {
  display: block;
}

/* Mobil menyu açarı — 1025px-dən yuxarıda görünmür */
.admin-mobile-toggle {
  display: none;
}

.admin-mobile-toggle > a {
  font-size: 18px;
  padding: 0 12px;
}

@media (max-width: 1024px) {
  .admin-mobile-toggle {
    display: block;
  }
}

/* Mobil: label-lar gizlənir, yerinə dashicons ikonları qalır */
@media (max-width: 767px) {
  .admin-bar-element:not(.admin-mobile-toggle) > a {
    font-size: 0;
    padding: 0 10px;
  }

  .admin-bar-element:not(.admin-mobile-toggle) > a:before {
    font-size: 18px;
    margin-right: 0;
    transform: none;
  }

  /* Alt menyularda mətn qalır */
  .admin-bar-sub-element a {
    font-size: 13px;
  }

  .view-page > a:before {
    content: "\f177";
  }

  .admin-cache > a:before {
    content: "\f463";
  }

  .admin-username > a:before {
    content: "\f110";
  }

  .logout > a:before {
    content: "\f310";
  }
}
