

.layout-with-sidebar {
    display: flex;
    align-items: flex-start;
    position: relative;
    min-height: 100vh;
}

.sidebar-table {
    width: 200px;
    padding: 0;
    background-color: #f4f4f4;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    
    position: sticky; /* sticky must be used with top: 0 */
    top: 0;
    z-index: 10;
    transition: all 0.3s ease;
}


.sidebar-table a {
    display: block;
    padding: 10px;
    margin: 5px 0;
    background: #ddd;
    color: #000;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.2s;
}

.sidebar-table a:hover {
    background: #bbb;
}

.sidebar-table .active {
    background: #007BFF;
    color: white;
    font-weight: bold;
}







@media (max-width: 768px) {
    .sidebar-table {
        display: none;
    }
}