/* Generated by script */
@font-face {
  font-family: Vazirmatn;
  src: url('../../node_modules/vazirmatn/fonts/webfonts/Vazirmatn-Thin.woff2') format('woff2');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url('../../node_modules/vazirmatn/fonts/webfonts/Vazirmatn-ExtraLight.woff2') format('woff2');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url('../../node_modules/vazirmatn/fonts/webfonts/Vazirmatn-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url('../../node_modules/vazirmatn/fonts/webfonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url('../../node_modules/vazirmatn/fonts/webfonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url('../../node_modules/vazirmatn/fonts/webfonts/Vazirmatn-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url('../../node_modules/vazirmatn/fonts/webfonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url('../../node_modules/vazirmatn/fonts/webfonts/Vazirmatn-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url('../../node_modules/vazirmatn/fonts/webfonts/Vazirmatn-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: Vazirmatn, sans-serif;
}

:root {
  --ifm-heading-font-family: Vazirmatn, sans-serif;
  
  /* SEO-friendly brand colors */
  --ifm-color-primary: #a62626;
  --ifm-color-primary-dark: #952222;
  --ifm-color-primary-darker: #8d2020;
  --ifm-color-primary-darkest: #741a1a;
  --ifm-color-primary-light: #b72a2a;
  --ifm-color-primary-lighter: #bf2c2c;
  --ifm-color-primary-lightest: #d83636;
  
  /* Better contrast for accessibility and SEO */
  --ifm-color-emphasis-300: #dadde1;
  --ifm-color-emphasis-400: #ccd0d5;
  --ifm-color-emphasis-500: #bec3c9;
  --ifm-color-emphasis-600: #8d949e;
  --ifm-color-emphasis-700: #606770;
  --ifm-color-emphasis-800: #444950;
  --ifm-color-emphasis-900: #1c1e21;
}

/* Dark mode color scheme */
[data-theme='dark'] {
  /* Primary brand colors for dark mode */
  --ifm-color-primary: #d83939;
  --ifm-color-primary-dark: #d32626;
  --ifm-color-primary-darker: #c92424;
  --ifm-color-primary-darkest: #a61e1e;
  --ifm-color-primary-light: #dd4c4c;
  --ifm-color-primary-lighter: #df5454;
  --ifm-color-primary-lightest: #e57070;
  
  /* Dark theme background and text colors */
  --ifm-background-color: #1b1b1d;
  --ifm-background-surface-color: #242526;
  
  /* Better contrast for dark mode */
  --ifm-color-emphasis-100: #2d2e30;
  --ifm-color-emphasis-200: #393a3c;
  --ifm-color-emphasis-300: #484a4d;
  --ifm-color-emphasis-400: #606770;
  --ifm-color-emphasis-500: #8a919a;
  --ifm-color-emphasis-600: #a8b1ba;
  --ifm-color-emphasis-700: #bcc4cd;
  --ifm-color-emphasis-800: #dadde1;
  --ifm-color-emphasis-900: #e3e6ea;
  
  /* Text colors for better readability in dark mode */
  --ifm-color-content: #e3e6ea;
  --ifm-color-content-secondary: #bcc4cd;
}

/* SEO-friendly image optimization */
img {
  max-width: 100%;
  height: auto;
  /* Improve loading performance */
  loading: lazy;
}

/* Better semantic structure for SEO */
.navbar__title {
  font-weight: 600;
  color: var(--ifm-navbar-link-color);
}

/* Improve readability for better user experience (UX signals for SEO) */
.markdown h1,
.markdown h2,
.markdown h3,
.markdown h4,
.markdown h5,
.markdown h6 {
  line-height: 1.4;
  margin-bottom: 1rem;
}

.markdown p {
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

/* Better focus indicators for accessibility (SEO factor) */
.navbar__link:focus,
.menu__link:focus,
.pagination-nav__link:focus {
  outline: 2px solid var(--ifm-color-primary);
  outline-offset: 2px;
}

/* Optimize table of contents for better navigation (SEO) */
.table-of-contents {
  font-size: 0.875rem;
}

.table-of-contents__link {
  color: var(--ifm-color-emphasis-700);
  transition: color 0.2s ease;
}

.table-of-contents__link:hover,
.table-of-contents__link--active {
  color: var(--ifm-color-primary);
  text-decoration: none;
}


/* Improve search input visibility */
.navbar__search-input {
  background-color: var(--ifm-color-emphasis-200);
  border: 1px solid var(--ifm-color-emphasis-300);
  border-radius: 6px;
  padding: 0.5rem 1rem;
}

.navbar__search-input:focus {
  border-color: var(--ifm-color-primary);
  box-shadow: 0 0 0 2px var(--ifm-color-primary-lighter);
}

/* Better mobile responsiveness for SEO */
@media (max-width: 768px) {
  .navbar__title {
    font-size: 1.1rem;
  }
  
  .markdown h1 {
    font-size: 1.8rem;
  }
  
  .markdown h2 {
    font-size: 1.5rem;
  }
}

/* Optimize footer for better information architecture */
.footer {
  background-color: var(--ifm-color-emphasis-100);
  color: var(--ifm-color-emphasis-800);
}

.footer__link-item {
  color: var(--ifm-color-emphasis-700);
  transition: color 0.2s ease;
}

.footer__link-item:hover {
  color: var(--ifm-color-primary);
  text-decoration: none;
}

/* Print styles for better content accessibility */
@media print {
  .navbar,
  .footer,
  .table-of-contents,
  .pagination-nav,
  .theme-doc-sidebar-container {
    display: none !important;
  }
  
  .main-wrapper {
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .markdown {
    max-width: none !important;
    margin: 0 !important;
  }
}

html[dir="rtl"] .prism-code,
html[dir="rtl"] .theme-code-block .prism-code,
html[dir="rtl"] .theme-code-block pre,
html[dir="rtl"] .codeBlockContainer_node_modules-\@docusaurus-theme-classic-lib-theme-CodeBlock-Container-styles-module * {
  /*rtl:ignore*/
  direction: ltr !important;
  /*rtl:ignore*/
  text-align: left !important;
  overflow-x: auto !important;
  /*rtl:ignore*/
  white-space: pre !important;
}

html[dir="rtl"] .theme-code-block pre code {
  width: 100%;
}

/* Force the container to be LTR */
html[dir="rtl"] .theme-code-block,
html[dir="rtl"] .codeBlockContainer_node_modules-\@docusaurus-theme-classic-lib-theme-CodeBlock-Container-styles-module {
  /*rtl:ignore*/
  direction: ltr !important;
}

.openapi-right-panel__container {
  /*rtl:ignore*/
  direction: ltr;

}
