/* تعریف فونت‌های فارسی به صورت آفلاین */
/* Flutter Web به صورت خودکار فونت‌ها را از pubspec.yaml لود می‌کند */
/* این CSS فقط برای اطمینان از استفاده از فونت‌های محلی است */

/* تنظیم فونت پیش‌فرض برای کل صفحه */

/* font-weight/font-style اینجا فقط برای CSS صفحه است؛ متن داخل Flutter از pubspec + Theme می‌آید. */
@font-face {
  font-family: 'notosansarabic';
  src: url('assets/assets/fonts/notosansarabic.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('assets/assets/fonts/Roboto.woff2') format('woff2');
}

* {
  font-family: 'LatestFont', 'notosansarabic', 'EnglishLight', sans-serif !important;
}

html {
  font-family: 'LatestFont', 'notosansarabic', 'EnglishLight', sans-serif !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  height: 100% !important;
  height: 100dvh !important;
  height: 100vh !important;
  overflow: hidden !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  /* Use CSS variable for dynamic height */
  height: calc(var(--vh, 1vh) * 100) !important;
  max-height: calc(var(--vh, 1vh) * 100) !important;
  min-height: calc(var(--vh, 1vh) * 100) !important;
}

body {
  font-family: 'LatestFont', 'notosansarabic', 'EnglishLight', sans-serif !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  height: 100% !important;
  height: 100dvh !important;
  height: 100vh !important;
  overflow: hidden !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  /* Use CSS variable for dynamic height */
  height: calc(var(--vh, 1vh) * 100) !important;
  max-height: calc(var(--vh, 1vh) * 100) !important;
  min-height: calc(var(--vh, 1vh) * 100) !important;
}

/* Flutter app container - force full height */
flt-glass-pane,
flt-scene-host {
  width: 100% !important;
  height: 100% !important;
  height: 100dvh !important;
  height: 100vh !important;
  /* Use CSS variable for dynamic height */
  height: calc(var(--vh, 1vh) * 100) !important;
  max-height: calc(var(--vh, 1vh) * 100) !important;
  min-height: calc(var(--vh, 1vh) * 100) !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Ensure Flutter canvas takes full height */
canvas {
  width: 100% !important;
  height: 100% !important;
  height: calc(var(--vh, 1vh) * 100) !important;
  max-height: calc(var(--vh, 1vh) * 100) !important;
  min-height: calc(var(--vh, 1vh) * 100) !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Remove any extra spacing from Flutter containers */
flt-glass-pane > *,
flt-scene-host > * {
  margin: 0 !important;
  padding: 0 !important;
}

/* جلوگیری از استفاده از Google Fonts برای متن‌های فارسی */
[lang="fa"], [lang="ar"], [dir="rtl"] {
  font-family: 'LatestFont', 'notosansarabic', 'EnglishLight', sans-serif !important;
}

