{
    'name': 'Fusion Backend Theme',
    'summary': 'Enterprise-grade backend theme for Odoo Community with dark/light mode',
    'description': '''
        Fusion Backend Theme provides a polished backend experience for 
        Odoo Community Edition featuring dark/light mode switching, a 
        customizable sidebar, an enhanced app switcher with drag-and-drop 
        reordering, resizable chatter, fullscreen dialogs, auto-refresh 
        views, and comprehensive color customization.
    ''',
    'version': '19.0.1.0.0',
    'category': 'Themes/Backend',
    'license': 'LGPL-3',
    'author': 'Nexa Systems Inc',
    'website': 'https://nexasystems.ca',
    'contributors': [
        'Nexa Systems Inc <help@nexasystems.ca>',
    ],
    'depends': [
        'web',
        'base_setup',
        'mail',
    ],
    'excludes': [
        'web_enterprise',
    ],
    'data': [
        'templates/webclient.xml',
        'templates/web_layout.xml',
        'views/res_config_settings_views.xml',
        'views/res_users_views.xml',
    ],
    'assets': {
        # Primary SCSS variables
        'web._assets_primary_variables': [
            ('prepend', 'fusion_backend_theme/static/src/scss/colors.scss'),
            (
                'before',
                'fusion_backend_theme/static/src/scss/colors.scss',
                'fusion_backend_theme/static/src/scss/colors_light.scss',
            ),
            (
                'after',
                'fusion_backend_theme/static/src/scss/colors_light.scss',
                'fusion_backend_theme/static/src/scss/primary_variables.scss',
            ),
        ],
        # Backend helper mixins
        'web._assets_backend_helpers': [
            'fusion_backend_theme/static/src/scss/helpers.scss',
        ],
        # Main backend assets
        'web.assets_backend': [
            # Webclient structure
            (
                'after',
                'web/static/src/webclient/webclient.js',
                'fusion_backend_theme/static/src/webclient/webclient.js',
            ),
            (
                'after',
                'web/static/src/webclient/webclient.xml',
                'fusion_backend_theme/static/src/webclient/webclient.xml',
            ),
            'fusion_backend_theme/static/src/webclient/webclient.scss',
            # Sidebar
            (
                'after',
                'web/static/src/webclient/webclient.js',
                'fusion_backend_theme/static/src/webclient/sidebar/menu_service.js',
            ),
            (
                'after',
                'web/static/src/webclient/webclient.js',
                'fusion_backend_theme/static/src/webclient/sidebar/sidebar.js',
            ),
            'fusion_backend_theme/static/src/webclient/sidebar/sidebar.xml',
            'fusion_backend_theme/static/src/webclient/sidebar/sidebar.scss',
            # Navbar
            'fusion_backend_theme/static/src/webclient/navbar/navbar.js',
            'fusion_backend_theme/static/src/webclient/navbar/navbar.xml',
            'fusion_backend_theme/static/src/webclient/navbar/navbar.scss',
            # App Switcher
            'fusion_backend_theme/static/src/webclient/app_switcher/app_switcher.js',
            'fusion_backend_theme/static/src/webclient/app_switcher/app_switcher.xml',
            'fusion_backend_theme/static/src/webclient/app_switcher/app_switcher.scss',
            # Core services
            'fusion_backend_theme/static/src/core/color_scheme/color_scheme_service.js',
            # Core dialog
            (
                'after',
                'web/static/src/core/dialog/dialog.js',
                'fusion_backend_theme/static/src/core/dialog/dialog.js',
            ),
            (
                'after',
                'web/static/src/core/dialog/dialog.scss',
                'fusion_backend_theme/static/src/core/dialog/dialog.scss',
            ),
            (
                'after',
                'web/static/src/core/dialog/dialog.xml',
                'fusion_backend_theme/static/src/core/dialog/dialog.xml',
            ),
            (
                'after',
                'web/static/src/views/view_dialogs/select_create_dialog.js',
                'fusion_backend_theme/static/src/core/dialog/select_create_dialog.js',
            ),
            # Core thread
            'fusion_backend_theme/static/src/core/thread/thread.js',
            'fusion_backend_theme/static/src/core/thread/thread.xml',
            # Chatter
            'fusion_backend_theme/static/src/chatter/chatter.scss',
            'fusion_backend_theme/static/src/chatter/chatter.xml',
            (
                'after',
                'mail/static/src/chatter/web_portal/chatter.js',
                'fusion_backend_theme/static/src/chatter/chatter.js',
            ),
            # Form views
            'fusion_backend_theme/static/src/views/form/form.scss',
            (
                'after',
                'mail/static/src/chatter/web/form_compiler.js',
                'fusion_backend_theme/static/src/views/form/form_compiler.js',
            ),
            'fusion_backend_theme/static/src/views/form/form_renderer.js',
            # Search views
            (
                'after',
                '/web/static/src/search/control_panel/control_panel.js',
                'fusion_backend_theme/static/src/views/search/auto_refresh.js',
            ),
            (
                'after',
                '/web/static/src/search/control_panel/control_panel.xml',
                'fusion_backend_theme/static/src/views/search/auto_refresh.xml',
            ),
            'fusion_backend_theme/static/src/views/search/expand_groups.js',
            'fusion_backend_theme/static/src/views/search/expand_groups.xml',
            'fusion_backend_theme/static/src/views/search/collapse_groups.js',
            'fusion_backend_theme/static/src/views/search/collapse_groups.xml',
        ],
        # Dark mode
        'web.assets_web_dark': [
            (
                'after',
                'fusion_backend_theme/static/src/scss/colors.scss',
                'fusion_backend_theme/static/src/scss/colors_dark.scss',
            ),
            'fusion_backend_theme/static/src/**/*.dark.scss',
        ],
        # Tests
        'web.assets_unit_tests': [
            'fusion_backend_theme/static/tests/**/*',
        ],
    },
    'images': [
        'static/description/banner.png',
    ],
    'installable': True,
    'application': False,
    'auto_install': False,
    'post_init_hook': '_setup_module',
    'uninstall_hook': '_uninstall_cleanup',
}
