/* Language Switcher CSS */
.language-option .dropdown-toggle {
  cursor: pointer;
}

.language-dropdown-menu .dropdown-item {
  padding: 8px 15px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.language-dropdown-menu .dropdown-item img {
  margin-right: 10px;
  width: 20px;
  height: 20px;
}

.language-dropdown-menu .dropdown-item.active {
  background-color: #f8f9fa;
  color: #0d6efd;
}

/* Hide elements that should not be translated */
[data-no-translate="true"] {
  white-space: nowrap;
}

/* RTL Support */
body.rtl {
  direction: rtl;
  text-align: right;
}

/* RTL Navigation adjustments */
body.rtl .navbar-nav {
  padding-right: 0;
}

body.rtl .ml-auto,
body.rtl .mx-auto {
  margin-right: auto !important;
  margin-left: 0 !important;
}

body.rtl .mr-auto,
body.rtl .mx-auto {
  margin-left: auto !important;
  margin-right: 0 !important;
}

body.rtl .navbar-nav .nav-item {
  float: right;
}

/* RTL dropdown adjustments */
body.rtl .dropdown-menu {
  text-align: right;
}

body.rtl .language-dropdown-menu .dropdown-item img {
  margin-right: 0;
  margin-left: 10px;
}

/* RTL forms adjustments */
body.rtl .form-group {
  text-align: right;
}

body.rtl .form-check-inline {
  margin-right: 0;
  margin-left: 0.75rem;
}

/* RTL text alignment adjustments */
body.rtl .text-left {
  text-align: right !important;
}

body.rtl .text-right {
  text-align: left !important;
}

/* RTL list adjustments */
body.rtl ul,
body.rtl ol {
  padding-right: 0;
}

body.rtl .list-unstyled {
  padding-right: 0;
}

/* RTL grid adjustments */
@media (min-width: 768px) {
  body.rtl .offset-md-1 {
    margin-left: 0;
    margin-right: 8.333333%;
  }

  body.rtl .offset-md-2 {
    margin-left: 0;
    margin-right: 16.666667%;
  }
}