/* Side Navigation for Mobile */
.sidenav {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1050;
  top: 0;
  right: 0;
  background-color: var(--dark);
  overflow-x: hidden;
  transition: width 0.3s ease;
  padding-top: 60px;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

html[dir="rtl"] .sidenav {
  right: auto;
  left: 0;
  box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
}

.sidenav.open {
  width: 280px;
}

.sidenav .close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  color: var(--white);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: var(--transition);
  z-index: 1051;
}

html[dir="rtl"] .sidenav .close-btn {
  right: auto;
  left: 15px;
}

.sidenav .close-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.sidenav-brand {
  padding: 0 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.sidenav-brand img {
  max-height: 40px;
}

.sidenav-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidenav-item {
  margin-bottom: 5px;
}

.sidenav-link {
  display: block;
  padding: 12px 20px;
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

html[dir="rtl"] .sidenav-link {
  border-left: none;
  border-right: 3px solid transparent;
}

.sidenav-link:hover,
.sidenav-link.active {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--accent);
  border-left-color: var(--accent);
}

html[dir="rtl"] .sidenav-link:hover,
html[dir="rtl"] .sidenav-link.active {
  border-right-color: var(--accent);
}

.sidenav-dropdown {
  padding-left: 15px;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}

html[dir="rtl"] .sidenav-dropdown {
  padding-left: 0;
  padding-right: 15px;
}

.sidenav-dropdown.show {
  max-height: 200px;
}

.sidenav-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  margin: 15px 0;
}

.sidenav-footer {
  padding: 20px;
  position: absolute;
  bottom: 0;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidenav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1040;
}

.sidenav-overlay.active {
  display: block;
}

/* Language switcher in sidenav */
.sidenav-lang {
  padding: 15px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sidenav-lang a {
  padding: 8px 15px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: 4px;
  text-decoration: none;
  transition: var(--transition);
}

.sidenav-lang a.active {
  background-color: var(--accent);
}

.sidenav-lang a:hover {
  background-color: var(--accent);
}

@media (min-width: 992px) {
  .sidenav, .sidenav-overlay {
    display: none !important;
  }
} 