body {
    margin: 0;
    font-family: Arial, sans-serif;
}

/* BUTTON */
#menuBtn {
    background: #232f3e;
    color: white;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
}

/* OVERLAY */
#overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    top: 0;
    left: 0;
    display: none;
    z-index: 998;
}

/* SIDEBAR */
#sidebar {
    position: fixed;
    top: 0;
    left: -350px;
    width: 320px;
    height: 100%;
    background: #fff;
    z-index: 999;
    transition: 0.3s;
    overflow-y: auto;
}
#sidebar,
.panel-wrapper {
    overflow-x: hidden;
}

/* HEADER */
.sidebar-header {
    background: #232f3e;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* MENU */
.menu-content {
    padding: 15px;
}

.menu-content h4 {
    margin-top: 15px;
}

.menu-content ul {
    list-style: none;
    padding: 0;
}

.menu-content li {
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}

.menu-content li:hover {
    background: #f3f3f3;
}

hr {
    border: 0.5px solid #ddd;
}
.panel-wrapper {
    display: flex;
    width: 640px;
    transition: transform 0.3s ease;
}

/* each panel */
.panel {
    width: 320px;
    height: 100vh; /* full screen */
    display: flex;
    flex-direction: column;
    overflow: hidden; /* prevent double scroll */
}
/* header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #232f3e;
    color: white;
    padding: 10px;
    flex-shrink: 0;
}

/* list */
#sidebar ul {
    list-style: none;
    padding: 0;
}

#sidebar ul li {
    padding: 10px;
    cursor: pointer;
}

#sidebar ul li:hover {
    background: #f3f3f3;
}
.menu-content,
#submenuList {
    flex: 1;
    overflow-y: auto;  
    overflow-x: hidden; 
    padding: 10px;
}
/* FIX LIST ITEMS BREAKING WIDTH */
.menu-list li {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* FIX LINK WIDTH */
.menu-list li a {
    display: block;
    width: 100%;
    color: #000;
    text-decoration: none;
}

/* OPTIONAL: nicer scrollbar */
.menu-content::-webkit-scrollbar,
#submenuList::-webkit-scrollbar {
    width: 6px;
}

.menu-content::-webkit-scrollbar-thumb,
#submenuList::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 5px;
}
#submenuList li {
    padding: 14px 15px;
    border-bottom: 1px solid #eee;
}