/* القائمة داخل الهيدر للشاشات الكبيرة */
@media (min-width: 901px) {
  #mainNav {
    display: flex;
    flex-direction: row;        /* عناصر بجانب بعض */
    justify-content: center;
    gap: 12px;
  background: linear-gradient(90deg, #6a6a6a, #000);
    width: 100%;
    position: relative;         /* داخل الهيدر */
    padding: 8px 0;
    margin: 0;
    z-index: 1001;
  }

  #mainNav a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 6px 10px;
    transition: background 0.3s ease;
    font-size: 16px;
  }

  #mainNav a:hover {
    background: #f7b900;
    color: #ffffff;
    border-radius: 4px 4px 0 0;
    height: 90%;
  }

  #mainNav a.active {
    background: #f7b900;
    color: #000000;
    border-radius: 4px 4px 0 0;
    height: 90%;
  }

  .close-btn { display: none; } /* زر الإغلاق مخفي في الشاشات الكبيرة */
}

/* القائمة الجانبية للشاشات الصغيرة */
@media (max-width: 900px) {
  #mainNav {
    position: fixed;
    top: 50px;
    left: -70%;              /* تبدأ مخفية */
    height: 100%;
    width: 30%;
    background: linear-gradient(180deg, #000, #6a6a6a);
    flex-direction: column;
    padding: 20px;
    transition: left 0.3s ease-in-out, opacity 0.3s ease;
    opacity: 0;
    z-index: 2001;
  }

  #mainNav a:hover {
    background: #f7b900;
    color: #ffffff;
    border-radius: 0px;
  }
    
  #mainNav.show {
    left: 0;                 /* تظهر عند الفتح */
    opacity: 1;
  }

  #mainNav a {
    display: block;
    margin: 30px 0;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
  }

  /* الطبقة الخلفية */
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;          
    height: 100%;
    background: rgba(0,0,0,0.5); 
    opacity: 0;           
    visibility: hidden;   
    transition: opacity 0.3s ease;
    z-index: 2000;        /* خلف القائمة */
  }

  .overlay.show {
    opacity: 1;           
    visibility: visible;
  }
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-actions {
  display: flex;
  align-items: center;
}

.welcome {
  position: fixed;
  top: 10px;
  right: 10px;
  background: #1B75BB;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 100000;
  display: flex;
  align-items: center;
}
.welcome .icon {
  margin-right: 6px;
  font-size: 16px;
}
