
/* 2. Define Your Custom Persian Font */
@font-face {
  font-family: 'dana';
  src: url('../public/font/woff2/dana-regular.woff2') format('woff2');
  font-weight: 400; /* Regular */
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'dana';
  src: url('../public/font/woff2/dana-bold.woff2') format('woff2');
  font-weight: 700; /* Bold */
  font-style: normal;
  font-display: swap;
}

/* 3. Define Font Variables (White-label friendly) */
:root {
  --font-english: 'arial', sans-serif;
  --font-persian: 'dana', sans-serif;
  
  /* Default font is English */
  --font-primary: var(--font-english);
}

/* 4. Auto-switch to Persian font when the app direction is RTL */
[dir="rtl"] {
  --font-primary: var(--font-persian);
}

/* 5. Apply to the entire app */
body {
  font-family: var(--font-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}