.itw-root {
  position: fixed;
  z-index: 2147483647;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
}

.itw-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #dadce0;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  padding: 7px 12px;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.10);
  min-width: 260px;
}

.itw-logo { font-size: 16px; line-height: 1; }

.itw-select {
  flex: 1;
  border: 1px solid #dadce0;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
  background: #f8f9fa;
  cursor: pointer;
  outline: none;
  color: #202124;
  transition: border-color 0.15s;
}
.itw-select:hover  { border-color: #1a73e8; }
.itw-select:focus  { border-color: #1a73e8; box-shadow: 0 0 0 2px rgba(26,115,232,.2); }
.itw-select:disabled { opacity: .6; cursor: not-allowed; }

.itw-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}
.itw-badge--connecting { background: #e8f0fe; color: #1a73e8; }
.itw-badge--loading    { background: #fff8e1; color: #f57c00; }
.itw-badge--done       { background: #e6f4ea; color: #188038; font-weight: 600; }
.itw-badge--success    { background: #e6f4ea; color: #188038; font-weight: 600; }
.itw-badge--error      { background: #fce8e6; color: #c5221f; }

.itw-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #5f6368;
  font-size: 14px;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 3px;
  margin-left: auto;
  transition: color 0.1s, background 0.1s;
}
.itw-close:hover { color: #202124; background: #f1f3f4; }

.itw-progress-track {
  height: 3px;
  background: #e8eaed;
  border-radius: 0 0 0 0;
}
.itw-progress-bar {
  height: 100%;
  background: #1a73e8;
  border-radius: 0 2px 2px 0;
  transition: width 0.25s ease;
}

/* ── Searchable Select Styles ──────────────────────────────────────────────── */

.bhasha-select-container {
  position: relative;
  flex: 1;
  min-width: 140px;
}

.bhasha-select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid #dadce0;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
  background: #f8f9fa;
  cursor: pointer;
  outline: none;
  color: #202124;
  transition: border-color 0.15s;
}

.bhasha-select-trigger:hover {
  border-color: #1a73e8;
}

.bhasha-select-trigger:focus {
  border-color: #1a73e8;
  box-shadow: 0 0 0 2px rgba(26,115,232,.2);
}

.bhasha-select-trigger:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.bhasha-select-value {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bhasha-select-arrow {
  font-size: 10px;
  transition: transform 0.2s;
}

.bhasha-select-arrow.open {
  transform: rotate(180deg);
}

.bhasha-flag {
  font-size: 14px;
  line-height: 1;
}

.bhasha-select-dropdown {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #dadce0;
  border-radius: 6px;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.15);
  max-height: 280px;
  overflow-y: auto;
  z-index: 2147483647;
  margin-bottom: 4px;
}

.bhasha-select-search {
  padding: 8px;
  border-bottom: 1px solid #e8eaed;
  position: sticky;
  top: 0;
  background: #ffffff;
}

.bhasha-select-search input {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #dadce0;
  border-radius: 4px;
  font-size: 12px;
  outline: none;
}

.bhasha-select-search input:focus {
  border-color: #1a73e8;
  box-shadow: 0 0 0 2px rgba(26,115,232,.2);
}

.bhasha-select-options {
  padding: 4px 0;
}

.bhasha-select-option {
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  transition: background 0.15s;
}

.bhasha-select-option:hover,
.bhasha-select-option.selected {
  background: #e8f0fe;
}

.bhasha-option-native {
  font-weight: 500;
}

.bhasha-option-name {
  color: #5f6368;
  font-size: 11px;
  margin-left: auto;
}

.bhasha-select-no-results {
  padding: 12px;
  text-align: center;
  color: #5f6368;
  font-size: 12px;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
  .itw-bar {
    min-width: auto;
    padding: 6px 10px;
  }

  .bhasha-select-container {
    min-width: 120px;
  }

  .itw-logo-text {
    display: none;
  }
}

