/* SmartWizard Fixes for SAVS-WEB */

/* Ensure proper z-index stacking */
#smartwizard {
    position: relative;
    z-index: 1;
}

#smartwizard .nav {
    position: relative;
    z-index: 2;
}

#smartwizard .tab-content {
    position: relative;
    z-index: 1;
}

/* Fix tab-pane display issues */
#smartwizard .tab-pane {
    display: none !important;
}

#smartwizard .tab-pane.active {
    display: block !important;
}

/* Ensure navigation links work properly */
#smartwizard .nav-link {
    cursor: pointer;
    text-decoration: none;
}

#smartwizard .nav-link:hover {
    text-decoration: none;
}

/* Fix button styling conflicts */
#smartwizard .btn {
    position: relative;
    z-index: 1;
}

/* Ensure proper form styling */
#smartwizard .form-control {
    position: relative;
    z-index: 1;
}

/* Fix modal z-index issues */
.modal {
    z-index: 1050;
}

.modal-backdrop {
    z-index: 1040;
}

/* Responsive fixes */
@media (max-width: 768px) {
    #smartwizard .nav {
        flex-direction: column;
    }
    
    #smartwizard .nav-link {
        margin-bottom: 0.5rem;
    }
}

/* Animation fixes */
#smartwizard .tab-pane.fade {
    opacity: 0;
    transition: opacity 0.15s linear;
}

#smartwizard .tab-pane.fade.show {
    opacity: 1;
}

/* Ensure proper Bootstrap integration */
#smartwizard .nav-tabs {
    border-bottom: none;
}

#smartwizard .nav-tabs .nav-link {
    border: none;
    border-radius: 0;
}

/* Fix for step validation */
#smartwizard .nav-link.error {
    background-color: #dc3545 !important;
    color: white !important;
}

#smartwizard .nav-link.warning {
    background-color: #ffc107 !important;
    color: black !important;
}
