/*!
 * SmartWizard v4.3.x
 * jQuery Wizard Plugin
 * http://www.techlaboratory.net/smartwizard
 *
 * Created by Dipu Raj
 * http://dipuraj.me
 *
 * Licensed under the terms of MIT License
 * https://github.com/techlab/SmartWizard/blob/master/LICENSE
 */

/* SmartWizard Basic CSS */

.sw-main {
    position: relative;
    display: block;
    margin: 0;
    padding: 0;
    border-radius: 0.25rem !important;

    .sw-container {
        display: block;
        margin: 0;
        padding: 0;
        position: relative;
    }

    .step-content {
        display: none;
        position: relative;
        margin: 0;
    }

    .sw-toolbar {
        margin-inline-start: 0;
    }
}

/* SmartWizard Theme: White */

.sw-theme-default {
    border: 1px solid #eff0f6;

    .sw-container {
        min-height: 250px;
    }

    .step-content {
        padding: 15px;
        border: 0px solid #eff0f6;
        background-color: #fff;
        text-align: start;
    }

    .sw-toolbar {
        background: #fff;
        border-radius: 0 !important;
        padding-inline-start: 10px;
        padding-inline-end: 10px;
        padding: 10px;
        margin-block-end: 0 !important;
    }

    .sw-toolbar-top {
        border-block-end-color	: #eff0f6 !important;
    }

    .sw-toolbar-bottom {
        border-block-start-color: #eff0f6 !important;
    }

    > ul.step-anchor > li {
        position: relative;
        margin-inline-end: 2px;

        > a {
            border: none !important;
            color: #5c6287 !important;
            text-decoration: none;
            outline-style: none;
            background: transparent !important;
            border: none !important;
            cursor: not-allowed;
            border-radius: 0 !important;

            &:hover {
                border: none !important;
                color: #5c6287 !important;
                text-decoration: none;
                outline-style: none;
                background: transparent !important;
                border: none !important;
                cursor: not-allowed;
                border-radius: 0 !important;
            }
        }

        &.clickable > a:hover {
            color: #2d66f7 !important;
            background: transparent !important;
            cursor: pointer;
        }

        > a::after {
            content: "";
            background: #2d66f7;
            height: 2px;
            position: absolute;
            width: 100%;
            inset-inline-start: 0px;
            inset-block-end: 0px;
            -webkit-transition: all 250ms ease 0s;
            transition: all 250ms ease 0s;
            -webkit-transform: scale(0);
            -ms-transform: scale(0);
            transform: scale(0);
        }

        &.active > a {
            border: none !important;
            color: #fff !important;
            background: #2d66f7 !important;
            cursor: pointer;

            &::after {
                -webkit-transform: scale(1);
                -ms-transform: scale(1);
                transform: scale(1);
            }
        }

        &.done > a {
            border: none !important;
            color: #5c6287 !important;
            background: transparent !important;
            cursor: pointer;

            &::after {
                background: #2d66f7;
                -webkit-transform: scale(1);
                -ms-transform: scale(1);
                transform: scale(1);
            }
        }

        &.danger > a {
            border: none !important;
            color: #d9534f !important;

            /* background: #d9534f !important; */
            cursor: pointer;

            &::after {
                background: #d9534f;
                border-inline-start-color: #f8d7da;
                -webkit-transform: scale(1);
                -ms-transform: scale(1);
                transform: scale(1);
            }
        }

        &.disabled > a {
            color: #eee !important;
            cursor: not-allowed;

            &:hover {
                color: #eee !important;
                cursor: not-allowed;
            }
        }
    }
}

/* Responsive CSS */
@media screen and (max-width: 768px) {
    .sw-theme-default > .nav-tabs > li {
        float: none !important;
    }
}

/* Common Loader */

.sw-loading {
    &::after {
        position: absolute;
        display: block;
        opacity: 1;
        content: "";
        inset-block-start: 0;
        inset-inline-start: 0;
        height: 100%;
        width: 100%;
        background: rgba(255, 255, 255, 0.7);
        -webkit-transition: all 0.2s ease;
        transition: all 0.2s ease;
        z-index: 2;
    }

    &::before {
        content: "";
        display: inline-block;
        position: absolute;
        inset-block-start: 50%;
        inset-inline-start: 50%;
        z-index: 10;
        border: 10px solid #f3f3f3;
        border-radius: 50%;
        border-block-start: 10px solid #3498db;
        width: 80px;
        height: 80px;
        margin-block-start: -40px;
        margin-inline-start: -40px;
        -webkit-animation: spin 1s linear infinite;

        /* Safari */
        animation: spin 1s linear infinite;
    }
}

/* Safari */
@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
