    <style>
        /* ============================================
           CSS VARIABLES & THEME
           ============================================ */
        :root {
            --ios-bg: #f2f2f7;
            --glass-bg: rgba(255, 255, 255, 0.85);
            --glass-border: rgba(0, 0, 0, 0.1);
            --sidebar-width: 240px;
            --nav-height: 56px;
            --toolbar-height: 50px;
            --breadcrumb-height: 2.5rem;
            --mobile-nav-height: 80px;
            --footer-height: 56px;
            --primary-color: #0d6efd;
            --border-radius: 20px;
            --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
            --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
        }

        /* ============================================
           GLOBAL STYLES
           ============================================ */
        * {
            -webkit-tap-highlight-color: transparent;
            box-sizing: border-box;
        }

        html, body {
            height: 100%;
            width: 100%;
            max-width: 100vw;
            overflow-x: hidden;
        }

        /* Ensure all containers are responsive and full-width */
        .container, .container-fluid {
            width: 100%;
            max-width: 100%;
            padding-right: 0;
            padding-left: 0;
        }

        body {
            background-color: var(--ios-bg);
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            margin: 0;
            padding: 0;
            overflow-x: hidden;
            display: flex;
            flex-direction: column;
            width: 100vw;
            /* Mobile First: Default padding for mobile (nav + toolbar + mobile-nav) */
            padding-top: calc(var(--nav-height) + var(--toolbar-height));
            padding-bottom: var(--mobile-nav-height);
        }

        /* When breadcrumbs are visible, add their height to top padding to prevent content scrolling under them */
        body.breadcrumbs-visible {
            padding-top: calc(var(--nav-height) + var(--toolbar-height) + var(--breadcrumb-height));
        }

        /* Sidebar toggle state */
        /* Desktop: Add sidebar space and no mobile nav */
        @media (min-width: 992px) {
            body {
                padding-top: calc(var(--nav-height) + var(--toolbar-height));
                padding-bottom: var(--footer-height);
                padding-left: 0;
                transition: padding-left 0.3s;
            }
            
            /* Desktop breadcrumbs visible state */
            body.breadcrumbs-visible {
                padding-top: calc(var(--nav-height) + var(--toolbar-height) + var(--breadcrumb-height));
            }
        }

        /* ============================================
           GLASSMORPHISM COMPONENTS
           ============================================ */
        .glass-component {
            background: var(--glass-bg) !important;
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid var(--glass-border);
        }

        /* ============================================
           NAVIGATION BAR
           ============================================ */
        .navbar-top {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: var(--nav-height);
            z-index: 1030;
            padding-top: env(safe-area-inset-top);
            padding-left: env(safe-area-inset-left);
            padding-right: env(safe-area-inset-right);
            overflow: visible !important;
        }

        .navbar-top.glass-component {
            border-bottom: 1px solid var(--glass-border);
        }

        /* Desktop: Adjust navbar position when sidebar visible */


        /* ============================================
           TOOLBAR (DESKTOP + MOBILE)
           ============================================ */
        .toolbar-top {
            position: fixed;
            top: var(--nav-height);
            left: 0;
            right: 0;
            height: var(--toolbar-height);
            padding-left: env(safe-area-inset-left);
            padding-right: env(safe-area-inset-right);
            z-index: 1029;
            display: flex;
            align-items: center;
            padding: 0 1.5rem;
        }

        .toolbar-top.glass-component {
            border-bottom: 1px solid var(--glass-border);
        }

        /* Show toolbar on all screens */
        @media (min-width: 992px) {
            .toolbar-top {
                display: flex;
            }
        }

        .toolbar-icon {
            color: #555;
            font-size: 1.1rem;
            padding: 8px 12px;
            border-radius: 10px;
            transition: all 0.2s;
            cursor: pointer;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
        }

        .toolbar-icon:hover {
            background: rgba(0, 0, 0, 0.05);
            color: var(--primary-color);
        }

        .toolbar-separator {
            width: 1px;
            height: 24px;
            background: rgba(0, 0, 0, 0.1);
            margin: 0 12px;
        }

            /* Sidebar toggle button */
            #sidebarToggle {
                display: none;
                background: none;
                border: none;
                font-size: 1.2rem;
                color: #555;
                cursor: pointer;
                padding: 8px 12px;
                border-radius: 10px;
                transition: all 0.2s;
                align-items: center;
            }
            #sidebarToggle:hover {
                background: rgba(0, 0, 0, 0.05);
                color: var(--primary-color);
            }
            @media (min-width: 992px) {
                #sidebarToggle {
                    display: inline-flex !important;
                }
            }

        /* ============================================
           MAIN CONTENT
           ============================================ */

        /* ============================================
           MAIN CONTENT
           ============================================ */
        #divMainContent, .main-content , mainContent{
            flex: 1;
            width: 100vw;
            max-width: 100vw;
            min-height: calc(100vh - var(--nav-height) - var(--mobile-nav-height));
            padding: 1.5rem;
            padding-bottom: 3rem;
            overflow-y: auto;
            overflow-x: hidden;
        }

        @media (min-width: 992px) {
            .main-content,mainContent {
                width: 100%;
                max-width: 100%;
                min-height: calc(100vh - var(--nav-height) - var(--toolbar-height) - var(--footer-height));
                padding: 2rem;
                padding-bottom: 2rem;
            }
        }

        /* ============================================
           CARDS & COMPONENTS
           ============================================ */
        .card-modern {
            border: none;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow-sm);
            background: #ffffff;
            transition: all 0.3s;
        }

        .card-modern:hover {
            box-shadow: var(--shadow-md);
            transform: translateY(-2px);
        }

        .card-modern.glass-component {
            background: var(--glass-bg);
        }

        /* ============================================
           MOBILE NAVIGATION (BOTTOM NAV)
           ============================================ */
        .mobile-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            width: 100vw;
            max-width: 100vw;
            height: var(--mobile-nav-height);
            padding-bottom: env(safe-area-inset-bottom);
            z-index: 1025;
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            padding-top: 8px;
            overflow-x: auto;
            background: var(--glass-bg, #fff);
            box-shadow: 0 -2px 8px rgba(0,0,0,0.04);
        }

        .mobile-nav.glass-component {
                    @media (min-width: 992px) {
                        .mobile-nav {
                            display: none !important;
                        }
                    }
            border-top: 1px solid var(--glass-border);
        }

        /* Hide on desktop */
        @media (min-width: 992px) {
            .mobile-nav {
                display: none !important;
            }
        }

        .mobile-nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 2px;
            text-decoration: none;
            color: #8e8e93;
            transition: all 0.2s;
            flex: 1 1 0;
            min-width: 60px;
            max-width: 100px;
            font-size: 1rem;
            padding: 6px 0 2px 0;
            background: none;
            border: none;
            outline: none;
        }

        .mobile-nav-item.active {
            color: var(--primary-color);
        }

        .mobile-nav-item i {
            font-size: 1.5rem;
            line-height: 1.2;
        }

        .mobile-nav-label {
            font-size: 0.75rem;
            line-height: 1.1;
            margin-top: 2px;
            word-break: break-word;
            text-align: center;
        }

        /* ============================================
           MODALS WITH CLOSE BUTTON
           ============================================ */
        .modal-content {
            border: none;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow-md);
        }

        .modal-header {
            border-bottom: 1px solid var(--glass-border);
            padding: 1.5rem;
        }

        .modal-header .btn-close {
            padding: 0.5rem;
            font-size: 1.2rem;
            background-size: 20px;
            opacity: 0.6;
            transition: opacity 0.2s;
        }

        .modal-header .btn-close:hover {
            opacity: 1;
        }

        .modal-body {
            padding: 1.5rem;
        }

        .modal-footer {
            padding: 1.5rem;
            border-top: 1px solid var(--glass-border);
            gap: 8px;
        }

        /* Bottom sheet modal for mobile */
        .modal-fullscreen-sm-down {
            display: flex;
        }

        @media (max-width: 576px) {
            .modal-fullscreen-sm-down .modal-dialog {
                width: 100%;
                margin: auto;
                position: fixed;
                bottom: 0;
                left: 0;
                right: 0;
            }

            .modal-fullscreen-sm-down .modal-content {
                border-radius: var(--border-radius) var(--border-radius) 0 0;
                max-height: 90vh;
                overflow-y: auto;
            }
        }

        /* ============================================
           UTILITY CLASSES
           ============================================ */
        .rounded-xl {
            border-radius: var(--border-radius);
        }

        .text-muted-secondary {
            color: #8e8e93;
        }

        .gap-3-sm {
            gap: 1rem;
        }

        @media (min-width: 992px) {
            .gap-3-sm {
                gap: 1.5rem;
            }
        }

        /* ============================================
           RESPONSIVE VISIBILITY
           ============================================ */
        .desktop-only {
            display: none;
        }

        @media (min-width: 992px) {
            .desktop-only {
                display: block !important;
            }
        }

        .mobile-only {
            display: block;
        }

        @media (min-width: 992px) {
            .mobile-only {
                display: none !important;
            }
        }

        /* ============================================
           SCROLLING & OVERFLOW
           ============================================ */
        .horizontal-scroll {
            display: flex;
            overflow-x: auto;
            scroll-snap-type: x mandatory;
            gap: 15px;
            padding: 10px 0;
            scrollbar-width: none;
        }

        .horizontal-scroll::-webkit-scrollbar {
            display: none;
        }

        .scroll-item {
            min-width: 85%;
            scroll-snap-align: center;
            border: none;
            transition: transform 0.2s;
        }

        .scroll-item:active {
            transform: scale(0.98);
        }

        /* ============================================
           FOOTER (Desktop Only)
           ============================================ */
        .footer-main {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            width: 100%;
            max-width: 100%;
            height: var(--footer-height);
            padding: 2rem !important;
            z-index: 1020;
            display: none;
            border-top: 1px solid #e5e5e5;
            overflow-x: hidden;
            overflow-y: auto;
            box-sizing: border-box;
            background: #f8f9fa !important;
        }

        .footer-main.glass-component {
            background: #f8f9fa !important;
        }

        /* Show footer on desktop - Full width */
        @media (min-width: 992px) {
            .footer-main {
                display: block;
            }
        }

        .footer-section {
            padding: 0 2rem;
            border-right: 1px solid #e5e5e5;
            flex: 1;
        }

        .footer-section:last-child {
            border-right: none;
        }

        .footer-title {
            font-size: 0.9rem;
            font-weight: 700;
            color: #333;
            text-transform: uppercase;
            letter-spacing: 0.8px;
            margin-bottom: 1.5rem;
        }

        .footer-link {
            display: block;
            font-size: 0.9rem;
            color: #666;
            text-decoration: none;
            margin-bottom: 0.75rem;
            transition: all 0.2s ease;
        }

        .footer-link:hover {
            color: #0d6efd;
            padding-left: 4px;
        }

        .footer-bottom {
            text-align: center;
            padding: 1.5rem 0 0 0;
            border-top: 1px solid #e5e5e5;
            font-size: 0.85rem;
            color: #999;
            margin-top: 1.5rem;
        }

        /* ============================================
           ANIMATIONS
           ============================================ */
        @keyframes slideInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .animate-slide-in {
            animation: slideInUp 0.3s ease-out;
        }

        /* ============================================
           SIDEBAR CONFIGURATION MODAL
           ============================================ */
           .modal.fade {
            display: none !important;
        }

        .modal.show {
            display: block !important;
            opacity: 1 !important;
        }

        .modal-dialog {
            max-width: 600px;
            margin: 1.75rem auto;
        }

        .modal-content {
            border: none;
            border-radius: 1rem;
            overflow: hidden;
        }

        .modal-header {
            background: var(--primary-color);
            color: #fff;
            border-bottom: none;
            position: relative;
        }

        .modal-header h5 {
            margin: 0;
            font-size: 1.25rem;
            font-weight: 500;
        }

        .modal-header .btn-close {
            position: absolute;
            top: 10px;
            right: 10px;
            color: #fff;
            opacity: 0.7;
        }

        .modal-header .btn-close:hover {
            opacity: 1;
        }

        .modal-body {
            padding: 2rem;
            background: #f8f9fa;
        }

        .modal-body label {
            font-weight: 500;
        }

        .modal-footer {
            border-top: none;
            padding: 1.5rem;
            text-align: right;
        }

        /* ============================================
           BREADCRUMBS
           ============================================ */
        #divBreadCrumbs {
            display: none;
            position: fixed;
            top: calc(var(--nav-height) + var(--toolbar-height));
            left: 0;
            right: 0;
            width: 100%;
            background-color: #ffffff !important;
            border-bottom: 1px solid #e5e5e5;
            padding: 0.75rem 2rem !important;
            z-index: 1020;
            margin: 0 !important;
            box-sizing: border-box;
            color: #333 !important;
            font-size: 0.95rem !important;
            line-height: 1.4;
            min-height: 2.5rem;
            height: auto;
            overflow: visible !important;
            text-align: left;
            vertical-align: middle;
        }

        /* Ensure dropdowns are always on top of everything */
        .dropdown-menu {
            z-index: 1031 !important;
        }

        .dropdown {
            overflow: visible !important;
        }

        .navbar-top .navbar-collapse {
            overflow: visible !important;
        }

        #divBreadCrumbs.show {
            display: block !important;
            visibility: visible !important;
            opacity: 1 !important;
        }

        #divBreadCrumbs div {
            display: flex !important;
            align-items: center !important;
            gap: 0.5rem !important;
            color: #555 !important;
            font-size: 0.95rem !important;
            font-weight: normal !important;
        }

        #divBreadCrumbs a {
            color: #0d6efd !important;
            text-decoration: none !important;
            font-weight: 500 !important;
            font-size: 0.95rem !important;
            transition: color 0.2s ease !important;
        }

        #divBreadCrumbs a:hover {
            color: #0b5ed7 !important;
            text-decoration: underline !important;
        }

        #divBreadCrumbs span {
            color: #999 !important;
            font-size: 0.95rem !important;
            font-weight: normal !important;
        }

        /* ============================================
           DEBUG PANEL (Bottom-Right Corner)
           ============================================ */
        .debug-panel {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background: rgba(30, 30, 35, 0.95);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(10px);
            z-index: 9999;
            font-family: 'Monaco', 'Courier New', monospace;
            font-size: 12px;
            width: 500px;
            max-width: 90vw;
            height: 400px;
            display: flex;
            flex-direction: column;
            transition: box-shadow 0.3s ease;
            user-select: none;
        }

        .debug-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 12px;
            background: rgba(0, 0, 0, 0.3);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            color: #0d6efd;
            font-weight: bold;
            cursor: move;
            user-select: none;
            flex-shrink: 0;
        }

        .debug-header:hover {
            background: rgba(0, 0, 0, 0.4);
        }

        .debug-toggle {
            background: none;
            border: none;
            color: #0d6efd;
            cursor: pointer;
            font-size: 16px;
            padding: 0;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.3s ease;
        }

        .debug-toggle:hover {
            color: #0a58ca;
            transform: scale(1.2);
        }

        .debug-messages {
            flex: 1;
            overflow-y: auto;
            overflow-x: hidden;
            padding: 10px 12px;
            color: #00ff00;
            line-height: 1.4;
        }

        .debug-message {
            margin: 4px 0;
            padding: 4px;
            border-left: 2px solid #0d6efd;
            padding-left: 8px;
            word-break: break-word;
            white-space: pre-wrap;
        }

        .debug-message.warn {
            color: #ffc107;
            border-left-color: #ffc107;
        }

        .debug-message.error {
            color: #ff6b6b;
            border-left-color: #ff6b6b;
        }

        .debug-message.info {
            color: #00bfff;
            border-left-color: #00bfff;
        }

        /* Collapsed state */
        .debug-panel.collapsed .debug-messages {
            display: none;
        }

        .debug-panel.collapsed {
            height: auto;
            width: auto;
        }

        /* Dragging state */
        .debug-panel.dragging {
            opacity: 0.9;
            box-shadow: 0 12px 48px rgba(13, 110, 253, 0.4);
        }

        /* Mobile responsive */
        @media (max-width: 768px) {
            .debug-panel {
                bottom: 10px;
                right: 10px;
                width: calc(100vw - 20px);
                height: 300px;
            }
        }

        /* Sidebar nav active state fix */

        /* ======================================== 
           REFACTORED INLINE STYLES
           ======================================== */

        /* Navbar brand margin reset */
        .navbar-brand-reset {
            margin-left: 0;
        }

        /* Icon sizing for hamburger/menu */
        .icon-menu {
            font-size: 1.5rem;
            color: #333;
        }

        /* Search input width */
        .search-input-custom {
            width: 200px;
        }

        /* Search icon positioning */
        .search-icon-absolute {
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
        }

        /* Offcanvas width custom */
        .offcanvas-custom-width {
            width: 280px;
        }

        /* Chevron icon small size */
        .chevron-small {
            font-size: 0.8rem;
        }

        /* Chart container height */
        .chart-container-300 {
            height: 300px;
        }

        /* Chart container tall */
        .chart-container-400 {
            height: 400px;
        }

        /* Button no style */
        .btn-no-style {
            background: none;
            border: none;
            outline: none;
        }

        /* Progress bar widths */
        .progress-45 {
            width: 45%;
        }

        .progress-68 {
            width: 68%;
        }

        .progress-82 {
            width: 82%;
        }

        /* Toast Notifications */
        .toast-success {
            background-color: #51cf66;
            color: white;
            border: none;
        }

        .toast-success .toast-header {
            background-color: #40c057;
            color: white;
            border: none;
        }

        .toast-error {
            background-color: #ff6b6b;
            color: white;
            border: none;
        }

        .toast-error .toast-header {
            background-color: #fa5252;
            color: white;
            border: none;
        }

        .toast-info {
            background-color: #4dabf7;
            color: white;
            border: none;
        }

        .toast-info .toast-header {
            background-color: #1c7ed6;
            color: white;
            border: none;
        }

        /* Tabs nav custom styling */
        .nav-tabs-custom {
            border-bottom: 1px solid #dee2e6;
            margin: 0;
            padding: 0.75rem 1rem 0;
        }

        /* Modal body padding custom */
        .modal-body-custom {
            padding: 1.5rem;
        }

        /* Debug toggle disabled state */
        .form-check-input:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .form-check-label.disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

        /* Breadcrumb icon styling */
        .toolbar-icon.disabled {
            opacity: 0.5;
            cursor: not-allowed;
            color: #999;
        }

    </style>
