/* All Code copyright Sree Kotay 2026 */
& .search-container {
  background: var(--list-search-bg);
  border-radius: var(--radius-full);
  padding: 4px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 52px;
  overflow: hidden;
  border: none !important;
}

& .contact-search-container {
  background: var(--list-search-bg);
  border-radius: 11px;
  padding: 4px;
  margin: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 52px;
  overflow: hidden;
  border: none !important;
}

& .search-container.is-expanded,
& .contact-search-container.is-expanded {
  max-height: 94px;
}

& .search-container.is-expanded {
  border-color: transparent;
  padding-bottom: 8px;
}

& .contact-search-container.is-expanded {
  padding-bottom: 4px;
}

& .search-input-wrapper {
  position: relative;
  z-index: 2;
}

& .search-input {
  background: transparent;
  border: none;
  border-radius: 10px;
  padding: 12px 16px 12px 48px;
  font-size: var(--list-text-size);
  color: #1a1c1e;
  width: 100%;
  outline: none;
  box-shadow: none !important;
}

& .search-input::placeholder {
  color: #707b90;
}

& .search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  color: #707b90;
  pointer-events: none;
}

& .activity-filters,
& .contacts-filters,
& .contact-history-filters {
  display: flex;
  justify-content: space-around;
  background: rgb(208 213 222);
  border-radius: 10px;
  padding: 3px 0;
  position: relative;
  overflow: hidden;
  transition: opacity 0.2s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

& .search-container.is-expanded .activity-filters,
& .search-container.is-expanded .contacts-filters,
& .contact-search-container.is-expanded .contact-history-filters {
  opacity: 1;
  _transform: translateY(0);
  pointer-events: auto;
}

& .filter-slider-bg {
  position: absolute;
  top: 3px;
  left: 3px;
  height: calc(100% - 6px);
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

& .activity-filters .filter-slider-bg,
& .contact-history-filters .filter-slider-bg {
  width: calc(33.33% - 2px);
}

& .contacts-filters .filter-slider-bg {
  width: calc(50% - 4px);
}

& .filter-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: #707b90;
  background: transparent;
  border: none;
  transition: all 0.2s ease;
  position: relative;
  z-index: 1;
  cursor: pointer;
  outline: none !important;
}

& .filter-tab:hover {
  color: #1a1c1e;
}

& .filter-tab.active {
  color: #1a1c1e;
}

& .filter-tab.active::after,
& .filter-tab.active::before {
  display: none;
}

& .activity-filters .filter-count-badge,
& .contact-history-filters .filter-count-badge {
  background: #f1f3f7;
  border: 1px solid #d8deea;
  color: #707b90;
  font-size: 11px;
  padding: 0 6px;
  border-radius: 8px;
  min-width: 20px;
  height: 20px;
}

& .contact-history-filters .filter-count-badge {
  display: flex;
  align-items: center;
  justify-content: center;
}

& .activity-filters .filter-tab.active .filter-count-badge,
& .contact-history-filters .filter-tab.active .filter-count-badge {
  background: #1a1c1e;
  border-color: #1a1c1e;
  color: #ffffff;
}
