/* ---- Material Icons (local) ---- */
@font-face {
  font-family: 'Material Icons';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/MaterialIcons-Regular.woff2') format('woff2'),
       url('../fonts/MaterialIcons-Regular.woff') format('woff');
}

.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'liga';
}

/* ---- Menu Icon Base ---- */
.sda-menu-icon {
  font-size: 16px;
  width: 20px;
  height: 20px;
  text-align: center;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

.sda-menu-icon.dashicons {
  font-family: dashicons;
  font-size: 18px;
  width: 20px;
  height: 20px;
}

.sda-menu-icon.material-icons {
  font-family: 'Material Icons';
  font-size: 18px;
  width: 20px;
  height: 20px;
}

/* ---- Menu item icon positioning ---- */
.sdat2-left-nav a .sda-menu-icon,
.sdat2-left-nav a::before {
  margin-right: 0;
}

/* Default star for menu items without custom icon */
.sdat2-left-nav a:not(.has-custom-icon)::before {
  content: '★';
  font-size: 12px;
  color: var(--sdat2-text-muted);
  opacity: 0.5;
  flex-shrink: 0;
  font-family: sans-serif;
  transition: opacity .12s, color .12s;
}

.sdat2-left-nav a:not(.has-custom-icon):hover::before,
.sdat2-left-nav .current-menu-item > a:not(.has-custom-icon)::before,
.sdat2-left-nav .current_page_item > a:not(.has-custom-icon)::before {
  opacity: 1;
  color: var(--sdat2-primary);
}

/* When a custom icon is set, hide the default star */
.sdat2-left-nav a.has-custom-icon::before {
  display: none !important;
}
