/* All Code copyright Sree Kotay 2026 */
.activity-view .search-container {
  _margin-top: var(--space-5);
  margin-bottom: var(--space-4);
}

.contacts-view .search-container {
  margin-top: 0;
}

.search-input-wrapper {
  position: relative;
}

button {
  font-family: inherit;
}
.search-input {
  width: 100%;
  _background: var(--list-search-bg);
  border: 0 solid var(--list-search-border);
  border-radius: var(--radius-full);
  padding: 11px 16px 11px 44px;
  font-size: 18px;
  color: var(--list-search-text);
  font-family: inherit;
  outline: none;
  transition: all 160ms ease;
}

.search-input:focus {
  border-color: var(--list-search-focus-border);
  box-shadow: none;
  border: none;
  color: var(--list-search-text-focus);
}

.search-input::placeholder {
  color: var(--list-search-placeholder);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--list-search-icon);
  pointer-events: none;
}

.search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: var(--bg-tertiary);
  border: none;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.search-clear svg {
  width: 12px;
  height: 12px;
}

.search-clear.hidden {
  display: none;
}

.activity-filters,
.contacts-filters {
  position: relative;
  display: grid;
  align-items: center;
  gap: 0;
  width: 100%;
  border-bottom: none;
}

.activity-filters {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: var(--space-1);
}

.contacts-filters {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: var(--space-2);
  margin-bottom: 0;
}

.activity-filters::before,
.contacts-filters::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 0;
  height: 1px;
  background: var(--list-filter-line-top);
  pointer-events: none;
}

.activity-filters::after,
.contacts-filters::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 1px;
  background: var(--list-filter-line-bottom);
  pointer-events: none;
}

.filter-tab {
  position: relative;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 2px 9px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--text-secondary);
  opacity: var(--list-filter-tab-inactive-opacity);
  cursor: pointer;
  transition: all 140ms ease;
  white-space: nowrap;
}

.filter-tab:hover {
  opacity: 1;
}

.filter-tab.active {
  color: var(--text-primary);
  border-bottom-color: transparent;
  opacity: 1;
  text-shadow: 0 0 12px color-mix(in srgb, var(--text-primary) 18%, transparent);
  filter: drop-shadow(0 2px 8px rgba(116, 141, 187, 0.35));
}

.filter-tab.active::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 0;
  height: 2px;
  background: #d6deec;
  border-radius: var(--radius-full);
  box-shadow: 0 0 14px rgba(163, 181, 213, 0.45);
}

.filter-tab.active::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 10px;
  height: 6px;
  background: #d6deec;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transform: translateX(-50%);
  filter: drop-shadow(0 0 6px rgba(163, 181, 213, 0.4));
}

.filter-icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.filter-icon svg {
  width: 14px;
  height: 14px;
}

.filter-count-badge {
  position: static;
  margin-left: 2px;
  font-size: 10px;
  font-weight: 600;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: rgba(12, 17, 24, 0.7);
  border: 1px solid rgba(226, 234, 246, 0.7);
  color: rgba(245, 249, 255, 0.95);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  line-height: 1;
  flex-shrink: 0;
}

.filter-tab.active .filter-count-badge {
  background: rgba(9, 13, 19, 0.95);
  border: 1px solid rgba(250, 253, 255, 0.9);
  color: #fff;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.3),
    0 0 10px rgba(182, 198, 224, 0.38);
}
