/*! ==================== Sidebar ==================== */
.sidebar {
    width: 70px;
    height: 100vh;
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    z-index: 100;
    transition: 0.3s;
    background-color: var(--white-color);
    /* background-color: red; */
}

.sidebar.open-sidebar {
    width: 180px;
}

.sidebar:hover {
    width: 210px;
}
.sidebar .logo {
    width: 40px;
    height: 60px;
    margin: 10px 0;
}
.sidebar .logo,
.sidebar .logout {
    position: relative;
    z-index: 99;
}
.sidebar .logout img {
    width: 25px;
}

.sidebar .sidebar-content-wrapper {
    margin-right: auto;
    flex: 1;
}
.sidebar .sidebar-content {
    width: 100%;
    min-height: calc(100vh - 60px);
    display: flex;
    border-right: 2.5px solid transparent;
    background:
        linear-gradient(to bottom, rgb(96, 24, 141), rgb(98, 50, 211))
            padding-box,
        linear-gradient(
                to right,
                rgba(152, 205, 0, 1),
                rgba(249, 126, 49, 1),
                rgba(250, 49, 74, 1),
                rgb(149, 124, 206)
            )
            border-box;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-right: auto;
    background-color: var(--main-color);
    border-radius: 0;
    padding-block: 20px;
    border-radius: 0 20px 20px 0;
    flex: 1;
}
.sidebar .sidebar-content .links-scroll {
    height: 100%;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
}
.sidebar .sidebar-content ul.links {
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    align-items: start;
    gap: 30px;
    padding: 20px 10px;
    height: 100%;
    width: 100%;
    transition: all 0.3s ease-in-out;
}
.sidebar.open-sidebar .sidebar-content ul.links {
    align-items: start ;
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    align-items: center;
    gap: 30px;
    padding: 20px 10px;
    height: 100%;
    width: 100%;
    transition: all 0.3s ease-in-out;
    align-items: flex-start;

}
.sidebar .sidebar-content ul.links li {
    position: relative;
    /* width: 100%; */
    text-align: center;
    cursor: pointer;
}
.sidebar .sidebar-content ul.links li span {
    color: #fff;
    transition: 0.3s;
    /* display: none; */
    opacity: 0;
    transform: translateX(-10px);
    white-space: nowrap;
    text-align: start;
    font-size: 14px;
}

.sidebar.responsive .sidebar-content ul.links li span,
.sidebar.open-sidebar .sidebar-content ul.links li span {
    /* display: block; */
    opacity: 1;
    transform: translateX(0);
}


.sidebar .sidebar-content ul.links li span:hover {
    color:var(--white-color);
}
.sidebar .sidebar-content ul.links li.active-link span {
    color:var(--white-color);
}

.sidebar .sidebar-content ul.links li.active img{
    opacity: 1;
}
.sidebar .sidebar-content ul.links li a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    justify-content: flex-start;
    padding-left: 3px;
}

.sidebar .active-indicator {
    position: fixed;
    width: 4px;
    height: 30px;
    background-color: var(--main-color);
    border-radius: 5px 0 0 5px;
    right: calc(100% - 100px);
    opacity: 0;
    transition: 0.2s;
    z-index: 999;
    /* opacity: 1; */
}
.sidebar .sidebar-content .links li img {
    width: 25px;
    height: 25px;
    opacity: 0.5;
    transition: 0.5s;
}
.sidebar .sidebar-content ul.links li.active-link img,
.sidebar .sidebar-content .links li:hover img {
    opacity: 1;
}

/* Shapes */
.circle-1,
.circle-2 {
    width: 80px;
    height: 80px;
    background-color: var(--white-color);
    border-radius: 50%;
    position: absolute;
    left: 0;
    z-index: 10;
}
.circle-1 {
    top: -78px;
}
.circle-2 {
    bottom: -78px;
}
.sqaure-1,
.sqaure-2 {
    width: 35px;
    height: 40px;
    background-color: var(--main-color);
    position: absolute;
    left: 0;
    z-index: 1;
}
.sqaure-1 {
    top: -39px;
}
.sqaure-2 {
    bottom: -39px;
}

/* Logout */
.logout-Btn {
    color: var(--main-color);
    cursor: pointer;
    font-size: 14px;
}
.menu-icon {
    display: none;
    width: fit-content;
    cursor: pointer;
    font-size: 20px;
    color: var(--main-color);
}

/* Tooltip */
.sidebar .tooltip {
    position: fixed;
    background: linear-gradient(to right, #e37500, #ffd7aa);
    color: #fff;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: 0.2s;
    z-index: 1000;
}

/* Arrow */
.sidebar .arrow {
    position: fixed;
    width: 0;
    height: 0;
    border-width: 8.5px;
    border-style: solid;
    border-color: transparent #e37500 transparent transparent;
    pointer-events: none;
    opacity: 0;
    transition: 0.2s;
    z-index: 1000;
}

/* **************** Sidebar-Responsive ******************/
.sidebar.responsive {
    width: 220px;
    min-height: 100vh;
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding-block: 30px;
   transition: .4s ease;
}


.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 90;
}
.overlay.active {
    opacity: 1;
    visibility: visible;
}


/* .sidebar.responsive + .main-content {
    width: 100% !important;
    margin-left: 70px !important;
} */



@media (max-width: 768px) {
    .sidebar {
        left: -100%;
    }
    .menu-icon {
        display: block;
    }
    /* responsive السايدبار اللى مش واخد كلاس  */
    .sidebar:not(.responsive) .active-indicator {
        opacity: 0 !important;
    }
}
