* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 5%;
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo img {
  height: 45px;
}

.desktop-nav {
  display: flex;
  gap: 20px;
  list-style: none;
  align-items: center;
}

.desktop-nav li {
  display: flex;
  align-items: center; /* <== ensures li content like icons aligns vertically */
}

.desktop-nav li a {
  text-decoration: none;
  color: #000;
  font-weight: 500;
  padding: 4px 6px;
}

.desktop-nav li a:hover {
  background-color: #FDC805;
  border-radius: 4px;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.hamburger img {
  width: 30px;
}

/* Sidebar Menu */
.menubar {
  position: fixed;
  top: 0;
  left: -100%;
  width: 75%;
  height: 100vh;
  background-color: #fff;
  padding: 50px 20px 20px; /* Added top padding for close button space */
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  transition: left 0.3s ease-in-out;
  z-index: 999;
}


.menubar.active {
  left: 0;
}

.menubar .close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  margin-bottom: 0;
}

.menubar .close-btn img {
  width: 28px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.menubar .close-btn img:hover {
  transform: scale(1.1);
}

.menubar ul {
  list-style: none;
}

.menubar ul li {
  margin: 20px 0;
}

.menubar ul li a {
  text-decoration: none;
  color: #000;
  font-size: 18px;
}

.menubar ul li a:hover {
  background-color: #FDC805;
  padding: 4px 8px;
  border-radius: 5px;
}


/* Responsive Behavior */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .hamburger {
    display: block;
  }
}




/* Profile Icon and Lang */
/* Profile and Translate Icons */
.icon1, .icon2 {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0; /* Remove inherited spacing */
  padding: 0;
}

.icon1:hover, .icon2:hover {
  transform: scale(1.05);
}



/* Ensure parent is relative for correct dropdown positioning */
.dropdown-container {
  position: relative;
  display: inline-block;
  align-items: center;
}


/* Dropdown Menu */
.dropdown-menu {
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  width: 260px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  padding: 12px 16px;
  z-index: 1000;
  transition: all 0.3s ease;
}


.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  padding: 10px 8px;
  border-radius: 6px;
  text-decoration: none;
  color: #222;
  transition: background 0.2s;
}

.dropdown-menu a:hover {
  background-color: #f5f5f5;
}

/* Show dropdown when active */
.dropdown-menu.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Move email address to the left in the profile dropdown */
.dropdown-menu .email {
  margin-left: 0;
  margin-bottom: 10px;
  color: #333;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.email {
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 15px;
  color: #444;
  margin-bottom: 12px;
  gap: 8px;
}

.email .icon {
  width: 18px;
  height: 18px;
  display: inline-block;
}


/* Delete button style */
#delete-account-form {
  margin-top: 12px;
}

#delete-account {
  width: 100%;
  padding: 8px;
  border: 1px solid #bbb;
  border-radius: 6px;
  font-size: 14px;
  background-color: transparent;
  cursor: pointer;
  transition: background 0.2s;
}

#delete-account:hover {
  background-color: #ffe5e5;
  border-color: #ff6b6b;
}

/* ---- MOBILE RESPONSIVE MENU ---- */
@media screen and (max-width: 490px) {
.hamburger {
display: block;
}

nav ul {
display: none;
flex-direction: column;
position: absolute;
top: 100%;
left: 0;
background: white;
width: 100%;
text-align: center;
padding: 15px 0;
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

nav ul.active {
display: flex;
}

nav ul li {
margin: 10px 0;
}
}
/* Styles for LTR (Left to Right) Layout */
[dir="ltr"] {
direction: ltr;  /* Ensure the direction is left-to-right */
text-align: right;  /* Align text to the right */
}

/* LTR specific navigation adjustments */
[dir="ltr"] nav ul {
padding-left: 0;  /* Remove left padding */
padding-right: 20px;  /* Add padding to the right */
}

/* LTR specific dropdown behavior */
[dir="ltr"] .dropdown-menu {
left: auto;  /* Set left to auto */
right: 0;    /* Align the dropdown to the right */
}

/* LTR specific dropdown container behavior */
[dir="ltr"] .dropdown-container {
margin-left: 0;  /* Remove margin from the left */
margin-right: 20px;  /* Add margin to the right */
}

@media screen and (max-width: 790px) {
.hamburger {
display: block;
}
nav ul:not(.menubar ul) {
display: none;
}
.menubar {
display: flex;
}
.mobile-profile-dropdown {
  display: none;
  list-style: none;
  padding-left: 20px;
}

.profile-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

/* Show dropdown when active */
.mobile-profile-dropdown.active {
  display: block;
}

}

.menubar {
z-index: 1000; /* Increase z-index to ensure it's above other elements */
/* ... other existing styles ... */
}

nav {
z-index: 100; /* Lower than menu bar */
/* ... other existing styles ... */
}
