/*--
/*  2.1 - Button CSS
/*----------------------------------------*/

.btn-margin {
    margin-top: 40px;
}

.btn-wrap {
    display: flex;
    flex-wrap: wrap;
    margin: -5px;

    & .btn {
        margin: 5px;
    }
}

.btn {
    position: relative;
    z-index: 2;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 0;
    display: inline-block;
    background-color: transparent;
    font-size: 14px;
    font-weight: 500;
    box-shadow: none;
    cursor: pointer;
    height: 60px;
    line-height: 60px;
    padding: 0 48px;

    &::before {
        width: 100%;
        height: 100%;
        position: absolute;
        content: "";
        top: 0;
        left: 0;
        z-index: -1;
        transition: $transition-base;
        transform: scaleX(0);
    }

    &:focus,
    &:active:focus {
        box-shadow: none;
    }

    // Responsive
    @media #{$desktop-device, $tablet-device} {
        height: 50px;
        line-height: 50px;
        padding: 0px 30px;
    }
    @media #{$large-mobile} {
        height: 45px;
        line-height: 45px;
        padding: 0px 20px;
    }

    &:hover {
        &::before {
            transform: scaleX(1);
        }
    }
}

// Button Group
.btn-group {
    display: inline-flex;
    flex-wrap: wrap;
    & .btn {
        border-radius: 0;
        &:first-child {
            border-radius: 4px 0 0 4px;
        }
        &:last-child {
            border-radius: 0 4px 4px 0;
        }
    }
}

// Button Style
.btn-round {
    border-radius: 100px;
}
.btn-square {
    border-radius: 0;
}

// Button With Icon
[class*="btn-icon-"] {
    & i {
        position: absolute;
        top: 0;
        width: 60px;
        height: 60px;
        line-height: 28px;
        text-align: center;
        padding: 15px;
        background-color: rgba($black, 0.1);
    }
}
.btn-icon-left {
    padding-left: 69px;
    & i {
        left: 0;
        right: auto;
    }
}
.btn-icon-right {
    padding-right: 69px;
    & i {
        left: auto;
        right: 0;
    }
}

// Boxed Button
.btn-box {
    width: 50px;
    padding: 10px;
    text-align: center;
    flex: 1 0 50px;
    & i {
        display: block;
        line-height: 24px;
    }
}

// Button Colors
.btn-primary {
    background-color: $primary;
    border-color: $primary;
    color: $white;

    &:focus,
    &:active,
    &:hover {
        background-color: $primary;
        border-color: $primary;
        color: $white;
    }
}
.btn-secondary {
    background-color: $secondary;
    border-color: $secondary;
    color: $white;

    &:focus,
    &:active,
    &:hover {
        background-color: $secondary;
        border-color: $secondary;
        color: $white;
    }
}
.btn-success {
    background-color: $success;
    border-color: $success;
    color: $white;

    &:focus,
    &:active,
    &:hover {
        background-color: $success;
        border-color: $success;
        color: $white;
    }
}
.btn-danger {
    background-color: $danger;
    border-color: $danger;
    color: $white;

    &:focus,
    &:active,
    &:hover {
        background-color: $danger;
        border-color: $danger;
        color: $white;
    }
}
.btn-warning {
    background-color: $warning;
    border-color: $warning;
    color: $dark;

    &:focus,
    &:active,
    &:hover {
        background-color: $warning;
        border-color: $warning;
        color: $dark;
    }
}
.btn-info {
    background-color: $info;
    border-color: $info;
    color: $white;

    &:focus,
    &:active,
    &:hover {
        background-color: $info;
        border-color: $info;
        color: $white;
    }
}
.btn-light {
    background-color: $light;
    border-color: $light;
    color: $dark;

    &:focus,
    &:active,
    &:hover {
        background-color: $light;
        border-color: $light;
        color: $dark;
    }
}
.btn-dark {
    background-color: $dark;
    border-color: $dark;
    color: $white;

    &:focus,
    &:active,
    &:hover {
        background-color: $dark;
        border-color: $dark;
        color: $white;
    }
}
.btn-white {
    background-color: $white;
    border-color: $white;
    color: $dark;

    &:focus,
    &:active,
    &:hover {
        background-color: $white;
        border-color: $white;
        color: $dark;
    }
}

// Button outline Colors

[class*="btn-outline-"] {
    border: 1px solid;
}

.btn-outline-primary {
    border-color: $primary;
    color: $primary;

    &:focus,
    &:active,
    &:hover {
        background-color: $primary;
        color: $white;
    }
}
.btn-outline-secondary {
    border-color: $secondary;
    color: $secondary;

    &:focus,
    &:active,
    &:hover {
        background-color: $secondary;
        color: $white;
    }
}
.btn-outline-success {
    border-color: $success;
    color: $success;

    &:focus,
    &:active,
    &:hover {
        background-color: $success;
        color: $white;
    }
}
.btn-outline-danger {
    border-color: $danger;
    color: $danger;

    &:focus,
    &:active,
    &:hover {
        background-color: $danger;
        color: $white;
    }
}
.btn-outline-warning {
    border-color: $warning;
    color: $warning;

    &:focus,
    &:active,
    &:hover {
        background-color: $warning;
        color: $dark;
    }
}
.btn-outline-info {
    border-color: $info;
    color: $info;

    &:focus,
    &:active,
    &:hover {
        background-color: $info;
        color: $dark;
    }
}
.btn-outline-light {
    border-color: $light;
    color: $light;

    &:focus,
    &:active,
    &:hover {
        background-color: $light;
        color: $dark;
    }
}
.btn-outline-dark {
    border-color: $dark;
    color: $dark;

    &:focus,
    &:active,
    &:hover {
        background-color: $dark;
        color: $white;
    }
}
.btn-outline-white {
    border-color: $white;
    color: $white;

    &:focus,
    &:active,
    &:hover {
        background-color: $white;
        color: $dark;
    }
}

// Button Hover
.btn-hover-primary {
    &:hover {
        color: $white;

        &::before {
            background-color: $primary;
        }
    }
}
.btn-hover-secondary {
    &:hover {
        color: $white;

        &::before {
            background-color: $secondary;
        }
    }
}
.btn-hover-success {
    &:hover {
        border-color: $success;
        color: $white;

        &::before {
            background-color: $success;
        }
    }
}
.btn-hover-danger {
    &:hover {
        color: $white;

        &::before {
            background-color: $danger;
        }
    }
}
.btn-hover-warning {
    &:hover {
        color: $dark;

        &::before {
            background-color: $warning;
        }
    }
}
.btn-hover-info {
    &:hover {
        color: $white;

        &::before {
            background-color: $info;
        }
    }
}
.btn-hover-light {
    &:hover {
        color: $dark;

        &::before {
            background-color: $light;
        }
    }
}
.btn-hover-dark {
    &:hover {
        color: $white;

        &::before {
            background-color: $dark;
        }
    }
}
.btn-hover-white {
    &:hover {
        color: $dark;

        &::before {
            background-color: $white;
        }
    }
}
