body {
    overflow-x: hidden;
    margin: 0;
}

.sidebar {
    width: 250px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #343a40;
    color: white;
    z-index: 1040;
    transform: translateX(-250px);
    transition: transform 0.3s ease;
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li {
    padding: 10px 20px;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
    display: block;
}

.sidebar ul li a:hover {
    background-color: #495057;
}

.navbar2 {
    background-color: #e9ecef;
    padding: 20px 10px;
    font-size: 14px;
    transition: margin-left 0.3s ease;
    z-index: 1030;
    position: relative;
}

#navbar-top {
    transition: margin-left 0.3s ease;
    margin-left: 0px;
}

#navbar-top.shifted {
    margin-left: 250px;
}

#main-content {
    transition: margin-left 0.3s ease, width 0.3s ease;
    margin-left: 50px;
    width: calc(100% - 50px);
}

#main-content.shifted {
    margin-left: 250px;
    width: calc(100% - 250px);
}

#footer {
    transition: margin-left 0.3s ease, width 0.3s ease;
    margin-left: 50px;
    width: calc(100% - 50px);
}

#footer.shifted {
    margin-left: 250px;
    width: calc(100% - 250px);
}

.toggle-btn {
    font-size: 24px;
    cursor: pointer;
    margin-right: 15px;
}

.custom-link {
    color: red;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: bold;
}

.custom-link:hover {
    color: white !important;
    font-weight: bold;
    background-color: red;
}

.sidebar ul > li.active > a {
    font-weight: bold;
    color: #007bff;
}
