.session-filter-dropdowns {
  display: flex;
  width: 100%;
  flex-direction: row;
  justify-content: space-between;
  gap: var(--gap-xxl);
  flex-wrap: wrap;
  z-index: 20;
}

.dropdown {
  display: flex;
  flex: 1 1 var(--dropdown-min-width);
  flex-direction: column;  
  align-items: start;
  position: relative;
  z-index: 1;
  min-width: var(--dropdown-min-width);
  gap: var(--gap-md);
}

.dropdown.active {
  z-index: 1000; /* A very high z-index to make the active dropdown always on top */
}

.dropdown-label {
  display: flex;
  white-space: nowrap;
  font-weight: 600;
  color: var(--text-body-neutral);
  flex-shrink: 0;
  line-height: 1;
}

.custom-dropdown-container {
  position: relative;
  display: flex;
  width: 100%;
  min-height: var(--dropdown-min-height);
  box-shadow: 0 0 0 1px var(--card-border), var(--soft-shadow-card);
  border-radius: var(--border-radius-lg);
  z-index: 1000;
}

.custom-dropdown {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--padding-lg) var(--padding-xl);
  background: var(--dropdown-neutral-background);
  border-radius: var(--border-radius-lg);
  border: none;
  cursor: pointer;
  font-size: var(--font-size-button);
  flex: 1 1 auto;
  gap: var(--gap-md);
}

.custom-dropdown:hover {
  background-color: var(--dropdown-hover-background);
  color: var(--dropdown-hover-text);
  box-shadow: 0 0 0 1px var(--dropdown-hover-border), var(--soft-shadow-card);
}

.custom-dropdown.active {
  background-color: var(--dropdown-hover-background);
  color: var(--dropdown-hover-text);
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
  box-sizing: border-box;
  box-shadow: -1px 0 0 1px var(--dropdown-neutral-border), /* Left border */
			  1px 0 0 1px var(--dropdown-neutral-border), /* Right border */
			  0 -1px 0 1px var(--dropdown-neutral-border); /* Top border */			  

}

.custom-dropdown-chevron-wrapper {
  position: relative; /* Needed for absolute positioning of the img and ::after */
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--icon-size-md);
  height: var(--icon-size-md);
  margin-top: 0.125rem;
  cursor: pointer;
}

.custom-dropdown-chevron-wrapper .custom-dropdown-chevron-down {
  opacity: 0;
  position: absolute;
  height: var(--icon-size-md);
  width: var(--icon-size-md);
  transition: transform 0.3s ease; /* Keep transform for rotation */
}

.custom-dropdown-chevron-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--icon-default-grey); /* Default color for the icon */
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  transition: background-color 0.3s ease, transform 0.3s ease; /* Smooth transitions for color and rotation */
}

.custom-dropdown-chevron-wrapper::after {
  -webkit-mask-image: url('../../icons/chevron_down_icon.svg');
  mask-image: url('../../icons/chevron_down_icon.svg');
}

.custom-dropdown:hover .custom-dropdown-chevron-wrapper::after {
  background-color: var(--dropdown-hover-text); /* Change icon color on hover */
}

.dropdown.active .custom-dropdown-chevron-wrapper::after {
  transform: rotate(180deg); /* Rotate to point up when active */
}

.custom-dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--dropdown-neutral-background);
  border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
  max-height: 50vh;
  overflow-y: auto;
  box-sizing: border-box;
  box-shadow: -1px 0 0 1px var(--dropdown-neutral-border), /* Left border */
			  1px 0 0 1px var(--dropdown-neutral-border), /* Right border */
			  0 1px 0 1px var(--dropdown-neutral-border), /* Bottom border */
			  var(--soft-shadow-card);

}

.custom-dropdown-option {
  display: flex;
  align-items: center;
  padding: var(--padding-lg) var(--padding-xl);
  min-height: var(--dropdown-min-height);
  cursor: pointer;
  border-bottom: 1px solid var(--dropdown-neutral-divider);
  transition: background-color 0.2s ease;
  font-size: var(--font-size-button);
}

.custom-dropdown-option:hover {
  background-color: var(--dropdown-hover-background);
}

.custom-dropdown-option:hover .custom-dropdown-option-name {
  color: var(--dropdown-hover-text);
}

.custom-dropdown-option:last-child {
  border-bottom: none;
}

.custom-dropdown-option-content {
  display: flex;
  align-items: center;
  gap: var(--gap-md);
}

.custom-dropdown-option-image,
.custom-dropdown-selected-avatar {
  width: var(--icon-size-md);
  height: var(--icon-size-md);
  border-radius: var(--border-radius-circle);
  object-fit: cover;
  border: 1px solid var(--dropdown-avatar-border);
}

.custom-dropdown-selected-display {
  display: flex;
  align-items: center;
  gap: var(--gap-md);
}

.custom-dropdown-selected-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-dropdown-option-name {
  font-weight: 500;
  color: var(--text-body-neutral);
}