Nethru2002/Employee-management-system ? reverse-engineered prompt

Reverse engineered prompt

Build me a full employee management system for a company, with a clean dark themed interface and separate experiences for admins and employees.

I want users to log in securely, stay signed in, and only see the pages they are allowed to use. Admins should be able to manage departments, add and edit employees, upload profile photos, search and filter records, review salary history, and handle leave requests by approving or rejecting them. Employees should be able to view their own details, request sick, casual, or annual leave, and see the status of those requests.

Please make it feel like a real enterprise app, with responsive screens, tables, modals, badges, and clear status indicators. Use TypeScript throughout, connect it to a MongoDB backed server, and make the backend handle authentication, CRUD operations, file uploads, payroll records, and leave workflows. If you need to check current best practices or docs while building, go ahead and look them up online.