diff --git a/README.md b/README.md
index 7959ce4..063f7b5 100644
--- a/README.md
+++ b/README.md
@@ -1,69 +1,585 @@
-# React + TypeScript + Vite
-
-This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
-
-Currently, two official plugins are available:
-
-- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) for Fast Refresh
-- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
-
-## Expanding the ESLint configuration
-
-If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
-
-```js
-export default tseslint.config([
- globalIgnores(['dist']),
- {
- files: ['**/*.{ts,tsx}'],
- extends: [
- // Other configs...
-
- // Remove tseslint.configs.recommended and replace with this
- ...tseslint.configs.recommendedTypeChecked,
- // Alternatively, use this for stricter rules
- ...tseslint.configs.strictTypeChecked,
- // Optionally, add this for stylistic rules
- ...tseslint.configs.stylisticTypeChecked,
-
- // Other configs...
- ],
- languageOptions: {
- parserOptions: {
- project: ['./tsconfig.node.json', './tsconfig.app.json'],
- tsconfigRootDir: import.meta.dirname,
- },
- // other options...
- },
- },
-])
-```
-
-You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:
-
-```js
-// eslint.config.js
-import reactX from 'eslint-plugin-react-x'
-import reactDom from 'eslint-plugin-react-dom'
-
-export default tseslint.config([
- globalIgnores(['dist']),
- {
- files: ['**/*.{ts,tsx}'],
- extends: [
- // Other configs...
- // Enable lint rules for React
- reactX.configs['recommended-typescript'],
- // Enable lint rules for React DOM
- reactDom.configs.recommended,
- ],
- languageOptions: {
- parserOptions: {
- project: ['./tsconfig.node.json', './tsconfig.app.json'],
- tsconfigRootDir: import.meta.dirname,
- },
- // other options...
- },
- },
-])
+# π FileFlow
+
+
+
+**A Modern, Feature-Rich File Management System**
+
+[](https://reactjs.org/)
+[](https://www.typescriptlang.org/)
+[](https://vitejs.dev/)
+[](https://tailwindcss.com/)
+
+*Upload, organize, share, and manage your files with ease*
+
+
+
+---
+
+## π Table of Contents
+
+- [Overview](#-overview)
+- [Features](#-features)
+- [Tech Stack](#-tech-stack)
+- [Project Structure](#-project-structure)
+- [Getting Started](#-getting-started)
+- [Environment Variables](#-environment-variables)
+- [Core Features](#-core-features)
+- [Architecture](#-architecture)
+- [Available Scripts](#-available-scripts)
+- [Contributing](#-contributing)
+
+---
+
+## π Overview
+
+**FileFlow** is a modern, cloud-based file management system built with React and TypeScript. It provides a seamless experience for uploading, organizing, sharing, and managing files with features like real-time notifications, drag-and-drop uploads, video/image preview, and advanced access control.
+
+### β¨ Why FileFlow?
+
+- **π¨ Beautiful UI**: Modern, responsive design with smooth animations
+- **β‘ Lightning Fast**: Built on Vite for instant hot module replacement
+- **π Secure**: Multi-level access control (Public, Protected, Private)
+- **π± Mobile-First**: Fully responsive across all devices
+- **π― Type-Safe**: 100% TypeScript for better developer experience
+- **π Real-Time**: Socket.io integration for live notifications
+- **π¬ Media Preview**: Built-in video and image viewers
+
+---
+
+## π― Features
+
+### File Management
+- β
**Upload Files**: Drag-and-drop or click to upload single/multiple files
+- β
**Folder Organization**: Create, rename, move folders and files
+- β
**Smart Search**: Quick file search across all directories
+- β
**Bulk Operations**: Select and manage multiple files at once
+- β
**File Sorting**: Sort by size, name, or date
+- β
**Grid/List Views**: Toggle between grid and list layouts
+- β
**Breadcrumb Navigation**: Easy navigation through folder hierarchy
+
+### Access Control
+- π **Three Access Levels**:
+ - **Public**: Accessible to everyone
+ - **Protected**: Accessible to authenticated users
+ - **Private**: PIN-protected, encrypted storage
+- π **PIN Protection**: Secure your private files with a PIN
+- π₯ **File Sharing**: Share files with specific users with permission levels (View, Edit, Admin)
+
+### Media Handling
+- π¬ **Video Player**: Built-in video player with controls (Video.js)
+- πΌοΈ **Image Viewer**: Advanced image viewer with zoom, rotate, and pan
+- π₯ **Smart Downloads**: Downloads with timestamped filenames
+- π― **Thumbnail Generation**: Automatic thumbnail creation for media files
+
+### User Experience
+- π **Real-Time Notifications**: Instant updates for file operations
+- π **Upload Progress**: Real-time upload progress with pause/resume
+- ποΈ **Trash Management**: Soft delete with restore functionality
+- β‘ **Infinite Scroll**: Cursor-based pagination for better performance
+- π **Dark Mode**: System-aware theme switching
+- π± **Responsive Design**: Optimized for mobile, tablet, and desktop
+
+### Additional Features
+- π **Recent Files**: Quick access to recently opened files
+- π€ **Shared Files**: View files shared by you or with you
+- βοΈ **User Settings**: Manage profile, PIN, API tokens
+- π **WebSocket Integration**: Real-time file updates
+- π¨ **Smooth Animations**: Framer Motion for delightful interactions
+
+---
+
+## π οΈ Tech Stack
+
+### Core
+- **[React 19.1.1](https://reactjs.org/)** - UI Framework
+- **[TypeScript 5.8.3](https://www.typescriptlang.org/)** - Type Safety
+- **[Vite 7.1.2](https://vitejs.dev/)** - Build Tool & Dev Server
+
+### Styling & UI
+- **[TailwindCSS 4.1.12](https://tailwindcss.com/)** - Utility-First CSS
+- **[Radix UI](https://www.radix-ui.com/)** - Headless UI Components
+- **[Framer Motion 12.23.12](https://www.framer.com/motion/)** - Animations
+- **[Lucide React](https://lucide.dev/)** - Icon Library
+
+### State Management & Data Fetching
+- **[TanStack React Query 5.85.9](https://tanstack.com/query)** - Server State Management
+- **[Zustand 5.0.7](https://zustand-demo.pmnd.rs/)** - Client State Management
+- **[React Hook Form 7.62.0](https://react-hook-form.com/)** - Form Management
+
+### Routing & Navigation
+- **[React Router DOM 7.8.0](https://reactrouter.com/)** - Client-Side Routing
+
+### API & Real-Time
+- **[Axios 1.11.0](https://axios-http.com/)** - HTTP Client
+- **[Socket.io Client 4.8.1](https://socket.io/)** - Real-Time Communication
+
+### Media & Files
+- **[Video.js 8.23.4](https://videojs.com/)** - Video Player
+- **Custom Image Viewer** - Advanced image manipulation
+
+### Validation & Forms
+- **[Zod 4.0.17](https://zod.dev/)** - Schema Validation
+- **[@hookform/resolvers](https://www.npmjs.com/package/@hookform/resolvers)** - Form Validation Integration
+
+### Notifications
+- **[Sonner 2.0.7](https://sonner.emilkowal.ski/)** - Toast Notifications
+
+---
+
+## π Project Structure
+
+```
+FileFlow/
+βββ src/
+β βββ api/ # API client & endpoints
+β β βββ axios.ts # Axios configuration
+β β βββ file.api.ts # File operations API
+β β βββ notification.api.ts # Notification API
+β β βββ auth.api.ts # Authentication API
+β β
+β βββ components/ # React components
+β β βββ custom/ # Custom UI components
+β β β βββ ImageViewer.tsx # Image preview with zoom/rotate
+β β β βββ ...
+β β βββ file-manager/ # File management components
+β β β βββ FileGrid.tsx # Grid view
+β β β βββ FileList.tsx # List view
+β β β βββ FileManager.tsx # Main file manager
+β β β βββ Toolbar.tsx # Search & filters
+β β β βββ ...
+β β βββ upload/ # Upload-related components
+β β β βββ UploadPopup.tsx # Upload modal
+β β β βββ FileUploader.tsx# Drag-drop uploader
+β β β βββ ...
+β β βββ player/ # Media player components
+β β βββ settings/ # Settings components
+β β βββ session/ # Session & PIN components
+β β βββ sidebar/ # Sidebar navigation
+β β βββ user/ # User-related components
+β β βββ layouts/ # Layout components
+β β βββ error/ # Error components
+β β βββ ui/ # Shadcn UI components
+β β
+β βββ contexts/ # React Context providers
+β β βββ useAuth.tsx # Authentication context
+β β βββ fileContext.tsx # File management state
+β β βββ UploadContext.tsx # Upload state & queue
+β β βββ NotificationContext.tsx # Notification state
+β β βββ SocketContext.tsx # WebSocket connection
+β β βββ ThemeContext.tsx # Theme management
+β β βββ ...
+β β
+β βββ hooks/ # Custom React hooks
+β β βββ useFileDownload.tsx # File download logic
+β β βββ useFileUpload.tsx # Upload logic
+β β βββ useTheme.tsx # Theme hook
+β β βββ ...
+β β
+β βββ pages/ # Page components
+β β βββ all-files-page.tsx # All files view
+β β βββ private-files-page.tsx # Private files
+β β βββ deleted-files-page.tsx # Trash
+β β βββ shared-files-page.tsx # Shared files
+β β βββ notifications-page.tsx # Notifications
+β β βββ ...
+β β
+β βββ routes/ # Route components
+β β βββ auth/ # Authentication routes
+β β βββ Home.tsx # Dashboard
+β β βββ AllFiles.tsx # Files route wrapper
+β β βββ ...
+β β
+β βββ lib/ # Utility libraries
+β β βββ utils.ts # Helper functions
+β β βββ video-utils.ts # Video utilities
+β β βββ image-utils.ts # Image utilities
+β β βββ ...
+β β
+β βββ types/ # TypeScript types
+β β βββ file.types.ts # File-related types
+β β βββ file-manager.ts # File manager types
+β β βββ user.types.ts # User types
+β β βββ ...
+β β
+β βββ config/ # Configuration files
+β β βββ page-configs.ts # Page configurations
+β β
+β βββ store/ # Zustand stores
+β β βββ auth.store.ts # Auth state
+β β
+β βββ css/ # Stylesheets
+β β βββ App.css # Global styles
+β β
+β βββ App.tsx # Root component
+β βββ main.tsx # Entry point
+β
+βββ public/ # Static assets
+βββ components.json # Shadcn UI config
+βββ tailwind.config.js # Tailwind configuration
+βββ tsconfig.json # TypeScript config
+βββ vite.config.ts # Vite configuration
+βββ package.json # Dependencies
+βββ README.md # This file
+```
+
+---
+
+## π Getting Started
+
+### Prerequisites
+
+- **Bun.js** >= 1.0.0
+- **Backend API** running (FileFlow Backend)
+
+### Installation
+
+1. **Clone the repository**
+ ```bash
+ git clone https://github.com/venu123143/fileflow.git
+ cd fileflow/FileFlow
+ ```
+
+2. **Install dependencies**
+ ```bash
+ npm install
+ # or
+ yarn install
+ ```
+
+3. **Set up environment variables**
+ ```bash
+ cp .env.example .env
+ ```
+ Edit `.env` with your configuration (see [Environment Variables](#-environment-variables))
+
+4. **Start development server**
+ ```bash
+ npm run dev
+ # or
+ yarn dev
+ ```
+
+5. **Open your browser**
+ ```
+ http://localhost:5173
+ ```
+
+---
+
+## π Environment Variables
+
+Create a `.env` file in the root directory:
+
+```env
+# API Configuration
+VITE_API_BASE_URL=http://localhost:3000/api/v1
+VITE_API_CDN_URL=https://cdn.yourdomain.com
+
+# WebSocket Configuration
+VITE_SOCKET_URL=http://localhost:3000
+
+# Optional: Feature Flags
+VITE_ENABLE_VIDEO_PLAYER=true
+VITE_ENABLE_IMAGE_VIEWER=true
+```
+
+### Variable Descriptions
+
+| Variable | Description | Default |
+|----------|-------------|---------|
+| `VITE_API_BASE_URL` | Backend API base URL | - |
+| `VITE_API_CDN_URL` | CDN URL for file storage | - |
+| `VITE_SOCKET_URL` | WebSocket server URL | - |
+
+---
+
+## π‘ Core Features
+
+### 1. File Upload System
+
+```typescript
+// Multi-file upload with drag & drop
+- Chunked upload for large files
+- Real-time progress tracking
+- Pause/resume functionality
+- Automatic retry on failure
+- Thumbnail generation
+```
+
+### 2. Access Level Management
+
+```typescript
+export const ACCESS_LEVEL = {
+ PUBLIC: 'public', // Anyone can access
+ PROTECTED: 'protected', // Authenticated users
+ PRIVATE: 'private' // PIN-protected
+}
+```
+
+### 3. File Download
+
+```typescript
+// Download with timestamped filenames
+// Example: document.pdf β document_17234.pdf
+- CORS-aware fallback mechanism
+- Folder download prevention
+- Batch download support
+```
+
+### 4. Real-Time Notifications
+
+```typescript
+// Socket.io events
+- 'notification:new' β New notification
+- 'last_accessed' β File access tracking
+- Cursor-based pagination for performance
+```
+
+---
+
+## ποΈ Architecture
+
+### State Management
+
+**Context API + React Query + Zustand**
+
+```
+βββββββββββββββββββββββββββββββββββββββββββ
+β Application State β
+βββββββββββββββββββββββββββββββββββββββββββ€
+β AuthContext (Zustand) β
+β ββ User authentication β
+β ββ Session management β
+β β
+β FileContext (React Query) β
+β ββ File CRUD operations β
+β ββ Folder navigation β
+β ββ Cache management β
+β β
+β UploadContext (React Context) β
+β ββ Upload queue β
+β ββ Progress tracking β
+β ββ Chunk management β
+β β
+β NotificationContext (React Query) β
+β ββ Notification list β
+β ββ Unread count β
+β ββ Mark as read β
+β β
+β SocketContext (WebSocket) β
+β ββ Real-time events β
+βββββββββββββββββββββββββββββββββββββββββββ
+```
+
+### Data Flow
+
+```
+User Action β Component β Context/Hook β API Client β Backend
+ β β
+ UI Update β React Query Cache β Response ββββ
+ β
+ WebSocket Event β Update State β Re-render
+```
+
+### Routing Strategy
+
+```typescript
+// Protected Routes
+
+ ββ / # Dashboard
+ ββ /all-files # All files
+ ββ /private-files # Private files (PIN required)
+ ββ /deleted-files # Trash
+ ββ /shared-files # Shared files
+ ββ /notifications # Notifications
+ ββ /settings # User settings
+
+
+// Public Routes
+ββ /login # Login page
+ββ /register # Registration
+ββ /unauthorized # Access denied
+```
+
+---
+
+## π Available Scripts
+
+### Development
+
+```bash
+npm run dev # Start development server (http://localhost:5173)
+npm run build # Build for production
+npm run preview # Preview production build
+npm run lint # Run ESLint
+```
+
+### Build
+
+```bash
+npm run build # TypeScript check + Vite build
+# Output: dist/
+```
+
+---
+
+## π¨ Component Examples
+
+### File Manager Integration
+
+```tsx
+import { FileManager } from '@/components/file-manager/FileManager';
+
+
+```
+
+### Upload Integration
+
+```tsx
+import { useUpload } from '@/contexts/UploadContext';
+
+const { addToQueue, uploadFiles } = useUpload();
+
+// Add files to queue
+addToQueue(files, {
+ folder_id: currentFolderId,
+ access_level: ACCESS_LEVEL.PROTECTED
+});
+```
+
+### Custom Hooks Usage
+
+```tsx
+import { useFileDownload } from '@/hooks/useFileDownload';
+
+const { downloadFile, downloadMultipleFiles } = useFileDownload();
+
+// Download single file
+await downloadFile(fileItem);
+
+// Download multiple files
+await downloadMultipleFiles([file1, file2, file3]);
+```
+
+---
+
+## π Security Features
+
+- β
JWT-based authentication
+- β
PIN protection for private files
+- β
Role-based access control (RBAC)
+- β
Secure file storage with access levels
+- β
API token management
+- β
Session timeout handling
+- β
CORS protection
+- β
XSS prevention
+
+---
+
+## π Browser Support
+
+| Browser | Version |
+|---------|---------|
+| Chrome | Latest |
+| Firefox | Latest |
+| Safari | Latest |
+| Edge | Latest |
+
+---
+
+## π± Responsive Breakpoints
+
+```typescript
+sm: 640px // Mobile landscape / Tablet
+md: 768px // Tablet
+lg: 1024px // Desktop
+xl: 1280px // Large desktop
+2xl: 1536px // Extra large desktop
```
+
+---
+
+## π€ Contributing
+
+Contributions are welcome! Please feel free to submit a Pull Request.
+
+1. Fork the project
+2. Create your feature branch (`git checkout -b feature/AmazingFeature`)
+3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)
+4. Push to the branch (`git push origin feature/AmazingFeature`)
+5. Open a Pull Request
+
+---
+
+## π Code Style
+
+This project uses:
+- **ESLint** for linting
+- **TypeScript** for type checking
+- **Prettier** (recommended) for code formatting
+
+---
+
+## π Known Issues & Limitations
+
+- CORS issues with some CDN configurations (fallback mechanism in place)
+- Large file uploads (>1GB) may require chunking optimization
+- Mobile pinch-to-zoom on image viewer needs refinement
+
+---
+
+## πΊοΈ Roadmap
+
+- [ ] Offline mode support
+- [ ] File versioning
+- [ ] Advanced search filters
+- [ ] Collaborative editing
+- [ ] File encryption at rest
+- [ ] Integration with cloud storage (Google Drive, Dropbox)
+- [ ] Mobile app (React Native)
+- [ ] AI-powered file tagging
+
+---
+
+## π License
+
+This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
+
+---
+
+## π¨βπ» Author
+
+**Your Name**
+- GitHub: [@yourusername](https://github.com/yourusername)
+- Email: your.email@example.com
+
+---
+
+## π Acknowledgments
+
+- [Radix UI](https://www.radix-ui.com/) for accessible components
+- [Shadcn UI](https://ui.shadcn.com/) for component inspiration
+- [TanStack](https://tanstack.com/) for amazing developer tools
+- The React community for continuous innovation
+
+---
+
+
+
+**Built with β€οΈ using React + TypeScript + Vite**
+
+[β¬ Back to Top](#-fileflow)
+
+