/* Fixed-width containers for buttons to prevent layout shift */
.SIIDI_Designer .left-buttons {
    width: 100px;    /* Fixed width for back button */
}

.SIIDI_Designer .right-buttons {
    width: 100px;    /* Fixed width to accommodate both Save and Continue */
    display: flex;
    justify-content: flex-end;
}

/* Create a wrapper class to ensure consistent centering of the wizard nav */
.SIIDI_Designer .wizard-nav-wrapper {
    display: flex;
    justify-content: center;
    flex: 1;
}

.SIIDI_Designer .nav-button-disabled {
    background-color: #eceff1 !important;
    color: #666 !important;
    cursor: not-allowed !important;
}

/* Style for the navigation section between buttons */
.SIIDI_Designer .wizard-nav-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 85px;
}

/* Individual step styling */
.SIIDI_Designer .wizard-step-inline {
    display: flex;
    align-items: center;
    color: #666;
    gap: 10px;
    position: relative;
    cursor: pointer;
}

.SIIDI_Designer .wizard-step-inline:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -65px;
    top: 50%;
    width: 50px;
    height: 1px;
    background-color: #666;
}

/* Step icon styling */
.SIIDI_Designer .wizard-step-icon-inline {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    background-color: white;
}

.SIIDI_Designer .wizard-step-icon-inline i {
    font-size: 14px;
}

/* Step label styling */
.SIIDI_Designer .wizard-step-label-inline {
    font-size: 13px;
    white-space: nowrap;
}

/* Active and completed states */
.SIIDI_Designer .wizard-step-inline.active {
    color: #308e75;
}

.SIIDI_Designer .wizard-step-inline.completed {
    color: #333;
}

/* Button styling */
.SIIDI_Designer .nav-button {
    padding: 8px 16px;
    background-color: #308e75;
    color: white;
    border: none;
    cursor: pointer;
    min-width: 100px;
}

/* Actions Bar Styling */
.SIIDI_Designer.actions-bar {
    position: sticky;
    bottom: 0;
    width: 100%;
    padding: 10px 6px;
    z-index: 1000;
    margin-top: 20px;
}

.SIIDI_Designer.actions-container {
    display: flex;
    justify-content: flex-end;
    max-width: 1200px;
    margin: 0 auto;
    gap: 10px;
}

.SIIDI_Designer.idi-action-button {
    padding: 8px 16px;
    min-width: 100px;
    border: none;
    cursor: pointer;
    background-color: #308e75;
    color: white;
    transition: background-color 0.2s, transform 0.1s;
}

/* Add padding to the content to ensure the fixed actions bar doesn't cover content */
.SIIDI_Designer.content-section {
    padding-bottom: 70px;
}

/* Add bottom padding to nav items container to ensure it's not covered by the actions bar */
.nav-items-container {
    padding-bottom: 140px !important; /* Increased to account for the actions bar */
}

/* Make sure content area scrolls properly with fixed action bar */
.SIIDI_Designer.content-area {
    position: relative;
    overflow-y: auto;
}

/* Adjust responsive styling for the actions bar */
@media (max-width: 768px) {
    .SIIDI_Designer.actions-container {
        justify-content: center;
    }
}

/* Ensure that the actions-container maintains proper flex layout */
.SIIDI_Designer.actions-container {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

@media (max-width: 1200px) {
    .SIIDI_Designer.preview-section,
    .SIIDI_Designer.content-section {
        padding: 15px;
    }
}

@media (max-width: 900px) {
    .SIIDI_Designer.main-content {
        flex-direction: column;
    }
    
    .SIIDI_Designer.preview-section,
    .SIIDI_Designer.content-section {
        flex: none;
        width: 100%;
    }
}