/* ============================================================
   Transport ERP — Language Switcher Styles
   File: wwwroot/css/lang-switcher.css
   ============================================================ */

/* The <li> wrapper must allow overflow so dropdown shows */
.erp-lang-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Topbar pill button */
.erp-lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border: 1px solid #dee2e6;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  color: #212529;
  background: #ffffff;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  transition: border-color .15s, background .15s;
  font-family: inherit;
  line-height: 1.4;
}
.erp-lang-pill:hover {
  border-color: #86b7fe;
  background: #eff6ff;
  color: #0d6efd;
}

/* Dropdown panel — positioned below the pill */
.erp-lang-drop {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 215px;
  background: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.14);
  z-index: 99999;           /* high enough to float above navbar */
  overflow: hidden;
  min-width: 200px;
}
.erp-lang-drop.open { display: block; }

.erp-lang-drop-head {
  padding: 8px 12px 6px;
  font-size: 10px;
  font-weight: 700;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 1px solid #e9ecef;
}

.erp-lang-drop-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  cursor: pointer;
  font-size: 13px;
  color: #212529;
  transition: background .1s;
}
.erp-lang-drop-item:hover  { background: #f8f9fa; }
.erp-lang-drop-item.active {
  background: #eff6ff;
  color: #0d6efd;
  font-weight: 600;
}

/* Also ensure the Bootstrap navbar doesn't clip our dropdown */
.navbar { overflow: visible !important; }
.navbar-collapse { overflow: visible !important; }
.navbar-nav { overflow: visible !important; }

/* ============================================================
   First-launch language selection page
   ============================================================ */
.lang-choose-page {
  min-height: 100vh;
  background: #f8f9fa;
  display: flex;
  flex-direction: column;
}
.lang-choose-topbar {
  height: 56px;
  background: #ffffff;
  border-bottom: 1px solid #dee2e6;
  display: flex;
  align-items: center;
  padding: 0 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.lang-choose-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}
.lang-choose-card {
  background: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  padding: 36px 32px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
}
.lang-choose-icon  { font-size: 28px; margin-bottom: 14px; }
.lang-choose-title { font-size: 22px; font-weight: 700; color: #212529; margin-bottom: 4px; }
.lang-choose-sub   { font-size: 13px; color: #6c757d; margin-bottom: 24px; line-height: 1.6; }
.lang-choose-list  { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }

.lang-choose-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #dee2e6;
  cursor: pointer;
  transition: all .12s;
  background: #ffffff;
}
.lang-choose-item:hover { border-color: #86b7fe; background: #eff6ff; }
.lang-choose-item.sel   { border: 2px solid #0d6efd; background: #eff6ff; }

.lang-choose-item-left   { display: flex; align-items: center; gap: 12px; }
.lang-choose-item-flag   { font-size: 22px; width: 26px; text-align: center; }
.lang-choose-item-name   { font-size: 14px; font-weight: 600; color: #212529; }
.lang-choose-item-native { font-size: 12px; color: #6c757d; }

.lang-radio {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid #ced4da;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all .12s;
}
.lang-radio.sel { border-color: #0d6efd; background: #0d6efd; }
.lang-radio.sel::after {
  content: ''; width: 6px; height: 6px;
  border-radius: 50%; background: #ffffff;
}

.lang-choose-btn {
  width: 100%; padding: 13px; border: none; border-radius: 8px;
  background: #0d6efd; color: #ffffff;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background .15s; font-family: inherit;
}
.lang-choose-btn:hover { background: #0b5ed7; }
.lang-choose-hint {
  text-align: center; font-size: 12px;
  color: #adb5bd; margin-top: 10px;
}
