/* ============================================================
   WIZARD SIDEBAR — Corrected to remove horizontal overflow
============================================================ */

.wizard-sidebar {
    width: 260px !important;
    max-width: 260px !important;
    background: #ffffff;
    border-right: 1px solid #e2e2e2;

    /* Sidebar inside flex layout, no sticky weirdness */
    position: relative;

    /* Allow proper vertical scrolling */
    height: auto;
    max-height: calc(100vh - 100px);

    overflow-y: auto;
    overflow-x: hidden !important;

    box-shadow: 3px 0 14px rgba(0,0,0,0.05);
    z-index: 5;

    box-sizing: border-box;
}

/* ============================================
   UL CLEANUP
============================================ */
.wizard-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ============================================
   SECTION HEADERS
============================================ */
.sidebar-section {
    padding: 18px 22px 8px;
    font-size: 12px;
    font-weight: bold;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.75;
    cursor: default;
}

/* ============================================
   NAV ITEMS
============================================ */
.nav-item {
    padding: 14px 22px;
    display: flex;
    align-items: center;

    /* Prevent overflow */
    gap: 12px;
    color: #333;
    border-bottom: 1px solid #f1f1f1;
    transition: all 0.25s ease;
    cursor: pointer;

    /* CRITICAL FIX: prevent pushing width beyond 260px */
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    white-space: nowrap;
    box-sizing: border-box;
}

/* ============================================
   ICON FIX
   Prevents FontAwesome icons from causing overflow
============================================ */
.nav-item i {
    width: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    flex-shrink: 0;

    display: inline-block;
    overflow: hidden;
    text-overflow: clip;
    opacity: 0.85;
}

/* ============================================
   HOVER + ACTIVE
============================================ */
.nav-item:hover {
    background: rgba(48,92,222,0.1);
    color: #05367B;
}

.nav-item.active {
    background: rgba(48,92,222,0.18);
    color: #05367B;
    font-weight: bold;
    border-left: 5px solid #05367B;
}
