span {
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

.simplebar-content-wrapper {
    background-color: #fff;
}

aside {
    border: none !important;
}

nav {
    background-color: #fff;

    ul {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    a {
        transition: background-color 0.2s ease;
    }


    a:hover {
        background-color: #f3f4f6 !important;

        span, i {
            color: #155dfc !important;
        }

    }
}

.main-sidebar-header {
    background-color: #fff !important;
}

.side-menu__item.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    filter: grayscale(100%);
}

.side-menu__item.disabled:hover {
    opacity: 0.6;
}


[data-theme-mode=dark] {
    nav,
    .main-sidebar-header,
    .simplebar-content-wrapper {
        background-color: #1a1c1e !important;
        transition: background-color 1s ease !important;
    }
}

.sidebar-switcher {
    background: #ffffff !important;
    border: none !important;
    color: #364153 !important;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    box-shadow: none !important;
}

.sidebar-switcher i {
    color: #364153 !important;
}

.sidebar-switcher:hover {
    background: #f9fafb !important;
    border-color: #155dfc !important;
    color: #155dfc !important;
}

.sidebar-switcher:hover i {
    color: #155dfc !important;
}

.sidebar-switcher.--active {
    border-color: #364153 !important;
    background: #f3f4f6 !important;
}

.app-sidebar .dropdown-menu {
    background-color: #ffffff !important;
    border: 1px solid var(--btn-border-gray, #e5e7eb) !important;
    border-radius: 10px;
    padding: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
}

.app-sidebar .dropdown-item {
    color: #364153 !important;
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-sidebar .dropdown-item i {
    color: #364153;
}

.app-sidebar .dropdown-item:hover {
    background: #f0f7ff !important;
    color: #155dfc !important;
}

.app-sidebar .dropdown-item:hover i {
    color: #155dfc !important;
}

.app-sidebar .dropdown-item.active {
    background: #f0f7ff !important;
    color: #155dfc !important;
}

.app-sidebar .dropdown-item.active i {
    color: #155dfc !important;
}

.app-sidebar .dropdown-header {
    color: #9ca3af !important;
    font-size: 11px;
    font-weight: 700;
    padding: 8px 12px;
}

.sidebar-shared-btn {
    background: #f9fafb !important;
    border: 1px solid var(--btn-border-gray, #e5e7eb) !important;
    color: #364153 !important;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
}

.sidebar-shared-btn:hover {
    border-color: #155dfc !important;
    color: #155dfc !important;
}

.shared-badge {
    background-color: #364153 !important;
    color: #ffffff !important;
    padding: 2px 8px;
    border-radius: 12px;
}

.revoke-btn {
    color: #9ca3af !important;
    transition: color 0.2s;
}

.revoke-btn:hover {
    color: #ef4444 !important;
}

#mainMenuSidebar {
    position: relative;
    height: 100%;
    padding-bottom: 80px;
    overflow: hidden;
}

.sidebar-scrollable-area {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

#sidebar-main-ul {
    padding-left: 0;
    margin: 0;
    list-style: none;
}

.sidebar-sticky-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    z-index: 10;
    padding-top: 10px;
}

.sidebar-scrollable-area::-webkit-scrollbar { width: 4px; }
.sidebar-scrollable-area::-webkit-scrollbar-thumb { background-color: rgba(0, 0, 0, 0.1); border-radius: 4px; }

[data-theme-mode=dark] {
    nav,
    .main-sidebar-header,
    .simplebar-content-wrapper,
    .sidebar-sticky-footer {
        background-color: #1a1c1e !important;
        transition: background-color 0.3s ease !important;
    }


    nav a:hover {
        background-color: #2d3135 !important;
    }

    nav a span,
    nav a i {
        color: #e5e7eb !important;
    }

    nav a:hover span,
    nav a:hover i {
        color: #4dabff !important;
    }

    .sidebar-switcher {
        background: #25282c !important;
        color: #d1d5db !important;
    }

    .sidebar-switcher i {
        color: #d1d5db !important;
    }

    .sidebar-switcher:hover {
        background: #2d3135 !important;
        color: #4dabff !important;
    }

    .app-sidebar .dropdown-menu {
        background-color: #25282c !important;
        border-color: #3f444e !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
    }

    .app-sidebar .dropdown-item {
        color: #d1d5db !important;
    }

    .app-sidebar .dropdown-item i {
        color: #9ca3af;
    }

    .app-sidebar .dropdown-item:hover {
        background: #31363c !important;
        color: #4dabff !important;
    }

    .sidebar-shared-btn {
        background: #25282c !important;
        border-color: #3f444e !important;
        color: #d1d5db !important;
    }

    .shared-badge {
        background-color: #4b5563 !important;
        color: #ffffff !important;
    }


    .sidebar-scrollable-area::-webkit-scrollbar-thumb {
        background-color: rgba(255, 255, 255, 0.1);
    }
}