body {
    overflow-x: hidden;
}

.sidebar {
    width: 260px;
    transition: all 0.3s ease-in-out;
    background-color: #f8f9fa;
    z-index: 1050;
    border-right: 1px solid #dee2e6;
}

.sidebar.collapsed {
    width: 80px;
}

.sidebar.collapsed .logo {
    display: none;
}

.sidebar.collapsed .menu-text {
    display: none;
}

.sidebar .logo {
    max-width: 150px;
}

.sidebar .logo img {
    width: 100%;
    height: auto;
}

.sidebar.collapsed .sidebar-header {
    justify-content: center;
}

.sidebar.collapsed #toggleSidebarBtn {
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.sidebar-header #toggleSidebarBtn {
    width: 30px;
    height: 30px;
}

.sidebar-header .toggle-sidebar-mobile {
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none;
}

.profile-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 60vw;
    background: #fff;
    z-index: 1060;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    padding: 0;
}

.profile-menu.show {
    transform: translateX(0);
}

.profile-menu .sidebar-header {
    padding: 12px 15px;
    border-bottom: 1px solid #dee2e6;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.profile-menu ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.profile-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
}

.profile-menu li a:hover {
    background-color: #e9ecef;
}

.profile-menu li i {
    width: 24px;
    height: 24px;
    text-align: center;
    line-height: 24px;
    font-size: 16px;
}

.profile-bottom {
    border-top: 1px solid #dee2e6;
    padding: 16px;
}

.dropdown-menu {
    right: 0;
    left: auto;
    margin-top: 5px;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    opacity: 0;
    display: block;
    visibility: hidden;
    min-width: 250px;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
}


.sidebar ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.sidebar li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
}

.sidebar li a:hover,
.sidebar li a.selected,
.sidebar li a.active {
    background-color: #e9ecef;
}

.sidebar li i {
    width: 24px;
    height: 24px;
    text-align: center;
    line-height: 24px;
    font-size: 16px;
}

.sidebar-header {
    padding: 12px 15px;
    border-bottom: 1px solid #dee2e6;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-bottom {
    border-top: 1px solid #dee2e6;
    padding: 16px;
}

@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 60vw;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }

    .sidebar.show-mobile {
        transform: translateX(0);
    }

    .sidebar-bottom {
        display: none;
    }
}

.main-header {
    min-height: 56px;
    border-bottom: 1px solid #dee2e6;
    position: sticky;
    top: 0;
    z-index: 1020;
    background-color: #fff;
}

@media (min-width: 992px) {
    #main-content {
        margin-left: 260px;
        transition: margin-left 0.3s;
    }

    #main-content.sidebar-collapsed {
        margin-left: 80px;
    }
}