@import "../../Styles/variables/colors.scss";
@mixin input-styles(
    $hangle_bg_color,
    $line_bg_color,
    $filled_bg_color,
    $points_bg
) {
    .ant-slider-handle {
        background-color: $hangle_bg_color !important;
        border: 2px solid $hangle_bg_color !important;
        &:focus {
            border-color: $hangle_bg_color;
            box-shadow: none;
        }
    }
    .ant-slider-rail {
        background-color: $line_bg_color !important;
    }
    .ant-slider-track {
        background-color: $filled_bg_color;
    }
    &:hover {
        .ant-slider-track {
            background-color: $filled_bg_color;
        }
    }
    &:hover {
        .ant-slider-rail {
            background-color: $line_bg_color !important;
            opacity: 0.8;
        }
    }

    .ant-slider-dot {
        background-color: $points_bg;
    }
}

.starship-slider {
    @include input-styles(
        var(--base-800),
        var(--base-300),
        var(--base-500),
        var(--base-100)
    );

    .ant-slider-dot {
        width: 5px;
        border-radius: 0px;
        border: 0px;
        height: 4px;
        top: 0px;
        &:first-child {
            border-radius: 2px 0px 0px 2px;
            opacity: 0;
        }
        &:last-child {
            border-radius: 0px 2px 2px 0px;
            opacity: 0;
        }
    }
    .ant-slider-handle {
        position: absolute;
        width: 12px;
        height: 12px;
        margin-top: -4px;
        border-radius: 8px;
    }
}

/*Tool Tip*/
@mixin tooltip-slide($tip_bg_color, $tip_color) {
    .ant-tooltip-inner {
        background-color: $tip_bg_color;
        color: $tip_color;
        box-shadow: none;
    }
}

.ant-slider-tooltip {
    margin-top: 7px;
    @include tooltip-slide(var(--base-400), var(--base-900));
    .ant-tooltip-inner {
        width: 39px;
        height: 20px;
        padding: 5px;
        min-height: 20px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 16px;
        font-weight: 500;
        font-size: 11px;
        line-height: 14px;
        letter-spacing: -0.01em;
        font-feature-settings: "salt" on, "ss01" on, "ss02" on, "ss03" on,
            "ss04" on;
    }
    .ant-tooltip-arrow {
        display: none;
    }
}
/*Tool Tip*/
