.sidebar {
    height: 100%;
    width: 210px; 
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    padding: var(--spacing-sm) var(--spacing-sm) var(--spacing-sm) var(--spacing-sm);
    background-color: var(--color-dark-111);
    overflow-x: hidden;
    transition: 0.5s;
    margin-right: var(--spacing-xs);
    background: linear-gradient(to right, var(--bg-dark-gradient) 95%, transparent);
}

.sidebar-link:hover {
    border: 1px solid var(--text-white);
    border-radius: var(--border-radius-lg);
    background-color: var(--color-dark-333);
}

.sidebar.collapsed {
    width: 95px; 
    margin-left: calc(-1 * var(--spacing-sm));
}

.sidebar-header {
    display: flex;
    justify-content: flex-end; 

}

.sidebar-link {
    display: flex;
    align-items: center;
    text-decoration: none !important;
    font-size: var(--font-size-22px);
    color: var(--color-gray-ddd);
    transition: font-size var(--transition-normal), background-color var(--transition-normal);
    padding-left: var(--spacing-lg);
    padding-right: var(--spacing-sm);

    padding-bottom: var(--spacing-xs);
    justify-content: left;
    position: relative;
    margin-bottom: var(--spacing-3);
}


.sidebar-link i {
    min-width: 25px; 
}

.sidebar-link .link-text {
    display: inline-block;
    margin-left: var(--spacing-sm);
    transition: opacity 0.5s ease, visibility 0.5s; 
    opacity: 1;
}

.sidebar-link::after {
    content: attr(title);
    position: absolute;
    white-space: nowrap;
    bottom: 100%;
    left: 50%;
    transform: translateX(125%);
    background-color: var(--color-dark-333);
    color: var(--text-white);
    padding: var(--spacing-xs);
    border-radius: var(--spacing-xs);
    display: none;
    z-index: 1;
}


.sidebar-link, .sidebar-sublink {
    transition: font-size var(--transition-normal);
}



.toggle-sidebar {
    background: none;
    border: none;
    color: var(--color-gray-ddd);
    cursor: pointer;
    font-size: var(--font-size-24px);
    display: inline-block;

}


#content {
    transition: margin-left .5s;
    padding: var(--spacing-lg);
    margin-left: 180px;
}

#content.collapsed {
    margin-left: var(--spacing-xl);
}

.icon-chevron {
    display: inline-block;
    transition: transform var(--transition-normal);
}


.icon-chevron {
    transform: rotate(180deg);
}


.sidebar.collapsed .icon-chevron {
    transform: rotate(0deg);
}

.sidebar.collapsed .sidebar-link::after {
    display: none;
}

.sidebar.collapsed .link-text {
    opacity: 0;
    transition: opacity 0.5s ease;
    width: 0;
    overflow: hidden;
    display: inline-block;
    visibility: hidden;
    margin-left: 0; 
}

.sidebar-sublink {
    display: block;
    color: var(--color-gray-ddd);
    padding: var(--spacing-8) var(--spacing-md);
    font-size: var(--font-size-14px);
    text-decoration: none !important;
    margin-left: var(--spacing-lg);
    transition: background-color var(--transition-normal);
}

.sidebar-sublink:hover {
    background-color: var(--color-dark-333);
}

.sidebar-sublink .sidebar-sublink {
    margin-left: var(--spacing-xxl);
    font-size: var(--font-size-13px);
}

.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

.sidebar-link.has-submenu.open + .submenu {
    max-height: 500px;
    transition: max-height 0.5s ease-in;
}


.menu-logo-image {
    display: flex;
    height: 150px;
    background-image: url('/static/newstyle/sharewarez_logo_small.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
  }

.menu-logo-image img {
    border-radius: 17px;    

}

.version-display {
    font-size: var(--font-size-08em);
    color: var(--color-gray-888);
    text-align: center;
    margin-top: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
}

.sidebar.collapsed .version-display {
    display: none;
}

.sidebar.collapsed .user-name {
    visibility: hidden;
}


.sidebar.collapsed .user-account-icon {
    width: 60px;
}


.user-account-menu {
    position: fixed;
    left: var(--spacing-xs);
    color: var(--color-light-ecf);
    border-radius: var(--spacing-25);
    box-shadow: 0 2px 5px var(--shadow-dark); 
    cursor: pointer;
    transition: all var(--transition-normal);
    background-color: var(--color-black-e5);
    padding: var(--spacing-lg) var(--spacing-lg);
    border: 2px solid transparent;
}

.user-account-icon {
    position: fixed;
    bottom: var(--spacing-xs);
    left: var(--spacing-xs);
    color: var(--color-light-ecf);
    border-radius: var(--spacing-25);
    box-shadow: 0 2px 5px var(--shadow-dark); 
    cursor: pointer;
    transition: all var(--transition-normal);
    background-color: var(--color-black-73);
    padding: var(--spacing-lg) var(--spacing-lg);
    border: 2px solid transparent;
}


.user-account-icon:hover, .user-account-menu:hover {
    border-color: var(--color-light-ecf); 
}


.user-account-icon {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-white);
    padding: 4px;

}
