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


export const applyControllerContainerStyle = (disable?: boolean) => css`
  display: flex;
  width: 100%;
  padding: 8px 16px;
  gap: 16px;
  align-items: center;
  opacity: ${disable ? 0.3 : 1};
`

export const subtitleStyle = (theme:Theme) => css`
  font-size: 14px;
  color: ${theme.palette.text.primary};
  font-weight: 500;
`
export const controlTitleStyle =(theme:Theme) =>css`
  width: 240px;
  flex: none;
  text-align: right;
  margin: 0;
  ${subtitleStyle(theme)};
`

export const controlWrapperStyle = css`
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  position: relative;
`

export const notAllowedMask = css`
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
`
