﻿/*                                                     بسم الله الرحمن الرحيم وبه نستعين             */

.sidebar-menu {
    display: flex;
    background: transparent;
    overflow: scroll;    
    min-height: 100%;
    width: 100%;
    direction: rtl;
    height:100%;
}

.sidebar-nav {
    width: 220px;
    color: white;
    background: #ebf2fc;
    border-left: 1px solid #3c85fa;
    border-radius:20px;
}

.sidebar-header {
    padding: 20px;
    background: #ebf2fc;
    font-weight: 600;
    font-size: 18px;
    border-radius:20px;
    /*border-bottom: 1px solid #3c85fa;*/
}

.sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-item {
    position: relative;
    background: #ebf2fc;
}

.sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
    color: #3b7885;
    text-decoration: none;    
    transition: all 0.2s ease;
    font-size: 16px;
    font-weight: 600;    
    border-radius:20px;
    margin-left:10px;
    margin-right:10px;
}

    .sidebar-link:hover {
        background-color: #5e9afb;
        color: white;
        border:solid 1px #3c85fa;
        border-radius:20px;
        margin-left:10px;
        margin-right:10px;
    }

.sidebar-icon {
    width: 20px;
    height: 20px;
    margin-left: 12px;
    background: currentColor;
    border-radius: 3px;
    opacity: 0.7;
}

.sidebar-arrow {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.sidebar-submenu {
    position: absolute;
    top: 0;
    left: -213px;
    width: 200px;
    background: #ebf2fc;
    color: #374151;
    border-radius: 8px;
    border: 1px solid #ebf2fc;
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.sidebar-item:hover .sidebar-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(5px);
    border:solid 1px #82aff6;
    border-radius:20px;
}

.sidebar-item:hover .sidebar-arrow {
    transform: rotate(90deg);
}

.submenu-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.submenu-item {
    position: relative;
}

.submenu-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #3b7885;
    text-decoration: none;
    border-radius:20px;
    transition: background-color 0.2s ease;
    margin-left:10px;
    margin-right:10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

    .submenu-link:hover {
        background-color: #5e9afb;
        border: solid 1px #3c85fa;
        border-radius:20px;
        color:white;
        margin-left:10px;
        margin-right:10px;
    }

.has-third-level .submenu-link::after {
    content: '\25C0';
    font-size: 10px;
    margin-right: auto;
    opacity: 0.6;
}

.third-level {
    position: absolute;
    top: 0;
    left: -233px;
    width: 220px;
    background: #ebf2fc;
    border-radius: 20px;
    border: 1px solid #3c85fa;
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.has-third-level:hover .third-level {
    opacity: 1;
    visibility: visible;
    transform: translateX(5px);
}

.third-level-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.third-level-link {
    display: block;
    padding: 10px 16px;
    color: #3b7885;
    text-decoration: none;
    border-radius:20px;
    margin-left:10px;
    margin-right:10px;
    transition: background-color 0.2s ease;
    font-size: 13px;    
    font-weight: 600;
    cursor: pointer;
}

    .third-level-link:hover {
        background-color: #5e9afb;
        border: solid 1px #3c85fa;
        border-radius:20px;
        color:white;
        margin-left:10px;
        margin-right:10px;
    }
