.menu-bar, .menu, .menu-links, .side-link{
    padding: 0;
    box-sizing: border-box;
}

:root {
/* ====== Transition ====== */
    --tran-03: all 0.2s ease;
    --tran-03: all 0.3s ease;
    --tran-04: all 0.3s ease;
    --tran-05: all 0.3s ease;
}

/* ===== Sidebar ===== */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 250px;
    /* padding: 10px 14px; */
    background: var(--primary-color);
    transition: var(--tran-05);
    z-index: 1112;
}
.sidebar.closed {
    width: 38px;
    background: transparent;
    padding-top: 5%;
}

.sidebar.closed li a:hover {
    background-color: var(--primary-color);
}

.sidebar:not(.closed){
    padding-top: 5% !important;
    z-index: 1115;
}

/* ===== Reusable code - Here ===== */
.sidebar li {
    height: 40px;
    list-style: none;
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.sidebar .header .image,
.sidebar .icon {
    min-width: 60px;
    border-radius: 6px;
}

.sidebar .icon {
    min-width: 40px;
    border-radius: 6px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.sidebar .text,
.sidebar .icon {
    color: var(--primary-text-color);
    transition: var(--tran-03);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

.sidebar .text {
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 1;
}
.sidebar.closed .text {
    opacity: 0;
}
/* =========================== */

.sidebar .header {
    position: relative;
    top: 10%;
}

.sidebar .header .image-text {
    display: flex;
    align-items: center;
}
.sidebar .header .logo-text {
    display: flex;
    flex-direction: column;
}
.header .image-text .name {
    margin-top: 2px;
    font-size: 18px;
    font-weight: 600;
}

.sidebar .header .image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar .header .image img {
    width: 40px;
    border-radius: 6px;
}

.sidebar .header .toggle {
    position: absolute;
    top: 10rem;
    left: -28px;
    transform: translateY(-50%) rotate(180deg);
    height: 25px;
    width: 25px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    cursor: pointer;
    transition: var(--tran-05);
}

.sidebar.closed .toggle {
    transform: translateY(-50%) rotate(0deg);
}

.sidebar .menu {
    margin-top: 40px;
}

.sidebar li a {
    list-style: none;
    height: 100%;
    background-color: transparent;
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%;
    border-radius: 6px;
    text-decoration: none;
    transition: var(--tran-03);
}

.sidebar li a:hover {
    background-color: var(--primary-text-color);
}
.sidebar li a:hover .icon,
.sidebar li a:hover .text {
    color: #fff;
}

.sidebar .menu-bar {
    height: calc(100% - 55px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: scroll;
}
.menu-bar::-webkit-scrollbar {
    display: none;
}

.side-link {
    overflow: hidden;
}

@media screen and (max-width: 769px) {
    .sidebar {
        width: 200px;
        padding: 8px 8px;
    }

    .sidebar.closed {
        width: 50px;
    }

    .sidebar li{
        height: 32px;
    }

    .sidebar .icon{
        min-width: 32px;
        font-size: 18px;
    }

    .sidebar .text{
        font-size: 14px;
    }

    .sidebar .header .toggle{
        height: 18px;
        width: 18px;
        font-size: 24px;
        left: -20px;
    }
}

@media screen and (max-width: 430px) {
    .sidebar.closed li a{
        display: none;
    }

    .sidebar.closed .toggle {
        left: 18px;
    }

    .sidebar .header .toggle {
        height: 30px;
        width: 30px;
        font-size: 24px;
        border-radius: 30%;
    }
}
