/* ========================================
   公用 Header 样式
   header-common.css
   ======================================== */

/* 子菜单箭头样式 */
.submenu .submenu-arrow {
  border: solid #161c2d;
  border-width: 0 1px 1px 0;
  display: inline-block;
  padding: 2.5px;
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
  position: absolute;
  right: 20px;
  top: 17px;
}

/* ========================================
   TQS UTS Logo 图片样式
   ======================================== */
.navbar-brand-img img {
  height: 65px !important;
  width: 65px !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center !important;
  filter: brightness(1.15) contrast(1.1) saturate(1.2) !important;
  background: rgba(255, 255, 255, 0.8) !important;
  padding: 5px !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
  transition: all 0.3s ease !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.navbar-brand-img img:hover {
  transform: scale(1.05) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
  filter: brightness(1.2) contrast(1.15) saturate(1.25) !important;
}

/* 确保导航栏有足够高度 */
.navbar-brand-img {
  display: flex !important;
  align-items: center !important;
  padding: 5px 0 !important;
}

/* ========================================
   Sign in 按钮样式
   ======================================== */
.niceButton2 {
  position: relative;
  border: none;
  font-size: 16px;
  color: #ffffff;
  text-align: center;
  transition-duration: 0.6s;
  text-decoration: none;
  cursor: pointer;
  border-radius: 20px;
  background-color: transparent;
  border: 2px solid #53a4f0;
  margin-top: 0 !important;
  padding: 8px 18px !important;
  min-height: 0px !important;
  text-transform: none !important;
  white-space: nowrap !important;
  display: inline-block !important;
  line-height: 1.2 !important;
}

.niceButton2::after {
  content: '';
  background: #53a4f0;
  display: block;
  position: absolute;
  padding-top: 300%;
  padding-left: 350%;
  margin-left: -20px !important;
  margin-top: -120%;
  opacity: 0;
  transition: all 0.8s;
}

.niceButton2:active::after {
  padding: 0;
  margin: 0;
  opacity: 1;
  transition: 0s;
}

/* Ensure button text stays on one line and aligns properly */
.nav-item-btn .nav-link.niceButton2 {
  white-space: nowrap;
  margin: 0 !important;
}

/* Ensure nav links stay on one line */
.nav-item .nav-link {
  white-space: nowrap;
}


/* Buttons container - display both buttons in one row */
.nav-item-btn {
  margin-left: auto !important;
  margin-right: 0 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 15px !important;
  flex-wrap: nowrap !important;
  padding: 0 !important;
}

/* Ensure buttons align with nav items vertically */
.navbar-nav {
  align-items: center !important;
}
