body {
  margin: 0;
  font-family: 'Tajawal', sans-serif;
  background-color: #f4f4f4;
}

.main-header {
  background-color: rgba(0, 31, 63, 0.95); /* Semi-transparent Brand Blue */
  backdrop-filter: blur(10px); /* Glass Effect */
  -webkit-backdrop-filter: blur(10px);
  color: white;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); 
  position: sticky; /* Fixed as requested */
  top: 0;
  z-index: 1000;
  width: 100%;
  box-sizing: border-box;
}

.logo-container { display: flex; align-items: center; height: 100%; }

.logo {
  max-height: 60px;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 20px;
}

.icon-link {
  color: white;
  font-size: 22px;
  text-decoration: none;
}

.menu-toggle {
  font-size: 24px;
  cursor: pointer;
  color: white;
}

.desktop-nav { display: none; }

.desktop-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
}

.desktop-nav ul li a {
  color: white;
  text-decoration: none;
  padding: 10px 15px;
  font-size: 16px;
  border-radius: 5px;
  transition: 0.2s;
}

.desktop-nav ul li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.main-header .logo-container {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
}

.sidebar {
  height: 100%;
  width: 250px;
  position: fixed;
  top: 0;
  right: -250px;
  background-color: #fff;
  transition: right 0.3s ease;
  z-index: 1000;
  box-shadow: -2px 0 5px rgba(0,0,0,0.1);
}

.sidebar.open { right: 0; }

.sidebar-header {
  padding: 20px;
  background-color: #f9f9f9;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-menu { font-size: 20px; cursor: pointer; }

.sidebar ul { list-style: none; padding: 20px 0; margin: 0; }

.sidebar ul li a {
  display: block;
  padding: 15px 20px;
  font-size: 16px;
  color: #333;
  text-decoration: none;
  transition: 0.2s;
}

.sidebar ul li a:hover {
  background-color: #f0f0f0;
  padding-right: 25px;
}

.overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
  opacity: 0; visibility: hidden;
  transition: 0.3s;
  z-index: 999;
}

.overlay.show {
  opacity: 1;
  visibility: visible;
}

.user-dropdown { position: relative; display: inline-block; }

.user-dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 35px;
  left: 0;
  background-color: white;
  min-width: 150px;
  color: #333;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 1001;
  border-radius: 5px;
  text-align: right;
}

.user-dropdown:hover .dropdown-menu { display: block; }

.dropdown-menu a {
  display: block;
  padding: 10px 15px;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #eee;
}

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

@media (min-width: 768px) {
  .main-header {
    justify-content: space-between;
    padding: 0 40px;
  }
  .main-header .logo-container { position: static; transform: none; }
  .menu-toggle { display: none; }
  .desktop-nav { display: flex; flex: 1; justify-content: center; }                                                                  
}
