body.no-scroll {
    overflow: hidden;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    min-width: inherit;
    max-width: inherit;
    margin: inherit;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1000;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.sidebar-overlay .sidebar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--sidebar-bg);
    color: var(--sidebar-color);
    display: flex;
    flex-direction: column;
    /*padding: 20px 0;*/
    padding: 44px 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.sidebar-overlay .sidebar.active {
    transform: translateX(0);
}

.sidebar-overlay .user-profile {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.sidebar-overlay .profile-image .avatar-icon {
    display: inline-block;
    margin-right: 15px;
}

.sidebar-overlay .profile-image .avatar-icon img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.sidebar-overlay .profile-image .avatar-icon a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 100%;
    color: currentColor;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.sidebar-overlay .profile-image .avatar-icon a:hover {
    opacity: .4;
}

.sidebar-overlay .profile-image .avatar-icon a > span {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    padding: 5px 10px;
    background: var(--sidebar-avatar-icon-link-bg);
    color: var(--sidebar-avatar-icon-link-color);
    border-radius: 5px;
    text-align: center;
}

.sidebar-overlay .profile-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.sidebar-overlay .profile-details {
    flex: 1;
}

.sidebar-overlay .profile-details > div {
    position: relative;
    width: 100%;
    margin: 5px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
}

.sidebar-overlay .profile-details .point-side {
    display: flex;
    flex-direction: column;
}

.sidebar-overlay .profile-details .point-side .multi-side,
.sidebar-overlay .profile-details .point-side .single-side
{
    width: 100%;
    display: flex;
    gap: 5px;
}

.sidebar-overlay .profile-details .username-side p,
.sidebar-overlay .profile-details .point-side .left-side p,
.sidebar-overlay .profile-details .point-side .right-side p,
.sidebar-overlay .profile-details .point-side .middle-side p
{
    padding: 10px;
    background: var(--sidebar-profile-details-p-bg);
    color: var(--sidebar-profile-details-p-color);
    border-radius: 5px;
    transition: background 0.3s ease;
    text-align: center;
}

.sidebar-overlay .profile-details .username-side::after,
.sidebar-overlay .sidebar.active::after
{
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--sidebar-username-side-after-active-bg);
}

.sidebar-overlay .sidebar.active::after {
    height: 3px;
    background: var(--sidebar-after-active-bg);
}

.sidebar-overlay .profile-details .point-side .left-side,
.sidebar-overlay .profile-details .point-side .right-side,
.sidebar-overlay .profile-details .point-side .middle-side
{
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 5px;
}

.sidebar-overlay .profile-details .point-side .left-side {
    text-align: left;
}

.sidebar-overlay .profile-details .point-side .right-side {
    text-align: right;
}

.sidebar-overlay .profile-details .point-side .middle-side {
    text-align: center;
}

.sidebar-overlay .profile-details p {
    /*margin: 5px 0;*/
    font-size: 14px;
    text-shadow: 0 0 5px var(--sidebar-profile-details-p-text-shadow-color)
}

.sidebar-overlay .profile-details p i {
    margin-right: 5px;
}

.sidebar-overlay .profile-details p span {
    font-weight: bold;
}

.sidebar-overlay .profile-details .username-side .username {
    flex: 1;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

.sidebar-overlay .links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.sidebar-overlay .links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px;
    min-height: 72px;
    background: var(--sidebar-links-a-bg);
    color: var(--sidebar-links-a-color);
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    transition: background 0.3s ease;
    text-shadow: 0 0 5px var(--sidebar-links-a-text-shadow-color)
}

.sidebar-overlay .links a:hover {
    background: var(--sidebar-links-a-hover-bg);
}

.sidebar-overlay .links a span {
    text-align: center;
}

/*.sidebar-overlay .links a i {
    margin-right: 5px;
}*/

.sidebar-overlay span.icon {
    display: block;
}

.sidebar-overlay .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

.sidebar-overlay .close-btn:hover {
    opacity: .4;
}