/* Base tool selector (tabs + search + panel filtering) */
.base-tool-selector {
  width: 100%;
}

.base-tool-selector .tab-list {
  display: flex;
  gap: 40px;
  margin: 0 auto 40px auto;
  position: relative;
  padding: 0 8px 12px 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  justify-content: center;
  max-width: fit-content;
  border-bottom: 1px solid var(--border-color);
}

.base-tool-selector .tab-list::-webkit-scrollbar {
  display: none;
}

.base-tool-selector .tab {
  position: relative;
  padding: 12px 0;
  margin: 0;
  border: none;
  background: none;
  text-decoration: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  color: var(--muted-text);
  transition: color 200ms ease-in-out;
  z-index: 1;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
  outline: none;
}

.base-tool-selector .tab:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 4px;
  border-radius: 4px;
}

.base-tool-selector .tab i {
  font-size: 22px;
  width: 24px;
  min-width: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 200ms ease-in-out;
  color: inherit;
}

.base-tool-selector .tab span {
  transition: color 200ms ease-in-out;
}

.base-tool-selector .tab:hover:not(.active) {
  color: var(--text-color);
}

.base-tool-selector .tab.active {
  color: var(--primary-blue);
  font-weight: 500;
}

.base-tool-selector .tab-indicator {
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 2px;
  border-radius: 1px;
  transition:
    left 300ms cubic-bezier(0.4, 0, 0.2, 1),
    width 300ms cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
  background: var(--primary-blue);
}

.base-tool-selector .tab-panels {
  padding: 0 0 32px 0;
}

.base-tool-selector .tab-panels .tab-panel {
  display: none;
}

.base-tool-selector .tab-panels .tab-panel.active {
  display: block;
}

.base-tool-selector .mobile-tab-label {
  display: none;
}

.base-tool-selector .tool-search-container {
  max-width: 980px;
  margin: 0 auto 40px auto;
  width: 100%;
}

.base-tool-selector .tool-search-container .search-field {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.base-tool-selector .tool-search-container .search-field__input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.base-tool-selector .tool-search-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 16px;
  color: var(--muted-text);
}

.base-tool-selector .tool-search-empty i {
  font-size: 40px;
  margin-bottom: 16px;
  opacity: 0.4;
  color: var(--muted-text);
}

.base-tool-selector .tool-search-empty p {
  font-size: 16px;
  margin: 0;
  color: var(--muted-text);
}

@media (max-width: 768px) {
  .base-tool-selector .tab-list {
    gap: 28px;
    margin: 12px auto 32px auto;
    padding-bottom: 10px;
  }

  .base-tool-selector .tab {
    font-size: 14px;
    padding: 10px 0;
  }

  .base-tool-selector .tab span {
    display: none;
  }

  .base-tool-selector .tab i {
    font-size: 20px;
    width: 22px;
    min-width: 22px;
  }

  .base-tool-selector .mobile-tab-label {
    display: block;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 8px;
    padding: 8px 16px;
  }

  .base-tool-selector .tool-search-container {
    max-width: 100%;
    margin-bottom: 32px;
  }
}

@media (max-width: 480px) {
  .base-tool-selector .tab-list {
    gap: 20px;
  }

  .base-tool-selector .tab i {
    font-size: 18px;
    width: 20px;
    min-width: 20px;
  }

  .base-tool-selector .mobile-tab-label {
    font-size: 17px;
  }
}
