/* RTL Support for Arabic */
[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] .lang-switcher {
  left: 20px;
  right: auto;
}

[dir="rtl"] button,
[dir="rtl"] .btn {
  margin-left: 0;
  margin-right: 10px;
}

[dir="rtl"] ul,
[dir="rtl"] ol {
  padding-right: 20px;
  padding-left: 0;
}

[dir="rtl"] .navbar {
  flex-direction: row-reverse;
}

/* Language Switcher Styles */
.lang-switcher {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

.lang-switcher button {
  background: white;
  border: 1px solid #ddd;
  padding: 8px 15px;
  cursor: pointer;
  border-radius: 5px;
  font-size: 14px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.lang-switcher button:hover {
  background: #f5f5f5;
}

#langMenu {
  position: absolute;
  top: 45px;
  right: 0;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  border-radius: 5px;
  display: none;
  min-width: 180px;
}

#langMenu.show {
  display: block;
}

#langMenu a {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  border-bottom: 1px solid #f0f0f0;
}

#langMenu a:last-child {
  border-bottom: none;
}

#langMenu a:hover {
  background: #f5f5f5;
}
