/*starship-select-field*/
/*mixin*/
@mixin select-field($bg_color, $field_color, $field_placeholder_label_color) {
    background-color: $bg_color !important;
    background: $bg_color !important;
    border: 1px solid $bg_color !important;
    color: $field_color !important;
    box-shadow: none !important;

    &::placeholder,
    .ant-select-selection-placeholder {
        color: $field_placeholder_label_color;
    }
    &:hover,
    &:focus,
    &:hover:focus {
        outline: none;
        box-shadow: none;
        border-color: $bg_color !important;
        box-shadow: none !important;
    }
    .ant-select-arrow .anticon > svg {
        path {
            fill: $field_placeholder_label_color;
        }
    }
    .ant-select-selection-item {
        color: $field_color;
        path {
            fill: $field_color;
        }
    }
    &.ant-select-open {
        color: $field_placeholder_label_color !important;
        box-shadow: none !important;
        span {
            color: $field_placeholder_label_color !important;
        }
    }
}
@mixin dropdown($bg_color, $field_color, $hover_bg_color, $hover_field_color) {
    & > div {
        background-color: $bg_color !important;
        background: $bg_color !important;
        border: 1px solid $bg_color !important;
        color: $field_color !important;
        box-shadow: none !important;
        border-radius: 8px !important;
        margin-top: 6px !important;
        overflow: hidden;
    }
    background-color: transparent !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    color: $field_color !important;
    box-shadow: none !important;
    border-radius: 0px !important;
    margin-top: 0px !important;
    padding: 0px 18px 0px 10px;
    .ant-select-item,
    .ant-select-item-option {
        color: $field_color !important;
        &:hover,
        &:focus,
        &:hover:focus,
        &.ant-select-item-option-active,
        &.ant-select-item-option-selected {
            outline: none;
            box-shadow: none;
            border-color: $hover_bg_color !important;
            background-color: $hover_bg_color;
            background: $hover_bg_color;
            color: $hover_field_color;
            box-shadow: none !important;
            font-weight: 400;
        }
    }
    &::before {
        content: "";
        position: absolute;
        right: 9px;
        top: -9px;
        width: 0;
        height: 0;
        border-left: 9px solid transparent;
        border-right: 9px solid transparent;
        border-bottom: 9px solid $bg_color;
        z-index: -1;
    }
}
/*mixin*/
.starship-select-field {
    @include select-field(var(--base-300), var(--base-1200), var(--base-800));
    border-radius: 8px;
    padding: 3px 0px !important;
    input,
    .ant-select-selector {
        @include select-field(
            var(--base-300),
            var(--base-1200),
            var(--base-800)
        );
        border-radius: 8px !important;
    }
    .ant-select-selector {
        padding: 0px 16px 0px 16px !important;
    }
    .ant-select-selection-item {
        display: flex;
        gap: 8px;
        font-size: 14px;
        line-height: 18px;
        top: -2px;

        svg {
            position: relative;
            top: 4px;
        }
    }
    .ant-select-clear {
        background-color: transparent;
    }
}

.starship-dropdown {
    @include dropdown(
        var(--base-0),
        var(--base-800),
        var(--base-300),
        var(--base-900)
    );
    .ant-select-item {
        padding: 7px 12px;
    }
    .ant-select-item-option-content {
        display: flex;
        gap: 8px;
        svg {
            position: relative;
            top: 4px;
        }
    }
    .ant-select-item-option-state {
        padding: 0px;
    }
}
/*starship-select-field*/

/*textarea*/
