/* assets/css/i18n.css — language selector and Bangla typography (all portals and the sign-in pages). */

/* ---------- Language: one button (globe · EN / বাং · chevron) that opens a two-item menu ---------- */
.lang-switch { position: relative; display: inline-flex; flex: none; }
.lang-switch-toggle { appearance: none; display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 11px 0 12px; margin: 0;
  border: 1px solid var(--border, #e3e9f2); border-radius: 12px; background: var(--surface-soft, #f6f8fc); color: var(--text-primary, #0f1d36);
  font: 600 13px/1 'Inter', 'Noto Sans Bengali', system-ui, sans-serif; cursor: pointer; white-space: nowrap; transition: background-color .15s, border-color .15s; }
.lang-switch-toggle:hover, .lang-switch.is-open .lang-switch-toggle { background: var(--surface-hover, #eef3fb); border-color: color-mix(in srgb, var(--primary, #1d5fe8) 35%, var(--border, #e3e9f2)); }
.lang-switch-toggle:focus-visible, .lang-switch-btn:focus-visible { outline: 2px solid var(--accent, #0ea5e9); outline-offset: 2px; }
.lang-switch-toggle .fa-globe { color: var(--primary, #1d5fe8); font-size: 14px; }
.lang-switch-current { min-width: 2.1em; text-align: left; letter-spacing: .02em; }
.lang-switch-current[lang="bn"] { font-family: 'Noto Sans Bengali', 'Inter', system-ui, sans-serif; font-size: 13.5px; letter-spacing: 0; }
.lang-switch-caret { font-size: 10px; color: var(--text-muted, #7a879c); transition: transform .15s; }
.lang-switch.is-open .lang-switch-caret { transform: rotate(180deg); }
.lang-switch-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 1200; min-width: 150px; padding: 5px; display: grid; gap: 2px;
  background: var(--surface, #fff); border: 1px solid var(--border, #e3e9f2); border-radius: 12px; box-shadow: 0 12px 32px rgba(15, 29, 54, .16); }
.lang-switch-menu[hidden] { display: none; }
.lang-switch-btn { appearance: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; margin: 0; padding: 9px 11px;
  border: 0; border-radius: 8px; background: transparent; color: var(--text-primary, #0f1d36); font: 500 13.5px/1.2 'Inter', 'Noto Sans Bengali', system-ui, sans-serif;
  text-align: left; cursor: pointer; }
.lang-switch-btn[lang="bn"] { font-family: 'Noto Sans Bengali', 'Inter', system-ui, sans-serif; font-size: 14px; }
.lang-switch-btn:hover, .lang-switch-btn:focus-visible { background: var(--surface-hover, #eef3fb); }
.lang-switch-btn.is-active { color: var(--primary, #1d5fe8); font-weight: 600; }
.lang-switch-check { font-size: 12px; visibility: hidden; }
.lang-switch-btn.is-active .lang-switch-check { visibility: visible; }
@media (max-width: 600px) { .lang-switch--topbar .lang-switch-toggle { height: 38px; padding: 0 8px; gap: 5px; border-radius: 10px; font-size: 12px; } .lang-switch--topbar .lang-switch-caret { display: none; } }

/* sign-in, registration and password-recovery pages: the selector sits top-right */
.auth-lang-bar { position: absolute; top: 16px; right: 16px; z-index: 20; }
.auth-container { position: relative; }
@media (max-width: 600px) { .auth-lang-bar { top: 10px; right: 10px; } .auth-lang-bar .lang-switch-toggle { height: 38px; } }

/* ---------- Bangla text: a Bengali-capable font first for Bangla glyphs, Latin digits and identifiers unchanged ---------- */
html[lang="bn"] body { font-family: 'Inter', 'Noto Sans Bengali', 'Hind Siliguri', 'Nirmala UI', 'Kohinoor Bangla', 'Bangla Sangam MN', 'SolaimanLipi', 'Vrinda', system-ui, sans-serif; }
html[lang="bn"] body { line-height: 1.55; }
html[lang="bn"] :is(h1, h2, h3, h4) { letter-spacing: 0; line-height: 1.35; }
/* tracked-out / all-caps styling does not apply to Bangla script */
html[lang="bn"] :is(.ops-kicker, .cpx-eyebrow, .super-ticket-status span, th) { letter-spacing: 0 !important; }
/* buttons and pills keep their height when the label wraps less predictably */
html[lang="bn"] :is(.btn, .badge, .nav-link, .nav-link-sub) { line-height: 1.3; }

/* phones: the selector takes room from the page title (which truncates), never from the header buttons beside it */
@media (max-width: 600px) {
  .smartisp-shell .topbar-account-status { flex: none; }
  .smartisp-shell .topbar-left { min-width: 0; flex: 1 1 auto; }
  .smartisp-shell #page-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
