/* Project Filter Collision Repair V17
   Keeps the search field on its own row so it never covers category controls. */
#root .project-filter-toolbar {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  align-items: start !important;
  align-content: start !important;
  gap: 1rem !important;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: visible !important;
}

#root .project-filter-search {
  position: relative !important;
  z-index: 2;
  width: min(100%, 36rem) !important;
  max-width: 100% !important;
  min-width: 0 !important;
  flex: none !important;
}

#root .project-filter-search > svg {
  z-index: 3;
  color: #26e6ff !important;
  pointer-events: none;
}

#root .project-search-input,
#root input[placeholder="Cari proyek..."] {
  display: block !important;
  position: relative;
  z-index: 1;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 46px !important;
  margin: 0 !important;
  padding-left: 2.75rem !important;
  padding-right: 1rem !important;
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
  background: #09090d !important;
  border: 2px solid #39ff14 !important;
  border-radius: 0 !important;
  box-shadow: 5px 5px 0 #ff0a8a !important;
  opacity: 1 !important;
  appearance: none;
  -webkit-appearance: none;
}

#root .project-search-input::placeholder,
#root input[placeholder="Cari proyek..."]::placeholder {
  color: #a8abb7 !important;
  -webkit-text-fill-color: #a8abb7 !important;
  opacity: 1 !important;
}

#root .project-search-input:hover,
#root input[placeholder="Cari proyek..."]:hover {
  border-color: #26e6ff !important;
}

#root .project-search-input:focus,
#root .project-search-input:focus-visible,
#root input[placeholder="Cari proyek..."]:focus,
#root input[placeholder="Cari proyek..."]:focus-visible {
  border-color: #26e6ff !important;
  outline: 3px solid rgba(38, 230, 255, .35) !important;
  outline-offset: 3px !important;
  box-shadow: 5px 5px 0 #39ff14 !important;
}

#root .project-filter-categories {
  position: relative;
  z-index: 1;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  align-content: flex-start !important;
  gap: .625rem !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  padding-top: .125rem;
  overflow: visible !important;
}

#root .project-filter-categories > button {
  position: relative;
  z-index: 1;
  flex: 0 0 auto !important;
  min-width: max-content !important;
  max-width: 100% !important;
  min-height: 40px !important;
  white-space: nowrap !important;
}

@media (max-width: 720px) {
  #root .project-filter-search {
    width: 100% !important;
  }

  #root .project-search-input,
  #root input[placeholder="Cari proyek..."] {
    height: 48px !important;
    font-size: 16px !important;
  }

  #root .project-filter-categories {
    gap: .5rem !important;
  }

  #root .project-filter-categories > button {
    min-height: 44px !important;
    min-width: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }
}

@media (prefers-contrast: more) {
  #root .project-search-input,
  #root input[placeholder="Cari proyek..."] {
    border-color: #fff !important;
  }
}
