.signed-in-header {
  background-color: #f8f9fa !important;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  border-bottom: 1px solid #ddd;
}

header .w-web-container:first-of-type {
  background-color: #f8f9fa;
}

.header-inner {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
}

.dashboard-logo {
  max-height: 65px;
}

.header-right {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-left: auto; /* Pushes this block to the far right */
  padding-right: 30px; /* Matches logo’s left padding */
  box-sizing: border-box;
}


.nav-item {
  position: relative;
}

/*.dropdown-toggle {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 5px 10px;
}*/


.dropdown-label {
  font-size: 1rem;
  font-weight: 600;
  color: white;
  /*margin-left: 0.5rem;*/
  vertical-align: middle;
}

.dropdown-toggle {
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
}

.dropdown-main {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dropdown-caret {
  margin-top: 1px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid white;
  transition: border-top-color 0.2s ease;
}

/* Hover or focus effect */
.dropdown-toggle:hover .dropdown-caret,
.dropdown-toggle:focus .dropdown-caret,
.dropdown-toggle.active .dropdown-caret {
  border-top-color: #408CA3;
}


/*.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);  Slight offset to sit just below header 
  left: 0;
  background-color: #9F83B9;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  min-width: 180px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  overflow: hidden;
}*/

.dropdown-menu {
  position: absolute;
  top: calc(100% + 9px); /* Adjust as needed per dropdown type */
  left: 0;
  background-color: #9F83B9;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  min-width: 180px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  overflow: hidden;

  /* Flicker fix: smooth visibility */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}


.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.dropdown-menu a:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.nav-item:hover .dropdown-menu {
  display: block;
}

/* Align dropdown flush with bottom of header */
.text-dropdown .dropdown-menu {
  /*transform: translateY(px); Adjust this value to match header height */
  top: calc(100% + 13px); /*Slight offset to sit just below header */
  background-color: #9F83B9;
  border: none;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  min-width: 180px;
  z-index: 1000;
}

.text-dropdown .dropdown-menu a {
  color: #fff;
  /*padding: 10px 14px;*/
  text-decoration: none;
  font-weight: 500;
}

.text-dropdown .dropdown-menu a:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.user-info {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.user-avatar {
  border-radius: 50%;
  height: 40px;
  width: 40px;
  object-fit: cover;
}

.user-email {
  font-weight: 500;
  font-size: 14px;
  color: red;
  line-height: 1;
}

/* Remove gray space between header and body */
.dashboard-intro {
  margin-top: 0 !important;
  padding-top: 0 !important;
  background: none !important;
}

.header-icon {
  border-radius: 50%;
  height: 40px;
  width: 40px;
  object-fit: cover;
  display: inline-block;
}

.dropdown-wrapper:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.header-link {
  color: white;
  /*font-weight: 600;*/
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.header-link:hover {
  color: #408CA3; /* Accent color on hover */
}

