/* Styles extracted from views/partials/header.ejs */

/* Language Selector Styles */
.language-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 15px;
}

.language-flag {
  width: 24px;
  height: 24px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.language-flag:hover {
  opacity: 0.8;
}

.language-flag.active {
  border: 2px solid #fff;
  border-radius: 50%;
}

.nav li {
  display: flex;
  align-items: center;
}
/* End Language Selector Styles */

/* Custom dropdown styles from auth-status.js */
.user-dropdown {
  position: relative;
  display: inline-block;
}
.user-dropdown-button {
  background-color: transparent;
  color: white;
  padding: 10px 15px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  line-height: 20px;
}
.user-dropdown-button:hover, .user-dropdown-button:focus {

}
.user-dropdown-content,
.user-dropdown-content a {
  /* Сброс Bootstrap и других глобальных стилей */
  background: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
  color: inherit !important;
}

.user-dropdown-content {
  display: none;
  position: absolute;
  background: #fff !important;
  min-width: 170px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10) !important;
  z-index: 1001;
  border-radius: 8px;
  right: 0;
  padding: 6px 0;
  border: 1px solid #e5e7eb;
}

.user-dropdown-content a {
  color: #222 !important;
  padding: 10px 18px;
  text-decoration: none;
  display: block;
  font-size: 15px;
  text-align: left;
  white-space: nowrap;
  border-radius: 4px;
  background: none !important;
  transition: background 0.18s, color 0.18s;
  font-weight: 500;
  margin: 0 4px 2px 4px;
  letter-spacing: 0.01em;
}

.user-dropdown-content a:last-child {
  margin-bottom: 4px;
}

.user-dropdown-content a:hover {
  background: #f5f7fa !important;
  color: #0071f8 !important;
}

.user-dropdown:hover .user-dropdown-content {
  display: block;
}
/* End dropdown styles */

/* Logo */
.main-nav .logo,
.background-header .main-nav .logo {
  height: 60px;
  margin: 0 !important;
  display: flex;
  align-items: center;
}

.main-nav .logo img {
  height: 90px;
  width: auto;
  max-width: none;
  padding: 0;
  margin: 0;
  display: block;
}

.header-area,
.background-header {
  min-height: 60px;
  height: 60px;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 0;
  display: flex;
  align-items: center;
}

/* --- Липкий header и выравнивание логотипа --- */
.header-area {
  height: 70px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #0084ff;
}

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

.header-area .logo img {
  height: 90px;
  max-height: 90px;
  width: auto;
  display: block;
  margin: 0;
}

/* Сохраняем остальные стили */
.main-nav {
  height: 60px;
  min-height: 60px;
  padding: 0;
}

.main-nav .logo {
  height: 60px;
  margin: 0;
}

.header-area,
.background-header {
  min-height: 60px;
  height: 60px;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 0;
  display: flex;
  align-items: center;
} 
