/* ====================================================
   Isolated Layout for Left Sidebar
   ==================================================== */

body p {
    margin-top: 0;
    margin-bottom: 1rem !important;
}

.sidebar-layout-container {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-right: -15px;
    margin-left: -15px;
    align-items: flex-start;
}

.sidebar-col-custom {
    flex: 0 0 25% !important;
    max-width: 25% !important;
    padding-right: 15px;
    padding-left: 15px;
    display: none !important;
}

.content-col-custom {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    padding-right: 15px;
    padding-left: 15px;
    min-width: 0;
}

@media (min-width: 992px) {
    .sidebar-col-custom {
        display: block !important;
    }
    .content-col-custom {
        flex: 0 0 75% !important;
        max-width: 75% !important;
    }
}

.sidebar-sticky-custom {
    position: -webkit-sticky;
    position: sticky;
    top: 20px;
    z-index: 10;
}

/* Sidebar General */
.left-sidebar-box {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.left-sidebar-header {
    padding: 15px 20px;
    background: #f8f9fa;
    font-weight: bold;
    border-bottom: 1px solid #e5e7eb;
    color: #333;
}
.left-menu-list { list-style: none; padding: 0; margin: 0; }

/* Level 1 Bold */
.left-menu-list .menu-link.level-1 {
    display: block;
    padding: 12px 16px;
    color: #000;
    font-weight: 700;
    font-size: 15px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Level 2 & 3 Normal */
.left-menu-list .menu-link.level-2,
.left-menu-list .menu-link.level-3 {
    display: block;
    padding: 10px 16px 10px 30px;
    color: #555;
    font-weight: 400;
    font-size: 14px;
    border-bottom: 1px solid #f5f5f5;
    background: #fafafa;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.left-menu-list .menu-link:hover { background: #f0f0f0; color: #000; }

/* Default expanded logic */
.left-menu-list .menu-sub { display: none; }
.left-menu-list .has-sub.open > .menu-sub { display: block; }

/* Sidebar Search */
.sidebar-search-wrapper {
    padding: 15px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
}
.sidebar-search-inner {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
}
.sidebar-search-input {
    flex: 1;
    border: none;
    padding: 8px 12px;
    font-size: 14px;
    outline: none;
}
.sidebar-search-btn {
    background: #333;
    color: #fff;
    border: none;
    padding: 0 15px;
    cursor: pointer;
}
.sidebar-search-btn:hover { background: #000; }