// Filter component styles
// Column filter with multiple options

.hi-filter {
  display: inline-block;
  position: relative;
}

.hi-filter-container {
  position: relative;
  display: inline-block;
}

.hi-filter-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--hi-color-border, #e5e7eb);
  border-radius: 4px;
  background: var(--hi-color-background, #ffffff);
  color: var(--hi-color-text, #333333);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;

  &:hover {
    background: var(--hi-color-background-light, #f9fafb);
    border-color: var(--hi-color-primary, #00a0e9);
  }

  &.hi-filter-trigger-active {
    background: var(--hi-color-primary-light, rgba(0, 160, 233, 0.1));
    border-color: var(--hi-color-primary, #00a0e9);
  }
}

.hi-filter-icon {
  width: 16px;
  height: 16px;
  color: var(--hi-color-text-secondary, #666666);
  transition: transform 0.2s ease;
}

.hi-filter-trigger-active .hi-filter-icon {
  color: var(--hi-color-primary, #00a0e9);
}

.hi-filter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--hi-color-primary, #00a0e9);
  color: white;
  font-size: 11px;
  font-weight: 500;
}

.hi-filter-dropdown-icon {
  width: 16px;
  height: 16px;
  color: var(--hi-color-text-secondary, #666666);
  transition: transform 0.2s ease;
}

.hi-filter-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 200px;
  padding: 8px;
  background: var(--hi-color-background, #ffffff);
  border: 1px solid var(--hi-color-border, #e5e7eb);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.hi-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px;
  border-bottom: 1px solid var(--hi-color-border-light, #f3f4f6);
}

.hi-filter-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--hi-color-text, #333333);
}

.hi-filter-clear-btn {
  padding: 4px 8px;
  border: none;
  background: transparent;
  color: var(--hi-color-text-secondary, #666666);
  font-size: 12px;
  cursor: pointer;
  border-radius: 2px;

  &:hover {
    background: var(--hi-color-background-light, #f9fafb);
    color: var(--hi-color-primary, #00a0e9);
  }
}

.hi-filter-options {
  max-height: 300px;
  overflow-y: auto;
}

.hi-filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s ease;

  &:hover {
    background: var(--hi-color-background-light, #f9fafb);
  }
}

.hi-filter-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.hi-filter-label {
  flex: 1;
  font-size: 14px;
  color: var(--hi-color-text, #333333);
  line-height: 1.5;
}
