import { globalColor } from "@/utils/colorBuilder"
import { css } from "@emotion/react"
import { Theme } from "@mui/material"
import chroma from "chroma-js"

export const searchHeaderStyle = css`
  width: 100%;
  height: 48px;
  display: flex;
  flex-direction: row;
  padding: 0 16px;
  align-items: center;
  color: ${globalColor(`grayBlue-04`)};
`

export const searchInputContainerStyle = css`
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
`

export const searchHeaderTitleTextStyle = css`
  white-space: nowrap;
  font-size: 14px;
  color: ${globalColor(`grayBlue-04`)};
  flex: 1;
`

export const searchInputStyle = css`
  margin-right: 8px;

  & > span {
    border-radius: 8px !important;
    border-color: ${globalColor(`techPurple-03`)} !important;
    box-shadow: 0 0 8px 0
      ${chroma(globalColor(`techPurple-03`))
        .alpha(0.2)
        .hex()};
  }
`

export const searchInputIconStyle =(theme:Theme)=> css`
  color: ${theme.palette.text.secondary};
`

export const actionListHeaderContainerStyle = css`
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
`

export const actionTitleStyle = (theme:Theme)=>css`
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  color: ${theme.palette.text.secondary};
  margin: 0;
`
