/*=======================
 * TABLE OF CONTENTS
 * 1. Header Structure
 * 2. Logo Styling
 * 3. Main Menu
 * 4. Dropdown Menu
 * 5. Authentication Buttons
 * 6. User Profile
 * 7. Language Selector
 * 8. Responsive Styles
 * 9. Critical Overrides
========================*/

/*======================
 * 1. Header Structure
 =======================*/
.header__area {
  height: 80px !important;
  padding: 0 !important;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000 !important;
}

.header__area .container {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
}

.menumenu__container {
  display: flex;
  align-items: center;
  height: 80px !important;
  padding: 0 15px;
}

.header__right {
  display: flex;
  justify-content: flex-end;
  height: 80px;
  align-items: center;
}

.sticky__header.scroll-header {
  animation: 300ms ease-in-out 0s normal none 1 running fadeInDown;
  background: rgba(246, 246, 248, 0.9);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  left: 0;
  margin: 0 auto;
  position: fixed;
  right: 0;
  top: 0;
  width: 100%;
  z-index: 99;
}

.col-md-7,
.col-lg-8,
.col-sm-5,
.col-xs-3 {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  height: 80px !important;
}

/*======================
 * 2. Logo Styling
 =======================*/
.logo {
  display: flex !important;
  align-items: center !important;
  height: 80px !important;
  overflow: visible !important;
}

.logo a {
  display: flex !important;
  align-items: center !important;
  position: relative !important;
}

.header-logo {
  height: 80px;
  width: auto !important;
  max-height: none !important;
  position: relative !important;
  top: 0 !important;
  transform: translateY(0) !important;
}

/*======================
 * 3. Main Menu
 =======================*/
.main__menu {
  display: flex;
  justify-content: flex-end;
  list-style: none;
  padding: 0;
  margin: 0;
}

.main__menu > li {
  position: relative;
  margin: 0 15px;
}

.main__menu > li > a {
  color: #333333;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s ease;
  height: 80px;
  display: flex;
  align-items: center;
  line-height: normal;
  padding: 10px 15px;
}

.main__menu li a:hover,
.main__menu > li:hover > a {
  color: #4285f4;
}

/*======================
 * 4. Dropdown Menu
 =======================*/
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown .dropdown-content {
  display: none;
  position: absolute;
  top: 90px;
  min-width: 170px;
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  border-radius: 0;
  overflow: hidden;
  left: 50%;
  transform: translateX(-50%);
}

.dropdown .dropdown-content a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 15px;
  color: #333333;
  text-decoration: none;
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  transition: background-color 0.3s ease;
  white-space: nowrap;
  border-bottom: 0px solid #eee;
}

.dropdown .dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown .dropdown-content a:hover {
  background-color: #f0f0f0;
  color: #4285f4;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown:hover > a {
  color: #4285f4;
  background-color: #f8f8f8;
}

/*======================
 * 5. Authentication Buttons
 =======================*/
.auth-buttons {
  display: flex !important;
  align-items: center !important;
  height: 80px !important;
  min-width: 150px;
  min-height: 40px;
  transition: opacity 0.2s ease;
  margin-left: 20px;
}

.auth-buttons.hidden {
  display: none !important;
  opacity: 0;
  visibility: hidden;
}

.auth-btn {
  background-color: transparent;
  border: none;
  color: #333333;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-transform: uppercase;
  font-family: 'Poppins', sans-serif;
  margin-left: 10px;
  padding: 8px 15px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  height: 36px !important;
  line-height: 20px !important;
  display: flex !important;
  align-items: center !important;
}

.auth-btn:first-child {
  margin-left: 0;
}

.auth-btn.signup {
  color: #333333;
}

.auth-btn:hover,
.auth-btn.login:hover,
.auth-btn.signup:hover {
  color: #4285f4;
}

/*======================
 * 6. User Profile
 =======================*/
#user-profile {
  display: none !important;
  position: relative;
  min-width: 150px;
  min-height: 40px;
  transition: opacity 0.2s ease;
  height: 80px !important;
  align-items: center !important;
  margin-top: 0 !important;
  margin-left: 20px;
}

#user-profile.visible {
  display: flex !important;
}

.user-profile {
  display: none !important;
  position: relative;
  min-width: 150px;
  min-height: 40px;
  transition: opacity 0.2s ease;
  height: 80px !important;
  align-items: center !important;
  margin-top: 0 !important;
  margin-left: 20px;
}

.user-profile.visible {
  display: flex !important;
}

.profile-btn {
  height: 36px !important;
  line-height: 20px !important;
  display: flex !important;
  align-items: center !important;
  padding: 8px 15px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  color: #333333;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-transform: uppercase;
  font-family: 'Poppins', sans-serif;
  background-color: transparent;
  border: none;
  position: relative;
}

.profile-btn:hover {
  color: #4285f4;
}

.profile-btn::after {
  content: "▼";
  font-size: 8px;
  margin-left: 6px;
  vertical-align: middle;
}

.user-profile .dropdown-content,
#user-profile .dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 180px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
  z-index: 1000;
  border-radius: 0px;
  right: 0;
  top: 36px;
  padding: 0;
}

.user-profile:hover .dropdown-content,
#user-profile:hover .dropdown-content {
  display: block;
}

.user-profile .dropdown-content a,
#user-profile .dropdown-content a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 20px !important;
  color: #333333 !important;
  text-decoration: none !important;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  transition: background-color 0.3s ease;
  white-space: nowrap;
  border-bottom: 1px solid #f0f0f0;
}

.user-profile .dropdown-content a:last-child,
#user-profile .dropdown-content a:last-child {
  border-bottom: none;
}

.user-profile .dropdown-content a:hover,
#user-profile .dropdown-content a:hover {
  background-color: #f0f0f0 !important;
  color: #4285f4 !important;
}

/*======================
 * 7. Language Selector
 =======================*/
.language-selector {
  display: flex !important;
  align-items: center !important;
  height: 80px !important;
  margin-top: 0 !important;
  margin-left: 15px;
  position: relative;
  z-index: 999;
}

.lang-btn {
  padding: 8px 12px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  height: 36px !important;
  line-height: 20px !important;
  display: flex !important;
  align-items: center !important;
  background: none;
  border: none;
  color: #666;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.lang-btn.active {
  color: #4285f4;
  font-weight: 700;
}

.lang-btn:hover {
  color: #4285f4;
}

.lang-divider {
  color: #ddd;
  margin: 0 5px;
  font-size: 14px;
  line-height: 20px;
}

/*======================
 * 8. Responsive Styles
 =======================*/
@media (max-width: 991px) {
  .header-right-wrap {
    flex-wrap: wrap;
  }
  
  .auth-buttons {
    margin-top: 10px;
    margin-left: 0;
  }
  
  .language-selector {
    order: 1;
    margin-left: 10px;
  }
}

@media (max-width: 768px) {
  .header-logo {
    height: 45px !important;
  }
  
  .auth-buttons {
    margin-right: 50px;
  }
  
  .auth-btn {
    padding: 6px 12px;
  }
  
  .language-selector {
    margin-left: 5px;
    margin-right: 10px;
  }
  
  .lang-btn {
    padding: 6px 10px !important;
    font-size: 13px;
  }
}

/*======================
 * 9. Critical Overrides
 =======================*/
body {
  padding-top: 80px !important;
  margin-top: 0 !important;
}

.wrapper {
  margin-top: 0 !important;
  padding-top: 0 !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.wrapper > *:first-child:not(header),
header + *,
.main-content,
.container:first-of-type,
.slider__container,
.hero-section,
.banner-section,
section:first-of-type,
.dashboard__container,
.row:first-child {
  margin-top: 0 !important;
}

body.admin-dashboard {
  padding-top: 80px !important;
}

.dashboard__container {
  margin-top: 20px !important;
}

body.teacher-dashboard .dashboard-content {
  padding-top: 20px !important;
}

.header__area {
  z-index: 1000 !important;
}

main, .main-content, .content {
  position: relative;
  z-index: 1;
}