/* Fit Cloud brand overrides: turquoise primary, energy-orange accent, Cairo for Arabic */
@font-face { font-family: 'Cairo'; src: url('../fonts/cairo/Cairo-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Cairo'; src: url('../fonts/cairo/Cairo-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Cairo'; src: url('../fonts/cairo/Cairo-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Cairo'; src: url('../fonts/cairo/Cairo-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

:root {
  --fc-turquoise: #0eada8;
  --fc-turquoise-dark: #0b8a86;
  --fc-energy: #ff7a1a;
  --fc-energy-rgb: 255, 122, 26;
  --fc-navy: #10242c;
}

html[dir="rtl"], html[dir="rtl"] body,
html[lang^="ar"], html[lang^="ar"] body {
  --bs-body-font-family: 'Cairo', sans-serif;
  --bs-font-sans-serif: 'Cairo', sans-serif;
  font-family: 'Cairo', sans-serif;
}
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4, html[dir="rtl"] h5, html[dir="rtl"] h6,
html[dir="rtl"] .btn, html[dir="rtl"] input, html[dir="rtl"] select, html[dir="rtl"] textarea, html[dir="rtl"] .form-control {
  font-family: 'Cairo', sans-serif;
}

/* Energy accent for highlights */
.text-energy { color: var(--fc-energy) !important; }
.bg-energy { background-color: var(--fc-energy) !important; color: #fff !important; }
.btn-energy { background-color: var(--fc-energy); border-color: var(--fc-energy); color: #fff; }
.btn-energy:hover, .btn-energy:focus { background-color: #e5650a; border-color: #e5650a; color: #fff; }

/* ---- Fit Cloud dashboard RTL/LTR fixes (dashboard agent) ---- */
/* Latin-only values (emails, phones, codes, URLs, timezones) stay left-to-right inside Arabic pages. */
[dir="rtl"] input[type="email"], [dir="rtl"] input[type="tel"], [dir="rtl"] input[type="url"],
[dir="rtl"] input[dir="ltr"], [dir="rtl"] .ltr-value { direction: ltr; text-align: right; }
[dir="rtl"] input[type="email"]::placeholder, [dir="rtl"] input[dir="ltr"]::placeholder { text-align: right; }
bdi[dir="ltr"], .fc-ltr { unicode-bidi: isolate; direction: ltr; }
/* select2 rendered for an LTR <select> inside RTL pages (e.g. timezone) */
[dir="rtl"] select[dir="ltr"] + .select2 .select2-selection__rendered { direction: ltr; text-align: right; }
/* Loading state for submit buttons (see _i18n_script) */
.btn[aria-busy="true"] { cursor: progress; opacity: .85; }
.btn[aria-busy="true"] .spinner-border { vertical-align: -0.125em; }
/* Language switcher */
.fc-lang-switcher .dropdown-item.active { background-color: rgba(14, 173, 168, .12); color: var(--bs-primary); }
/* DataTables processing indicator */
div.dataTables_processing { z-index: 5; }
