
        body {
            margin: 0;
            padding: 0;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: #f8f9fa;
            transition: background-color 0.3s ease, color 0.3s ease;
        }

        /* Dark Mode Styles */
        body.dark-mode {
            background-color: #222;
            color: #e0e0e0;
        }

        body.dark-mode .top-bar {
            background-color: #222;
            border-bottom-color: #404040;
            color: #e0e0e0;
        }
  

        body.dark-mode .top-bar h1 {
            color: #e0e0e0;
        }

        body.dark-mode .stats-card {
            background: #2d2d2d;
            border-color: #404040;
            color: #e0e0e0;
        }

        body.dark-mode .stats-card h3 {
            color: #e0e0e0;
        }

        body.dark-mode .stats-card p {
            color: #b0b0b0;
        }

        body.dark-mode .chart-container {
            background: #2d2d2d;
            border-color: #404040;
        }

        body.dark-mode .chart-placeholder {
            background: linear-gradient(45deg, #3a3a3a, #4a4a4a);
            color: #b0b0b0;
        }

        body.dark-mode .recent-activity {
            background: #2d2d2d;
            border-color: #404040;
        }

        body.dark-mode .activity-item {
            border-bottom-color: #404040;
        }

        body.dark-mode .activity-text strong {
            color: #e0e0e0;
        }

        body.dark-mode .activity-time {
            color: #b0b0b0;
        }

        body.dark-mode .btn-light {
            background-color: #404040;
            border-color: #505050;
            color: #e0e0e0;
        }

        body.dark-mode .btn-light:hover {
            background-color: #505050;
            border-color: #606060;
        }

        body.dark-mode .dropdown-menu {
            background-color: #2d2d2d;
            border-color: #404040;
        }

        body.dark-mode .dropdown-item {
            color: #e0e0e0;
        }

        body.dark-mode .dropdown-item:hover {
            background-color: #404040;
            color: #ffffff;
        }

        body.dark-mode .dropdown-divider {
            border-color: #404040;
        }

        body.dark-mode .mobile-toggle {
            color: #e0e0e0;
        }

        body.dark-mode .sidebar-submenu a {
            background-color: rgba(0,0,0,0.2);
            color: rgba(255,255,255,0.7);
        }

        body.dark-mode .sidebar-submenu a:hover {
            background-color: rgba(0,0,0,0.3);
            color: white;
        }
        body.dark-mode .sidebar {
    background-color: white !important;
    color: black !important;
}

body.dark-mode .sidebar .brand h3,
body.dark-mode .sidebar-nav li a,
body.dark-mode .sidebar-nav li a i {
    color: black !important;
}

body.dark-mode .sidebar-nav li a:hover,
body.dark-mode .sidebar-nav li a.active {
    background-color: #f0f0f0 !important;
    color: black !important;
}

body.dark-mode .sidebar-submenu {
    background-color: #f9f9f9 !important;
}

body.dark-mode .sidebar-submenu a {
    color: #333 !important;
    background-color: #f9f9f9 !important;
}

body.dark-mode .sidebar-submenu a:hover {
    background-color: #e0e0e0 !important;
    color: black !important;
}

        .sidebar {
            height: 100vh;
            width: 250px;
            position: fixed;
            top: 0;
            left: 0;
            background-color: #222; 
            color: white;
            overflow-y: auto; /* Keep scroll working */
            z-index: 1000;
            box-shadow: 2px 0 10px rgba(0,0,0,0.1);

            /* Hide scrollbar */
            scrollbar-width: none;        /* Firefox */
            -ms-overflow-style: none;     /* Internet Explorer 10+ */
        }
        .sidebar::-webkit-scrollbar {
            display: none;                /* Chrome, Safari, Opera */
        }

        .sidebar .brand {
            padding: 20px;
            text-align: center;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }

        .sidebar .brand h3
        {
            margin: 0;
            font-weight: 600;
            color: white;
        }

        .sidebar-nav {
            padding: 0;
            margin: 0;
            list-style: none;
        }

        .sidebar-nav li {
            border-bottom: 1px solid rgba(255,255,255,0.05);
        }

        .sidebar-nav li a {
            display: flex;
            align-items: center;
            padding: 15px 20px;
            color: rgba(255,255,255,0.8);
            text-decoration: none;
            transition: all 0.3s ease;
            position: relative;
        }

        .sidebar-nav li a:hover,
        .sidebar-nav li a.active {
            background-color: rgba(255,255,255,0.1);
            color: white;
            transform: translateX(5px);
        }

        .sidebar-nav li a i {
            margin-right: 10px;
            width: 20px;
            text-align: center;
        }

        .sidebar-nav li a .dropdown-arrow {
            transition: transform 0.3s ease;
            font-size: 12px;
        }

        .sidebar-nav li a .dropdown-arrow.rotated {
            transform: rotate(180deg);
        }

        .sidebar-submenu {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease;
            background-color: rgba(0,0,0,0.1);
        }

        .sidebar-submenu.show {
            max-height: 200px;
        }

        .sidebar-submenu a {
            padding: 12px 20px 12px 50px !important;
            background-color: rgba(0,0,0,0.1);
            color: rgba(255,255,255,0.7);
            font-size: 14px;
            transform: none !important;
        }

        .sidebar-submenu a:hover {
            background-color: rgba(0,0,0,0.2);
            color: white;
        }

        .main-content {
            margin-left: 250px;
            min-height: 100vh;
        }

        .top-bar {
            background-color: white;
            padding: 15px 30px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            border-bottom: 1px solid #e9ecef;
            position: sticky;
            top: 0;
            z-index: 999;
        }

        .top-bar h1 {
            margin: 0;
            color: #333;
            font-size: 24px;
            font-weight: 600;
        }

        .content-area {
            padding: 30px;
        }

        .stats-card {
            background: white;
            border-radius: 10px;
            padding: 25px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.05);
            border: 1px solid #e9ecef;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .stats-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.1);
        }

        .stats-card .icon {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            color: white;
            margin-bottom: 15px;
        }

        .stats-card .icon.users {
            background: linear-gradient(45deg, #007bff, #0056b3);
        }

        .stats-card .icon.orders {
            background: linear-gradient(45deg, #28a745, #1e7e34);
        }

        .stats-card .icon.revenue {
            background: linear-gradient(45deg, #ffc107, #e0a800);
        }

        .stats-card .icon.analytics {
            background: linear-gradient(45deg, #17a2b8, #117a8b);
        }

        .stats-card h3 {
            color: #333;
            margin-bottom: 5px;
            font-size: 28px;
            font-weight: 700;
        }

        .stats-card p {
            color: #666;
            margin: 0;
            font-size: 14px;
        }

        .chart-container {
            background: white;
            border-radius: 10px;
            padding: 25px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.05);
            border: 1px solid #e9ecef;
            margin-top: 30px;
        }

        .chart-placeholder {
            height: 300px;
            background: linear-gradient(45deg, #f8f9fa, #e9ecef);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #666;
            font-size: 18px;
        }

        .recent-activity {
            background: white;
            border-radius: 10px;
            padding: 25px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.05);
            border: 1px solid #e9ecef;
            margin-top: 30px;
        }

        .activity-item {
            padding: 15px 0;
            border-bottom: 1px solid #f1f3f4;
            display: flex;
            align-items: center;
        }

        .activity-item:last-child {
            border-bottom: none;
        }

        .activity-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: linear-gradient(45deg, #007bff, #0056b3);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 15px;
        }

        .activity-text {
            flex: 1;
        }

        .activity-time {
            color: #666;
            font-size: 12px;
        }

        @media (max-width: 768px) {
            .sidebar {
                transform: translateX(-100%);
                transition: transform 0.3s ease;
            }
            
            .sidebar.show {
                transform: translateX(0);
            }
            
            .main-content {
                margin-left: 0;
            }
            
            .mobile-toggle {
                display: block !important;
            }

            .mobile-header-actions {
                display: none;
            }

            .mobile-header-actions.show {
                display: flex;
                flex-direction: column;
                position: absolute;
                top: 100%;
                right: 0;
                background: white;
                border-radius: 8px;
                box-shadow: 0 4px 15px rgba(0,0,0,0.1);
                padding: 15px;
                min-width: 200px;
                gap: 10px;
            }

            body.dark-mode .mobile-header-actions.show {
                background: #2d2d2d;
                border: 1px solid #404040;
            }

            .top-bar {
                position: relative;
            }

            .mobile-menu-toggle {
                display: block !important;
            }

            .desktop-header-actions {
                display: none !important;
            }
        }

        @media (min-width: 769px) {
            .mobile-menu-toggle {
                display: none !important;
            }
            
            .desktop-header-actions {
                display: flex !important;
            }
        }

        .mobile-toggle {
            display: none;
            background: none;
            border: none;
            font-size: 20px;
            color: #333;
        }

        .mobile-menu-toggle {
            display: none;
            background: none;
            border: none;
            font-size: 18px;
            color: #333;
            padding: 8px;
        }

        body.dark-mode .mobile-menu-toggle {
            color: #e0e0e0;
        }

        .theme-toggle {
            background: none;
            border: 2px solid #007bff;
            border-radius: 50px;
            padding: 8px 16px;
            color: #007bff;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .theme-toggle:hover {
            background-color: #007bff;
            color: white;
        }

        body.dark-mode .theme-toggle {
            border-color: #4dabf7;
            color: #4dabf7;
        }

        body.dark-mode .theme-toggle:hover {
            background-color: #4dabf7;
            color: #1a1a1a;
        }
