/*-----Search Bar----*/
.dmindx-search-wrap {
  width: 600px;
  max-width: 600px;
  display: flex;
  gap: 5px;
  background: white;
  padding: 6px;
  border-radius: 100px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
  box-sizing: border-box;
  margin: 0 auto;
}

.tool-category {
  max-width: 150px;
  border-radius: 50px 0px 0px 50px;
}

.search-bar {
  background: white !important;
}

#dmindx-tool-category,
#dmindx-tool-search {
  padding: 14px;
  border: 0;
  flex: 1;
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
}

#dmindx-search-btn {
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: #0055ff;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

#dmindx-search-btn:hover {
  background: #0144c9;
  transform: translateY(-1px);
}

.search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  text-decoration: none;
}

#dmindx-search-results {
  position: absolute;
  top: 105%;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 30px;
  padding: 10px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  z-index: 10;
  max-height: 320px;
  overflow-y: auto;
}
.dmindx-search-wrapper {
    position: relative;
}
#dmindx-search-results::-webkit-scrollbar {
    width: 6px;
}
#dmindx-search-results::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}
.search-item {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    height: 40px;
    text-decoration: none;
    color: #333;
}

.search-item:hover {
    background: #f3f6fb;
}


#dmindx-search-results > a {
  color: #4f4f4f;
  font-family: poppins, sans-serif;
  font-size: 16px;
  border-radius: 50px;
}

#dmindx-search-results > a > i {
  color: #0055ff;
}

#dmindx-search-results > a:hover {
  background: #eef4ff;
}

.dmindx-loading {
  padding: 0px;
  text-align: center;
  color: black;
}

/*--------- Responsive Styles ---------*/

/* Tablets */
@media (max-width: 768px) {
      .dmindx-tools-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px; /* optional: slightly smaller gap for small screens */
  }
  .dmindx-search-wrap {
    flex-direction: row;
    padding: 6px;
    gap: 4px;
    border-radius: 50px;
  }

  #dmindx-tool-category {
    font-size: 14px;
    padding: 12px;
  }

  #dmindx-tool-search {
    font-size: 14px;
  }

  #dmindx-search-btn {
    width: 45px;
    height: 45px;
  }
}

/* Phones */
@media (max-width: 480px) {
  .dmindx-search-wrap {
    flex-direction: column;
    width: 95%;
    gap: 8px;
    padding: 10px;
    border-radius: 25px;
  }

  .tool-category {
    max-width: 100%;
    border-radius: 20px;
  }

  #dmindx-tool-category,
  #dmindx-tool-search {
    width: 100%;
    padding: 12px;
    border-radius: 20px;
  }

  #dmindx-search-btn {
    display: none;
  }

  #dmindx-search-results {
    border-radius: 20px;
  }
}
