/* Search container */
.epo-search-container {
    position: relative;
    display: inline-block;
    margin-left: 1rem;
}

/* EPO button styling */
.minimal-button.icon-button {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    z-index: 1;
    /* box-shadow: 0 1px 3px rgba(0,0,0,0.1); */
}

.minimal-button.icon-button.rounded {
    border-radius: 50%;
}

.minimal-button.icon-button.button-large {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.topbar-search-icon {
    position: relative;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23333333'%3E%3Cpath d='M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px;
}


/* Search reveal panel */
.search-reveal {
    position: absolute;
    right: 0;
    top: 0;
    height: 35px;
    width: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    z-index: 2; /* Higher than the button */
}

.search-reveal.active {
    width: 400px;
    opacity: 1;
}

/* Search form styling */
.search-form {
    display: flex;
    height: 100%;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.search-form .input-group {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    overflow: hidden;
}

/* Native select styling */
.search-form select.form-control {
    border-radius: 4px 0 0 4px;
    border-right: 0;
    width: auto;
    min-width: 100px;
    background-color: #f8f9fa;
    cursor: pointer;
    height: 100%;
}

/* Search input styling */
.search-form input.form-control {
    border-radius: 0;
    border-left: 0;
    padding-left: 0.5rem;
    height: 100%;
    flex: 1;
}

.search-form .form-control:focus {
    box-shadow: none;
    border-color: #ced4da;
}

/* Search button and icon styling - updated to match search icon */
.search-form .btn-primary {
    border-radius: 0 4px 4px 0;
    background-color: #ffffff;
    border-color: #ced4da;
    padding: 0.375rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.search-form .btn-primary:hover {
    background-color: #f8f8f8;
    border-color: #ced4da;
}

.search-form .search-icon {
    width: 20px;
    height: 20px;
    stroke: #333333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-reveal.active {
        width: 280px;
    }
    
    .search-form .input-group {
        flex-wrap: nowrap;
    }
    
    /* For very small screens */
    @media (max-width: 480px) {
        .search-reveal.active {
            position: absolute;
            top: 100%;
            right: 0;
            width: 300px;
            margin-top: 10px;
            height: auto;
        }
        
        .search-form {
            padding: 0.5rem;
            flex-direction: column;
        }
        
        .search-form .input-group {
            flex-direction: column;
            height: auto;
        }
        
        .search-form select.form-control,
        .search-form input.form-control,
        .search-form .btn-primary {
            border-radius: 4px;
            margin-bottom: 0.5rem;
            width: 100%;
        }
    }
}

/* Hide original search block if present */
.block-topbar-right {
    display: none !important;
}


#searchQuery, #searchType {
    bottom: none;
}

#searchQuery{
    border-left: none;
    border-top-right-radius: 100px;
    border-bottom-right-radius: 100px;
    margin-right: -2.5rem;
}

#searchType{
    border-top-left-radius: 100px;
    border-bottom-left-radius: 100px;
    border: 0px solid #BFC6CF;
    padding: 0.5rem;
    background-color: #BFC6CF;
    padding-left: 1rem;
    padding-top: 9px;
    padding-bottom: 9px;
    line-height: 18.2px;
    font-size: 14px;
    font-weight: 600;
    color: #21252C;
    max-width:7rem;
}

#searchQuery > .input-group-append {
    padding-right: 1rem;
    z-index: 222;

}

.input-group-append { 
    z-index: 222;
    /* background: transparent; */
    background-color: transparent;}

.input-group-append >
.minimal-button.icon-button.rounded.topbar-search-icon.button-large.active {
    z-index: 222;
    /* background: transparent; */
    background-color: transparent;
  }

/* Hide default dropdown arrow */
.dropdown-toggle.no-caret::after {
  display: none !important;
}

/* Add styles for the language switcher */
.language-switcher {
  display: flex;
  align-items: center;
  margin-left: 1rem;
}

/* Custom dropdown toggle button with Material Design Icons arrow */
.language-switcher .dropdown-toggle {
  position: relative;
  padding-right: 1.75rem !important;
  background: transparent;
  border: none;
}

/* Use Material Design Icons for dropdown arrow */
.language-switcher .dropdown-toggle::before {
  font-family: "Material Design Icons";
  content: "\F0140"; /* mdi-chevron-down */
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: #333;
  font-size: 1.25em;
}

/* Remove original Bootstrap dropdown arrow */
.dropdown-toggle::after {
  display: none !important;
}

/* Also remove any Bootstrap-added arrow for #languageDropdown specifically */
#languageDropdown::after {
  display: none !important;
}

.dropdown-menu {
  min-width: 150px;
  padding: 0.5rem 0;
  margin: 0.125rem 0 0;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 0.25rem;
  background-color: #fff;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,.17);
}

/* Style for active language link - updated with no background */
.language-link.active {
  color: #d93317 !important;
  position: relative;
  background-color: transparent !important;
}

/* Checkmark style and positioning - moved to left side */
.checkmark {
  color: #d93317;
  font-weight: bold;
  display: inline-block;
  margin-right: 5px;
}

/* Style for language links with space for Material Design Icons checkmark */
.language-link {
  margin: 0;
  text-decoration: none;
  color: #333;
  font-weight: normal;
  position: relative;
  padding-left: 2rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 0.85rem;
}

/* Create space with ::before for all items to ensure alignment */
.language-link::before {
  content: "";
  display: inline-block;
  width: 15px;
  position: absolute;
  left: 10px;
}

/* Add MDI checkmark using ::before only for active item */
.language-link.active::before {
  font-family: "Material Design Icons";
  content: "\F012C"; /* mdi-check */
  color: #d93317;
  font-size: 18px;
  position: absolute;
  left: 10px;
}

/* Style for active language link */
.language-link.active {
  color: #d93317 !important;
}

.language-link:hover {
  text-decoration: none;
  background-color: rgba(217,51,23,0.1);
}

#languageDropdown {
    padding: 0.5rem 1.75rem 0.5rem 1.5rem !important;
    font-size: 0.85rem;
    font-weight: 600;
}

#languageDropdown:hover {
 background: #EEEFF2;
}



