/* Vazirmatn — self-hosted from github.com/rastikerdar/vazirmatn v33.003 */
@font-face {
  font-family: 'Vazirmatn';
  src: url('/admin/static/fonts/Vazirmatn-variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/admin/static/fonts/VazirMatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/admin/static/fonts/VazirMatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
[dir="rtl"], [lang="fa"] {
  font-family: 'Vazirmatn', system-ui, sans-serif;
}

/* Toggle switch */
.toggle { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-track { width: 2.5rem; height: 1.25rem; background: #d1d5db; border-radius: 9999px; transition: background .2s; }
.toggle input:checked + .toggle-track { background: #6366f1; }
.toggle-thumb { position: absolute; left: 0.2rem; top: 0.15rem; width: 0.9rem; height: 0.9rem; background: white; border-radius: 50%; transition: transform .2s; }
.toggle input:checked ~ .toggle-thumb { transform: translateX(1.25rem); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f3f4f6; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }

/* Price flash */
@keyframes flash-up   { 0%,100%{background:transparent} 50%{background:#dcfce7} }
@keyframes flash-down { 0%,100%{background:transparent} 50%{background:#fee2e2} }
.flash-up   { animation: flash-up   .6s ease; }
.flash-down { animation: flash-down .6s ease; }

/* Highcharts light theme overrides */
.highcharts-background { fill: #ffffff; }
.highcharts-plot-background { fill: #ffffff; }
.highcharts-grid-line { stroke: #e5e7eb; }
.highcharts-axis-line, .highcharts-tick { stroke: #d1d5db; }
.highcharts-axis-labels text, .highcharts-legend-item text { fill: #6b7280 !important; }
.highcharts-title { fill: #111827 !important; }
.highcharts-tooltip-box { fill: #ffffff; stroke: #e5e7eb; }
