
        /* Apply theme variables from order_detail.css */
        :root {
            --primary: #c6b49b;
            --secondary: #1b1b1b;
            --accent1: #979E7A;
            --accent2: #4A593D;
            --gold: #6a5d3e;
            --accent3: #F1F0E8;
            --accent4: #D15910;
            --text-light: #333;
            --text-dark: #f8f8f8;
            --bg-light: #ffffff;
            --bg-dark: #1b1b1b;
            --card-bg-light: #f9f9f9;
            --card-bg-dark: #2a2a2a;
            --blue: #2b394f;
            --transition: all 0.3s ease;
            --bg: var(--bg-light);
            --text: var(--text-light);
            --card-bg: var(--card-bg-light);
        }

        /* Main container styling */
        .customer-dashboard {
            padding: 2rem 5%;
            background: linear-gradient(135deg, var(--accent2) 0%, var(--bg-light) 50%, var(--accent3) 100%);
            min-height: 100vh;
            font-family: 'Inter', 'Segoe UI', sans-serif;
        }

        /* Enhanced Header */
        .dashboard-header {
            background: var(--accent2);
            border-radius: 20px;
            padding: 2.5rem;
            margin-bottom: 2rem;
            box-shadow: 
                0 8px 32px rgba(0, 0, 0, 0.08),
                0 2px 8px rgba(0, 0, 0, 0.04);
            border: 1px solid rgba(198, 180, 155, 0.2);
            position: relative;
            overflow: hidden;
            animation: fadeInUp 0.6s ease-out;
            color: #1b1b1b !important;
        }

        .dashboard-header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: var(--accent2);
        }

        .welcome-section {
            display: flex;
            align-items: center;
            gap: 1.5rem;
            margin-bottom: 1.5rem;
        }

         .role-warning a {
            color: var(--accent4);
        }

        .avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--accent4), var(--primary));
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 2rem;
            font-weight: 700;
            box-shadow: 
                0 8px 25px rgba(209, 89, 16, 0.3),
                inset 0 2px 4px rgba(255, 255, 255, 0.3);
            position: relative;
            overflow: hidden;
        }

        .avatar::after {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
            transform: rotate(45deg);
            animation: shimmer 3s infinite;
        }

        @keyframes shimmer {
            0% { transform: translateX(-100%) rotate(45deg); }
            100% { transform: translateX(100%) rotate(45deg); }
        }

        .welcome-text h1 {
            font-size: 2.5rem;
            color: #1b1b1b;
            margin-bottom: 0.5rem;
            font-weight: 700;
        }

        .welcome-text p {
            color: #1b1b1b;
            font-size: 1.1rem;
            margin: 0;
            opacity: 0.8;
        }

       

        /* Dashboard Layout */
        .dashboard-layout {
            display: grid;
            grid-template-columns: 300px 1fr;
            gap: 2rem;
            align-items: start;
        }

        /* Enhanced Sidebar */
        .dashboard-sidebar {
            background: var(--accent2);
            border-radius: 20px;
            padding: 2rem 0;
            box-shadow: 
                0 8px 32px rgba(0, 0, 0, 0.08),
                0 2px 8px rgba(0, 0, 0, 0.04);
            border: 1px solid rgba(198, 180, 155, 0.2);
            position: sticky;
            top: 2rem;
            height: fit-content;
            overflow: hidden;
            animation: fadeInLeft 0.6s ease-out;
        }

        .dashboard-sidebar::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, var(--accent1), var(--accent2));
        }

        .sidebar-nav ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .nav-item {
            margin-bottom: 0.5rem;
            position: relative;
        }

        .nav-link {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 1rem 1.5rem;
            color: var(--accent3);
            text-decoration: none;
            transition: var(--transition);
            position: relative;
            border-left: 4px solid transparent;
            background: transparent;
        }

        .nav-link:hover {
            background: linear-gradient(90deg, rgba(151, 158, 122, 0.1), transparent);
            color: var(--accent3);
            border-left-color: var(--accent1);
            transform: translateX(8px);
        }

        .nav-item.active .nav-link {
            background: linear-gradient(90deg, rgba(151, 158, 122, 0.15), transparent);
            color: var(--accent3);
            border-left-color: var(--accent1);
            font-weight: 600;
        }

        .nav-link i {
            width: 20px;
            text-align: center;
            font-size: 1.2rem;
            color: var(--accent3);
        }

        .nav-badge {
            background: linear-gradient(135deg, var(--accent4), var(--primary));
            color: white;
            border-radius: 20px;
            padding: 0.25rem 0.75rem;
            font-size: 0.8rem;
            font-weight: 600;
            margin-left: auto;
            box-shadow: 0 2px 8px rgba(209, 89, 16, 0.3);
        }

        /* Main Content */
        .dashboard-main {
            min-height: 800px;
            animation: fadeInUp 0.6s ease-out 0.2s both;
        }

        /* Enhanced Filters Section */
        .filters-section {
            background: var(--accent2);
            border-radius: 20px;
            padding: 2rem;
            margin-bottom: 2rem;
            box-shadow: 
                0 8px 32px rgba(0, 0, 0, 0.08),
                0 2px 8px rgba(0, 0, 0, 0.04);
            border: 1px solid rgba(198, 180, 155, 0.2);
            display: flex;
            flex-wrap: wrap;
            gap: 2rem;
            align-items: center;
            position: relative;
            overflow: hidden;
        }

        .filters-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, var(--accent4), var(--primary), var(--accent1));
        }

        .filter-group {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .filter-group label {
            color: var(--accent3);
            font-weight: 600;
            font-size: 0.95rem;
        }

        .status-filter, .sort-filter {
            padding: 0.75rem 1rem;
            border-radius: 12px;
            border: 2px solid var(--primary);
            background: var(--accent3);
            color: var(--secondary);
            font-family: inherit;
            font-size: 0.95rem;
            transition: var(--transition);
            min-width: 180px;
        }

        .status-filter:focus, .sort-filter:focus {
            outline: none;
            border-color: var(--accent4);
            box-shadow: 0 0 0 3px rgba(209, 89, 16, 0.2);
        }

        .search-orders {
            display: flex;
            margin-left: auto;
        }

        .search-input {
            padding: 0.75rem 1rem;
            border-radius: 12px 0 0 12px;
            border: 2px solid var(--primary);
            border-right: none;
            background: var(--accent3);
            color: var(--secondary);
            font-family: inherit;
            font-size: 0.95rem;
            transition: var(--transition);
            min-width: 250px;
        }

        .search-input:focus {
            outline: none;
            border-color: var(--accent4);
            box-shadow: 0 0 0 3px rgba(209, 89, 16, 0.2);
        }

        .search-btn {
            padding: 0.75rem 1.25rem;
            border-radius: 0 12px 12px 0;
            border: 2px solid var(--primary);
            background: linear-gradient(135deg, var(--accent4), var(--primary));
            color: white;
            cursor: pointer;
            transition: var(--transition);
            font-size: 1rem;
        }

        .search-btn:hover {
            background: linear-gradient(135deg, var(--primary), var(--accent4));
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(209, 89, 16, 0.4);
        }

        /* Orders Container */
        .orders-container {
            background: var(--accent2);
            border-radius: 20px;
            padding: 2.5rem;
            box-shadow: 
                0 8px 32px rgba(0, 0, 0, 0.08),
                0 2px 8px rgba(0, 0, 0, 0.04);
            border: 1px solid rgba(198, 180, 155, 0.2);
            position: relative;
            overflow: hidden;
        }

        .orders-container::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, var(--accent4), var(--primary), var(--accent1));
        }

        /* Orders Header */
        .orders-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2.5rem;
            padding-bottom: 1.5rem;
            border-bottom: 2px solid var(--accent3);
        }

        .orders-header h3 {
            margin: 0;
            color: var(--accent3);
            font-size: 1.75rem;
            font-weight: 700;
        }

        .export-btn {
            padding: 0.875rem 1.75rem;
            border-radius: 12px;
            background: linear-gradient(135deg, var(--accent4), var(--primary));
            color: white;
            border: none;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            transition: var(--transition);
            cursor: pointer;
            font-size: 0.95rem;
            font-family: inherit;
        }

        .export-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(209, 89, 16, 0.5);
            background: linear-gradient(135deg, var(--primary), var(--accent4));
        }

        /* Orders Timeline */
        .orders-timeline {
            display: flex;
            flex-direction: column;
            gap: 2rem;
        }

        .order-timeline-item {
            display: flex;
            gap: 2rem;
            animation: fadeInUp 0.6s ease-out;
        }

        .timeline-marker {
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative;
        }

        .marker-dot {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            border: 3px solid var(--accent3);
            background: var(--accent3);
            z-index: 2;
            transition: var(--transition);
        }

        .marker-dot.pending { 
            background: #ffeaa7;
            border-color: #ffeaa7;
        }
        .marker-dot.processing { 
            background: #b6e2f1;
            border-color: #b6e2f1;
        }
        .marker-dot.shipped { 
            background: #b6e2f1;
            border-color: #b6e2f1;
        }
        .marker-dot.delivered { 
            background: #c3e6cb;
            border-color: #c3e6cb;
        }
        .marker-dot.cancelled { 
            background: #f5c6cb;
            border-color: #f5c6cb;
        }

        .timeline-line {
            flex: 1;
            width: 2px;
            background: var(--accent3);
            margin: 0.5rem 0;
        }

        .order-timeline-item:last-child .timeline-line {
            display: none;
        }

        /* Order Card */
        .order-card {
            background: var(--accent3);
            border-radius: 16px;
            padding: 2rem;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
            border: 2px solid transparent;
            transition: var(--transition);
            flex: 1;
        }

        .order-card:hover {
            border-color: var(--primary);
            transform: translateY(-4px);
            box-shadow: 0 8px 25px rgba(198, 180, 155, 0.3);
        }

        .order-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
            padding-bottom: 1.5rem;
            border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        }

        .order-meta h4 {
            margin: 0 0 0.5rem 0;
            color: var(--secondary);
            font-size: 1.5rem;
            font-weight: 700;
        }

        .order-date {
            color: var(--text-light);
            font-size: 0.95rem;
            opacity: 0.8;
        }

        .order-total {
            text-align: right;
        }

        .order-total strong {
            display: block;
            font-size: 1.5rem;
            color: var(--secondary);
            margin-bottom: 0.5rem;
        }

        .order-status-badge {
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-weight: 600;
            font-size: 0.85rem;
            text-transform: capitalize;
            display: inline-block;
        }

        .order-status-badge.pending { 
            background: linear-gradient(135deg, #fff3cd, #ffeaa7);
            color: #856404;
        }
        .order-status-badge.processing { 
            background: linear-gradient(135deg, #d1ecf1, #b6e2f1);
            color: #0c5460;
        }
        .order-status-badge.shipped { 
            background: linear-gradient(135deg, #d1ecf1, #b6e2f1);
            color: #0c5460;
        }
        .order-status-badge.delivered { 
            background: linear-gradient(135deg, #d4edda, #c3e6cb);
            color: #155724;
        }
        .order-status-badge.cancelled { 
            background: linear-gradient(135deg, #f8d7da, #f5c6cb);
            color: #721c24;
        }

        /* Order Products Preview */
        .order-products-preview {
            display: flex;
            gap: 1rem;
            margin-bottom: 1.5rem;
            flex-wrap: wrap;
        }

        .product-preview {
            position: relative;
            width: 60px;
            height: 60px;
            border-radius: 8px;
            overflow: hidden;
            border: 2px solid var(--primary);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            transition: var(--transition);
        }

        .product-preview:hover {
            transform: scale(1.1);
            z-index: 1;
        }

        .product-preview img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .product-quantity {
            position: absolute;
            bottom: -5px;
            right: -5px;
            background: var(--accent4);
            color: white;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.7rem;
            font-weight: 600;
        }

        .more-products-indicator {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 60px;
            height: 60px;
            border-radius: 8px;
            background: var(--primary);
            color: white;
            font-weight: 600;
            font-size: 0.9rem;
        }

        /* Order Progress */
        .order-progress {
            margin-bottom: 1.5rem;
        }

        .progress-steps {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1rem;
            position: relative;
        }

        .progress-steps::before {
            content: '';
            position: absolute;
            top: 30px;
            left: 12.5%;
            right: 12.5%;
            height: 3px;
            background: var(--primary);
            z-index: 1;
        }

        .step {
            text-align: center;
            padding: 1rem 0.5rem;
            border-radius: 12px;
            background: var(--bg-light);
            border: 2px solid transparent;
            transition: var(--transition);
            position: relative;
            z-index: 2;
        }

        .step.completed {
            background: linear-gradient(135deg, var(--accent3), #e8f5e8);
            border-color: var(--accent1);
            transform: scale(1.05);
            box-shadow: 0 4px 15px rgba(151, 158, 122, 0.3);
        }

        .step i {
            font-size: 1.25rem;
            margin-bottom: 0.5rem;
            display: block;
            color: var(--secondary);
        }

        .step.completed i {
            color: var(--accent1);
        }

        .step span {
            font-size: 0.85rem;
            color: var(--text-light);
            font-weight: 500;
        }

        /* Order Actions */
        .order-actions {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
        }

        .btn-secondary, .btn-outline, .btn-primary {
            padding: 0.75rem 1.5rem;
            border-radius: 12px;
            font-weight: 600;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            transition: var(--transition);
            border: none;
            cursor: pointer;
            font-size: 0.9rem;
            font-family: inherit;
        }

        .btn-secondary {
            background: var(--accent2);
            color: var(--accent3);
            border: 2px solid var(--primary);
        }

        .btn-secondary:hover {
            background: var(--primary);
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(198, 180, 155, 0.4);
        }

        .btn-outline {
            background: transparent;
            color: var(--accent4);
            border: 2px solid var(--accent4);
        }

        .btn-outline:hover {
            background: var(--accent4);
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(209, 89, 16, 0.4);
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--accent4), #e67e22);
            color: white;
            box-shadow: 0 4px 15px rgba(209, 89, 16, 0.3);
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(209, 89, 16, 0.5);
            background: linear-gradient(135deg, #e67e22, var(--accent4));
        }

        /* Empty State */
        .empty-state {
            text-align: center;
            padding: 4rem 2rem;
            color: var(--accent3);
        }

        .empty-icon {
            font-size: 4rem;
            margin-bottom: 1.5rem;
            color: var(--primary);
        }

        .empty-state h3 {
            font-size: 1.75rem;
            margin-bottom: 1rem;
        }

        .empty-state p {
            margin-bottom: 2rem;
            opacity: 0.8;
        }

        /* Pagination */
        .pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 0.5rem;
            margin-top: 3rem;
            padding-top: 2rem;
            border-top: 2px solid var(--accent3);
        }

        .page-link {
            padding: 0.75rem 1rem;
            border-radius: 8px;
            background: var(--accent3);
            color: var(--secondary);
            text-decoration: none;
            font-weight: 600;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .page-link:hover {
            background: var(--primary);
            color: white;
            transform: translateY(-2px);
        }

        .page-link.active {
            background: linear-gradient(135deg, var(--accent4), var(--primary));
            color: white;
            box-shadow: 0 4px 15px rgba(209, 89, 16, 0.3);
        }

        /* Animations */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes fadeInLeft {
            from {
                opacity: 0;
                transform: translateX(-30px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        /* Responsive Design */
        @media (max-width: 1200px) {
            .dashboard-layout {
                grid-template-columns: 280px 1fr;
                gap: 1.5rem;
            }
        }

        @media (max-width: 1024px) {
            .dashboard-layout {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }
            
            .dashboard-sidebar {
                position: static;
            }
            
            .progress-steps {
                grid-template-columns: 1fr;
                gap: 1rem;
            }
            
            .progress-steps::before {
                display: none;
            }
        }

        @media (max-width: 768px) {
            .customer-dashboard {
                padding: 1rem;
            }
            
            .dashboard-header {
                padding: 2rem;
            }
            
            .welcome-section {
                flex-direction: column;
                text-align: center;
                gap: 1rem;
            }
            
            .welcome-text h1 {
                font-size: 2rem;
            }
            
            .filters-section {
                flex-direction: column;
                align-items: stretch;
                gap: 1.5rem;
            }
            
            .search-orders {
                margin-left: 0;
            }
            
            .search-input {
                min-width: auto;
            }
            
            .order-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 1rem;
            }
            
            .order-total {
                text-align: left;
            }
            
            .order-actions {
                justify-content: center;
            }
            
            .orders-container {
                padding: 2rem;
            }
        }

        @media (max-width: 480px) {
            .customer-dashboard {
                padding: 0.5rem;
            }
            
            .welcome-text h1 {
                font-size: 1.75rem;
            }
            
            .avatar {
                width: 70px;
                height: 70px;
                font-size: 1.75rem;
            }
            
            .orders-container {
                padding: 1.5rem;
            }
            
            .order-card {
                padding: 1.5rem;
            }
            
            .order-timeline-item {
                flex-direction: column;
                gap: 1rem;
            }
            
            .timeline-marker {
                flex-direction: row;
                align-items: center;
                width: 100%;
            }
            
            .timeline-line {
                width: 100%;
                height: 2px;
                margin: 0 0.5rem;
            }
            
            .order-timeline-item:last-child .timeline-line {
                display: block;
            }
        