/* Language Picker Component */
.languagePicker {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center; /* Center align items vertically */
  height: 32px;
  border: 1px solid var(--border-default);
  background-color: var(--mantine-color-white); /* Use Mantine color variable */
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Dark mode background */
[data-mantine-color-scheme="dark"] .languagePicker {
  background-color: var(
    --mantine-color-dark-6
  ); /* Use Mantine dark color instead of hardcoded */
}

.languagePicker:hover {
  border-color: var(--border-strong);
  background-color: var(
    --mantine-color-gray-0
  ); /* Light gray on hover for light mode */
}

/* Dark mode hover */
[data-mantine-color-scheme="dark"] .languagePicker:hover {
  background-color: var(
    --mantine-color-dark-5
  ); /* Use Mantine color variable */
}

.languagePicker:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.languagePickerIcon {
  font-size: 16px;
  color: var(--text-muted);
  margin-left: auto;
  display: flex;
  align-items: center; /* Center the icon vertically */
}

.languagePickerDropdown {
  background-color: var(--mantine-color-white); /* Use Mantine color variable */
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 4px;
}

/* Dark mode dropdown background */
[data-mantine-color-scheme="dark"] .languagePickerDropdown {
  background-color: var(--mantine-color-dark-6);
}

.languagePickerOption {
  padding: 6px 10px;
  cursor: pointer;
  border-radius: var(--radius-xs);
  font-size: 13px;
  color: var(--text-primary);
  transition: background-color 0.2s ease;
}

.languagePickerOptionWithCheckbox {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.languagePickerCheckbox {
  margin-left: auto;
}

.languagePickerOption:hover {
  background-color: var(
    --mantine-color-gray-0
  ); /* Light gray on hover for light mode */
}

/* Dark mode option hover */
[data-mantine-color-scheme="dark"] .languagePickerOption:hover {
  background-color: var(--mantine-color-dark-5);
}

/* Additional helper classes for the component */
.languagePickerTarget {
  width: 100%;
}

.languagePickerContent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.languagePickerText {
  flex: 1;
  text-align: left;
}

.languagePickerScrollArea {
  max-height: 180px;
  border-bottom: 1px solid var(--border-default);
  padding-bottom: 8px;
}

.languagePickerFooter {
  padding: 8px;
  text-align: center;
  font-size: 12px;
}

.languagePickerLink {
  color: var(--mantine-color-blue-6);
  text-decoration: underline;
  cursor: pointer;
}

/* Dark mode link */
[data-mantine-color-scheme="dark"] .languagePickerLink {
  color: var(--mantine-color-blue-4);
}
