/* SuperTools Glassmorphism Sidebar */
#slide-menu {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.02) !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
}

html.dark #slide-menu {
    background: rgba(22, 22, 22, 0.65) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2) !important;
}

#slide-menu .sidebar .nav-link {
    margin: 0.35rem 1.25rem;
    border-radius: 10px;
    padding: 0.65rem 1rem !important;
    color: #555;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    border: 1px solid transparent;
}

html.dark #slide-menu .sidebar .nav-link {
    color: #aaa;
}

#slide-menu .sidebar .nav-link:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #000;
}

html.dark #slide-menu .sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

#slide-menu .sidebar .nav-link.active {
    background: #bdff03 !important;
    color: #000 !important;
    box-shadow: 0 4px 12px rgba(189, 255, 3, 0.15);
    font-weight: 600;
}

/* Make icon containers strictly inherit the current text color */
#slide-menu .sidebar .nav-link .sidebar-icon,
#slide-menu .sidebar .nav-link .sidebar-expand,
#slide-menu .sidebar .nav-link .text-muted {
    color: inherit !important;
}

#slide-menu .sidebar .nav-link svg {
    transition: stroke 0.2s ease-in-out, fill 0.2s ease-in-out;
}

#slide-menu .sub-menu {
    margin-left: 1.75rem;
    border-left: 2px solid rgba(0, 0, 0, 0.05);
    padding-left: 0.5rem;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
}

html.dark #slide-menu .sub-menu {
    border-left-color: rgba(255, 255, 255, 0.1);
    background: transparent !important;
}

#slide-menu .sub-menu .nav-link {
    margin: 0.15rem 0.5rem;
    padding: 0.5rem 0.75rem !important;
    font-size: 0.9em;
    border-radius: 8px;
}

/* Sidebar Footer & Actions */
.sidebar-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: transparent !important;
}

html.dark .sidebar-footer {
    border-top-color: rgba(255, 255, 255, 0.05);
}

/* Progress Bar Theme override */
#slide-menu .progress-bar {
    background-color: #bdff03 !important;
    border-radius: 4px;
}

#slide-menu .progress {
    background-color: rgba(0,0,0,0.05);
    border-radius: 4px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
    height: 6px !important;
}
html.dark #slide-menu .progress {
    background-color: rgba(255,255,255,0.1);
}

/* Clean up the default shadow/bg classes for modern look */
#slide-menu.bg-base-0 { background: transparent !important; }

/* Small fixes for spacing and responsiveness */
@media (max-width: 991.98px) {
    #slide-menu {
        width: 280px;
        max-width: 85vw;
    }
}
