/* 3D Elevated Icons for Main Menu Items */
.sidebar-nav #sidebarnav > li > a > i {
    text-shadow: 
        1px 1px 2px rgba(0, 0, 0, 0.3),
        2px 2px 4px rgba(0, 0, 0, 0.2),
        3px 3px 6px rgba(0, 0, 0, 0.1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transform: translateZ(0);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

/* Enhanced 3D effect on hover */
.sidebar-nav #sidebarnav > li > a:hover > i {
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.4),
        3px 3px 6px rgba(0, 0, 0, 0.3),
        4px 4px 8px rgba(0, 0, 0, 0.2);
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
    transform: translateY(-1px) translateZ(0);
}

/* Remove icons from submenu items and add bullets */
.sidebar-nav .treeview-menu li > a > i {
    display: none !important;
}

/* Add bullet points to submenu items */
.sidebar-nav .treeview-menu li > a::before {
    content: "•";
    color: #666;
    font-weight: bold;
    font-size: 14px;
    margin-right: 10px;
    display: inline-block;
    width: 16px;
    text-align: center;
}

/* Style submenu bullet on hover */
.sidebar-nav .treeview-menu li > a:hover::before {
    color: #333;
}

/* Ensure proper spacing for submenu text */
.sidebar-nav .treeview-menu li > a > span {
    margin-left: 0;
    padding-left: 0;
}

/* Active submenu bullet styling */
.sidebar-nav .treeview-menu li.active > a::before {
    color: #007bff;
    text-shadow: 0 0 3px rgba(0, 123, 255, 0.3);
}

/* Three-level nested submenu support */
.sidebar-nav .treeview-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: transparent;
    margin-left: 20px;
}

.sidebar-nav .treeview-submenu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-color: transparent;
}

.sidebar-nav .treeview-submenu li > a {
    display: block;
    padding: 10px 15px 10px 25px;
    color: #000000;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s ease;
    background-color: transparent;
    font-weight: normal;
}

/* Remove bullets for third level - no ::before content */

/* Ensure proper spacing for third level submenu text */
.sidebar-nav .treeview-submenu li > a > span {
    margin-left: 0;
    padding-left: 0;
}

/* Third level hover states */
.sidebar-nav .treeview-submenu li > a:hover {
    color: #cccccc;
    background-color: transparent;
    font-weight: normal;
}

/* Third level active states */
.sidebar-nav .treeview-submenu li.active > a {
    color: #000000;
    background-color: transparent;
    font-weight: bold;
}

/* Parent menu item styling for items with submenus */
.sidebar-nav .treeview-menu li > a.has-submenu {
    position: relative;
    cursor: pointer;
}

.sidebar-nav .treeview-menu li > a.has-submenu::after {
    content: "\f105";
    font-family: FontAwesome;
    float: right;
    margin-top: 2px;
    font-size: 12px;
    color: #666;
    transition: transform 0.3s ease;
}

.sidebar-nav .treeview-menu li.open > a.has-submenu::after {
    transform: rotate(90deg);
}

/* Adjust bullet positioning for parent items with submenus */
.sidebar-nav .treeview-menu li > a.has-submenu::before {
    content: "▶";
    color: #666;
    font-weight: bold;
    font-size: 12px;
    margin-right: 10px;
    display: inline-block;
    width: 16px;
    text-align: center;
    transition: transform 0.3s ease;
}

.sidebar-nav .treeview-menu li.open > a.has-submenu::before {
    transform: rotate(90deg);
}

/* Hide nested submenu by default */
.sidebar-nav .treeview-submenu {
    display: none;
}

.sidebar-nav .treeview-menu li.open .treeview-submenu {
    display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar-nav #sidebarnav > li > a > i {
        text-shadow: 
            1px 1px 2px rgba(0, 0, 0, 0.2),
            2px 2px 3px rgba(0, 0, 0, 0.1);
        filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.15));
    }
    
    .sidebar-nav .treeview-menu li > a::before {
        font-size: 12px;
        margin-right: 8px;
        width: 14px;
    }
}
