@import url('/assets/fonts/dana/dana.css');

/* Global Persian typography using Dana font */
html[dir="rtl"], html[lang="fa"], :lang(fa) {
  font-family: dana, "Segoe UI", Tahoma, "Noto Naskh Arabic", "Noto Kufi Arabic", Arial, sans-serif !important;
}

body:lang(fa), body[dir="rtl"] {
  font-family: dana, "Segoe UI", Tahoma, "Noto Naskh Arabic", "Noto Kufi Arabic", Arial, sans-serif !important;
  font-weight: 400;
}

/* Common form and UI controls to ensure inheritance across frameworks */
button, input, select, textarea, label, .btn, .form-control, .dropdown-menu, .modal, .offcanvas {
  font-family: inherit !important;
}

/* Do not override monospace contexts */
code, kbd, pre, samp {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
}

/* Preserve icon fonts (avoid being overridden by Dana) */
:root { --icon-font-size: 1.25em; --menu-font-weight: 600; }
.material-icons {
  font-family: 'Material Icons' !important;
  font-weight: normal;
  font-style: normal;
  font-size: var(--icon-font-size);
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

.material-icons-outlined {
  font-family: 'Material Icons Outlined' !important;
  font-weight: normal;
  font-style: normal;
  font-size: var(--icon-font-size);
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

/* Common other icon sets (ensure they keep their own font) */
.bx { font-family: 'boxicons' !important; }
.bi { font-family: 'bootstrap-icons' !important; }

/* Sidebar menu font weight (one step thicker) */
.sidebar-wrapper .menu-title,
.sidebar-wrapper .metismenu a {
  font-weight: var(--menu-font-weight) !important;
}


