// Tranisition Mixin
@mixin aiTransition {
    transition: all 0.25s;
    -o-transition: all 0.25s;
    -ms-transition: all 0.25s;
    -moz-transition: all 0.25s;
    -webkit-transition: all 0.25s;
}

// Common Heading Style Mixin
@mixin aiHeadingStyle {
    line-height: 1.5;
    font-weight: $fontSemiBold;
    color: $textDark;
    span {
        color: $textBlue;
        &.ai-darkcolor {
            color: $textDark;
        }
    }
}

// Common Heading Mixin
@mixin aiHead50 {
    font-size: $font50;
    @include aiHeadingStyle;
    line-height: normal;
    @media only screen and (max-width: $xl_1660) {
        font-size: 44px;
    }
    @media only screen and (max-width: $xl_1440) {
        font-size: 40px;
    }
    @media only screen and (max-width: $lg_1199) {
        font-size: 36px;
    }
    @media only screen and (max-width: $lg_1024) {
        font-size: 32px;
    }
    @media only screen and (max-width: $sm_767) {
        font-size: 28px;
    }
}

@mixin aiHead45 {
    font-size: $font45;
    @include aiHeadingStyle;
    line-height: normal;
    @media only screen and (max-width: $xl_1660) {
        font-size: 42px;
    }
    @media only screen and (max-width: $xl_1440) {
        font-size: 38px;
    }
    @media only screen and (max-width: $lg_1199) {
        font-size: 36px;
    }
    @media only screen and (max-width: $lg_1024) {
        font-size: 32px;
    }
    @media only screen and (max-width: $sm_767) {
        font-size: 28px;
    }
}

@mixin aiHead40 {
    font-size: $font40;
    @include aiHeadingStyle;
    line-height: normal;
    @media only screen and (max-width: $xl_1660) {
        font-size: 36px;
    }
    @media only screen and (max-width: $xl_1440) {
        font-size: 32px;
    }
    @media only screen and (max-width: $lg_1199) {
        font-size: 28px;
    }
    @media only screen and (max-width: $lg_1024) {
        font-size: 24px;
    }
    @media only screen and (max-width: $xs_575) {
        font-size: 20px;
    }
}

@mixin aiHead32 {
    font-size: $font32;
    @include aiHeadingStyle;
    line-height: normal;
    @media only screen and (max-width: $xl_1440) {
        font-size: 32px;
    }
    @media only screen and (max-width: $lg_1199) {
        font-size: 28px;
    }
    @media only screen and (max-width: $lg_1024) {
        font-size: 24px;
    }
    @media only screen and (max-width: $xs_575) {
        font-size: 20px;
    }
}

@mixin aiHead28 {
    font-size: $font28;
    @include aiHeadingStyle;
    @media only screen and (max-width: $xl_1660) {
        font-size: 25px;
    }
    @media only screen and (max-width: $xl_1440) {
        font-size: 22px;
    }
    @media only screen and (max-width: $lg_1024) {
        font-size: 20px;
    }
}

@mixin aiHead24 {
    font-size: $font24;
    @include aiHeadingStyle;
    @media only screen and (max-width: $xl_1440) {
        font-size: 20px;
    }
    @media only screen and (max-width: $lg_1199) {
        font-size: 18px;
    }
}

@mixin aiHead22 {
    font-size: $font22;
    @include aiHeadingStyle;
    @media only screen and (max-width: $xl_1440) {
        font-size: 20px;
    }
    @media only screen and (max-width: $lg_1199) {
        font-size: 18px;
    }
}

@mixin aiHead20 {
    font-size: $font20;
    @include aiHeadingStyle;
    @media only screen and (max-width: $lg_1199) {
        font-size: 18px;
    }
}

@mixin aiHead18 {
    font-size: $font18;
    @include aiHeadingStyle;
    @media only screen and (max-width: $xl_1660) {
        font-size: 16px;
    }
    @media only screen and (max-width: $md_992) {
        font-size: 15px;
    }
}

@mixin aiHead16 {
    font-size: $font16;
    @include aiHeadingStyle;
    @media only screen and (max-width: $xs_575){
        font-size: 14px;
    }
}

@mixin aiHead14 {
    line-height: 1.5;
    font-size: $font14;
}

// Line Break Mixin
@mixin aiLineBreak {
    overflow: hidden;
    display: -webkit-box;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
}

// Common Button Mixin
@mixin aiCommonBtn {
    color: $textWhite;
    padding: 9px 20px 7px;
    font-size: $font14;
    border-radius: $borderRadius50;
    background: $bgSecondary;
    font-weight: $fontLight;
    min-height: 44px;
    text-decoration: none;
    border: solid transparent 1px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;

    .ai-svg {
        position: relative;
        top: -1px;
    }

    &:hover {
        background: $bgBlue;
        color: $textWhite;
    }

    @media only screen and (min-width: $lg_1200) {
        gap: 10px;
        min-width: 170px;
    }

    @media only screen and (min-width: $xl_1601) {
        font-size: 15px;
    }

    @media only screen and (max-width: $xs_375) {
        font-size: 13px;
    }

}

// Common Small Button Mixin
@mixin aiCommonSmallBtn {
    color: $textGray;
    padding: 4px;
    font-size: $font12;
    border-radius: 8px;
    font-weight: $fontMedium;
    border: 1px solid $borderColor;
    min-height: 36px;
    @include aiDflexAlignItemsJustifyContentCenter;
    &:hover {
        color: $textGray;
        border-color: $borderColor;
        background: transparent;
    }
}

// Common Button With Icon SCSS Mixin
@mixin aiCommonIconBtn {
    color: $textDark;
    padding: 4px 4px 4px 16px;
    font-size: $font14;
    border-radius: $borderRadius10;
    font-weight: $fontMedium;
    min-height: 44px;
    background: $bgWhite;
    @include aiDflexAlignItemsCenter;
    align-items: center;
    gap: 12px;
    span {
        &.ai-btn-icon {
            background: $bgLightGreen;
            width: 36px;
            height: 36px;
            border-radius: $borderRadius10;
            @include aiDflexAlignItemsJustifyContentCenter;
        }
    }
    @media only screen and (min-width: $xl_1441) {
        font-size: 15px;
        min-height: 48px;
        gap: 16px;
        padding: 4px 4px 4px 20px;
        span {
            &.ai-btn-icon {
                width: 38px;
                height: 38px;
            }
        }
    }
    @media only screen and (min-width: $xl_1920) {
        font-size: 16px;
        min-height: 54px;
        gap: 20px;
        padding: 6px 6px 6px 24px;
        span {
            &.ai-btn-icon { 
                width: 40px;
                height: 40px;
            }
        }
    }
    &:hover {
        color: $textWhite !important;
        border-color: $bgPrimary !important;
        background: $bgPrimary !important;
    }
}

// Menu Tooltip Mixin
@mixin aiMenuTooltip {
    position: fixed;
    left: 80px;
    background: $bgPrimary;
    white-space: nowrap;
    padding: 5px 8px;
    border-radius: 4px;
    color: $textWhite;
    opacity: 0;
    visibility: hidden;
    z-index: 9;
    font-size: $font13;
    font-weight: $fontRegular;
    @media only screen and (min-width: $xl_1441) {
        left: 85px;
    }
    @media only screen and (min-width: $xl_1920) {
        left: 90px;
    }
    &:before {
        content: "";
        display: inline-block;
        width: 10px;
        height: 10px;
        position: absolute;
        left: -5px;
        background: $bgPrimary;
        top: 10px;
        border-radius: 0 50px 0 0px;
        transform: rotate(45deg);
    }
}

// Pattern 
@mixin aiPatternbg {
    content: '';
    width: 50%;
    height: 100%;
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

// Column Style Mixin 
@mixin aiColumnBrd {
    border-radius: $borderRadius10;
    border: solid $borderColor 1px;
    background: $bgWhite;
    padding: 10px;
    box-shadow: $boxShadow;
}

// Column Style Mixin 
@mixin aiColumnInnerbg {
    border-radius: $borderRadius10;
    background: $bgBlueGradient;
    padding: 12px;
    height: 100%;
    @media only screen and (min-width: $sm_768) {
        padding: 20px;
    }
    @media only screen and (min-width: $lg_1200) {
        padding: 24px;
    }
}

// White Column Style Mixin 
@mixin aiCmnColumn {
    background: $bgWhite;
    padding: 15px 20px;
    border: solid $borderColor 1px;
    border-radius: $borderRadius10;
    box-shadow: $boxShadow;
    @media only screen and (min-width: $lg_1200) {
        padding: 25px 30px;
    }
}

// Display Flex Mixin
@mixin aiDflex {
    display: flex;
}

@mixin aiDflexAlignItemsCenter {
    display: flex;
    align-items: center;
}

@mixin aiDflexWrap {
    display: flex;
    flex-wrap: wrap;
}

@mixin aiDflexDirection {
    display: flex;
    flex-direction: column;
}

@mixin aiDflexJustifyContentCenter {
    display: flex;
    justify-content: center;
}

@mixin aiDflexAlignItemsJustifyContentCenter {
    display: flex;
    align-items: center;
    justify-content: center;
}

@mixin aiDflexWrapJustifyCenter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

@mixin aiDflexJustifybetween {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

// Step Number
@mixin aiStepNumber {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: $bgLightBlueV5;
    color: $textBlue;
    font-weight: $fontBold;
    aspect-ratio: 1 / 1;
    font-size: $font24;
    @include aiDflexAlignItemsJustifyContentCenter;
    &.ai-white-number {
        background: $bgWhite;
        border: solid $borderColor 1px;
        box-shadow: $boxShadow;
    }
    &.ai-active-number {
        background: $bgBlue;
        color: $textWhite;
    }
    @media only screen and (max-width: $lg_1200) {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        font-size: 18px;
    }
    @media only screen and (max-width: $sm_767) {
        font-size: 16px;
    }
}

// Badges Mixin
@mixin aiBadge {
    padding: 6px 10px 6px;
    font-size: $font12;
    font-weight: $fontRegular;
    border-radius: 5px;
    border: solid $borderColor 1px;
    color: $textBlue;
    background: $bgLightBlueV2;
}

// Float Label Mixin 
@mixin aiFloatLabel {
    position: absolute;
        top: -11px;
        left: 10px;
        line-height: 1;
        padding: 4px 8px;
        font-size: $font14;
        background: $bgWhite;
        color: $textGray;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
        max-width: 90%;
        width: fit-content;
        font-weight: $fontLight;
        z-index: 1;
}
