/*-----badges start-----*/
.badge {
    padding: 0.25rem 0.45rem;
    font-size: 0.6rem;
    font-weight: 500;
    border-radius: 0.25rem;
    &.bg-primary-gradient {
        color: $white;
    }
    &.bg-secondary-gradient {
        color: $white;
    }
    &.bg-success-gradient {
        color: $white;
    }
    &.bg-info-gradient {
        color: $white;
    }
    &.bg-danger-gradient {
        color: $white;
    }
    &.bg-orange-gradient {
        color: $white;
    }
    &.bg-purple-gradient {
        color: $white;
    }
}
.badge-sm {
    font-weight: normal;
    font-size: 0.625rem;
}
.btn {
    &.btn-outline-primary {
        .badge {
            background-color: $primary;
            color: $black;
        }
        &:hover,&:focus,&:active {
            .badge {
                background-color: $custom-white;
                color: $default-text-color;
            }   
        }
    }
    &.btn-outline-secondary {
        .badge {
            background-color: $secondary;
            color: $black;
        }
        &:hover,&:focus,&:active {
            .badge {
                background-color: $custom-white;
                color: $default-text-color;
            }   
        }
    }
    &.btn-outline-warning {
        .badge {
            background-color: $warning;
            color: $black;
        }
        &:hover,&:focus,&:active {
            .badge {
                background-color: $custom-white;
                color: $default-text-color;
            }   
        }
    }
    &.btn-outline-info {
        .badge {
            background-color: $info;
            color: $black;
        }
        &:hover,&:focus,&:active {
            .badge {
                background-color: $custom-white;
                color: $default-text-color;
            }   
        }
    }
    &.btn-outline-success {
        .badge {
            background-color: $success;
            color: $black;
        }
        &:hover,&:focus,&:active {
            .badge {
                background-color: $custom-white;
                color: $default-text-color;
            }   
        }
    }
    &.btn-outline-danger {
        .badge {
            background-color: $danger;
            color: $black;
        }
        &:hover,&:focus,&:active {
            .badge {
                background-color: $custom-white;
                color: $default-text-color;
            }   
        }
    }
}
.custom-badge {
    font-size: 0.7rem;
    font-weight: 400;
}
.icon-badge {
    position: relative;
    .icon {
        width: 2rem;
        height: 2rem;
        fill: $text-muted;
        font-size: 2rem;
    }
    .badge {
        position: absolute;
        inset-inline-end: -0.5rem;
    }
}
.text-badge {
    position: relative;
    .badge {
        position: absolute;
        inset-inline-end: -1rem;
        inset-block-start: -1rem;
    }
}
/*-----badges End-----*/