// Shared picker layout mixins — property-only dark variants, no global class selectors.

@mixin picker-card-base {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  border: 1px solid #e5e6eb;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  text-align: center;
  min-width: 0;
  transition:
    border-color 0.2s,
    background-color 0.2s;

  &:hover,
  &.active {
    border-color: #165dff;
    background: #f2f7ff;
  }
}

@mixin picker-card-name {
  width: 100%;
  font-size: 12px;
  color: #1d2129;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@mixin picker-card-sub {
  font-size: 11px;
  color: #86909c;
  line-height: 1.2;
}

@mixin picker-selected-card {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #e5e6eb;
  border-radius: 8px;
  background: #fafafa;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background-color 0.2s;

  &:hover {
    border-color: #165dff;
    background: #f2f7ff;
  }
}

@mixin picker-trigger-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px dashed #d9d9d9;
  border-radius: 8px;
  color: #86909c;
  font-size: 14px;
  cursor: pointer;
  transition:
    border-color 0.2s,
    color 0.2s;

  &:hover {
    border-color: #165dff;
    color: #165dff;
  }
}

@mixin picker-clear-btn {
  pointer-events: auto;
  cursor: pointer;
  color: #86909c;
  font-size: 16px;
  line-height: 1;
  padding: 0 4px;
  flex-shrink: 0;

  &:hover {
    color: #1d2129;
  }
}

@mixin picker-card-dark-props {
  background: #1f2937;
  border-color: #374151;

  &:hover,
  &.active {
    background: #374151;
    border-color: #60a5fa;
  }
}

@mixin picker-selected-card-dark-props {
  background: #1f2937;
  border-color: #374151;

  &:hover {
    background: #374151;
    border-color: #60a5fa;
  }
}

@mixin picker-text-primary-dark {
  color: #f3f4f6;
}

@mixin picker-text-secondary-dark {
  color: #9ca3af;
}

@mixin picker-placeholder-dark-props {
  border-color: #4b5563;
  color: #9ca3af;

  &:hover {
    border-color: #60a5fa;
    color: #60a5fa;
  }
}

@mixin picker-clear-dark-props {
  color: #9ca3af;

  &:hover {
    color: #f3f4f6;
  }
}
