{"version":3,"file":"Student_library_chapter.Bu9OGQR7.mjs","names":["React.useRef","React.useState","useState","json","Footer","_Fragment","NavBar","firebaseAuthUrl","p","useRef","React.Component","firebaseAppUrl","firebaseConfig","color","x","h","w","React.startTransition"],"sources":["https:/framer.com/m/Footer-WHmQ.js","https:/framerusercontent.com/modules/7BH6YLDbCIVsCXWzyAyX/UznSIilWFWO81sqqufv5/Student_library_chapter.js"],"sourcesContent":["/*\n * Footer\n *\n * Learn More: https://www.framer.com/asset-urls\n */\n\nexport * from \"https://framerusercontent.com/modules/Az4C61UB319YDyLQA1EQ/1xClYtj5mvGP2NzzVMAg/f_zJq2aB2.js\"\nexport { default } from \"https://framerusercontent.com/modules/Az4C61UB319YDyLQA1EQ/1xClYtj5mvGP2NzzVMAg/f_zJq2aB2.js\"\n","// @ts-nocheck\n// @ts-nocheck\n// @ts-nocheck\n// @ts-nocheck\n// @ts-nocheck\n// @ts-nocheck\n// @ts-nocheck\n// @ts-nocheck\n// @ts-nocheck\n// @ts-nocheck\nimport{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{createPortal}from\"react-dom\";import NavBar from\"https://framer.com/m/Nav-Bar-jXp2.js\";import Footer from\"https://framer.com/m/Footer-WHmQ.js\";import*as React from\"react\";import{useEffect,useState,useRef}from\"react\";// --- API Configuration ---\nconst getApiBaseUrl=()=>{if(typeof window!==\"undefined\"){const params=new URLSearchParams(window.location.search);const queryApiUrl=params.get(\"apiUrl\")||params.get(\"api\");if(queryApiUrl){if(queryApiUrl===\"clear\"||queryApiUrl===\"reset\"||queryApiUrl===\"default\"){localStorage.removeItem(\"PAATHSHALA_API_URL_OVERRIDE\");}else{localStorage.setItem(\"PAATHSHALA_API_URL_OVERRIDE\",queryApiUrl);return queryApiUrl;}}const storedApiUrl=localStorage.getItem(\"PAATHSHALA_API_URL_OVERRIDE\");if(storedApiUrl){return storedApiUrl;}if(window.location.hostname===\"localhost\"||window.location.hostname===\"127.0.0.1\"){return\"http://localhost:5201/api/v1\";}}return\"https://paathshala-bf93b.uc.r.appspot.com/api/v1\";};const BASE_API_URL=getApiBaseUrl();const API_BASE_URL=`${BASE_API_URL}/studentLibrary`;const getAuthHeaders=async()=>{const headers={\"Content-Type\":\"application/json\"};try{if(typeof window!==\"undefined\"){let token=window.firebaseToken;if(!token){token=localStorage.getItem(\"firebaseToken\");}if(!token){const firebaseAuthUrl=\"https://www.gstatic.com/firebasejs/10.13.0/firebase-auth.js\";try{const{getAuth}=await import(firebaseAuthUrl);const auth=getAuth();if(auth.currentUser){token=await auth.currentUser.getIdToken();}}catch(authError){console.warn(\"Could not get Firebase Auth instance (app likely not initialized):\",authError);}}if(token){headers[\"Authorization\"]=`Bearer ${token}`;}}}catch(e){console.error(\"Error getting auth headers:\",e);}return headers;};// --- PDF Bounding Box Extractor Helper ---\nconst extractBoundingBoxesFromPdf=async(pdfUrl,chunks,onUpdate)=>{try{console.log(\"[PDF-Extractor] Starting extraction from URL:\",pdfUrl);let pdfjsLib=window.pdfjsLib;if(!pdfjsLib){await new Promise((resolve,reject)=>{const existingScript=document.getElementById(\"pdfjs-script-extractor\");if(existingScript){let iv=setInterval(()=>{if(window.pdfjsLib){clearInterval(iv);resolve();}},100);return;}const script=document.createElement(\"script\");script.id=\"pdfjs-script-extractor\";script.src=\"https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.16.105/pdf.min.js\";script.onload=()=>{const lib=window.pdfjsLib;lib.GlobalWorkerOptions.workerSrc=\"https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.16.105/pdf.worker.min.js\";resolve();};script.onerror=()=>reject(new Error(\"Failed to load PDF.js script\"));document.head.appendChild(script);});pdfjsLib=window.pdfjsLib;}if(!pdfjsLib){console.error(\"[PDF-Extractor] pdfjsLib is not loaded\");return;}const loadingTask=pdfjsLib.getDocument(pdfUrl);const pdf=await loadingTask.promise;const numPages=Math.min(pdf.numPages,30);console.log(`[PDF-Extractor] PDF loaded. Total pages: ${pdf.numPages}, parsing first ${numPages}`);const pageTexts=[];for(let pageNum=1;pageNum<=numPages;pageNum++){try{const page=await pdf.getPage(pageNum);const viewport=page.getViewport({scale:1});const textContent=await page.getTextContent();const validItems=textContent.items.filter(item=>item.str&&item.str.trim()!==\"\");const itemsWithCoords=validItems.map(item=>{const tx=item.transform[4];const ty=item.transform[5];const tw=item.width;const th=item.height||item.transform[3];const[vx0,vy0]=viewport.convertToViewportPoint(tx,ty+th);const[vx1,vy1]=viewport.convertToViewportPoint(tx+tw,ty);return{text:item.str,vx0,vy0,vx1,vy1,left:vx0/viewport.width*100,top:vy0/viewport.height*100,right:vx1/viewport.width*100,bottom:vy1/viewport.height*100,th};});let pageText=\"\";const charToItemIndex=[];for(let idx=0;idx<itemsWithCoords.length;idx++){const item=itemsWithCoords[idx];const startIdx=pageText.length;pageText+=item.text+\" \";const endIdx=pageText.length;for(let i=startIdx;i<endIdx;i++){charToItemIndex[i]=idx;}}let cleanPageText=\"\";const cleanIndexToOriginalIndex=[];for(let i=0;i<pageText.length;i++){const char=pageText[i].toLowerCase();if(/[a-z0-9]/.test(char)){cleanIndexToOriginalIndex.push(i);cleanPageText+=char;}}pageTexts.push({pageNum,itemsWithCoords,pageText,cleanPageText,cleanIndexToOriginalIndex,charToItemIndex});}catch(err){console.error(`[PDF-Extractor] Error parsing page ${pageNum}:`,err);}}const resultBoxesMap={};for(let index=0;index<chunks.length;index++){const chunk=chunks[index];const chunkId=chunk._id||chunk.id||`p_${index}`;const cleanText=(chunk.text?chunk.text.replace(RegExp(\"^\\\\[.*?\\\\]\\\\n\\\\n\",\"s\"),\"\").trim():\"\").toLowerCase();let cleanChunkText=\"\";for(let i=0;i<cleanText.length;i++){const char=cleanText[i];if(/[a-z0-9]/.test(char)){cleanChunkText+=char;}}if(!cleanChunkText){continue;}let bestMatchPageNum=-1;let bestMatchStart=-1;let bestMatchEnd=-1;// 1. Exact Substring Search\nfor(const pageInfo of pageTexts){const idx=pageInfo.cleanPageText.indexOf(cleanChunkText);if(idx!==-1){bestMatchPageNum=pageInfo.pageNum;bestMatchStart=idx;bestMatchEnd=idx+cleanChunkText.length-1;break;}}// 2. Fallback: Prefix / Suffix Search\nif(bestMatchPageNum===-1&&cleanChunkText.length>80){const prefix=cleanChunkText.substring(0,40);const suffix=cleanChunkText.substring(cleanChunkText.length-40);for(const pageInfo of pageTexts){const pIdx=pageInfo.cleanPageText.indexOf(prefix);const sIdx=pageInfo.cleanPageText.lastIndexOf(suffix);if(pIdx!==-1&&sIdx!==-1&&sIdx>=pIdx){bestMatchPageNum=pageInfo.pageNum;bestMatchStart=pIdx;bestMatchEnd=sIdx+suffix.length-1;break;}}}// 3. Fallback: Segment Match\nif(bestMatchPageNum===-1){const segments=cleanText.split(/[.\\n]+/).map(s=>s.replace(/[^a-z0-9]/g,\"\")).filter(s=>s.length>25);let bestPage=-1;let bestPageSegCount=0;let bestPageStartIdx=-1;let bestPageEndIdx=-1;for(const pageInfo of pageTexts){let matchedSegs=0;let firstSegIdx=-1;let lastSegIdx=-1;for(const seg of segments){const idx=pageInfo.cleanPageText.indexOf(seg);if(idx!==-1){matchedSegs++;if(firstSegIdx===-1||idx<firstSegIdx)firstSegIdx=idx;if(idx>lastSegIdx)lastSegIdx=idx+seg.length-1;}}if(matchedSegs>bestPageSegCount&&matchedSegs>=Math.min(2,segments.length)){bestPageSegCount=matchedSegs;bestPage=pageInfo.pageNum;bestPageStartIdx=firstSegIdx;bestPageEndIdx=lastSegIdx;}}if(bestPage!==-1){bestMatchPageNum=bestPage;bestMatchStart=bestPageStartIdx;bestMatchEnd=bestPageEndIdx;}}// Group matching items into lines\nif(bestMatchPageNum!==-1){const pageInfo=pageTexts.find(p=>p.pageNum===bestMatchPageNum);const origStart=pageInfo.cleanIndexToOriginalIndex[bestMatchStart];const origEnd=pageInfo.cleanIndexToOriginalIndex[bestMatchEnd];const itemIndices=new Set;for(let i=origStart;i<=origEnd;i++){if(pageInfo.charToItemIndex[i]!==undefined){itemIndices.add(pageInfo.charToItemIndex[i]);}}const matchedItems=Array.from(itemIndices).map(idx=>pageInfo.itemsWithCoords[idx]);if(matchedItems.length>0){matchedItems.sort((a,b)=>a.vy0-b.vy0);const minLeft=Math.max(0,Math.min(...matchedItems.map(it=>it.left)));const maxRight=Math.min(100,Math.max(...matchedItems.map(it=>it.right)));const minTop=Math.max(0,Math.min(...matchedItems.map(it=>it.top)));const maxBottom=Math.min(100,Math.max(...matchedItems.map(it=>it.bottom)));resultBoxesMap[chunkId]=[{page:bestMatchPageNum,x0:minLeft,y0:minTop,x1:maxRight,y1:maxBottom}];}}}console.log(\"[PDF-Extractor] Completed coordinate extraction. Successfully mapped chunks:\",Object.keys(resultBoxesMap).length);onUpdate(resultBoxesMap);}catch(error){console.error(\"[PDF-Extractor] Failed to extract bounding boxes:\",error);}};const FlashcardScreen=({data,onBack,chapterTitle})=>{const[currentIndex,setCurrentIndex]=useState(0);const[isFlipped,setIsFlipped]=useState(false);const[showResults,setShowResults]=useState(false);const[correctCount,setCorrectCount]=useState(0);const[reviewCount,setReviewCount]=useState(0);// Swipe state\nconst[swipeState,setSwipeState]=useState({x:0,y:0,rotation:0,opacity:1});const[isDragging,setIsDragging]=useState(false);const dragStartX=useRef(0);const dragStartY=useRef(0);const cardRef=useRef(null);const handleFlip=()=>{if(!isDragging)setIsFlipped(!isFlipped);};// Swipe Logic\nconst handleMouseDown=e=>{setIsDragging(true);dragStartX.current=e.clientX;dragStartY.current=e.clientY;};const handleTouchStart=e=>{setIsDragging(true);dragStartX.current=e.touches[0].clientX;dragStartY.current=e.touches[0].clientY;};const handleMouseMove=e=>{if(!isDragging)return;const deltaX=e.clientX-dragStartX.current;const deltaY=e.clientY-dragStartY.current;setSwipeState({x:deltaX,y:deltaY,rotation:deltaX*.1,opacity:1-Math.abs(deltaX)/500});};const handleTouchMove=e=>{if(!isDragging)return;const deltaX=e.touches[0].clientX-dragStartX.current;const deltaY=e.touches[0].clientY-dragStartY.current;setSwipeState({x:deltaX,y:deltaY,rotation:deltaX*.1,opacity:1-Math.abs(deltaX)/500});};const handleMouseUp=()=>{if(!isDragging)return;const threshold=100;if(swipeState.x>threshold)swipeRight();else if(swipeState.x<-threshold)swipeLeft();else resetSwipe();setIsDragging(false);};const handleTouchEnd=()=>handleMouseUp();const resetSwipe=()=>setSwipeState({x:0,y:0,rotation:0,opacity:1});const swipeRight=()=>{setSwipeState({x:1e3,y:0,rotation:45,opacity:0});setCorrectCount(prev=>prev+1);setTimeout(()=>nextCard(),300);};const swipeLeft=()=>{setSwipeState({x:-1e3,y:0,rotation:-45,opacity:0});setReviewCount(prev=>prev+1);setTimeout(()=>nextCard(),300);};const nextCard=()=>{if(currentIndex<data.length-1){setCurrentIndex(prev=>prev+1);setIsFlipped(false);resetSwipe();}else{setShowResults(true);}};const handleRestart=()=>{setCurrentIndex(0);setCorrectCount(0);setReviewCount(0);setShowResults(false);setIsFlipped(false);resetSwipe();};if(showResults){const totalCards=correctCount+reviewCount;const correctPercentage=totalCards>0?correctCount/totalCards*100:0;return /*#__PURE__*/_jsxs(\"div\",{className:\"flashcard-screen results-view\",children:[/*#__PURE__*/_jsxs(\"div\",{className:\"header\",children:[/*#__PURE__*/_jsx(\"button\",{className:\"back-btn\",onClick:onBack,children:/*#__PURE__*/_jsx(\"svg\",{width:\"24\",height:\"24\",viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M15 18L9 12L15 6\"})})}),/*#__PURE__*/_jsx(\"h1\",{className:\"header-title\",children:\"Results\"}),/*#__PURE__*/_jsx(\"div\",{style:{width:40}})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"results-content\",children:[/*#__PURE__*/_jsxs(\"div\",{className:\"progress-card\",children:[/*#__PURE__*/_jsx(\"h2\",{className:\"section-title\",style:{color:\"#333\"},children:\"Your Progress\"}),/*#__PURE__*/_jsxs(\"div\",{className:\"progress-stats\",children:[/*#__PURE__*/_jsxs(\"div\",{className:\"donut-chart\",children:[/*#__PURE__*/_jsxs(\"svg\",{width:\"120\",height:\"120\",viewBox:\"0 0 120 120\",style:{transform:\"rotate(-90deg)\"},children:[/*#__PURE__*/_jsx(\"circle\",{cx:\"60\",cy:\"60\",r:\"50\",fill:\"none\",stroke:\"#fecaca\",strokeWidth:\"20\"}),/*#__PURE__*/_jsx(\"circle\",{cx:\"60\",cy:\"60\",r:\"50\",fill:\"none\",stroke:\"#86efac\",strokeWidth:\"20\",strokeDasharray:`${correctPercentage*3.14} ${314-correctPercentage*3.14}`})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"donut-text\",children:[Math.round(correctPercentage),\"%\"]})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"stats-text\",children:[/*#__PURE__*/_jsxs(\"div\",{className:\"stat-row\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"dot green\"}),\" Know:\",\" \",correctCount]}),/*#__PURE__*/_jsxs(\"div\",{className:\"stat-row\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"dot red\"}),\" Not known:\",\" \",reviewCount]})]})]})]}),/*#__PURE__*/_jsx(\"button\",{className:\"restart-btn\",onClick:handleRestart,children:\"Play Again\"})]})]});}const currentCard=data[currentIndex];return /*#__PURE__*/_jsxs(\"div\",{className:\"flashcard-screen\",children:[/*#__PURE__*/_jsxs(\"div\",{className:\"header\",children:[/*#__PURE__*/_jsx(\"button\",{className:\"back-btn\",onClick:onBack,children:/*#__PURE__*/_jsx(\"svg\",{width:\"24\",height:\"24\",viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M15 18L9 12L15 6\"})})}),/*#__PURE__*/_jsx(\"h1\",{className:\"header-title\",children:chapterTitle}),/*#__PURE__*/_jsx(\"div\",{style:{width:40}})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"progress-container\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"progress-bar\",children:/*#__PURE__*/_jsx(\"div\",{className:\"progress-fill\",style:{width:`${(currentIndex+1)/data.length*100}%`}})}),/*#__PURE__*/_jsxs(\"p\",{className:\"progress-text\",children:[currentIndex+1,\" of \",data.length]})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"card-wrapper\",children:[/*#__PURE__*/_jsxs(\"div\",{ref:cardRef,className:`flashcard ${isFlipped?\"flipped\":\"\"}`,onClick:handleFlip,onMouseDown:handleMouseDown,onMouseMove:handleMouseMove,onMouseUp:handleMouseUp,onMouseLeave:handleMouseUp,onTouchStart:handleTouchStart,onTouchMove:handleTouchMove,onTouchEnd:handleTouchEnd,style:{transform:`translateX(${swipeState.x}px) translateY(${swipeState.y}px) rotate(${swipeState.rotation}deg) ${isFlipped?\"rotateY(180deg)\":\"\"}`,opacity:swipeState.opacity,transition:isDragging?\"none\":\"all 0.3s ease\",cursor:isDragging?\"grabbing\":\"pointer\"},children:[/*#__PURE__*/_jsxs(\"div\",{className:\"card-face card-front\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"card-content\",children:/*#__PURE__*/_jsx(\"h2\",{children:currentCard.question})}),/*#__PURE__*/_jsx(\"p\",{className:\"tap-hint\",children:\"Tap to see answer\"})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"card-face card-back\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"card-content\",children:/*#__PURE__*/_jsx(\"p\",{className:\"answer-text\",children:currentCard.answer})}),/*#__PURE__*/_jsx(\"p\",{className:\"tap-hint\",children:\"Tap to flip back\"})]})]}),swipeState.x<-50&&/*#__PURE__*/_jsx(\"div\",{className:\"swipe-indicator left\",children:\"DON'T KNOW\"}),swipeState.x>50&&/*#__PURE__*/_jsx(\"div\",{className:\"swipe-indicator right\",children:\"CORRECT\"})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"action-buttons\",children:[/*#__PURE__*/_jsx(\"button\",{className:\"action-btn dont-know\",onClick:swipeLeft,children:/*#__PURE__*/_jsx(\"span\",{children:\"Don't Know\"})}),/*#__PURE__*/_jsx(\"button\",{className:\"action-btn correct\",onClick:swipeRight,children:/*#__PURE__*/_jsx(\"span\",{children:\"Correct\"})})]}),/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:`\n                .flashcard-screen { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 1000; font-family: 'Poppins', sans-serif; background: linear-gradient(135deg, #667eea, #764ba2); display: flex; flex-direction: column; overflow: hidden; }\n                .results-view { background: #f0fdf4; }\n                .header { display: flex; justify-content: space-between; padding: 20px; color: white; align-items: center; }\n                .results-view .header { color: #333; }\n                .back-btn { background: rgba(255,255,255,0.2); border: none; width: 40px; height: 40px; border-radius: 50%; color: inherit; cursor: pointer; display: flex; align-items: center; justify-content: center; }\n                .results-view .back-btn { background: rgba(0,0,0,0.1); }\n                .header-title { font-size: 18px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70%; }\n                \n                .progress-container { padding: 0 20px; margin-bottom: 10px; }\n                .progress-bar { height: 6px; background: rgba(255,255,255,0.3); border-radius: 3px; overflow: hidden; margin-bottom: 5px; }\n                .progress-fill { height: 100%; background: white; transition: width 0.3s; }\n                .progress-text { text-align: center; color: white; font-size: 12px; }\n\n                .card-wrapper { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; perspective: 1000px; }\n                .flashcard { width: 85%; max-width: 360px; height: 60vh; position: relative; transform-style: preserve-3d; }\n                .card-face { position: absolute; width: 100%; height: 100%; background: white; border-radius: 20px; padding: 30px; backface-visibility: hidden; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; box-shadow: 0 10px 25px rgba(0,0,0,0.2); }\n                .card-back { transform: rotateY(180deg); background: #fefce8; }\n                .card-front h2 { font-size: 22px; color: #333; line-height: 1.4; }\n                .answer-text { font-size: 18px; color: #333; line-height: 1.6; }\n                .tap-hint { position: absolute; bottom: 20px; color: #9ca3af; font-size: 12px; }\n                \n                .swipe-indicator { position: absolute; top: 50%; transform: translateY(-50%); padding: 12px 24px; border-radius: 12px; font-weight: 800; font-size: 24px; z-index: 10; letter-spacing: 1px; }\n                .swipe-indicator.left { left: 40px; background: white; color: #ef4444; border: 4px solid #ef4444; transform: translateY(-50%) rotate(-15deg); }\n                .swipe-indicator.right { right: 40px; background: white; color: #22c55e; border: 4px solid #22c55e; transform: translateY(-50%) rotate(15deg); }\n                \n                .action-buttons { padding: 30px; display: flex; gap: 20px; justify-content: center; }\n                .action-btn { flex: 1; padding: 18px; border-radius: 16px; border: none; color: white; font-weight: 600; cursor: pointer; transition: transform 0.1s; font-size: 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.2); }\n                .action-btn:active { transform: scale(0.95); }\n                .dont-know { background: #ef4444; }\n                .correct { background: #22c55e; }\n\n                /* Results Styles */\n                .results-content { padding: 20px; max-width: 500px; margin: 0 auto; width: 100%; }\n                .progress-card { background: white; padding: 30px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); text-align: center; }\n                .progress-stats { display: flex; align-items: center; justify-content: space-around; margin-top: 30px; }\n                .donut-chart { position: relative; width: 120px; height: 120px; }\n                .donut-text { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 24px; color: #333; }\n                .stats-text { text-align: left; }\n                .stat-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 16px; color: #555; }\n                .dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }\n                .dot.green { background: #86efac; }\n                .dot.red { background: #fecaca; }\n                .restart-btn { margin-top: 30px; width: 100%; padding: 18px; background: #6366f1; color: white; border: none; border-radius: 16px; font-weight: bold; font-size: 16px; cursor: pointer; box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3); }\n            `}})]});};// ==================== RIVE ANIMATION HELPERS FOR ANNOUNCEMENTS ====================\nclass RiveErrorBoundary extends React.Component{static getDerivedStateFromError(error){return{hasError:true};}componentDidCatch(error,errorInfo){console.error(\"Rive rendering error:\",error,errorInfo);}render(){if(this.state.hasError){return /*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",justifyContent:\"center\",alignItems:\"center\",height:\"100%\",width:\"100%\",color:\"#64748b\",fontWeight:600},children:\"Animation unavailable\"});}return this.props.children;}constructor(props){super(props);this.state={hasError:false};}}function RiveCanvas({src}){const canvasRef=React.useRef(null);const[loading,setLoading]=React.useState(true);useEffect(()=>{if(typeof window===\"undefined\"||!canvasRef.current)return;let riveInstance=null;const pkg=\"@rive-app/canvas\";const cdn=\"https://esm.sh/@rive-app/canvas\";const initRive=RiveClass=>{if(!canvasRef.current)return;try{riveInstance=new RiveClass({src:src,canvas:canvasRef.current,autoplay:true,onLoad:()=>{riveInstance.resizeDrawingSurfaceToCanvas();setLoading(false);},onLoadError:err=>{console.error(\"Rive load error:\",err);}});}catch(err){console.error(\"Failed to initialize Rive instance:\",err);}};// @ts-ignore\nimport(pkg).then(mod=>{const RiveClass=mod.Rive||mod.default?.Rive||mod.default;if(RiveClass){initRive(RiveClass);}else{console.error(\"Rive class not found in local package\",mod);}}).catch(()=>{// @ts-ignore\nimport(cdn).then(mod=>{const RiveClass=mod.Rive||mod.default?.Rive||mod.default;if(RiveClass){initRive(RiveClass);}else{console.error(\"Rive class not found in CDN\",mod);}}).catch(err=>{console.error(\"Failed to load @rive-app/canvas dynamically\",err);});});return()=>{if(riveInstance){try{riveInstance.cleanup();}catch(e){console.error(\"Error cleaning up Rive instance:\",e);}}};},[src]);return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",width:\"100%\",height:\"100%\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\"},children:[loading&&/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",zIndex:1,color:\"#64748b\",fontWeight:600},children:\"Loading Animation...\"}),/*#__PURE__*/_jsx(\"canvas\",{ref:canvasRef,style:{width:\"100%\",height:\"100%\",display:\"block\"}})]});}// ==================== CHAPTER ANNOUNCEMENTS (NOTICE BOARD) ====================\nfunction ChapterAnnouncements({announcements}){const[quizAnswers,setQuizAnswers]=React.useState({});const handleQuizOptionClick=(questionId,optionIdx,correctIdx)=>{setQuizAnswers(prev=>({...prev,[questionId]:{selectedIdx:optionIdx,correct:optionIdx===correctIdx}}));};if(!announcements||announcements.length===0)return null;return /*#__PURE__*/_jsxs(\"div\",{className:\"announcements-container\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"cd-section-label\",children:\"Notice Board\"}),/*#__PURE__*/_jsx(\"div\",{className:\"announcements-list\",children:announcements.map((ann,annIdx)=>{const{title,description,imageUrl,deeplink,modules=[]}=ann;return /*#__PURE__*/_jsx(\"div\",{className:\"announcement-wrapper\",children:modules.length>0?modules.map((module,idx)=>{switch(module.type){case\"HEADER\":return /*#__PURE__*/_jsx(\"div\",{className:\"header-block\",style:{backgroundImage:`url('${module.imageUrl||\"\"}')`},children:/*#__PURE__*/_jsxs(\"div\",{className:\"header-overlay\",children:[/*#__PURE__*/_jsx(\"h1\",{className:\"header-title\",children:module.title||\"\"}),module.subtitle&&/*#__PURE__*/_jsx(\"p\",{className:\"header-subtitle\",children:module.subtitle})]})},idx);case\"TEXT\":return /*#__PURE__*/_jsx(\"div\",{className:\"card-block text-block\",dangerouslySetInnerHTML:{__html:module.content||\"\"}},idx);case\"TIMELINE\":return /*#__PURE__*/_jsx(\"div\",{className:\"card-block\",children:/*#__PURE__*/_jsx(\"div\",{className:\"timeline-container\",children:(module.items||[]).map((item,itemIdx)=>/*#__PURE__*/_jsxs(\"div\",{className:\"timeline-item\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"timeline-dot\"}),item.year&&/*#__PURE__*/_jsx(\"span\",{className:\"timeline-year-badge\",children:item.year}),/*#__PURE__*/_jsx(\"h3\",{className:\"timeline-item-title\",children:item.title||\"\"}),item.description&&/*#__PURE__*/_jsx(\"p\",{className:\"timeline-item-desc\",children:item.description}),item.imageUrl&&/*#__PURE__*/_jsx(\"img\",{src:item.imageUrl,className:\"timeline-item-img\",alt:\"\"})]},itemIdx))})},idx);case\"VIDEO\":return /*#__PURE__*/_jsx(\"div\",{className:\"video-block\",children:/*#__PURE__*/_jsxs(\"video\",{controls:true,poster:module.posterUrl||\"\",children:[/*#__PURE__*/_jsx(\"source\",{src:module.videoUrl,type:\"video/mp4\"}),\"Your browser does not support the video tag.\"]})},idx);case\"CONCEPT_GRAPH\":return /*#__PURE__*/_jsxs(\"div\",{className:\"card-block\",children:[module.title&&/*#__PURE__*/_jsx(\"h3\",{className:\"concept-graph-title\",children:module.title}),/*#__PURE__*/_jsx(\"div\",{className:\"concept-graph-container\",children:(module.nodes||[]).map((node,nodeIdx)=>{const isFirst=nodeIdx===0;const isLast=nodeIdx===module.nodes.length-1;const isCareer=node.type===\"career\";return /*#__PURE__*/_jsxs(\"div\",{className:\"concept-node-row\",children:[/*#__PURE__*/_jsxs(\"div\",{className:\"concept-node-indicator\",children:[isFirst?/*#__PURE__*/_jsx(\"div\",{style:{height:\"50%\"}}):/*#__PURE__*/_jsx(\"div\",{className:\"concept-node-line-top\"}),/*#__PURE__*/_jsx(\"div\",{className:`concept-node-dot ${isCareer?\"career\":\"concept\"}`}),isLast?/*#__PURE__*/_jsx(\"div\",{style:{height:\"50%\"}}):/*#__PURE__*/_jsx(\"div\",{className:\"concept-node-line-bottom\"})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"concept-node-content\",children:[/*#__PURE__*/_jsxs(\"div\",{className:\"concept-node-header\",children:[/*#__PURE__*/_jsx(\"span\",{className:`concept-node-label ${isCareer?\"career\":\"\"}`,children:node.label}),/*#__PURE__*/_jsx(\"span\",{className:`concept-node-badge ${isCareer?\"career\":\"concept\"}`,children:node.type?node.type.charAt(0).toUpperCase()+node.type.slice(1):\"\"})]}),node.description&&/*#__PURE__*/_jsx(\"p\",{className:\"concept-node-desc\",children:node.description})]})]},nodeIdx);})})]},idx);case\"YOUTUBE\":return /*#__PURE__*/_jsx(\"div\",{className:\"video-block\",style:{position:\"relative\",paddingBottom:\"56.25%\",height:0,overflow:\"hidden\"},children:/*#__PURE__*/_jsx(\"iframe\",{src:`https://www.youtube.com/embed/${module.youtubeId}`,style:{position:\"absolute\",top:0,left:0,width:\"100%\",height:\"100%\",border:0},allow:\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\",allowFullScreen:true,title:\"YouTube video player\"})},idx);case\"RIVE\":return /*#__PURE__*/_jsx(\"div\",{className:\"card-block rive-block\",style:{height:350,position:\"relative\",overflow:\"hidden\"},children:/*#__PURE__*/_jsx(RiveErrorBoundary,{children:/*#__PURE__*/_jsx(RiveCanvas,{src:module.riveUrl})})},idx);case\"QUIZ\":return /*#__PURE__*/_jsxs(\"div\",{className:\"card-block\",children:[/*#__PURE__*/_jsx(\"h3\",{className:\"quiz-title\",children:module.title||\"Interactive Quiz\"}),(module.questions||[]).map((q,qIdx)=>{const questionKey=`${idx}-${qIdx}`;const answerInfo=quizAnswers[questionKey];const hasAnswered=!!answerInfo;return /*#__PURE__*/_jsxs(\"div\",{className:\"quiz-question-card\",children:[/*#__PURE__*/_jsxs(\"h4\",{className:\"quiz-question-title\",children:[\"Question \",qIdx+1,\": \",q.question||\"\"]}),/*#__PURE__*/_jsx(\"div\",{className:\"quiz-options-container\",children:(q.options||[]).map((opt,optIdx)=>{let optClass=\"quiz-option-btn\";if(hasAnswered){optClass+=\" disabled\";if(optIdx===q.answerIndex){optClass+=\" correct\";}else if(answerInfo.selectedIdx===optIdx){optClass+=\" incorrect\";}}return /*#__PURE__*/_jsxs(\"button\",{className:optClass,onClick:()=>handleQuizOptionClick(questionKey,optIdx,q.answerIndex),children:[/*#__PURE__*/_jsx(\"span\",{children:opt}),hasAnswered&&optIdx===q.answerIndex&&/*#__PURE__*/_jsx(\"span\",{children:\"✓\"}),hasAnswered&&answerInfo.selectedIdx===optIdx&&optIdx!==q.answerIndex&&/*#__PURE__*/_jsx(\"span\",{children:\"✗\"})]},optIdx);})}),hasAnswered&&/*#__PURE__*/_jsx(\"div\",{className:`quiz-feedback-box ${answerInfo.correct?\"correct\":\"incorrect\"}`,children:/*#__PURE__*/_jsx(\"span\",{children:answerInfo.correct?\"🎉 Correct Answer! Great job!\":\"❌ Incorrect! Better luck next time.\"})})]},qIdx);})]},idx);case\"ACTION\":return /*#__PURE__*/_jsx(\"div\",{className:\"action-block-center\",children:/*#__PURE__*/_jsx(\"a\",{href:module.actionUrl||\"#\",target:\"_blank\",className:`action-btn ${module.style===\"secondary\"?\"action-btn-secondary\":\"action-btn-primary\"}`,children:module.label||\"Learn More\"})},idx);default:return null;}}):/*#__PURE__*/_jsxs(\"div\",{className:\"card-block text-block\",children:[imageUrl&&/*#__PURE__*/_jsx(\"img\",{src:imageUrl,alt:\"\",style:{width:\"100%\",borderRadius:16,marginBottom:16}}),/*#__PURE__*/_jsx(\"h3\",{style:{marginTop:0,color:\"#0f172a\"},children:title||\"\"}),/*#__PURE__*/_jsx(\"p\",{children:description||\"\"}),deeplink&&/*#__PURE__*/_jsx(\"div\",{className:\"action-block-center\",style:{marginTop:24},children:/*#__PURE__*/_jsx(\"a\",{href:deeplink,className:\"action-btn action-btn-primary\",children:\"Open Link\"})})]})},ann.id||annIdx);})}),/*#__PURE__*/_jsx(\"div\",{className:\"cd-divider\"})]});}// --- HELPER: Confetti Animation ---\nconst triggerConfetti=()=>{if(typeof window===\"undefined\")return;const canvas=document.createElement(\"canvas\");canvas.style.position=\"fixed\";canvas.style.top=\"0\";canvas.style.left=\"0\";canvas.style.width=\"100%\";canvas.style.height=\"100%\";canvas.style.pointerEvents=\"none\";canvas.style.zIndex=\"99999\";document.body.appendChild(canvas);const ctx=canvas.getContext(\"2d\");if(!ctx)return;let width=canvas.width=window.innerWidth;let height=canvas.height=window.innerHeight;const colors=[\"#6366f1\",\"#d946ef\",\"#10b981\",\"#3b82f6\",\"#f59e0b\",\"#ef4444\"];const particles=Array.from({length:80}).map(()=>({x:Math.random()*width,y:Math.random()*height-height,r:Math.random()*6+4,d:Math.random()*height,color:colors[Math.floor(Math.random()*colors.length)],tilt:Math.random()*10-5,tiltAngleIncremental:Math.random()*.07+.02,tiltAngle:0}));const draw=()=>{ctx.clearRect(0,0,width,height);let finished=true;particles.forEach(p=>{p.tiltAngle+=p.tiltAngleIncremental;p.y+=(Math.cos(p.d)+3+p.r/2)/2;p.x+=Math.sin(p.tiltAngle);p.tilt=Math.sin(p.tiltAngle-p.r/2)*5;if(p.y<height)finished=false;ctx.beginPath();ctx.lineWidth=p.r;ctx.strokeStyle=p.color;ctx.moveTo(p.x+p.tilt+p.r/2,p.y);ctx.lineTo(p.x+p.tilt,p.y+p.tilt+p.r/2);ctx.stroke();});if(!finished){requestAnimationFrame(draw);}else{document.body.removeChild(canvas);}};draw();};export const WhiteboardOverlay=({boardId,subjectId,chapterId,onClose,chapterPdfUrl,textbookParagraphs,selectedBlockId,onSelectSection,chapterTitle})=>{const[elements,setElements]=useState([]);// Mitra AI local states\nconst[localSelectedBlockId,setLocalSelectedBlockId]=useState(selectedBlockId||null);const[hoveredSectionId,setHoveredSectionId]=useState(null);const[localSelectedText,setLocalSelectedText]=useState(\"\");const[activeSelectionTab,setActiveSelectionTab]=useState(\"explain\");const[activeTabId,setActiveTabId]=useState(\"explain\");const[selectionLoading,setSelectionLoading]=useState(false);const[selectionError,setSelectionError]=useState(null);const[selectionResponses,setSelectionResponses]=useState({});const[mitraMood,setMitraMood]=useState(\"idle\");const[quizAnswered,setQuizAnswered]=useState(false);const[quizSelectedOption,setQuizSelectedOption]=useState(null);const[rawTextSpeechIndex,setRawTextSpeechIndex]=useState(null);// Visualizer state\nconst[visualizerLoading,setVisualizerLoading]=useState(false);const[visualizerResponse,setVisualizerResponse]=useState(null);const[visualizerError,setVisualizerError]=useState(null);const[diagramPollingHash,setDiagramPollingHash]=useState(null);const diagramIntervalRef=useRef(null);const fetchSelectionAction=async(action,customText)=>{const textToUse=customText||localSelectedText;if(!textToUse)return;setSelectionLoading(true);setSelectionError(null);setMitraMood(\"thinking\");setQuizAnswered(false);setQuizSelectedOption(null);try{const response=await fetch(`${API_BASE_URL}/aiSelectionHelp`,{method:\"POST\",headers:await getAuthHeaders(),body:JSON.stringify({selectedText:textToUse,action,context:chapterTitle})});const result=await response.json();let resultData=result.data;if(action===\"career\"&&resultData&&resultData.careers&&resultData.careers.length>0){const firstCareer=resultData.careers[0];const careerTitle=firstCareer.title||\"Professional Career\";const salaryLpa=firstCareer.startingSalaryLpa||\"6-12\";const exams=firstCareer.entranceExams||[];const description=firstCareer.description||\"\";resultData={careerTitle,salaryLpa,pathway:[\"Prepare for entrance exams: \"+(exams.length>0?exams.join(\", \"):\"Relevant Entrance Exams\"),description||\"Complete required education in this field.\",\"Start professional practice in India.\"],illustration:resultData.imageUrl?`<img src=\"${resultData.imageUrl}\" alt=\"${careerTitle}\" style=\"width: 100%; height: auto; border-radius: 12px;\" />`:defaultCareerIllustration,mitraValues:resultData.mitraValues||{empathy:`Exploring ${careerTitle} is a great step! Let's look at the pathways available to you.`,transparency:`Starting salaries average around ${salaryLpa}. This field is growing in India.`,scientificTemperament:`How would you apply the concepts we just read to a real-world problem in this career?`,curiosity:`Did you know that India has some of the world's leading institutes and research programs in this field?`}};}if(action===\"career\"&&(!resultData||!resultData.careerTitle)){const lowerText=textToUse.toLowerCase();let careerTitle=\"Scientific Analyst\";let salaryLpa=8;let pathway=[\"Choose Science in Class 11-12 & Clear CUET/JEE Main\",\"Pursue B.Sc or B.Tech at a top Indian University (like IIT or Central Universities)\",\"Complete Postgrad/Specialization and secure role in R&D or corporate sector\"];let illustration=defaultCareerIllustration;if(lowerText.includes(\"plant\")||lowerText.includes(\"photosynthesis\")||lowerText.includes(\"biology\")||lowerText.includes(\"nature\")||lowerText.includes(\"cell\")){careerTitle=\"Botanist / Agricultural Scientist\";salaryLpa=9;pathway=[\"Complete Class 12 Science (PCB) & Clear NEET or ICAR AIEEA exam\",\"Complete B.Sc in Agriculture or Botany at top universities like IARI or BHU\",\"Complete M.Sc/Ph.D in Biotechnology and lead crop improvement research in Indian agencies\"];}else if(lowerText.includes(\"space\")||lowerText.includes(\"star\")||lowerText.includes(\"motion\")||lowerText.includes(\"physics\")||lowerText.includes(\"force\")){careerTitle=\"Aerospace Engineer at ISRO\";salaryLpa=14;pathway=[\"Take Class 11-12 with PCM & Clear JEE Main/Advanced with high rank\",\"Pursue Aerospace Engineering at IIST (Indian Institute of Space Science and Technology) or IITs\",\"Pass ISRO centralized recruitment board exam & join as Scientist/Engineer-SC\"];}else if(lowerText.includes(\"experiment\")||lowerText.includes(\"hypothesis\")||lowerText.includes(\"method\")||lowerText.includes(\"test\")){careerTitle=\"Clinical Research Scientist\";salaryLpa=11;pathway=[\"Pass Class 12 in Science stream & clear NEET/CUET\",\"Complete B.Pharm / B.Sc in Biotechnology / MBBS from IITs, AIIMS or Top Pharmacy Colleges\",\"Complete Postgrad in Clinical Research & join Indian pharma giants like Biocon or Cipla\"];}resultData={careerTitle,salaryLpa,pathway,illustration,mitraValues:{empathy:`Exploring ${careerTitle} is a great choice! Curiosity is the key to discovery.`,transparency:`As a ${careerTitle}, your work directly impacts Indian R&D, agricultural yields, or space missions, contributing to national growth.`,scientificTemperament:`How would you set up a double-blind test to prove the efficiency of a new research method in this field?`,curiosity:`Did you know that India's space program ISRO was founded on Independence Day in 1969, and launched its first satellite, Aryabhata, in 1975?`}};}if(resultData){setSelectionResponses(prev=>({...prev,[action]:resultData}));setMitraMood(\"happy\");}}catch(err){console.error(\"fetchSelectionAction failed\",err);setSelectionError(err.message||\"An unexpected error occurred. Please try again.\");setMitraMood(\"idle\");}finally{setSelectionLoading(false);}};const fetchVisualizerAction=async customText=>{const textToUse=customText||localSelectedText;if(!textToUse)return;if(diagramIntervalRef.current){clearInterval(diagramIntervalRef.current);diagramIntervalRef.current=null;}setDiagramPollingHash(null);setVisualizerLoading(true);setVisualizerResponse(null);setVisualizerError(null);setMitraMood(\"thinking\");try{const response=await fetch(`${API_BASE_URL}/aiSelectionHelp`,{method:\"POST\",headers:await getAuthHeaders(),body:JSON.stringify({selectedText:textToUse,action:\"diagram\",context:chapterTitle,subjectId,chapterId})});const result=await response.json();let resultData=result.data;if(resultData&&resultData.status===\"generating\"){const hash=resultData.promptHash;setDiagramPollingHash(hash);setVisualizerLoading(false);const pollInterval=setInterval(async()=>{try{const pollRes=await fetch(`${API_BASE_URL}/aiSelectionHelp/status/${hash}`,{headers:await getAuthHeaders()});if(!pollRes.ok)throw new Error(\"Status check failed\");const pollResult=await pollRes.json();if(pollResult.status===\"completed\"){clearInterval(pollInterval);if(diagramIntervalRef.current===pollInterval){diagramIntervalRef.current=null;}setDiagramPollingHash(null);const title=pollResult.resultData?.title||\"Concept Diagram\";const description=pollResult.resultData?.description||`A visualization illustrating the components and relationships in \"${textToUse}\".`;const imageUrl=pollResult.imageUrl;const finalResultData={title,description,diagramSvg:`<img src=\"${imageUrl}\" alt=\"${title}\" style=\"width: 100%; height: auto; border-radius: 16px; box-shadow: 0 8px 32px rgba(0,0,0,0.2);\" />`,mitraValues:pollResult.resultData?.mitraValues||{empathy:`I've created a custom diagram to make this concept easier to visualize. Visualizing processes helps connect the dots!`,transparency:`Diagrams help simplify complex relationships. Storing this visually will make it 80% easier to recall during exams.`,scientificTemperament:`If you change one key element in this system, what would happen to the rest of the loop?`,curiosity:`Did you know that our brains process visual information up to 60,000 times faster than text?`}};setVisualizerResponse(finalResultData);setMitraMood(\"happy\");}else if(pollResult.status===\"failed\"){clearInterval(pollInterval);if(diagramIntervalRef.current===pollInterval){diagramIntervalRef.current=null;}setDiagramPollingHash(null);setVisualizerError(pollResult.error||\"Failed to generate diagram.\");setMitraMood(\"idle\");}}catch(err){console.error(\"Error polling diagram status:\",err);}},5e3);diagramIntervalRef.current=pollInterval;return;}const hasDiagramUrl=!!(resultData&&resultData.diagramUrl);if(hasDiagramUrl){const title=resultData.title||\"Concept Diagram\";const description=resultData.description||`A visualization illustrating the components and relationships in \"${textToUse}\".`;resultData={title,description,diagramSvg:`<img src=\"${resultData.diagramUrl}\" alt=\"${title}\" style=\"width: 100%; height: auto; border-radius: 16px; box-shadow: 0 8px 32px rgba(0,0,0,0.2);\" />`,mitraValues:resultData.mitraValues||{empathy:`I've created a custom diagram to make this concept easier to visualize. Visualizing processes helps connect the dots!`,transparency:`Diagrams help simplify complex relationships. Storing this visually will make it 80% easier to recall during exams.`,scientificTemperament:`If you change one key element in this system, what would happen to the rest of the loop?`,curiosity:`Did you know that our brains process visual information up to 60,000 times faster than text?`}};}if(!hasDiagramUrl&&(!resultData||!resultData.diagramSvg)){const lowerText=textToUse.toLowerCase();let diagramSvg=defaultDiagramSvg;let title=\"Concept Diagram\";let description=\"A visualization illustrating the components and relationships in this scientific concept.\";if(lowerText.includes(\"photosynthesis\")||lowerText.includes(\"plant\")||lowerText.includes(\"chlorophyll\")){title=\"Process of Photosynthesis\";description=\"Visual representation of how plants convert sunlight, water, and carbon dioxide into energy and oxygen.\";diagramSvg=defaultDiagramSvg;}else if(lowerText.includes(\"scientific method\")||lowerText.includes(\"hypothesis\")||lowerText.includes(\"experiment\")){title=\"The Scientific Method Loop\";description=\"Flowchart detailing the continuous, cyclical steps involved in scientific inquiry and refinement.\";diagramSvg=`\n<svg viewBox=\"0 0 400 300\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" style=\"width: 100%; height: auto; border-radius: 16px; background: #0f172a; box-shadow: 0 8px 32px rgba(0,0,0,0.2);\">\n  <text x=\"20\" y=\"35\" fill=\"#e2e8f0\" font-size=\"14\" font-family=\"Poppins\" font-weight=\"700\">Scientific Method Loop</text>\n  <rect x=\"150\" y=\"50\" width=\"100\" height=\"35\" rx=\"8\" fill=\"#4f46e5\" />\n  <text x=\"200\" y=\"72\" fill=\"#ffffff\" font-size=\"11\" font-family=\"Poppins\" font-weight=\"600\" text-anchor=\"middle\">1. Observation</text>\n  <rect x=\"260\" y=\"110\" width=\"100\" height=\"35\" rx=\"8\" fill=\"#d946ef\" />\n  <text x=\"310\" y=\"132\" fill=\"#ffffff\" font-size=\"11\" font-family=\"Poppins\" font-weight=\"600\" text-anchor=\"middle\">2. Hypothesis</text>\n  <rect x=\"220\" y=\"190\" width=\"100\" height=\"35\" rx=\"8\" fill=\"#06b6d4\" />\n  <text x=\"270\" y=\"212\" fill=\"#ffffff\" font-size=\"11\" font-family=\"Poppins\" font-weight=\"600\" text-anchor=\"middle\">3. Experiment</text>\n  <rect x=\"80\" y=\"190\" width=\"100\" height=\"35\" rx=\"8\" fill=\"#10b981\" />\n  <text x=\"130\" y=\"212\" fill=\"#ffffff\" font-size=\"11\" font-family=\"Poppins\" font-weight=\"600\" text-anchor=\"middle\">4. Analyze / Conclude</text>\n  <rect x=\"40\" y=\"110\" width=\"100\" height=\"35\" rx=\"8\" fill=\"#f59e0b\" />\n  <text x=\"90\" y=\"132\" fill=\"#ffffff\" font-size=\"11\" font-family=\"Poppins\" font-weight=\"600\" text-anchor=\"middle\">5. Refine / Repeat</text>\n  <path d=\"M240 85 Q290 85 300 110\" stroke=\"#818cf8\" stroke-width=\"2\" fill=\"none\" marker-end=\"url(#arrow)\" />\n  <path d=\"M310 145 Q310 175 285 190\" stroke=\"#f472b6\" stroke-width=\"2\" fill=\"none\" marker-end=\"url(#arrow)\" />\n  <path d=\"M220 207 L180 207\" stroke=\"#22d3ee\" stroke-width=\"2\" fill=\"none\" marker-end=\"url(#arrow)\" />\n  <path d=\"M110 190 Q90 170 90 145\" stroke=\"#34d399\" stroke-width=\"2\" fill=\"none\" marker-end=\"url(#arrow)\" />\n  <path d=\"M100 110 Q110 85 150 85\" stroke=\"#fbbf24\" stroke-width=\"2\" fill=\"none\" marker-end=\"url(#arrow)\" />\n  <defs>\n    <marker id=\"arrow\" viewBox=\"0 0 10 10\" refX=\"6\" refY=\"5\" markerWidth=\"6\" markerHeight=\"6\" orient=\"auto-start-reverse\">\n      <path d=\"M0 0 L10 5 L0 10 z\" fill=\"#e2e8f0\" />\n    </marker>\n  </defs>\n</svg>\n`;}else{title=\"System Mechanics Visualization\";description=\"An interactive overview demonstrating the structure and behavior of the selected concept.\";diagramSvg=`\n<svg viewBox=\"0 0 400 300\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" style=\"width: 100%; height: auto; border-radius: 16px; background: #0f172a; box-shadow: 0 8px 32px rgba(0,0,0,0.2);\">\n  <text x=\"20\" y=\"35\" fill=\"#e2e8f0\" font-size=\"14\" font-family=\"Poppins\" font-weight=\"700\">Concept: ${textToUse.length>25?textToUse.slice(0,22)+\"...\":textToUse}</text>\n  <rect x=\"50\" y=\"100\" width=\"110\" height=\"50\" rx=\"10\" fill=\"#3b82f6\" opacity=\"0.8\" />\n  <text x=\"105\" y=\"125\" fill=\"white\" font-size=\"11\" font-family=\"Poppins\" font-weight=\"600\" text-anchor=\"middle\">Input Cause</text>\n  <path d=\"M160 125 L240 125\" stroke=\"#60a5fa\" stroke-width=\"3\" stroke-dasharray=\"4 4\" marker-end=\"url(#arrow)\" />\n  <rect x=\"240\" y=\"100\" width=\"110\" height=\"50\" rx=\"10\" fill=\"#10b981\" opacity=\"0.8\" />\n  <text x=\"295\" y=\"125\" fill=\"white\" font-size=\"11\" font-family=\"Poppins\" font-weight=\"600\" text-anchor=\"middle\">Observed Effect</text>\n  <rect x=\"50\" y=\"190\" width=\"300\" height=\"70\" rx=\"12\" fill=\"#1e293b\" stroke=\"#334155\" />\n  <text x=\"70\" y=\"215\" fill=\"#f8fafc\" font-size=\"11\" font-family=\"Poppins\" font-weight=\"700\">System Dynamic:</text>\n  <text x=\"70\" y=\"232\" fill=\"#94a3b8\" font-size=\"10.5\" font-family=\"Poppins\">If the input cause increases, the observed effect scales</text>\n  <text x=\"70\" y=\"248\" fill=\"#94a3b8\" font-size=\"10.5\" font-family=\"Poppins\">proportionately through the physical model pathway.</text>\n  <defs>\n    <marker id=\"arrow\" viewBox=\"0 0 10 10\" refX=\"6\" refY=\"5\" markerWidth=\"6\" markerHeight=\"6\" orient=\"auto-start-reverse\">\n      <path d=\"M0 0 L10 5 L0 10 z\" fill=\"#60a5fa\" />\n    </marker>\n  </defs>\n</svg>\n`;}resultData={title,description,diagramSvg,mitraValues:{empathy:`I've created a custom diagram to make this concept easier to visualize. Visualizing processes helps connect the dots!`,transparency:`Diagrams help simplify complex relationships. Storing this visually will make it 80% easier to recall during exams.`,scientificTemperament:`If you change one key element in this system, what would happen to the rest of the loop?`,curiosity:`Did you know that our brains process visual information up to 60,000 times faster than text?`}};}if(resultData){setVisualizerResponse(resultData);setMitraMood(\"happy\");}}catch(err){console.error(\"fetchVisualizerAction failed\",err);setVisualizerError(err.message||\"An unexpected error occurred. Please try again.\");setMitraMood(\"idle\");}finally{setVisualizerLoading(false);}};const handleSpeakText=(text,index)=>{if(typeof window===\"undefined\")return;const synth=window.speechSynthesis;if(!synth)return;if(rawTextSpeechIndex===index){synth.cancel();setRawTextSpeechIndex(null);}else{synth.cancel();const utterance=new SpeechSynthesisUtterance(text);utterance.onend=()=>setRawTextSpeechIndex(null);utterance.onerror=()=>setRawTextSpeechIndex(null);setRawTextSpeechIndex(index);synth.speak(utterance);}};const handleAnswerQuiz=(selected,correct)=>{if(quizAnswered)return;setQuizSelectedOption(selected);setQuizAnswered(true);if(selected===correct){triggerConfetti();setMitraMood(\"happy\");}else{setMitraMood(\"idle\");}};useEffect(()=>{if(localSelectedBlockId&&textbookParagraphs){const found=textbookParagraphs.find(p=>p.id===localSelectedBlockId);if(found){setLocalSelectedText(found.text);// Trigger AI fetches\nif(activeTabId===\"visualizer\"){fetchVisualizerAction(found.text);}else{fetchSelectionAction(activeSelectionTab,found.text);}}}else{setLocalSelectedText(\"\");}},[localSelectedBlockId,textbookParagraphs]);useEffect(()=>{if(selectedBlockId!==undefined){setLocalSelectedBlockId(selectedBlockId);}},[selectedBlockId]);useEffect(()=>{return()=>{if(diagramIntervalRef.current){clearInterval(diagramIntervalRef.current);}};},[]);const[isUserLoggedIn,setIsUserLoggedIn]=useState(()=>{if(typeof window!==\"undefined\"){return localStorage.getItem(\"userLoggedIn\")===\"true\";}return false;});const[currentUserProfile,setCurrentUserProfile]=useState(null);useEffect(()=>{let active=true;let unsub=null;async function checkAuth(){try{const firebaseAppUrl=\"https://www.gstatic.com/firebasejs/10.13.0/firebase-app.js\";const firebaseAuthUrl=\"https://www.gstatic.com/firebasejs/10.13.0/firebase-auth.js\";const firebaseConfig={apiKey:\"AIzaSyAD3p3IwIfl9B8v-ycIemf6rhVyaqIyQbQ\",authDomain:\"paathshala-bf93b.firebaseapp.com\",projectId:\"paathshala-bf93b\",storageBucket:\"paathshala-bf93b.appspot.com\",messagingSenderId:\"144773839129\",appId:\"1:144773839129:web:04efd90489924cb3d66d88\",measurementId:\"G-97C8TYB9K6\"};const{initializeApp,getApps,getApp}=await import(firebaseAppUrl);const{getAuth,onAuthStateChanged}=await import(firebaseAuthUrl);if(!active)return;let app;const apps=getApps();if(apps.length===0){app=initializeApp(firebaseConfig);}else{app=getApp();}const auth=getAuth(app);const unsubscribe=onAuthStateChanged(auth,async user=>{if(!active)return;if(user){setIsUserLoggedIn(true);if(typeof window!==\"undefined\"){localStorage.setItem(\"userLoggedIn\",\"true\");if(user.photoURL){localStorage.setItem(\"userPhotoUrl\",user.photoURL);}}try{const token=await user.getIdToken();const res=await fetch(\"https://paathshala-server-825590928224.asia-south1.run.app/api/v1/user\",{headers:{Authorization:`Bearer ${token}`}});if(res.ok){const json=await res.json();const profile=json.data||json;if(active){setCurrentUserProfile(profile);if(profile?.pictureUrl){localStorage.setItem(\"userPhotoUrl\",profile.pictureUrl);}}}else{setCurrentUserProfile({displayName:user.displayName,pictureUrl:user.photoURL||localStorage.getItem(\"userPhotoUrl\")});}}catch(e){console.error(\"Error retrieving user profile inside whiteboard:\",e);setCurrentUserProfile({displayName:user.displayName,pictureUrl:user.photoURL||localStorage.getItem(\"userPhotoUrl\")});}}else{setIsUserLoggedIn(false);setCurrentUserProfile(null);if(typeof window!==\"undefined\"){localStorage.removeItem(\"userLoggedIn\");localStorage.removeItem(\"userPhotoUrl\");}}});if(active){unsub=unsubscribe;}else{unsubscribe();}}catch(err){console.warn(\"Failed to check auth inside WhiteboardOverlay:\",err);}}checkAuth();return()=>{active=false;if(unsub)unsub();};},[]);const[tool,setTool]=useState(()=>{if(typeof window!==\"undefined\"){const loggedIn=localStorage.getItem(\"userLoggedIn\")===\"true\";return loggedIn?\"pen\":\"select\";}return\"select\";});useEffect(()=>{if(!isUserLoggedIn){setTool(\"select\");}},[isUserLoggedIn]);const[color,setColor]=useState(\"#6366f1\");const[isDrawing,setIsDrawing]=useState(false);const[isSaving,setIsSaving]=useState(false);const[draggingId,setDraggingId]=useState(null);const dragOffset=useRef({x:0,y:0});// Undo/Redo/Selection/Resizing States & Refs\nconst[undoStack,setUndoStack]=useState([]);const[redoStack,setRedoStack]=useState([]);const[selectedIds,setSelectedIds]=useState([]);const selectedIdsRef=useRef([]);useEffect(()=>{selectedIdsRef.current=selectedIds;},[selectedIds]);const[selectionBox,setSelectionBox]=useState(null);const spacePressed=useRef(false);useEffect(()=>{const handleSpaceKeyDown=e=>{if(e.code===\"Space\"){const target=e.target;if(target.tagName!==\"INPUT\"&&target.tagName!==\"TEXTAREA\"&&!target.isContentEditable){spacePressed.current=true;}}};const handleSpaceKeyUp=e=>{if(e.code===\"Space\"){spacePressed.current=false;}};window.addEventListener(\"keydown\",handleSpaceKeyDown);window.addEventListener(\"keyup\",handleSpaceKeyUp);return()=>{window.removeEventListener(\"keydown\",handleSpaceKeyDown);window.removeEventListener(\"keyup\",handleSpaceKeyUp);};},[]);const[resizingId,setResizingId]=useState(null);const resizeStart=useRef(null);const pushToUndo=currentElements=>{const serialized=JSON.parse(JSON.stringify(currentElements));setUndoStack(prev=>[...prev.slice(-49),serialized]);setRedoStack([]);};const syncFullElements=newElements=>{if(wsRef.current&&wsRef.current.readyState===WebSocket.OPEN){wsRef.current.send(JSON.stringify({type:\"clear\"}));newElements.forEach(el=>{wsRef.current.send(JSON.stringify({type:\"draw\",element:el}));});}handleSaveCanvas(false,newElements);};const handleUndo=()=>{if(!isUserLoggedIn)return;if(undoStack.length===0)return;const previous=undoStack[undoStack.length-1];setUndoStack(prev=>prev.slice(0,-1));const currentElementsCopy=JSON.parse(JSON.stringify(elements));setRedoStack(prev=>[...prev,currentElementsCopy]);setElements(previous);syncFullElements(previous);};const handleRedo=()=>{if(!isUserLoggedIn)return;if(redoStack.length===0)return;const nextState=redoStack[redoStack.length-1];setRedoStack(prev=>prev.slice(0,-1));const currentElementsCopy=JSON.parse(JSON.stringify(elements));setUndoStack(prev=>[...prev,currentElementsCopy]);setElements(nextState);syncFullElements(nextState);};// Pan & Zoom States\nconst[pan,setPan]=useState({x:0,y:0});const[zoom,setZoom]=useState(1);const[isPanning,setIsPanning]=useState(false);const panStart=useRef({x:0,y:0});const zoomRef=useRef(zoom);const panRef=useRef(pan);const toolRef=useRef(tool);const touchStartRef=useRef(null);useEffect(()=>{zoomRef.current=zoom;},[zoom]);useEffect(()=>{panRef.current=pan;},[pan]);useEffect(()=>{toolRef.current=tool;},[tool]);const canvasContainerRef=useRef(null);useEffect(()=>{const container=canvasContainerRef.current;if(!container)return;const onWheelEvent=e=>{e.preventDefault();const canvasRect=container.getBoundingClientRect();if(e.ctrlKey){// Zoom relative to cursor\nconst mouseX=e.clientX-canvasRect.left;const mouseY=e.clientY-canvasRect.top;const currentZoom=zoomRef.current;const currentPan=panRef.current;const canvasMouseX=(mouseX-currentPan.x)/currentZoom;const canvasMouseY=(mouseY-currentPan.y)/currentZoom;const scaleFactor=1.03;const factor=e.deltaY<0?scaleFactor:1/scaleFactor;const newZoom=Math.min(Math.max(.15,currentZoom*factor),4);const newPanX=mouseX-canvasMouseX*newZoom;const newPanY=mouseY-canvasMouseY*newZoom;setZoom(newZoom);setPan({x:newPanX,y:newPanY});}else{// Scroll pan\nsetPan(prev=>({x:prev.x-e.deltaX,y:prev.y-e.deltaY}));}};const onTouchStartEvent=e=>{if(e.touches.length===2){e.preventDefault();const t1=e.touches[0];const t2=e.touches[1];const distance=Math.hypot(t2.clientX-t1.clientX,t2.clientY-t1.clientY);touchStartRef.current={touches:[{clientX:t1.clientX,clientY:t1.clientY},{clientX:t2.clientX,clientY:t2.clientY}],pan:{...panRef.current},zoom:zoomRef.current,distance:distance};}else if(e.touches.length===1&&toolRef.current===\"select\"){const target=e.target;if(target.tagName===\"TEXTAREA\"||target.tagName===\"INPUT\"||target.tagName===\"BUTTON\"){return;}e.preventDefault();const t=e.touches[0];touchStartRef.current={touches:[{clientX:t.clientX,clientY:t.clientY}],pan:{...panRef.current},zoom:zoomRef.current,distance:0};}else if(e.touches.length===1&&(toolRef.current===\"pen\"||toolRef.current===\"rect\"||toolRef.current===\"ellipse\")){e.preventDefault();}};const onTouchMoveEvent=e=>{const start=touchStartRef.current;if(!start)return;if(e.touches.length===2&&start.touches.length===2){e.preventDefault();const t1=e.touches[0];const t2=e.touches[1];const newDistance=Math.hypot(t2.clientX-t1.clientX,t2.clientY-t1.clientY);const scale=newDistance/start.distance;const newZoom=Math.min(Math.max(.15,start.zoom*scale),4);const startMidX=(start.touches[0].clientX+start.touches[1].clientX)/2;const startMidY=(start.touches[0].clientY+start.touches[1].clientY)/2;const newMidX=(t1.clientX+t2.clientX)/2;const newMidY=(t1.clientY+t2.clientY)/2;const dx=newMidX-startMidX;const dy=newMidY-startMidY;const canvasRect=container.getBoundingClientRect();const midXRelativeToCanvas=startMidX-canvasRect.left;const midYRelativeToCanvas=startMidY-canvasRect.top;const canvasMidX=(midXRelativeToCanvas-start.pan.x)/start.zoom;const canvasMidY=(midYRelativeToCanvas-start.pan.y)/start.zoom;const newPanX=midXRelativeToCanvas+dx-canvasMidX*newZoom;const newPanY=midYRelativeToCanvas+dy-canvasMidY*newZoom;setZoom(newZoom);setPan({x:newPanX,y:newPanY});}else if(e.touches.length===1&&start.touches.length===1&&toolRef.current===\"select\"){e.preventDefault();const t=e.touches[0];const dx=t.clientX-start.touches[0].clientX;const dy=t.clientY-start.touches[0].clientY;setPan({x:start.pan.x+dx,y:start.pan.y+dy});}};const onTouchEndEvent=()=>{touchStartRef.current=null;};container.addEventListener(\"wheel\",onWheelEvent,{passive:false});container.addEventListener(\"touchstart\",onTouchStartEvent,{passive:false});container.addEventListener(\"touchmove\",onTouchMoveEvent,{passive:false});container.addEventListener(\"touchend\",onTouchEndEvent,{passive:false});return()=>{container.removeEventListener(\"wheel\",onWheelEvent);container.removeEventListener(\"touchstart\",onTouchStartEvent);container.removeEventListener(\"touchmove\",onTouchMoveEvent);container.removeEventListener(\"touchend\",onTouchEndEvent);};},[]);const handleZoomStep=zoomIn=>{const factor=zoomIn?1.2:1/1.2;const newZoom=Math.min(Math.max(.15,zoom*factor),4);const canvasContainer=canvasContainerRef.current;if(canvasContainer){const rect=canvasContainer.getBoundingClientRect();const centerX=rect.width/2;const centerY=rect.height/2;const canvasCenterX=(centerX-pan.x)/zoom;const canvasCenterY=(centerY-pan.y)/zoom;const newPanX=centerX-canvasCenterX*newZoom;const newPanY=centerY-canvasCenterY*newZoom;setZoom(newZoom);setPan({x:newPanX,y:newPanY});}else{setZoom(newZoom);}};// Collaborator cursor locations (synced via WebSocket)\nconst[collaborators,setCollaborators]=useState([]);const canvasRef=useRef(null);const fileInputRef=useRef(null);const pdfFileInputRef=useRef(null);const wsRef=useRef(null);const lastCursorSend=useRef(0);// Generate or retrieve persistent user identity\nconst getClientIdentity=()=>{if(typeof window===\"undefined\")return{name:\"Anonymous Student\",color:\"#8b5cf6\"};let name=localStorage.getItem(\"canvas_client_name\");let color=localStorage.getItem(\"canvas_client_color\");if(!name){const NAMES=[\"Aarav\",\"Ananya\",\"Vihaan\",\"Diya\",\"Kabir\",\"Meera\",\"Ishaan\",\"Riya\",\"Aditya\",\"Ira\"];name=NAMES[Math.floor(Math.random()*NAMES.length)];localStorage.setItem(\"canvas_client_name\",name);}if(!color){const COLORS=[\"#8b5cf6\",\"#10b981\",\"#d946ef\",\"#f59e0b\",\"#ef4444\",\"#06b6d4\",\"#3b82f6\"];color=COLORS[Math.floor(Math.random()*COLORS.length)];localStorage.setItem(\"canvas_client_color\",color);}return{name,color};};const loadPdfJs=()=>{return new Promise((resolve,reject)=>{if(typeof window===\"undefined\"){reject(\"Window is undefined\");return;}if(window.pdfjsLib){resolve(window.pdfjsLib);return;}const existingScript=document.getElementById(\"pdfjs-script\");if(existingScript){let interval=setInterval(()=>{if(window.pdfjsLib){clearInterval(interval);resolve(window.pdfjsLib);}},100);return;}const script=document.createElement(\"script\");script.id=\"pdfjs-script\";script.src=\"https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.16.105/pdf.min.js\";script.onload=()=>{const pdfjsLib=window.pdfjsLib;pdfjsLib.GlobalWorkerOptions.workerSrc=\"https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.16.105/pdf.worker.min.js\";resolve(pdfjsLib);};script.onerror=reject;document.head.appendChild(script);});};const convertPdfToImages=async pdfUrlOrBuffer=>{const pdfjsLib=await loadPdfJs();const loadingTask=pdfjsLib.getDocument(pdfUrlOrBuffer);const pdf=await loadingTask.promise;const pagesData=[];const numPages=Math.min(pdf.numPages,10);for(let i=1;i<=numPages;i++){try{const page=await pdf.getPage(i);const viewport=page.getViewport({scale:1.2});const canvas=document.createElement(\"canvas\");const context=canvas.getContext(\"2d\");if(context){canvas.width=viewport.width;canvas.height=viewport.height;await page.render({canvasContext:context,viewport}).promise;const dataUrl=canvas.toDataURL(\"image/jpeg\",.7);pagesData.push({dataUrl,width:viewport.width,height:viewport.height});}}catch(err){console.error(`Error rendering PDF page ${i}:`,err);}}return pagesData;};useEffect(()=>{loadPdfJs().catch(err=>console.error(\"Failed to pre-load PDF.js:\",err));},[]);const clientIdRef=useRef(\"\");if(typeof window!==\"undefined\"&&!clientIdRef.current){let id=localStorage.getItem(\"canvas_client_id\");if(!id){id=\"client_\"+Math.random().toString(36).substring(2,11);localStorage.setItem(\"canvas_client_id\",id);}clientIdRef.current=id;}const clientId=clientIdRef.current;// WebSocket Real-time canvas synchronization\nuseEffect(()=>{if(typeof window===\"undefined\")return;let hasReceivedInit=false;let isFallbackTriggered=false;const triggerLocalFallback=async()=>{if(isFallbackTriggered||hasReceivedInit)return;isFallbackTriggered=true;console.log(\"[Canvas Sync] WebSocket connection failed or timed out. Triggering REST API / Local PDF fallback...\");try{// Try fetching saved canvas from the REST API first\nconst response=await fetch(`${BASE_API_URL}/canvas/${boardId}`,{headers:await getAuthHeaders()});if(response.ok){const result=await response.json();const canvasData=result.data;if(canvasData&&canvasData.elements&&canvasData.elements.length>0){const messageElements=canvasData.elements;const hasPdf=messageElements.some(el=>el.id&&el.id.startsWith(\"elem_pdf_init_page_\"));if(!hasPdf&&chapterPdfUrl){try{const pages=await convertPdfToImages(chapterPdfUrl);const pdfElements=pages.map((page,index)=>{const pageWidth=350;const pageHeight=page.height/page.width*pageWidth;return{id:`elem_pdf_init_page_${index}`,type:\"image\",x:50+index*(pageWidth+20),y:80,width:pageWidth,height:pageHeight,color:\"transparent\",imageUrl:page.dataUrl,status:\"approved\"};});const combined=[...pdfElements,...messageElements];setElements(combined);try{await fetch(`${BASE_API_URL}/canvas/save`,{method:\"POST\",headers:await getAuthHeaders(),body:JSON.stringify({boardId,subjectId,chapterId,elements:combined})});}catch(saveErr){console.error(\"Failed to save combined canvas state in fallback:\",saveErr);}}catch(err){console.error(\"Failed to parse chapter PDF during fallback:\",err);setElements(messageElements);}}else{setElements(messageElements);if(chapterPdfUrl){convertPdfToImages(chapterPdfUrl).then(pages=>{setElements(prev=>prev.map(el=>{if(el.id&&el.id.startsWith(\"elem_pdf_init_page_\")){const index=parseInt(el.id.replace(\"elem_pdf_init_page_\",\"\"),10);if(pages[index]){return{...el,imageUrl:pages[index].dataUrl};}}return el;}));}).catch(err=>{console.error(\"Failed to restore PDF page images on init fallback:\",err);});}}return;// Successfully loaded from DB\n}}}catch(err){console.error(\"[Canvas Sync] REST API fetch failed:\",err);}// If REST API fetch failed or returned no elements, and we have a PDF URL, convert and render it locally\nif(chapterPdfUrl){console.log(\"[Canvas Sync] Loading PDF locally as final fallback...\");try{const pages=await convertPdfToImages(chapterPdfUrl);const newElements=pages.map((page,index)=>{const pageWidth=350;const pageHeight=page.height/page.width*pageWidth;return{id:`elem_pdf_init_page_${index}`,type:\"image\",x:50+index*(pageWidth+20),y:80,width:pageWidth,height:pageHeight,color:\"transparent\",imageUrl:page.dataUrl,status:\"approved\"};});setElements(newElements);try{await fetch(`${BASE_API_URL}/canvas/save`,{method:\"POST\",headers:await getAuthHeaders(),body:JSON.stringify({boardId,subjectId,chapterId,elements:newElements})});}catch(saveErr){console.error(\"Failed to save new canvas state in fallback:\",saveErr);}}catch(err){console.error(\"Failed to parse chapter PDF as final fallback:\",err);setElements([]);}}else{setElements([]);}};// Timeout to trigger fallback if WebSocket doesn't connect/init within 2.5s\nconst connectionTimeout=setTimeout(()=>{triggerLocalFallback();},2500);const wsUrl=BASE_API_URL.replace(/^http/,\"ws\")+\"/canvas/sync\";const ws=new WebSocket(wsUrl);wsRef.current=ws;ws.onopen=()=>{console.log(\"[WebSocket] Connected to sync server\");const identity=getClientIdentity();ws.send(JSON.stringify({type:\"join\",boardId,clientId,name:identity.name,color:identity.color}));};ws.onmessage=event=>{try{const message=JSON.parse(event.data);switch(message.type){case\"init\":hasReceivedInit=true;clearTimeout(connectionTimeout);if(message.elements&&message.elements.length>0){const hasPdf=message.elements.some(el=>el.id&&el.id.startsWith(\"elem_pdf_init_page_\"));if(!hasPdf&&chapterPdfUrl){convertPdfToImages(chapterPdfUrl).then(pages=>{const pdfElements=pages.map((page,index)=>{const pageWidth=350;const pageHeight=page.height/page.width*pageWidth;return{id:`elem_pdf_init_page_${index}`,type:\"image\",x:50+index*(pageWidth+20),y:80,width:pageWidth,height:pageHeight,color:\"transparent\",imageUrl:page.dataUrl,status:\"approved\"};});const combined=[...pdfElements,...message.elements];setElements(combined);if(ws.readyState===WebSocket.OPEN){pdfElements.forEach(el=>{ws.send(JSON.stringify({type:\"draw\",element:el}));});}handleSaveCanvas(false,combined);}).catch(err=>{console.error(\"Failed to parse chapter PDF:\",err);setElements(message.elements);});}else{setElements(message.elements);if(chapterPdfUrl){convertPdfToImages(chapterPdfUrl).then(pages=>{setElements(prev=>prev.map(el=>{if(el.id&&el.id.startsWith(\"elem_pdf_init_page_\")){const index=parseInt(el.id.replace(\"elem_pdf_init_page_\",\"\"),10);if(pages[index]){return{...el,imageUrl:pages[index].dataUrl};}}return el;}));}).catch(err=>{console.error(\"Failed to restore PDF page images on init:\",err);});}}}else if(chapterPdfUrl){convertPdfToImages(chapterPdfUrl).then(pages=>{const newElements=pages.map((page,index)=>{const pageWidth=350;const pageHeight=page.height/page.width*pageWidth;return{id:`elem_pdf_init_page_${index}`,type:\"image\",x:50+index*(pageWidth+20),y:80,width:pageWidth,height:pageHeight,color:\"transparent\",imageUrl:page.dataUrl,status:\"approved\"};});setElements(newElements);if(ws.readyState===WebSocket.OPEN){newElements.forEach(el=>{ws.send(JSON.stringify({type:\"draw\",element:el}));});}handleSaveCanvas(false,newElements);}).catch(err=>{console.error(\"Failed to parse chapter PDF:\",err);setElements([]);});}else{setElements([]);}break;case\"room_update\":if(message.collaborators){const list=message.collaborators.filter(c=>c.clientId!==clientId).map(c=>({id:c.clientId,name:c.name,color:c.color,x:c.cursor?.x??100,y:c.cursor?.y??150,initials:c.name.charAt(0).toUpperCase()}));setCollaborators(list);}break;case\"cursor\":setCollaborators(prev=>prev.map(c=>{if(c.id===message.clientId){return{...c,x:message.x,y:message.y};}return c;}));break;case\"draw\":setElements(prev=>{const existingIdx=prev.findIndex(el=>el.id===message.element.id);if(existingIdx!==-1){const updated=[...prev];updated[existingIdx]=message.element;return updated;}else{return[...prev,message.element];}});break;case\"delete\":setElements(prev=>prev.filter(el=>el.id!==message.elementId));break;case\"clear\":setElements([]);break;}}catch(err){console.error(\"[WebSocket] message processing failed\",err);}};ws.onclose=()=>{console.log(\"[WebSocket] Connection closed\");triggerLocalFallback();};ws.onerror=err=>{console.error(\"[WebSocket] Error:\",err);triggerLocalFallback();};return()=>{clearTimeout(connectionTimeout);if(ws.readyState===WebSocket.OPEN||ws.readyState===WebSocket.CONNECTING){ws.close();}};},[boardId,chapterPdfUrl,clientId,subjectId,chapterId]);const handleElementDragStart=(e,id,x,y)=>{if(!isUserLoggedIn)return;if(tool!==\"select\")return;const isShift=e.shiftKey;let nextSelectedIds=[...selectedIdsRef.current];if(isShift){if(nextSelectedIds.includes(id)){nextSelectedIds=nextSelectedIds.filter(x=>x!==id);}else{nextSelectedIds.push(id);}}else{if(!nextSelectedIds.includes(id)){nextSelectedIds=[id];}}setSelectedIds(nextSelectedIds);selectedIdsRef.current=nextSelectedIds;const tagName=e.target.tagName.toLowerCase();if(tagName===\"textarea\"||tagName===\"input\"||tagName===\"button\"||tagName===\"select\"){return;}e.preventDefault();pushToUndo(elements);setDraggingId(id);dragOffset.current={x:e.clientX,y:e.clientY};};const handleResizeStart=(e,element)=>{if(!isUserLoggedIn)return;e.stopPropagation();e.preventDefault();pushToUndo(elements);setResizingId(element.id);resizeStart.current={elementId:element.id,startX:e.clientX,startY:e.clientY,startWidth:element.width,startHeight:element.height,startPoints:element.points?JSON.parse(JSON.stringify(element.points)):undefined};};useEffect(()=>{if(!draggingId)return;const handleWindowMouseMove=e=>{const canvasRect=canvasRef.current?.getBoundingClientRect();if(!canvasRect)return;const dx=(e.clientX-dragOffset.current.x)/zoom;const dy=(e.clientY-dragOffset.current.y)/zoom;dragOffset.current={x:e.clientX,y:e.clientY};if(dx===0&&dy===0)return;setElements(prev=>{const activeSelections=selectedIdsRef.current;const next=prev.map(el=>{if(activeSelections.includes(el.id)){let updatedPoints=el.points;if(el.type===\"pen\"&&el.points){updatedPoints=el.points.map(p=>({x:p.x+dx,y:p.y+dy}));}const updated={...el,x:el.x+dx,y:el.y+dy,points:updatedPoints};if(wsRef.current&&wsRef.current.readyState===WebSocket.OPEN){wsRef.current.send(JSON.stringify({type:\"draw\",element:updated}));}return updated;}return el;});return next;});};const handleWindowMouseUp=()=>{setDraggingId(null);setElements(prev=>{handleSaveCanvas(false,prev);return prev;});};window.addEventListener(\"pointermove\",handleWindowMouseMove);window.addEventListener(\"pointerup\",handleWindowMouseUp);return()=>{window.removeEventListener(\"pointermove\",handleWindowMouseMove);window.removeEventListener(\"pointerup\",handleWindowMouseUp);};},[draggingId,zoom,pan]);useEffect(()=>{if(!resizingId||!resizeStart.current)return;const handleWindowMouseMove=e=>{const start=resizeStart.current;if(!start)return;const dx=(e.clientX-start.startX)/zoom;const dy=(e.clientY-start.startY)/zoom;const newWidth=Math.max(10,start.startWidth+dx);const newHeight=Math.max(10,start.startHeight+dy);setElements(prev=>{const next=prev.map(el=>{if(el.id===resizingId){let updatedPoints=el.points;if(el.type===\"pen\"&&start.startPoints){const sx=start.startWidth>0?newWidth/start.startWidth:1;const sy=start.startHeight>0?newHeight/start.startHeight:1;updatedPoints=start.startPoints.map(p=>({x:el.x+(p.x-el.x)*sx,y:el.y+(p.y-el.y)*sy}));}const updated={...el,width:newWidth,height:newHeight,points:updatedPoints};if(wsRef.current&&wsRef.current.readyState===WebSocket.OPEN){wsRef.current.send(JSON.stringify({type:\"draw\",element:updated}));}return updated;}return el;});return next;});};const handleWindowMouseUp=()=>{setResizingId(null);resizeStart.current=null;setElements(prev=>{handleSaveCanvas(false,prev);return prev;});};window.addEventListener(\"pointermove\",handleWindowMouseMove);window.addEventListener(\"pointerup\",handleWindowMouseUp);return()=>{window.removeEventListener(\"pointermove\",handleWindowMouseMove);window.removeEventListener(\"pointerup\",handleWindowMouseUp);};},[resizingId,zoom]);useEffect(()=>{const handleKeyDown=e=>{if(!isUserLoggedIn)return;const currentSelected=selectedIdsRef.current;if(currentSelected.length===0)return;const target=e.target;if(target.tagName===\"INPUT\"||target.tagName===\"TEXTAREA\"||target.isContentEditable){return;}if(e.key===\"Backspace\"||e.key===\"Delete\"){e.preventDefault();pushToUndo(elements);setElements(prev=>{const next=prev.filter(el=>!currentSelected.includes(el.id));if(wsRef.current&&wsRef.current.readyState===WebSocket.OPEN){currentSelected.forEach(id=>{wsRef.current.send(JSON.stringify({type:\"delete\",elementId:id}));});}handleSaveCanvas(false,next);return next;});setSelectedIds([]);}};window.addEventListener(\"keydown\",handleKeyDown);return()=>{window.removeEventListener(\"keydown\",handleKeyDown);};},[elements]);const handleMouseDown=e=>{const canvasRect=canvasContainerRef.current?.getBoundingClientRect();if(!canvasRect)return;if(!isUserLoggedIn){const target=e.target;const isBackground=target.classList.contains(\"whiteboard-canvas-container\")||target.classList.contains(\"whiteboard-svg\")||target.classList.contains(\"whiteboard-html-layer\")||target.classList.contains(\"whiteboard-canvas-content\");if(isBackground&&(spacePressed.current||e.button===1)){setIsPanning(true);panStart.current={x:e.clientX-pan.x,y:e.clientY-pan.y};}return;}if(tool===\"select\"){const target=e.target;const isBackground=target.classList.contains(\"whiteboard-canvas-container\")||target.classList.contains(\"whiteboard-svg\")||target.classList.contains(\"whiteboard-html-layer\")||target.classList.contains(\"whiteboard-canvas-content\");if(isBackground){if(spacePressed.current||e.button===1){setIsPanning(true);panStart.current={x:e.clientX-pan.x,y:e.clientY-pan.y};}else{const canvasR=canvasRef.current?.getBoundingClientRect();if(canvasR){const startX=(e.clientX-canvasR.left-pan.x)/zoom;const startY=(e.clientY-canvasR.top-pan.y)/zoom;setSelectionBox({startX,startY,currentX:startX,currentY:startY});setSelectedIds([]);selectedIdsRef.current=[];}}}return;}const x=(e.clientX-canvasRect.left-pan.x)/zoom;const y=(e.clientY-canvasRect.top-pan.y)/zoom;if(tool===\"sticky\"||tool===\"text\"){pushToUndo(elements);const newElement={id:`elem_${Date.now()}`,type:tool,x,y,width:tool===\"sticky\"?150:200,height:tool===\"sticky\"?150:40,color,text:tool===\"sticky\"?\"Sticky Note\":\"Click to edit text\",status:\"approved\"};setElements(prev=>[...prev,newElement]);if(wsRef.current&&wsRef.current.readyState===WebSocket.OPEN){wsRef.current.send(JSON.stringify({type:\"draw\",element:newElement}));}return;}if(tool===\"image\"){fileInputRef.current?.click();localStorage.setItem(\"pending_img_pos\",JSON.stringify({x,y}));return;}if(tool===\"pdf\"){pdfFileInputRef.current?.click();localStorage.setItem(\"pending_pdf_pos\",JSON.stringify({x,y}));return;}pushToUndo(elements);setIsDrawing(true);const newElem={id:`elem_${Date.now()}`,type:tool,x,y,width:0,height:0,color,points:tool===\"pen\"?[{x,y}]:undefined,status:\"approved\"};setElements(prev=>[...prev,newElem]);if(wsRef.current&&wsRef.current.readyState===WebSocket.OPEN){wsRef.current.send(JSON.stringify({type:\"draw\",element:newElem}));}};const handleMouseMove=e=>{if(isPanning){setPan({x:e.clientX-panStart.current.x,y:e.clientY-panStart.current.y});return;}const canvasRect=canvasContainerRef.current?.getBoundingClientRect();if(!canvasRect)return;const x=(e.clientX-canvasRect.left-pan.x)/zoom;const y=(e.clientY-canvasRect.top-pan.y)/zoom;if(selectionBox){setSelectionBox(prev=>prev?{...prev,currentX:x,currentY:y}:null);return;}// Send cursor position to websocket\nconst now=Date.now();if(wsRef.current&&wsRef.current.readyState===WebSocket.OPEN&&now-lastCursorSend.current>50){wsRef.current.send(JSON.stringify({type:\"cursor\",x,y}));lastCursorSend.current=now;}if(!isDrawing)return;setElements(prev=>{const next=[...prev];if(next.length===0)return prev;const last=next[next.length-1];if(last.type===\"pen\"&&last.points){last.points=[...last.points,{x,y}];}else if(last.type===\"rect\"||last.type===\"ellipse\"){last.width=x-last.x;last.height=y-last.y;}if(wsRef.current&&wsRef.current.readyState===WebSocket.OPEN){wsRef.current.send(JSON.stringify({type:\"draw\",element:last}));}return next;});};const handleMouseUp=()=>{if(isPanning){setIsPanning(false);return;}if(selectionBox){const minX=Math.min(selectionBox.startX,selectionBox.currentX);const maxX=Math.max(selectionBox.startX,selectionBox.currentX);const minY=Math.min(selectionBox.startY,selectionBox.currentY);const maxY=Math.max(selectionBox.startY,selectionBox.currentY);const newlySelected=elements.filter(el=>{const elMinX=el.width>=0?el.x:el.x+el.width;const elMaxX=el.width>=0?el.x+el.width:el.x;const elMinY=el.height>=0?el.y:el.y+el.height;const elMaxY=el.height>=0?el.y+el.height:el.y;return elMinX<=maxX&&elMaxX>=minX&&elMinY<=maxY&&elMaxY>=minY;}).map(el=>el.id);setSelectedIds(newlySelected);selectedIdsRef.current=newlySelected;setSelectionBox(null);return;}if(!isDrawing)return;setIsDrawing(false);setElements(prev=>{if(prev.length===0)return prev;const next=[...prev];const last=next[next.length-1];// If it was pen, calculate bounding box\nif(last.type===\"pen\"&&last.points&&last.points.length>0){let minX=Infinity,maxX=-Infinity,minY=Infinity,maxY=-Infinity;last.points.forEach(p=>{if(p.x<minX)minX=p.x;if(p.x>maxX)maxX=p.x;if(p.y<minY)minY=p.y;if(p.y>maxY)maxY=p.y;});last.x=minX;last.y=minY;last.width=maxX-minX;last.height=maxY-minY;}// Normalize shape dimensions (rect, ellipse)\nif(last.type===\"rect\"||last.type===\"ellipse\"){if(last.width<0){last.x=last.x+last.width;last.width=Math.abs(last.width);}if(last.height<0){last.y=last.y+last.height;last.height=Math.abs(last.height);}}if(wsRef.current&&wsRef.current.readyState===WebSocket.OPEN){wsRef.current.send(JSON.stringify({type:\"draw\",element:last}));}handleSaveCanvas(false,next);return next;});};const handleTextChange=async(id,text)=>{setElements(prev=>{const next=prev.map(el=>el.id===id?{...el,text,status:\"reviewing\"}:el);const targetEl=next.find(el=>el.id===id);if(targetEl&&wsRef.current&&wsRef.current.readyState===WebSocket.OPEN){wsRef.current.send(JSON.stringify({type:\"draw\",element:targetEl}));}return next;});try{const response=await fetch(`${BASE_API_URL}/canvas/moderate`,{method:\"POST\",headers:await getAuthHeaders(),body:JSON.stringify({text,boardId})});if(response.ok){const json=await response.json();setElements(prev=>{const next=prev.map(el=>{if(el.id===id){return{...el,text:json.isSafe?text:\"[Moderated: Inappropriate Content]\",status:\"approved\"};}return el;});const targetEl=next.find(el=>el.id===id);if(targetEl&&wsRef.current&&wsRef.current.readyState===WebSocket.OPEN){wsRef.current.send(JSON.stringify({type:\"draw\",element:targetEl}));}return next;});}else{setElements(prev=>{const next=prev.map(el=>el.id===id?{...el,status:\"approved\"}:el);const targetEl=next.find(el=>el.id===id);if(targetEl&&wsRef.current&&wsRef.current.readyState===WebSocket.OPEN){wsRef.current.send(JSON.stringify({type:\"draw\",element:targetEl}));}return next;});}}catch(err){console.error(\"Moderation failed\",err);setElements(prev=>{const next=prev.map(el=>el.id===id?{...el,status:\"approved\"}:el);const targetEl=next.find(el=>el.id===id);if(targetEl&&wsRef.current&&wsRef.current.readyState===WebSocket.OPEN){wsRef.current.send(JSON.stringify({type:\"draw\",element:targetEl}));}return next;});}};const handleImageFileChange=e=>{const file=e.target.files?.[0];if(!file)return;const reader=new FileReader;reader.onload=async event=>{const dataUrl=event.target?.result;const pendingPos=JSON.parse(localStorage.getItem(\"pending_img_pos\")||'{\"x\": 100, \"y\": 100}');const newImgElement={id:`elem_${Date.now()}`,type:\"image\",x:pendingPos.x,y:pendingPos.y,width:180,height:120,color:\"transparent\",imageUrl:dataUrl,status:\"reviewing\"};setElements(prev=>{pushToUndo(prev);if(wsRef.current&&wsRef.current.readyState===WebSocket.OPEN){wsRef.current.send(JSON.stringify({type:\"draw\",element:newImgElement}));}return[...prev,newImgElement];});setTimeout(()=>{setElements(prev=>{const next=prev.map(el=>el.id===newImgElement.id?{...el,status:\"approved\"}:el);const targetEl=next.find(el=>el.id===newImgElement.id);if(targetEl&&wsRef.current&&wsRef.current.readyState===WebSocket.OPEN){wsRef.current.send(JSON.stringify({type:\"draw\",element:targetEl}));}return next;});},1800);};reader.readAsDataURL(file);};const handlePdfFileChange=e=>{const file=e.target.files?.[0];if(!file)return;const reader=new FileReader;reader.onload=async event=>{const arrayBuffer=event.target?.result;try{const pages=await convertPdfToImages(arrayBuffer);const pendingPos=JSON.parse(localStorage.getItem(\"pending_pdf_pos\")||'{\"x\": 100, \"y\": 100}');const newElements=pages.map((page,index)=>{const pageWidth=350;const pageHeight=page.height/page.width*pageWidth;return{id:`elem_pdf_page_${Date.now()}_${index}`,type:\"image\",x:pendingPos.x+index*(pageWidth+20),y:pendingPos.y,width:pageWidth,height:pageHeight,color:\"transparent\",imageUrl:page.dataUrl,status:\"approved\"};});setElements(prev=>{pushToUndo(prev);const next=[...prev,...newElements];if(wsRef.current&&wsRef.current.readyState===WebSocket.OPEN){newElements.forEach(el=>{wsRef.current.send(JSON.stringify({type:\"draw\",element:el}));});}handleSaveCanvas(false,next);return next;});}catch(err){console.error(\"Failed to parse PDF file:\",err);alert(\"Failed to parse PDF file.\");}};reader.readAsArrayBuffer(file);};const handleSaveCanvas=async(showToast,elementsToSave=elements)=>{if(!isUserLoggedIn)return;if(showToast)setIsSaving(true);// Strip base64 image data from init PDF-page elements before sending to the database to avoid 413 Payload Too Large\nconst sanitizedElements=elementsToSave.map(el=>{if(el.id&&el.id.startsWith(\"elem_pdf_init_page_\")){const{imageUrl,...rest}=el;return rest;}return el;});try{const response=await fetch(`${BASE_API_URL}/canvas/save`,{method:\"POST\",headers:await getAuthHeaders(),body:JSON.stringify({boardId,subjectId,chapterId,elements:sanitizedElements})});if(response.ok){if(showToast)alert(\"Board saved successfully!\");}else if(response.status===413){console.warn(\"Payload too large (413). Retrying save after stripping all base64 data URLs.\");// Retry by stripping any huge base64 images (imageUrl starting with \"data:\")\nconst superSanitized=sanitizedElements.map(el=>{if(el.imageUrl&&el.imageUrl.startsWith(\"data:\")){const{imageUrl,...rest}=el;return rest;}return el;});const retryResponse=await fetch(`${BASE_API_URL}/canvas/save`,{method:\"POST\",headers:await getAuthHeaders(),body:JSON.stringify({boardId,subjectId,chapterId,elements:superSanitized})});if(retryResponse.ok){if(showToast)alert(\"Board saved successfully after stripping large media data!\");}else{console.error(\"Failed to save canvas state even after stripping large media data:\",retryResponse.status);if(showToast)alert(`Failed to save board. (Status: ${retryResponse.status})`);}}else{console.error(\"Failed to save canvas state:\",response.status);if(showToast)alert(`Failed to save board. (Status: ${response.status})`);}}catch(err){console.error(\"Error saving canvas:\",err);if(showToast){if(err instanceof TypeError){alert(\"Unable to save board. Connection to save server was blocked or is offline (CORS/Network error).\");}else{alert(\"Error saving board.\");}}}finally{if(showToast)setIsSaving(false);}};const clearCanvas=()=>{if(!isUserLoggedIn)return;if(confirm(\"Are you sure you want to clear the canvas?\")){pushToUndo(elements);setElements([]);if(wsRef.current&&wsRef.current.readyState===WebSocket.OPEN){wsRef.current.send(JSON.stringify({type:\"clear\"}));}handleSaveCanvas(false,[]);}};return /*#__PURE__*/_jsxs(\"div\",{className:\"whiteboard-overlay\",children:[/*#__PURE__*/_jsxs(\"div\",{className:\"whiteboard-header\",children:[/*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsxs(\"h2\",{children:[\"Interactive Board - \",chapterId]}),/*#__PURE__*/_jsx(\"p\",{style:{fontSize:\"11px\",color:\"#64748b\"},children:\"Draw shapes, add sticky notes, and work with classmates\"})]}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",gap:\"12px\",alignItems:\"center\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",marginRight:\"16px\",alignItems:\"center\",gap:\"6px\"},children:[currentUserProfile&&/*#__PURE__*/_jsxs(\"div\",{title:`You are logged in as ${currentUserProfile.displayName||currentUserProfile.name||\"Student\"}`,style:{width:\"36px\",height:\"36px\",borderRadius:\"50%\",border:\"2.5px solid #6366f1\",padding:\"1px\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",background:\"white\",marginRight:\"8px\",position:\"relative\"},children:[currentUserProfile.pictureUrl?/*#__PURE__*/_jsx(\"img\",{src:currentUserProfile.pictureUrl,alt:\"You\",style:{width:\"100%\",height:\"100%\",borderRadius:\"50%\",objectFit:\"cover\"}}):/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",borderRadius:\"50%\",background:\"#6366f1\",color:\"white\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",fontSize:\"12px\",fontWeight:\"bold\"},children:(currentUserProfile.displayName||currentUserProfile.name||\"U\").charAt(0).toUpperCase()}),/*#__PURE__*/_jsx(\"span\",{style:{position:\"absolute\",bottom:\"-2px\",right:\"-2px\",width:\"10px\",height:\"10px\",borderRadius:\"50%\",background:\"#22c55e\",border:\"1.5px solid white\"}})]}),collaborators.map(c=>/*#__PURE__*/_jsx(\"div\",{title:`${c.name} is editing`,style:{width:\"32px\",height:\"32px\",borderRadius:\"50%\",background:c.color,color:\"white\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",fontSize:\"12px\",fontWeight:\"bold\",border:\"2px solid white\",marginLeft:\"-8px\",zIndex:5},children:c.initials},c.id))]}),!isUserLoggedIn?/*#__PURE__*/_jsx(\"button\",{className:\"launch-btn\",style:{background:\"#6366f1\",color:\"white\",borderColor:\"#6366f1\"},onClick:()=>{if(typeof window!==\"undefined\"){window.location.href=`/teacher-signup?redirect=${encodeURIComponent(window.location.pathname+window.location.search)}`;}},children:\"Log In\"}):/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"button\",{className:\"launch-btn\",onClick:()=>handleSaveCanvas(true),children:isSaving?\"Saving...\":\"Save Board\"}),/*#__PURE__*/_jsxs(\"button\",{className:\"launch-btn\",disabled:undoStack.length===0,onClick:handleUndo,style:{display:\"flex\",alignItems:\"center\",gap:\"4px\"},children:[/*#__PURE__*/_jsx(\"span\",{children:\"↩️\"}),\" Undo\"]}),/*#__PURE__*/_jsxs(\"button\",{className:\"launch-btn\",disabled:redoStack.length===0,onClick:handleRedo,style:{display:\"flex\",alignItems:\"center\",gap:\"4px\"},children:[\"Redo \",/*#__PURE__*/_jsx(\"span\",{children:\"↪️\"})]}),/*#__PURE__*/_jsx(\"button\",{className:\"launch-btn\",style:{borderColor:\"#ef4444\",color:\"#ef4444\"},onClick:clearCanvas,children:\"Clear\"})]}),/*#__PURE__*/_jsx(\"button\",{className:\"launch-btn\",style:{background:\"#f1f5f9\"},onClick:()=>{if(isUserLoggedIn){handleSaveCanvas(false);}onClose();},children:\"Close\"})]})]}),!isUserLoggedIn&&/*#__PURE__*/_jsxs(\"div\",{style:{background:\"#fffbeb\",borderBottom:\"1px solid #fef3c7\",color:\"#92400e\",padding:\"8px 24px\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",fontSize:\"13px\",fontWeight:\"500\",gap:\"8px\",zIndex:10},children:[/*#__PURE__*/_jsx(\"span\",{children:\"⚠️\"}),/*#__PURE__*/_jsx(\"span\",{children:\"You are in View-Only Mode. Please log in to edit the board.\"}),/*#__PURE__*/_jsx(\"button\",{style:{background:\"#d97706\",color:\"white\",border:\"none\",padding:\"3px 12px\",borderRadius:\"6px\",fontSize:\"11px\",fontWeight:\"600\",cursor:\"pointer\",marginLeft:\"8px\",boxShadow:\"0 2px 4px rgba(217, 119, 6, 0.2)\"},onClick:()=>{if(typeof window!==\"undefined\"){window.location.href=`/teacher-signup?redirect=${encodeURIComponent(window.location.pathname+window.location.search)}`;}},children:\"Log In\"})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"whiteboard-toolbar\",style:{top:isUserLoggedIn?\"90px\":\"135px\"},children:[/*#__PURE__*/_jsx(\"button\",{title:\"Select & Move (Hand Tool)\",className:`toolbar-tool ${tool===\"select\"?\"active\":\"\"}`,onClick:()=>setTool(\"select\"),children:/*#__PURE__*/_jsx(\"svg\",{viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M18 11V6a2 2 0 0 0-2-2 2 2 0 0 0-2 2v5m-4 0V4a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7M6 14v-2.5a1.5 1.5 0 0 1 3 0V15m9-4V8.5a1.5 1.5 0 0 0-3 0V12m-9 2h9\"})})}),/*#__PURE__*/_jsx(\"button\",{title:\"Draw Pen\",className:`toolbar-tool ${tool===\"pen\"?\"active\":\"\"} ${!isUserLoggedIn?\"disabled\":\"\"}`,onClick:()=>isUserLoggedIn?setTool(\"pen\"):alert(\"You must be logged in to draw.\"),children:/*#__PURE__*/_jsxs(\"svg\",{viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\",children:[/*#__PURE__*/_jsx(\"path\",{d:\"M12 20h9\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z\"})]})}),/*#__PURE__*/_jsx(\"button\",{title:\"Draw Rectangle\",className:`toolbar-tool ${tool===\"rect\"?\"active\":\"\"} ${!isUserLoggedIn?\"disabled\":\"\"}`,onClick:()=>isUserLoggedIn?setTool(\"rect\"):alert(\"You must be logged in to draw shapes.\"),children:/*#__PURE__*/_jsx(\"svg\",{viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\",children:/*#__PURE__*/_jsx(\"rect\",{x:\"3\",y:\"3\",width:\"18\",height:\"18\",rx:\"2\",ry:\"2\"})})}),/*#__PURE__*/_jsx(\"button\",{title:\"Draw Ellipse\",className:`toolbar-tool ${tool===\"ellipse\"?\"active\":\"\"} ${!isUserLoggedIn?\"disabled\":\"\"}`,onClick:()=>isUserLoggedIn?setTool(\"ellipse\"):alert(\"You must be logged in to draw shapes.\"),children:/*#__PURE__*/_jsx(\"svg\",{viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\",children:/*#__PURE__*/_jsx(\"circle\",{cx:\"12\",cy:\"12\",r:\"10\"})})}),/*#__PURE__*/_jsx(\"button\",{title:\"Add Sticky Note\",className:`toolbar-tool ${tool===\"sticky\"?\"active\":\"\"} ${!isUserLoggedIn?\"disabled\":\"\"}`,onClick:()=>isUserLoggedIn?setTool(\"sticky\"):alert(\"You must be logged in to add sticky notes.\"),children:/*#__PURE__*/_jsx(\"svg\",{viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z\"})})}),/*#__PURE__*/_jsx(\"button\",{title:\"Add Text\",className:`toolbar-tool ${tool===\"text\"?\"active\":\"\"} ${!isUserLoggedIn?\"disabled\":\"\"}`,onClick:()=>isUserLoggedIn?setTool(\"text\"):alert(\"You must be logged in to add text.\"),children:/*#__PURE__*/_jsxs(\"svg\",{viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\",children:[/*#__PURE__*/_jsx(\"polyline\",{points:\"4 7 4 4 20 4 20 7\"}),/*#__PURE__*/_jsx(\"line\",{x1:\"9\",y1:\"20\",x2:\"15\",y2:\"20\"}),/*#__PURE__*/_jsx(\"line\",{x1:\"12\",y1:\"4\",x2:\"12\",y2:\"20\"})]})}),/*#__PURE__*/_jsx(\"button\",{title:\"Upload Image\",className:`toolbar-tool ${tool===\"image\"?\"active\":\"\"} ${!isUserLoggedIn?\"disabled\":\"\"}`,onClick:()=>isUserLoggedIn?setTool(\"image\"):alert(\"You must be logged in to upload images.\"),children:/*#__PURE__*/_jsxs(\"svg\",{viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\",children:[/*#__PURE__*/_jsx(\"rect\",{x:\"3\",y:\"3\",width:\"18\",height:\"18\",rx:\"2\",ry:\"2\"}),/*#__PURE__*/_jsx(\"circle\",{cx:\"8.5\",cy:\"8.5\",r:\"1.5\"}),/*#__PURE__*/_jsx(\"polyline\",{points:\"21 15 16 10 5 21\"})]})}),/*#__PURE__*/_jsx(\"button\",{title:\"Add PDF\",className:`toolbar-tool ${tool===\"pdf\"?\"active\":\"\"} ${!isUserLoggedIn?\"disabled\":\"\"}`,onClick:()=>isUserLoggedIn?setTool(\"pdf\"):alert(\"You must be logged in to add PDF files.\"),children:/*#__PURE__*/_jsxs(\"svg\",{viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\",children:[/*#__PURE__*/_jsx(\"path\",{d:\"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z\"}),/*#__PURE__*/_jsx(\"polyline\",{points:\"14 2 14 8 20 8\"}),/*#__PURE__*/_jsx(\"line\",{x1:\"16\",y1:\"13\",x2:\"8\",y2:\"13\"}),/*#__PURE__*/_jsx(\"line\",{x1:\"16\",y1:\"17\",x2:\"8\",y2:\"17\"})]})}),/*#__PURE__*/_jsx(\"div\",{className:\"color-swatches\",children:[\"#6366f1\",\"#10b981\",\"#d946ef\",\"#f59e0b\",\"#ef4444\",\"#000000\"].map(c=>/*#__PURE__*/_jsx(\"div\",{className:`color-swatch ${color===c?\"active\":\"\"} ${!isUserLoggedIn?\"disabled\":\"\"}`,style:{backgroundColor:c},onClick:()=>isUserLoggedIn&&setColor(c)},c))})]}),/*#__PURE__*/_jsx(\"input\",{type:\"file\",ref:fileInputRef,style:{display:\"none\"},accept:\"image/*\",onChange:handleImageFileChange}),/*#__PURE__*/_jsx(\"input\",{type:\"file\",ref:pdfFileInputRef,style:{display:\"none\"},accept:\"application/pdf\",onChange:handlePdfFileChange}),/*#__PURE__*/_jsx(\"div\",{ref:canvasContainerRef,className:\"whiteboard-canvas-container\",onPointerDown:handleMouseDown,onPointerMove:handleMouseMove,onPointerUp:handleMouseUp,style:{cursor:tool===\"select\"?isPanning?\"grabbing\":\"grab\":\"crosshair\",touchAction:\"none\"},children:/*#__PURE__*/_jsxs(\"div\",{className:\"whiteboard-canvas-content\",style:{transform:`translate(${pan.x}px, ${pan.y}px) scale(${zoom})`,transformOrigin:\"0 0\",width:\"100%\",height:\"100%\",position:\"absolute\",left:0,top:0},children:[/*#__PURE__*/_jsxs(\"div\",{className:\"whiteboard-html-layer\",style:{pointerEvents:tool===\"pen\"||tool===\"rect\"||tool===\"ellipse\"?\"none\":\"auto\"},children:[elements.map(el=>{if(el.type===\"sticky\"){const isSelected=tool===\"select\"&&selectedIds.includes(el.id);return /*#__PURE__*/_jsxs(\"div\",{className:`sticky-note ${el.status===\"reviewing\"?\"element-reviewing\":\"\"}`,onPointerDown:e=>handleElementDragStart(e,el.id,el.x,el.y),onDragStart:e=>e.preventDefault(),style:{left:el.x,top:el.y,width:el.width,height:el.height,backgroundColor:el.color===\"#000000\"?\"#fef9c3\":`${el.color}22`,border:isSelected?`2px solid #3b82f6`:`1.5px solid ${el.color}`,cursor:draggingId===el.id?\"grabbing\":tool===\"select\"?\"grab\":\"default\",boxShadow:isSelected?\"0 0 0 2px rgba(59, 130, 246, 0.4)\":undefined,position:\"absolute\",pointerEvents:tool===\"pen\"||tool===\"rect\"||tool===\"ellipse\"?\"none\":\"auto\"},children:[el.status===\"reviewing\"&&/*#__PURE__*/_jsx(\"div\",{className:\"reviewing-spinner-overlay\",children:/*#__PURE__*/_jsx(\"div\",{className:\"spinner-micro\"})}),/*#__PURE__*/_jsx(\"textarea\",{value:el.text,disabled:el.status===\"reviewing\",onFocus:()=>pushToUndo(elements),onChange:e=>{const val=e.target.value;setElements(prev=>prev.map(item=>{if(item.id===el.id){const updated={...item,text:val};if(wsRef.current&&wsRef.current.readyState===WebSocket.OPEN){wsRef.current.send(JSON.stringify({type:\"draw\",element:updated}));}return updated;}return item;}));},onBlur:e=>handleTextChange(el.id,e.target.value)}),isSelected&&selectedIds.length===1&&/*#__PURE__*/_jsx(\"div\",{className:\"resize-handle\",onPointerDown:e=>handleResizeStart(e,el),style:{position:\"absolute\",bottom:\"-6px\",right:\"-6px\",width:\"12px\",height:\"12px\",borderRadius:\"50%\",backgroundColor:\"#3b82f6\",border:\"2px solid white\",cursor:\"se-resize\",zIndex:20}})]},el.id);}else if(el.type===\"text\"){const isSelected=tool===\"select\"&&selectedIds.includes(el.id);return /*#__PURE__*/_jsxs(\"div\",{className:`sticky-text-input ${el.status===\"reviewing\"?\"element-reviewing\":\"\"}`,onPointerDown:e=>handleElementDragStart(e,el.id,el.x,el.y),onDragStart:e=>e.preventDefault(),style:{position:\"absolute\",left:el.x,top:el.y,width:el.width,height:el.height,color:el.color,fontSize:\"14px\",fontWeight:\"600\",padding:\"4px\",cursor:draggingId===el.id?\"grabbing\":tool===\"select\"?\"grab\":\"default\",border:isSelected?\"2px solid #3b82f6\":\"1px dashed transparent\",borderRadius:\"4px\",boxShadow:isSelected?\"0 0 0 2px rgba(59, 130, 246, 0.4)\":undefined,pointerEvents:tool===\"pen\"||tool===\"rect\"||tool===\"ellipse\"?\"none\":\"auto\"},children:[el.status===\"reviewing\"&&/*#__PURE__*/_jsx(\"div\",{className:\"reviewing-spinner-overlay\",style:{background:\"transparent\"},children:/*#__PURE__*/_jsx(\"div\",{className:\"spinner-micro\"})}),/*#__PURE__*/_jsx(\"input\",{type:\"text\",value:el.text,disabled:el.status===\"reviewing\",onFocus:()=>pushToUndo(elements),style:{border:\"none\",background:\"transparent\",color:el.color,fontFamily:\"inherit\",fontWeight:\"inherit\",outline:\"none\",width:\"100%\",height:\"100%\"},onChange:e=>{const val=e.target.value;setElements(prev=>prev.map(item=>{if(item.id===el.id){const updated={...item,text:val};if(wsRef.current&&wsRef.current.readyState===WebSocket.OPEN){wsRef.current.send(JSON.stringify({type:\"draw\",element:updated}));}return updated;}return item;}));},onBlur:e=>handleTextChange(el.id,e.target.value)}),isSelected&&selectedIds.length===1&&/*#__PURE__*/_jsx(\"div\",{className:\"resize-handle\",onPointerDown:e=>handleResizeStart(e,el),style:{position:\"absolute\",bottom:\"-6px\",right:\"-6px\",width:\"12px\",height:\"12px\",borderRadius:\"50%\",backgroundColor:\"#3b82f6\",border:\"2px solid white\",cursor:\"se-resize\",zIndex:20}})]},el.id);}else if(el.type===\"image\"){const isSelected=tool===\"select\"&&selectedIds.includes(el.id);return /*#__PURE__*/_jsxs(\"div\",{className:`canvas-image-wrapper ${el.status===\"reviewing\"?\"element-reviewing\":\"\"}`,onPointerDown:e=>handleElementDragStart(e,el.id,el.x,el.y),onDragStart:e=>e.preventDefault(),style:{position:\"absolute\",left:el.x,top:el.y,width:el.width,height:el.height,border:isSelected?\"2px solid #3b82f6\":\"1px solid #cbd5e1\",borderRadius:\"8px\",overflow:\"hidden\",cursor:draggingId===el.id?\"grabbing\":tool===\"select\"?\"grab\":\"default\",boxShadow:isSelected?\"0 0 0 2px rgba(59, 130, 246, 0.4)\":undefined,pointerEvents:tool===\"pen\"||tool===\"rect\"||tool===\"ellipse\"?\"none\":\"auto\"},children:[el.status===\"reviewing\"&&/*#__PURE__*/_jsx(\"div\",{className:\"reviewing-spinner-overlay\",children:/*#__PURE__*/_jsx(\"div\",{className:\"spinner-micro\"})}),el.imageUrl?/*#__PURE__*/_jsx(\"img\",{src:el.imageUrl,alt:\"Uploaded\",draggable:false,onDragStart:e=>e.preventDefault(),style:{width:\"100%\",height:\"100%\",objectFit:\"cover\",userSelect:\"none\",pointerEvents:\"none\"}}):/*#__PURE__*/_jsx(\"div\",{style:{padding:\"8px\",background:\"#f1f5f9\",height:\"100%\",userSelect:\"none\",pointerEvents:\"none\"},children:\"Image Loading\"}),el.id.startsWith(\"elem_pdf_init_page_\")&&textbookParagraphs&&(()=>{const pageIdx=parseInt(el.id.replace(\"elem_pdf_init_page_\",\"\"),10);return textbookParagraphs.map((section,sectionIdx)=>{const isSel=localSelectedBlockId===section.id;const isHighlighted=isSel||hoveredSectionId===section.id;const boxes=section.boundingBoxes||[];return boxes.filter(box=>box.page===pageIdx+1).map((box,boxIdx)=>/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",left:`${box.x0}%`,top:`${box.y0}%`,width:`${box.x1-box.x0}%`,height:`${box.y1-box.y0}%`,backgroundColor:isHighlighted?\"rgba(99, 102, 241, 0.22)\":\"rgba(99, 102, 241, 0.06)\",border:isHighlighted?\"2px solid #6366f1\":\"1.5px dashed rgba(99, 102, 241, 0.5)\",borderRadius:\"4px\",cursor:\"pointer\",transition:\"all 0.2s ease\",zIndex:10},onMouseEnter:()=>setHoveredSectionId(section.id),onMouseLeave:()=>setHoveredSectionId(null),onPointerDown:e=>{e.stopPropagation();},onClick:e=>{e.stopPropagation();setLocalSelectedBlockId(section.id);if(onSelectSection){onSelectSection(section.text,section.id,sectionIdx);}},className:\"pdf-section-zone pdf-section-zone-wb\",title:section.title},`${section.id}_wb_box_${boxIdx}`));});})(),isSelected&&selectedIds.length===1&&/*#__PURE__*/_jsx(\"div\",{className:\"resize-handle\",onPointerDown:e=>handleResizeStart(e,el),style:{position:\"absolute\",bottom:\"-6px\",right:\"-6px\",width:\"12px\",height:\"12px\",borderRadius:\"50%\",backgroundColor:\"#3b82f6\",border:\"2px solid white\",cursor:\"se-resize\",zIndex:20}})]},el.id);}else if(el.type===\"pdf\"){const isSelected=tool===\"select\"&&selectedIds.includes(el.id);return /*#__PURE__*/_jsxs(\"div\",{className:`canvas-pdf-wrapper ${el.status===\"reviewing\"?\"element-reviewing\":\"\"}`,onPointerDown:e=>handleElementDragStart(e,el.id,el.x,el.y),onDragStart:e=>e.preventDefault(),style:{position:\"absolute\",left:el.x,top:el.y,width:el.width,height:el.height,border:isSelected?\"2px solid #3b82f6\":\"1px solid #cbd5e1\",borderRadius:\"8px\",overflow:\"hidden\",backgroundColor:\"white\",cursor:draggingId===el.id?\"grabbing\":tool===\"select\"?\"grab\":\"default\",boxShadow:isSelected?\"0 0 0 2px rgba(59, 130, 246, 0.4)\":undefined,pointerEvents:tool===\"pen\"||tool===\"rect\"||tool===\"ellipse\"?\"none\":\"auto\"},children:[el.status===\"reviewing\"&&/*#__PURE__*/_jsx(\"div\",{className:\"reviewing-spinner-overlay\",children:/*#__PURE__*/_jsx(\"div\",{className:\"spinner-micro\"})}),el.text?/*#__PURE__*/_jsx(\"iframe\",{src:el.text,draggable:false,onDragStart:e=>e.preventDefault(),style:{width:\"100%\",height:\"100%\",border:\"none\",userSelect:\"none\",pointerEvents:\"none\"},title:\"PDF Viewer\"}):/*#__PURE__*/_jsx(\"div\",{style:{padding:\"8px\",background:\"#f1f5f9\",height:\"100%\",userSelect:\"none\",pointerEvents:\"none\"},children:\"PDF Loading\"}),isSelected&&selectedIds.length===1&&/*#__PURE__*/_jsx(\"div\",{className:\"resize-handle\",onPointerDown:e=>handleResizeStart(e,el),style:{position:\"absolute\",bottom:\"-6px\",right:\"-6px\",width:\"12px\",height:\"12px\",borderRadius:\"50%\",backgroundColor:\"#3b82f6\",border:\"2px solid white\",cursor:\"se-resize\",zIndex:20}})]},el.id);}return null;}),collaborators.map(c=>/*#__PURE__*/_jsx(\"div\",{className:\"collaborator-cursor\",style:{left:c.x,top:c.y,\"--cursor-color\":c.color},children:/*#__PURE__*/_jsx(\"div\",{className:\"collaborator-cursor-tag\",style:{background:c.color},children:c.name})},c.id))]}),/*#__PURE__*/_jsxs(\"svg\",{ref:canvasRef,className:\"whiteboard-svg\",style:{pointerEvents:\"none\",zIndex:10},children:[elements.map(el=>{const isSelected=tool===\"select\"&&selectedIds.includes(el.id);const normalX=el.width>=0?el.x:el.x+el.width;const normalY=el.height>=0?el.y:el.y+el.height;const normalW=Math.abs(el.width);const normalH=Math.abs(el.height);if(el.type===\"pen\"&&el.points){const d=el.points.map((p,i)=>`${i===0?\"M\":\"L\"} ${p.x} ${p.y}`).join(\" \");return /*#__PURE__*/_jsxs(\"g\",{children:[/*#__PURE__*/_jsx(\"path\",{d:d,stroke:el.color,strokeWidth:\"3\",fill:\"none\",strokeLinecap:\"round\",strokeLinejoin:\"round\",style:{cursor:tool===\"select\"?draggingId===el.id?\"grabbing\":\"grab\":\"default\",pointerEvents:tool===\"select\"?\"auto\":\"none\"},onPointerDown:e=>{if(tool===\"select\"){handleElementDragStart(e,el.id,el.x,el.y);}}}),isSelected&&/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"rect\",{x:normalX-4,y:normalY-4,width:normalW+8,height:normalH+8,stroke:\"#3b82f6\",strokeWidth:\"1.5\",strokeDasharray:\"4 4\",fill:\"none\",style:{pointerEvents:\"none\"}}),selectedIds.length===1&&/*#__PURE__*/_jsx(\"circle\",{cx:normalX+normalW,cy:normalY+normalH,r:\"6\",fill:\"#3b82f6\",stroke:\"white\",strokeWidth:\"2\",style:{cursor:\"se-resize\",pointerEvents:\"auto\"},onPointerDown:e=>handleResizeStart(e,el)})]})]},el.id);}else if(el.type===\"rect\"){return /*#__PURE__*/_jsxs(\"g\",{children:[/*#__PURE__*/_jsx(\"rect\",{x:normalX,y:normalY,width:normalW,height:normalH,stroke:el.color,strokeWidth:\"3\",fill:tool===\"select\"?\"transparent\":\"none\",style:{cursor:tool===\"select\"?draggingId===el.id?\"grabbing\":\"grab\":\"default\",pointerEvents:tool===\"select\"?\"auto\":\"none\"},onPointerDown:e=>{if(tool===\"select\"){handleElementDragStart(e,el.id,el.x,el.y);}}}),isSelected&&/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"rect\",{x:normalX-4,y:normalY-4,width:normalW+8,height:normalH+8,stroke:\"#3b82f6\",strokeWidth:\"1.5\",strokeDasharray:\"4 4\",fill:\"none\",style:{pointerEvents:\"none\"}}),selectedIds.length===1&&/*#__PURE__*/_jsx(\"circle\",{cx:normalX+normalW,cy:normalY+normalH,r:\"6\",fill:\"#3b82f6\",stroke:\"white\",strokeWidth:\"2\",style:{cursor:\"se-resize\",pointerEvents:\"auto\"},onPointerDown:e=>handleResizeStart(e,el)})]})]},el.id);}else if(el.type===\"ellipse\"){const rx=normalW/2;const ry=normalH/2;return /*#__PURE__*/_jsxs(\"g\",{children:[/*#__PURE__*/_jsx(\"ellipse\",{cx:normalX+rx,cy:normalY+ry,rx:rx,ry:ry,stroke:el.color,strokeWidth:\"3\",fill:tool===\"select\"?\"transparent\":\"none\",style:{cursor:tool===\"select\"?draggingId===el.id?\"grabbing\":\"grab\":\"default\",pointerEvents:tool===\"select\"?\"auto\":\"none\"},onPointerDown:e=>{if(tool===\"select\"){handleElementDragStart(e,el.id,el.x,el.y);}}}),isSelected&&/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"rect\",{x:normalX-4,y:normalY-4,width:normalW+8,height:normalH+8,stroke:\"#3b82f6\",strokeWidth:\"1.5\",strokeDasharray:\"4 4\",fill:\"none\",style:{pointerEvents:\"none\"}}),selectedIds.length===1&&/*#__PURE__*/_jsx(\"circle\",{cx:normalX+normalW,cy:normalY+normalH,r:\"6\",fill:\"#3b82f6\",stroke:\"white\",strokeWidth:\"2\",style:{cursor:\"se-resize\",pointerEvents:\"auto\"},onPointerDown:e=>handleResizeStart(e,el)})]})]},el.id);}return null;}),selectionBox&&/*#__PURE__*/_jsx(\"rect\",{x:Math.min(selectionBox.startX,selectionBox.currentX),y:Math.min(selectionBox.startY,selectionBox.currentY),width:Math.abs(selectionBox.currentX-selectionBox.startX),height:Math.abs(selectionBox.currentY-selectionBox.startY),stroke:\"#3b82f6\",strokeWidth:\"1.5\",strokeDasharray:\"4 4\",fill:\"rgba(59, 130, 246, 0.08)\",style:{pointerEvents:\"none\"}})]})]})}),/*#__PURE__*/_jsxs(\"div\",{className:\"whiteboard-zoom-controls\",children:[/*#__PURE__*/_jsx(\"button\",{title:\"Zoom Out\",onClick:()=>handleZoomStep(false),children:\"−\"}),/*#__PURE__*/_jsxs(\"span\",{style:{minWidth:\"48px\",textAlign:\"center\",fontWeight:\"600\",fontSize:\"13px\",color:\"#475569\"},children:[Math.round(zoom*100),\"%\"]}),/*#__PURE__*/_jsx(\"button\",{title:\"Zoom In\",onClick:()=>handleZoomStep(true),children:\"+\"}),/*#__PURE__*/_jsx(\"button\",{title:\"Reset View\",onClick:()=>{setZoom(1);setPan({x:0,y:0});},style:{padding:\"4px 8px\",fontSize:\"11px\",fontWeight:\"600\",color:\"hsl(var(--primary-hsl))\",border:\"1px solid hsl(var(--primary-hsl) / 0.2)\",borderRadius:\"6px\",background:\"hsl(var(--primary-hsl) / 0.05)\"},children:\"Reset\"})]}),/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:`\n                .pdf-section-zone-wb {\n                    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;\n                }\n                .pdf-section-zone-wb:hover {\n                    background-color: rgba(99, 102, 241, 0.15) !important;\n                    border: 1.5px solid rgba(99, 102, 241, 0.8) !important;\n                    box-shadow: 0 0 8px rgba(99, 102, 241, 0.4);\n                }\n                @keyframes loading-bar-wb {\n                    0% { left: -50%; }\n                    100% { left: 100%; }\n                }\n            `}}),localSelectedBlockId&&localSelectedText&&/*#__PURE__*/_jsxs(\"div\",{className:\"whiteboard-mitra-sidebar\",onWheel:e=>{e.stopPropagation();},style:{position:\"absolute\",right:0,top:isUserLoggedIn?\"61px\":\"106px\",bottom:0,height:isUserLoggedIn?\"calc(100vh - 61px)\":\"calc(100vh - 106px)\",maxHeight:isUserLoggedIn?\"calc(100vh - 61px)\":\"calc(100vh - 106px)\",width:\"380px\",background:\"white\",borderLeft:\"1px solid #e2e8f0\",boxShadow:\"-4px 0 20px rgba(0,0,0,0.06)\",display:\"flex\",flexDirection:\"column\",zIndex:1e3,transition:\"transform 0.3s cubic-bezier(0.4, 0, 0.2, 1)\",fontFamily:\"Poppins, sans-serif\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{padding:\"16px 20px\",borderBottom:\"1px solid #f1f5f9\",display:\"flex\",justifyContent:\"space-between\",alignItems:\"center\",background:\"#faf9ff\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:\"8px\"},children:[/*#__PURE__*/_jsx(\"span\",{style:{fontSize:\"20px\"},children:mitraMood===\"thinking\"?\"🤔\":mitraMood===\"happy\"?\"😊\":\"💡\"}),/*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsx(\"h3\",{style:{fontSize:\"14px\",fontWeight:\"700\",color:\"#1e1b4b\",margin:0},children:\"Mitra AI Assistant\"}),/*#__PURE__*/_jsxs(\"p\",{style:{fontSize:\"10px\",color:\"#6366f1\",margin:0,fontWeight:\"600\"},children:[\"Chapter: \",chapterTitle||chapterId]})]})]}),/*#__PURE__*/_jsx(\"button\",{onClick:()=>setLocalSelectedBlockId(null),style:{background:\"none\",border:\"none\",fontSize:\"18px\",color:\"#64748b\",cursor:\"pointer\",padding:\"4px\"},children:\"✕\"})]}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",gap:\"4px\",padding:\"8px 12px\",borderBottom:\"1px solid #f1f5f9\",background:\"#ffffff\",overflowX:\"auto\",whiteSpace:\"nowrap\",scrollbarWidth:\"none\"},children:[{id:\"explain\",label:\"💡 Explain\"},{id:\"summarize\",label:\"📝 Summarize\"},{id:\"quiz\",label:\"❓ Test Me\"},{id:\"career\",label:\"🚀 Bhavishya\"},{id:\"translate\",label:\"🇮🇳 Translate\"},{id:\"visualizer\",label:\"🎨 Visualizer\"}].map(tab=>{const isTabActive=tab.id===activeTabId;return /*#__PURE__*/_jsx(\"button\",{onClick:()=>{if(tab.id===\"visualizer\"){if(!visualizerResponse){fetchVisualizerAction(localSelectedText);}}else{setActiveSelectionTab(tab.id);if(!selectionResponses[tab.id]){fetchSelectionAction(tab.id,localSelectedText);}}setActiveTabId(tab.id);},style:{padding:\"6px 12px\",borderRadius:\"8px\",border:\"1px solid\",borderColor:isTabActive?\"#6366f1\":\"#e2e8f0\",background:isTabActive?\"#f5f3ff\":\"white\",color:isTabActive?\"#6366f1\":\"#475569\",fontSize:\"11px\",fontWeight:\"600\",cursor:\"pointer\",transition:\"all 0.2s\"},children:tab.label},tab.id);})}),/*#__PURE__*/_jsx(\"div\",{style:{flex:1,overflowY:\"auto\",minHeight:0,padding:\"16px\",background:\"#f8fafc\"},children:activeTabId===\"visualizer\"?/* Visualizer Content *//*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:\"16px\"},children:diagramPollingHash?/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",alignItems:\"center\",justifyContent:\"center\",minHeight:\"200px\",padding:\"16px\",textAlign:\"center\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{fontSize:\"36px\",marginBottom:\"12px\"},children:\"🎨\"}),/*#__PURE__*/_jsx(\"h4\",{style:{fontSize:\"14px\",fontWeight:\"700\",color:\"#1e293b\",marginBottom:\"4px\"},children:\"Drawing diagram...\"}),/*#__PURE__*/_jsx(\"p\",{style:{fontSize:\"11px\",color:\"#64748b\",lineHeight:\"1.4\",marginBottom:\"12px\"},children:\"Mitra is rendering a visualization. Please wait 1-2 minutes.\"}),/*#__PURE__*/_jsx(\"div\",{style:{width:\"80px\",height:\"4px\",background:\"#cbd5e1\",borderRadius:\"2px\",overflow:\"hidden\",position:\"relative\"},children:/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",height:\"100%\",width:\"50%\",background:\"#6366f1\",borderRadius:\"2px\",animation:\"loading-bar-wb 1.5s infinite ease-in-out\"}})})]}):visualizerLoading?/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:\"10px\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{height:\"30px\",background:\"#e2e8f0\",borderRadius:\"8px\",animation:\"pulse 1.5s infinite\"}}),/*#__PURE__*/_jsx(\"div\",{style:{height:\"150px\",background:\"#e2e8f0\",borderRadius:\"8px\",animation:\"pulse 1.5s infinite\"}})]}):visualizerError?/*#__PURE__*/_jsxs(\"div\",{style:{background:\"#fef2f2\",border:\"1px solid #fee2e2\",padding:\"12px\",borderRadius:\"12px\",color:\"#991b1b\",fontSize:\"12px\"},children:[/*#__PURE__*/_jsx(\"p\",{style:{margin:\"0 0 8px 0\"},children:visualizerError}),/*#__PURE__*/_jsx(\"button\",{onClick:()=>fetchVisualizerAction(localSelectedText),style:{background:\"#ef4444\",color:\"white\",border:\"none\",padding:\"4px 8px\",borderRadius:\"6px\",fontSize:\"10px\",fontWeight:\"600\",cursor:\"pointer\"},children:\"Retry\"})]}):visualizerResponse?/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:\"12px\"},children:[/*#__PURE__*/_jsx(\"div\",{className:\"diagram-render-area\",dangerouslySetInnerHTML:{__html:visualizerResponse.diagramSvg}}),visualizerResponse.mitraValues&&/*#__PURE__*/_jsx(MitraGuidancePager,{mitraValues:visualizerResponse.mitraValues})]}):/*#__PURE__*/_jsx(\"div\",{className:\"diagram-render-area\",dangerouslySetInnerHTML:{__html:defaultDiagramSvg}})}):/* Selection assistant tabs *//*#__PURE__*/_jsx(\"div\",{children:selectionLoading?/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:\"10px\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{height:\"30px\",background:\"#e2e8f0\",borderRadius:\"8px\",animation:\"pulse 1.5s infinite\"}}),/*#__PURE__*/_jsx(\"div\",{style:{height:\"100px\",background:\"#e2e8f0\",borderRadius:\"8px\",animation:\"pulse 1.5s infinite\"}})]}):selectionError?/*#__PURE__*/_jsxs(\"div\",{style:{background:\"#fef2f2\",border:\"1px solid #fee2e2\",padding:\"12px\",borderRadius:\"12px\",color:\"#991b1b\",fontSize:\"12px\"},children:[/*#__PURE__*/_jsx(\"p\",{style:{margin:\"0 0 8px 0\"},children:selectionError}),/*#__PURE__*/_jsx(\"button\",{onClick:()=>fetchSelectionAction(activeSelectionTab,localSelectedText),style:{background:\"#ef4444\",color:\"white\",border:\"none\",padding:\"4px 8px\",borderRadius:\"6px\",fontSize:\"10px\",fontWeight:\"600\",cursor:\"pointer\"},children:\"Retry\"})]}):selectionResponses[activeSelectionTab]?/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:\"12px\"},children:[activeSelectionTab===\"explain\"&&/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:\"12px\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{background:\"white\",padding:\"12px\",borderRadius:\"12px\",border:\"1px solid #e2e8f0\"},children:[/*#__PURE__*/_jsx(\"h4\",{style:{fontSize:\"13px\",fontWeight:\"700\",color:\"#1e293b\",margin:\"0 0 8px 0\"},children:\"Explanation:\"}),/*#__PURE__*/_jsx(\"div\",{style:{fontSize:\"12px\",color:\"#374151\",lineHeight:\"1.5\"},children:renderMarkdown(selectionResponses.explain.explanation)}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",gap:\"4px\",flexWrap:\"wrap\",marginTop:\"8px\"},children:selectionResponses.explain.keyConcepts?.map((c,idx)=>/*#__PURE__*/_jsx(\"span\",{style:{background:\"#f5f3ff\",color:\"#6366f1\",fontSize:\"10px\",fontWeight:\"600\",padding:\"2px 6px\",borderRadius:\"6px\"},children:c},idx))})]}),/*#__PURE__*/_jsx(MitraGuidancePager,{mitraValues:selectionResponses.explain.mitraValues})]}),activeSelectionTab===\"summarize\"&&/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:\"12px\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{background:\"white\",padding:\"12px\",borderRadius:\"12px\",border:\"1px solid #e2e8f0\"},children:[/*#__PURE__*/_jsx(\"h4\",{style:{fontSize:\"13px\",fontWeight:\"700\",color:\"#1e293b\",margin:\"0 0 8px 0\"},children:\"Summary:\"}),/*#__PURE__*/_jsx(\"div\",{style:{fontSize:\"12px\",color:\"#374151\",lineHeight:\"1.5\",marginBottom:\"8px\"},children:renderMarkdown(selectionResponses.summarize.summary)}),/*#__PURE__*/_jsx(\"h5\",{style:{fontSize:\"11.5px\",fontWeight:\"700\",color:\"#1e293b\",margin:\"0 0 4px 0\"},children:\"Key Points:\"}),/*#__PURE__*/_jsx(\"ul\",{style:{paddingLeft:\"16px\",fontSize:\"11.5px\",color:\"#4b5563\",margin:0},children:selectionResponses.summarize.bulletPoints?.map((p,i)=>/*#__PURE__*/_jsx(\"li\",{style:{marginBottom:\"2px\"},children:p},i))})]}),/*#__PURE__*/_jsx(MitraGuidancePager,{mitraValues:selectionResponses.summarize.mitraValues})]}),activeSelectionTab===\"translate\"&&/*#__PURE__*/_jsxs(\"div\",{style:{background:\"white\",padding:\"12px\",borderRadius:\"12px\",border:\"1px solid #e2e8f0\",display:\"flex\",flexDirection:\"column\",gap:\"8px\"},children:[/*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsx(\"h4\",{style:{fontSize:\"11px\",color:\"#6366f1\",margin:\"0 0 4px 0\"},children:\"Hindi Translation:\"}),/*#__PURE__*/_jsx(\"p\",{style:{fontSize:\"14px\",fontWeight:\"600\",color:\"#1e293b\",margin:0},children:selectionResponses.translate.translatedText})]}),/*#__PURE__*/_jsx(\"button\",{onClick:()=>handleSpeakText(selectionResponses.translate.translatedText,999),style:{background:\"#6366f1\",color:\"white\",border:\"none\",padding:\"6px 12px\",borderRadius:\"8px\",fontSize:\"11px\",fontWeight:\"600\",cursor:\"pointer\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",gap:\"4px\"},children:\"🔊 Pronounce\"})]}),activeSelectionTab===\"quiz\"&&selectionResponses.quiz.questions&&/*#__PURE__*/_jsxs(\"div\",{style:{background:\"white\",padding:\"12px\",borderRadius:\"12px\",border:\"1px solid #e2e8f0\"},children:[/*#__PURE__*/_jsx(\"h4\",{style:{fontSize:\"13px\",fontWeight:\"700\",color:\"#1e293b\",margin:\"0 0 8px 0\"},children:\"Pop Quiz:\"}),selectionResponses.quiz.questions.map((q,qi)=>/*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsx(\"p\",{style:{fontSize:\"12px\",fontWeight:\"600\",color:\"#374151\",margin:\"0 0 8px 0\"},children:q.question}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:\"6px\"},children:q.options.map((opt,oi)=>{const isSelected=quizSelectedOption===opt;const isCorrect=opt===q.correctAnswer;let btnClass=\"\";if(quizAnswered){if(isCorrect)btnClass=\"correct\";else if(isSelected)btnClass=\"incorrect\";else btnClass=\"disabled\";}return /*#__PURE__*/_jsx(\"button\",{className:`quiz-option-btn ${btnClass}`,style:{width:\"100%\",textAlign:\"left\",padding:\"8px 12px\",background:btnClass===\"correct\"?\"#f0fdf4\":btnClass===\"incorrect\"?\"#fef2f2\":\"white\",border:btnClass===\"correct\"?\"1.5px solid #22c55e\":btnClass===\"incorrect\"?\"1.5px solid #ef4444\":\"1px solid #e2e8f0\",color:btnClass===\"correct\"?\"#166534\":btnClass===\"incorrect\"?\"#991b1b\":\"#475569\",borderRadius:\"8px\",fontSize:\"11px\",cursor:quizAnswered?\"default\":\"pointer\",fontWeight:isSelected||isCorrect?\"600\":\"400\",opacity:quizAnswered&&!isSelected&&!isCorrect?.5:1},onClick:()=>handleAnswerQuiz(opt,q.correctAnswer),children:opt},oi);})}),quizAnswered&&/*#__PURE__*/_jsxs(\"div\",{style:{marginTop:\"10px\",padding:\"8px\",background:\"#f8fafc\",borderRadius:\"8px\",fontSize:\"11px\",color:\"#475569\"},children:[/*#__PURE__*/_jsx(\"strong\",{children:\"Explanation:\"}),\" \",q.explanation]})]},qi))]}),activeSelectionTab===\"career\"&&/*#__PURE__*/_jsxs(\"div\",{className:\"career-card-container glass-card\",style:{display:\"flex\",flexDirection:\"column\",gap:\"10px\",background:\"white\",padding:\"12px\",borderRadius:\"12px\",border:\"1px solid #e2e8f0\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",gap:\"10px\",alignItems:\"center\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{width:\"40px\",height:\"40px\",overflow:\"hidden\",borderRadius:\"8px\"},dangerouslySetInnerHTML:{__html:selectionResponses.career.illustration||defaultCareerIllustration}}),/*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsx(\"span\",{style:{fontSize:\"9px\",color:\"#6366f1\",fontWeight:\"700\"},children:\"Bhavishya Career\"}),/*#__PURE__*/_jsx(\"h4\",{style:{fontSize:\"13px\",fontWeight:\"700\",color:\"#1e293b\",margin:0},children:selectionResponses.career.careerTitle})]})]}),/*#__PURE__*/_jsxs(\"div\",{style:{background:\"#f8fafc\",padding:\"8px\",borderRadius:\"8px\"},children:[/*#__PURE__*/_jsx(\"span\",{style:{fontSize:\"9px\",color:\"#64748b\"},children:\"Starting Salary:\"}),/*#__PURE__*/_jsxs(\"div\",{style:{fontSize:\"13px\",fontWeight:\"700\",color:\"#1e1b4b\"},children:[\"₹ \",selectionResponses.career.salaryLpa,\" LPA\"]})]}),/*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsx(\"h5\",{style:{fontSize:\"10px\",fontWeight:\"700\",color:\"#1e293b\",margin:\"0 0 6px 0\"},children:\"Learning Pathway\"}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:\"6px\"},children:selectionResponses.career.pathway?.map((step,sIdx)=>/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",gap:\"8px\",alignItems:\"flex-start\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{background:\"#6366f1\",color:\"white\",borderRadius:\"50%\",width:\"16px\",height:\"16px\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",fontSize:\"9px\",fontWeight:\"700\",flexShrink:0},children:sIdx+1}),/*#__PURE__*/_jsx(\"p\",{style:{fontSize:\"10.5px\",margin:0,color:\"#4b5563\",lineHeight:\"1.4\"},children:step})]},sIdx))})]}),/*#__PURE__*/_jsx(MitraGuidancePager,{mitraValues:selectionResponses.career.mitraValues})]})]}):/*#__PURE__*/_jsx(\"div\",{style:{textAlign:\"center\",color:\"#64748b\",padding:\"20px\"},children:\"Loading response...\"})})})]})]});};// ==================== INTERACTIVE AI COMPANION FEATURE HELPERS ====================\nconst conceptAnalogies={\"science\":{title:\"Science\",analogy:\"Science is like a detective's magnifying glass—it's a tool to uncover the clues and patterns hidden in nature.\"},\"curiosity\":{title:\"Curiosity\",analogy:\"Curiosity is like a compass—it doesn't give you all the answers, but it points you in the right direction to explore.\"},\"hypothesis\":{title:\"Hypothesis\",analogy:\"A hypothesis is like a prediction in a video game—it's an educated guess of what will happen next before you press play.\"},\"hypotheses\":{title:\"Hypothesis\",analogy:\"A hypothesis is like a prediction in a video game—it's an educated guess of what will happen next before you press play.\"},\"experiments\":{title:\"Experiments\",analogy:\"Experiments are like test-driving a car—you run them to see if your ideas handle the bumps of real-world facts.\"},\"experiment\":{title:\"Experiment\",analogy:\"An experiment is like test-driving a car—you run it to see if your idea handles the bumps of real-world facts.\"},\"scientific method\":{title:\"Scientific Method\",analogy:\"The scientific method is like a recipe in cooking—you follow the steps, taste the results, and adjust the ingredients until it's perfect.\"},\"observations\":{title:\"Observations\",analogy:\"Observations are like taking snapshots with your phone—they capture details exactly as they are so you can study them later.\"},\"observation\":{title:\"Observation\",analogy:\"Observation is like taking snapshots with your phone—it captures details exactly as they are so you can study them later.\"}};const generateSimulatorScenarios=(selectedText,chapterTitle)=>{const topic=selectedText||chapterTitle||\"this topic\";const lowerTopic=topic.toLowerCase();if(lowerTopic.includes(\"maratha\")||lowerTopic.includes(\"shivaji\")||lowerTopic.includes(\"swarajya\")||lowerTopic.includes(\"political\")||lowerTopic.includes(\"delhi\")||lowerTopic.includes(\"sultanate\")||lowerTopic.includes(\"ruler\")||lowerTopic.includes(\"history\")||lowerTopic.includes(\"empire\")){return{start:{text:`You are a trusted young advisor to a prominent leader during the historical period of \"${topic}\". A messenger arrives with news of a neighboring state seeking an alliance, but they demand concessions. How do you advise the leader?`,choices:[{text:`Advise diplomacy: Seek a balanced treaty preserving your sovereignty (\"Swarajya\").`,nextId:\"diplomacy\",feedback:\"Excellent leadership temperament! Respecting self-rule and strategic alliances is key to lasting power.\",correct:true},{text:\"Immediately launch a surprise military campaign to conquer them.\",nextId:\"war\",feedback:\"A bold move, but without analyzing their defense or resources, this violates strategic planning! Try again.\",correct:false},{text:\"Surrender the requested border lands to avoid any conflict.\",nextId:\"concession\",feedback:\"Conceding lands without negotiation weakens your state's sovereignty. Try again.\",correct:false}]},diplomacy:{text:\"The diplomacy works! A treaty is drafted, but your scouts discover a secret clause that could compromise your military navy or defences. What is your recommendation?\",choices:[{text:\"Formally request a revision of the clause while strengthening border patrols.\",nextId:\"victory\",feedback:\"Outstanding! You protected the sovereignty of the state through vigilant diplomacy. You are promoted to Chief Advisor!\",correct:true},{text:\"Ignore it to maintain the peace treaty at all costs.\",nextId:\"failure\",feedback:\"Ignoring warnings leads to strategic vulnerability. The state is compromised. Try again.\",correct:false}]},war:{text:\"The military campaign stalls due to rugged terrain. Your forces are cut off from supply lines. How do you adapt?\",choices:[{text:\"Withdraw to fortified hill forts and employ guerrilla tactics.\",nextId:\"diplomacy\",feedback:\"Excellent defensive pivot! Using terrain to your advantage turns the tide.\",correct:true},{text:\"Order a direct frontal assault against their main stronghold.\",nextId:\"failure\",feedback:\"A direct assault against a superior position leads to heavy losses. You retreat in defeat.\",correct:false}]},concession:{text:\"Conceding lands has emboldened them; they now demand full integration. The court is divided. What is your final stand?\",choices:[{text:\"Proclaim a defensive war to protect your sovereign home-rule.\",nextId:\"diplomacy\",feedback:\"A brave stand! The people unite to defend their independence.\",correct:true}]},victory:{text:\"Victory! The sovereign state flourishes under wise governance, proving that self-rule (Swarajya) and systematic planning are invincible.\",choices:[{text:\"Play again to explore other paths!\",nextId:\"start\",feedback:\"Restarting adventure...\"}]},failure:{text:\"The campaign has failed. Your advisor role is suspended. Return to the starting council to learn from this experience.\",choices:[{text:\"Re-enter the council chamber.\",nextId:\"start\",feedback:\"Returning to study the principles of strategy is the first step to victory.\",correct:false}]}};}return{start:{text:`You are an apprentice researcher studying \"${topic}\". A mysterious phenomenon has appeared in your experiments, behaving unlike any known model. The Chief Scientist asks you to investigate. What is your first step?`,choices:[{text:\"Draft a formal observation log recording its daily values and behavioral changes.\",nextId:\"observation\",feedback:\"Excellent! Systematic observation is the true foundation of scientific inquiry.\",correct:true},{text:\"Immediately announce that the phenomenon is proof of a new physical force.\",nextId:\"rumor\",feedback:\"Wait, drawing conclusions without evidence violates scientific temperament!\",correct:false},{text:\"Ask a magician or check old superstitious texts for an explanation.\",nextId:\"magic\",feedback:\"Seek answers in superstition? Science seeks systematic physical evidence. Try again.\",correct:false}]},observation:{text:\"Your logs show the phenomenon speeds up under specific conditions. You need to form a testable hypothesis. What do you propose?\",choices:[{text:\"The phenomenon is caused by energy sublimation and reflection.\",nextId:\"experiment_phase\",feedback:\"A brilliant, testable hypothesis! Now you need to think of a way to test it.\",correct:true},{text:\"The system has an internal hidden engine pushing it forward.\",nextId:\"engine_theory\",feedback:\"A creative guess, but does it align with physical principles? Let's refine this.\",correct:false}]},rumor:{text:\"Other researchers demand proof. The Chief Scientist demands you return to the scientific path. Where do you start?\",choices:[{text:\"Humbly start over by setting up your instruments and documenting the coordinates.\",nextId:\"observation\",feedback:\"Great humility! Admitting a rush to judgment and returning to observation is core to science.\",correct:true},{text:\"Double down and make up coordinates to support your theory.\",nextId:\"failure\",feedback:\"Falsifying data leads to scientific failure. You are suspended from the academy.\",correct:false}]},magic:{text:\"The superstitious texts claim the phenomenon is a celestial horse. This cannot be tested or measured. How do you respond?\",choices:[{text:\"Politely thank them, but propose to build a physical model to examine if it has physical structure.\",nextId:\"observation\",feedback:\"Beautiful scientific temperament! Merging local wisdom with rigorous testing.\",correct:true}]},experiment_phase:{text:`To test your hypothesis, you set up a small laboratory model. You place your system in a controlled chamber and apply heat. What do you observe?`,choices:[{text:\"The system sublimates directly into gas, confirming your hypothesis.\",nextId:\"victory\",feedback:\"Incredible! Your laboratory simulation supports the hypothesis! You write a peer-reviewed paper.\",correct:true},{text:\"The system melts into a liquid without forming any gas.\",nextId:\"failure\",feedback:\"Your hypothesis was disproven by the experiment. That is also a success in science! Refine and try again.\",correct:false}]},engine_theory:{text:\"You search for an internal engine but find none. Your hypothesis is disproven. How do you proceed?\",choices:[{text:\"Pivot your hypothesis to focus on the external energy source.\",nextId:\"observation\",feedback:\"Yes! A good scientist adapts their hypothesis when confronted with negative results.\",correct:true}]},victory:{text:`Victory! Your systematic application of the scientific method to \"${topic}\" has expanded human knowledge. You are awarded the Academy Star!`,choices:[{text:\"Play again to explore other paths!\",nextId:\"start\",feedback:\"Restarting adventure...\"}]},failure:{text:\"The campaign has failed. Your researcher role is suspended. Return to the starting room to learn from this experience.\",choices:[{text:\"Re-enter the laboratory.\",nextId:\"start\",feedback:\"Returning to study the principles of scientific inquiry is the first step to discovery.\",correct:false}]}};};const defaultCareerIllustration=`\n<svg viewBox=\"0 0 120 120\" width=\"100%\" height=\"100%\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n    <rect width=\"120\" height=\"120\" rx=\"16\" fill=\"url(#careerIllustGrad)\" />\n    <circle cx=\"60\" cy=\"50\" r=\"22\" fill=\"#FDE047\" opacity=\"0.2\"/>\n    <circle cx=\"60\" cy=\"45\" r=\"12\" fill=\"#FDBA74\" />\n    <path d=\"M60 33 C53 33 48 37 48 45 C48 47 50 47 53 45 C56 43 60 45 60 45 C60 45 64 43 67 45 C70 47 72 47 72 45 C72 37 67 33 60 33 Z\" fill=\"#1E1B4B\"/>\n    <rect x=\"52\" y=\"42\" width=\"6\" height=\"4\" rx=\"1\" stroke=\"#1E293B\" stroke-width=\"1\"/>\n    <rect x=\"62\" y=\"42\" width=\"6\" height=\"4\" rx=\"1\" stroke=\"#1E293B\" stroke-width=\"1\"/>\n    <path d=\"M40 78 C40 68 48 64 60 64 C72 64 80 68 80 78 V82 H40 V78 Z\" fill=\"#FFFFFF\" stroke=\"#CBD5E1\" stroke-width=\"1.5\"/>\n    <path d=\"M54 64 L50 72 H70 L66 64\" fill=\"#FDBA74\" />\n    <path d=\"M90 65 L94 72 V78 H86 V72 L90 65 Z\" fill=\"#38BDF8\" stroke=\"#0284C7\" stroke-width=\"1.5\"/>\n    <defs>\n        <linearGradient id=\"careerIllustGrad\" x1=\"0\" y1=\"0\" x2=\"120\" y2=\"120\">\n            <stop stop-color=\"#4F46E5\" />\n            <stop offset=\"1\" stop-color=\"#D946EF\" />\n        </linearGradient>\n    </defs>\n</svg>\n`;const defaultDiagramSvg=`\n<svg viewBox=\"0 0 400 300\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" style=\"width: 100%; height: auto; border-radius: 16px; background: #0f172a; box-shadow: 0 8px 32px rgba(0,0,0,0.2);\">\n  <!-- Sun -->\n  <circle cx=\"60\" cy=\"60\" r=\"30\" fill=\"url(#sunGlow)\" filter=\"drop-shadow(0 0 10px #f59e0b)\" />\n  <path d=\"M60 15v10m0 70v10m-35-45h10m70 0h10\" stroke=\"#f59e0b\" stroke-width=\"2\" stroke-linecap=\"round\" />\n  \n  <!-- Sunlight Rays -->\n  <path d=\"M90 90 L160 140\" stroke=\"#fef08a\" stroke-width=\"2\" stroke-dasharray=\"4 4\" stroke-linecap=\"round\" />\n  <text x=\"95\" y=\"110\" fill=\"#fef08a\" font-size=\"10\" font-family=\"Poppins\" font-weight=\"600\">Sunlight (Energy)</text>\n\n  <!-- Leaf / Plant -->\n  <path d=\"M150 200 C150 130, 250 130, 250 200 C250 240, 150 240, 150 200 Z\" fill=\"url(#leafGrad)\" filter=\"drop-shadow(0 4px 12px rgba(16,185,129,0.3))\" />\n  <path d=\"M150 200 Q200 180 250 200\" stroke=\"#047857\" stroke-width=\"2\" />\n  <path d=\"M180 192 L190 175M200 190 L215 178M220 192 L235 182\" stroke=\"#047857\" stroke-width=\"1.5\" />\n  \n  <!-- Inputs: CO2 and H2O -->\n  <path d=\"M80 160 L140 180\" stroke=\"#38bdf8\" stroke-width=\"2\" marker-end=\"url(#arrow)\" />\n  <text x=\"50\" y=\"150\" fill=\"#38bdf8\" font-size=\"11\" font-family=\"Poppins\" font-weight=\"700\">CO₂ (Carbon Dioxide)</text>\n\n  <path d=\"M170 270 L190 230\" stroke=\"#60a5fa\" stroke-width=\"2\" marker-end=\"url(#arrow)\" />\n  <text x=\"110\" y=\"280\" fill=\"#60a5fa\" font-size=\"11\" font-family=\"Poppins\" font-weight=\"700\">H₂O (Water from roots)</text>\n\n  <!-- Outputs: Glucose and Oxygen -->\n  <path d=\"M240 180 L320 150\" stroke=\"#f43f5e\" stroke-width=\"2\" marker-end=\"url(#arrow)\" />\n  <text x=\"310\" y=\"138\" fill=\"#f43f5e\" font-size=\"11\" font-family=\"Poppins\" font-weight=\"700\">O₂ (Oxygen Released)</text>\n\n  <path d=\"M220 210 L300 240\" stroke=\"#10b981\" stroke-width=\"2\" marker-end=\"url(#arrow)\" />\n  <text x=\"290\" y=\"255\" fill=\"#10b981\" font-size=\"11\" font-family=\"Poppins\" font-weight=\"700\">Glucose (Sugar / Energy)</text>\n\n  <!-- Markers & Gradients -->\n  <defs>\n    <marker id=\"arrow\" viewBox=\"0 0 10 10\" refX=\"6\" refY=\"5\" markerWidth=\"6\" markerHeight=\"6\" orient=\"auto-start-reverse\">\n      <path d=\"M0 0 L10 5 L0 10 z\" fill=\"currentColor\" />\n    </marker>\n    <linearGradient id=\"sunGlow\" x1=\"0\" y1=\"0\" x2=\"1\" y2=\"1\">\n      <stop offset=\"0%\" stop-color=\"#fbbf24\" />\n      <stop offset=\"100%\" stop-color=\"#f59e0b\" />\n    </linearGradient>\n    <linearGradient id=\"leafGrad\" x1=\"0\" y1=\"0\" x2=\"1\" y2=\"1\">\n      <stop offset=\"0%\" stop-color=\"#34d399\" />\n      <stop offset=\"100%\" stop-color=\"#059669\" />\n    </linearGradient>\n  </defs>\n</svg>\n`;const renderMitraIllustration=tabName=>{switch(tabName){case\"empathy\":return /*#__PURE__*/_jsxs(\"svg\",{width:\"80\",height:\"80\",viewBox:\"0 0 80 80\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:[/*#__PURE__*/_jsx(\"circle\",{cx:\"40\",cy:\"40\",r:\"38\",fill:\"url(#empathyGrad)\",stroke:\"hsl(var(--primary-hsl) / 0.2)\",strokeWidth:\"2\"}),/*#__PURE__*/_jsx(\"circle\",{cx:\"40\",cy:\"35\",r:\"14\",fill:\"#FDBA74\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M26 35C26 25 32 21 40 21C48 21 54 25 54 35C54 36 52 35 48 33C44 31 40 33 40 33C40 33 36 31 32 33C28 35 26 36 26 35Z\",fill:\"#1E1B4B\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M34 35C35 36 37 36 38 35\",stroke:\"#1E1B4B\",strokeWidth:\"1.5\",strokeLinecap:\"round\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M42 35C43 36 45 36 46 35\",stroke:\"#1E1B4B\",strokeWidth:\"1.5\",strokeLinecap:\"round\"}),/*#__PURE__*/_jsx(\"circle\",{cx:\"40\",cy:\"30\",r:\"1.5\",fill:\"#EF4444\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M36 41C38 43 42 43 44 41\",stroke:\"#1E1B4B\",strokeWidth:\"2\",strokeLinecap:\"round\"}),/*#__PURE__*/_jsx(\"circle\",{cx:\"32\",cy:\"38\",r:\"2\",fill:\"#F87171\",opacity:\"0.6\"}),/*#__PURE__*/_jsx(\"circle\",{cx:\"48\",cy:\"38\",r:\"2\",fill:\"#F87171\",opacity:\"0.6\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M22 62C22 52 30 48 40 48C50 48 58 52 58 62V65H22V62Z\",fill:\"#047857\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M40 48L35 54H45L40 48Z\",fill:\"#FDBA74\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M32 48L35 54M48 48L45 54\",stroke:\"#FFFFFF\",strokeWidth:\"1.5\"}),/*#__PURE__*/_jsx(\"defs\",{children:/*#__PURE__*/_jsxs(\"linearGradient\",{id:\"empathyGrad\",x1:\"0\",y1:\"0\",x2:\"80\",y2:\"80\",gradientUnits:\"userSpaceOnUse\",children:[/*#__PURE__*/_jsx(\"stop\",{stopColor:\"#EEF2F6\"}),/*#__PURE__*/_jsx(\"stop\",{offset:\"1\",stopColor:\"#E0E7FF\"})]})})]});case\"curiosity\":return /*#__PURE__*/_jsxs(\"svg\",{width:\"80\",height:\"80\",viewBox:\"0 0 80 80\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:[/*#__PURE__*/_jsx(\"circle\",{cx:\"40\",cy:\"40\",r:\"38\",fill:\"url(#curiosityGrad)\",stroke:\"hsl(var(--accent-hsl) / 0.2)\",strokeWidth:\"2\"}),/*#__PURE__*/_jsx(\"circle\",{cx:\"35\",cy:\"38\",r:\"13\",fill:\"#FDBA74\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M22 38C22 28 28 24 35 24C42 24 48 28 48 38C48 39 46 38 42 36C38 34 35 36 35 36C35 36 32 34 28 36C24 38 22 39 22 38Z\",fill:\"#1E1B4B\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M30 36C31 35 33 35 34 36\",stroke:\"#1E1B4B\",strokeWidth:\"1.5\",strokeLinecap:\"round\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M38 36C39 35 41 35 42 36\",stroke:\"#1E1B4B\",strokeWidth:\"1.5\",strokeLinecap:\"round\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M31 43C33 45 37 45 39 43\",stroke:\"#1E1B4B\",strokeWidth:\"2\",strokeLinecap:\"round\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M19 64C19 55 26 51 35 51C44 51 51 55 51 64V67H19V64Z\",fill:\"#1D4ED8\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M54 28C54 24.6863 56.6863 22 60 22C63.3137 22 66 24.6863 66 28C66 30.5 64.5 32 63.5 33.5C63 34.5 63 36 63 36H57C57 36 57 34.5 56.5 33.5C55.5 32 54 30.5 54 28Z\",fill:\"#FDE047\"}),/*#__PURE__*/_jsx(\"rect\",{x:\"58\",y:\"36\",width:\"4\",height:\"2\",fill:\"#94A3B8\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M60 16V19M68 22L66 24M71 28H68M68 34L66 32\",stroke:\"#FBBF24\",strokeWidth:\"1.5\",strokeLinecap:\"round\"}),/*#__PURE__*/_jsx(\"defs\",{children:/*#__PURE__*/_jsxs(\"linearGradient\",{id:\"curiosityGrad\",x1:\"0\",y1:\"0\",x2:\"80\",y2:\"80\",gradientUnits:\"userSpaceOnUse\",children:[/*#__PURE__*/_jsx(\"stop\",{stopColor:\"#FFFBEB\"}),/*#__PURE__*/_jsx(\"stop\",{offset:\"1\",stopColor:\"#FEF3C7\"})]})})]});case\"temperament\":return /*#__PURE__*/_jsxs(\"svg\",{width:\"80\",height:\"80\",viewBox:\"0 0 80 80\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:[/*#__PURE__*/_jsx(\"circle\",{cx:\"40\",cy:\"40\",r:\"38\",fill:\"url(#tempGrad)\",stroke:\"hsl(200 80% 50% / 0.2)\",strokeWidth:\"2\"}),/*#__PURE__*/_jsx(\"circle\",{cx:\"40\",cy:\"34\",r:\"13\",fill:\"#FDBA74\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M27 34C27 25 33 21 40 21C47 21 53 25 53 34C53 35 50 33 46 32C42 31 40 32 40 32C40 32 38 31 34 32C30 33 27 35 27 34Z\",fill:\"#334155\"}),/*#__PURE__*/_jsx(\"circle\",{cx:\"40\",cy:\"18\",r:\"4\",fill:\"#334155\"}),/*#__PURE__*/_jsx(\"rect\",{x:\"30\",y:\"31\",width:\"8\",height:\"6\",rx:\"2\",stroke:\"#1E293B\",strokeWidth:\"1.5\",fill:\"none\"}),/*#__PURE__*/_jsx(\"rect\",{x:\"42\",y:\"31\",width:\"8\",height:\"6\",rx:\"2\",stroke:\"#1E293B\",strokeWidth:\"1.5\",fill:\"none\"}),/*#__PURE__*/_jsx(\"line\",{x1:\"38\",y1:\"34\",x2:\"42\",y2:\"34\",stroke:\"#1E293B\",strokeWidth:\"1.5\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M37 41C38.5 42.5 41.5 42.5 43 41\",stroke:\"#1E293B\",strokeWidth:\"1.5\",strokeLinecap:\"round\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M22 62C22 52 30 48 40 48C50 48 58 52 58 62V65H22V62Z\",fill:\"#B91C1C\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M28 62L46 48L52 52L34 65H28V62Z\",fill:\"#F59E0B\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M60 48L63 54V59H55V54L58 48H60Z\",fill:\"#60A5FA\"}),/*#__PURE__*/_jsx(\"rect\",{x:\"57\",y:\"46\",width:\"4\",height:\"2\",rx:\"0.5\",fill:\"#475569\"}),/*#__PURE__*/_jsx(\"circle\",{cx:\"58\",cy:\"56\",r:\"1.5\",fill:\"#E0F2FE\"}),/*#__PURE__*/_jsx(\"defs\",{children:/*#__PURE__*/_jsxs(\"linearGradient\",{id:\"tempGrad\",x1:\"0\",y1:\"0\",x2:\"80\",y2:\"80\",gradientUnits:\"userSpaceOnUse\",children:[/*#__PURE__*/_jsx(\"stop\",{stopColor:\"#F0F9FF\"}),/*#__PURE__*/_jsx(\"stop\",{offset:\"1\",stopColor:\"#E0F2FE\"})]})})]});case\"transparency\":return /*#__PURE__*/_jsxs(\"svg\",{width:\"80\",height:\"80\",viewBox:\"0 0 80 80\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:[/*#__PURE__*/_jsx(\"circle\",{cx:\"40\",cy:\"40\",r:\"38\",fill:\"url(#transGrad)\",stroke:\"hsl(120 60% 50% / 0.2)\",strokeWidth:\"2\"}),/*#__PURE__*/_jsx(\"circle\",{cx:\"30\",cy:\"33\",r:\"10\",fill:\"#FDBA74\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M20 33C20 26 25 23 30 23C35 23 40 26 40 33C40 34 38 33 35 32C32 31 30 32 30 32C30 32 28 31 25 32C22 33 20 34 20 33Z\",fill:\"#334155\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M30 40C31 41 32 41 33 40\",stroke:\"#1E293B\",strokeWidth:\"1.2\",strokeLinecap:\"round\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M18 56C18 48 24 45 32 45C34.5 45 36.8 45.7 38.6 47C37 49 36 51.5 36 54V59H18V56Z\",fill:\"#7C3AED\"}),/*#__PURE__*/_jsx(\"circle\",{cx:\"48\",cy:\"38\",r:\"10\",fill:\"#FDBA74\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M38 38C38 31 43 28 48 28C53 28 58 31 58 38C58 39 56 38 53 37C50 36 48 37 48 37C48 37 46 36 43 37C40 38 38 39 38 38Z\",fill:\"#1E1B4B\"}),/*#__PURE__*/_jsx(\"circle\",{cx:\"48\",cy:\"34\",r:\"1\",fill:\"#EF4444\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M46 43C47 44 49 44 50 43\",stroke:\"#1E1B4B\",strokeWidth:\"1.2\",strokeLinecap:\"round\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M38 58C38 51 44 48 52 48C57.5 48 62 51 62 58V61H38V58Z\",fill:\"#059669\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M38 30L40 28L42 30L40 32L38 30Z\",fill:\"#FBBF24\"}),/*#__PURE__*/_jsx(\"defs\",{children:/*#__PURE__*/_jsxs(\"linearGradient\",{id:\"transGrad\",x1:\"0\",y1:\"0\",x2:\"80\",y2:\"80\",gradientUnits:\"userSpaceOnUse\",children:[/*#__PURE__*/_jsx(\"stop\",{stopColor:\"#F0FDF4\"}),/*#__PURE__*/_jsx(\"stop\",{offset:\"1\",stopColor:\"#DCFCE7\"})]})})]});default:return null;}};const parseTextbookParagraph=text=>{const rawSentences=text.split(RegExp(\"(?<=[.!?])\\\\s+\"));const sentences=[];let temp=\"\";for(let i=0;i<rawSentences.length;i++){const s=rawSentences[i].trim();if(!s)continue;if(temp){// Check if we should merge the previous temp sentence with this one:\n// 1. If temp is a list item indicator like \"1.\", \"2.\", \"A.\"\nconst isListItem=/^(?:\\d+|[a-zA-Z]|\\d+\\)|[a-zA-Z]\\))\\.$/.test(temp.trim())||/^\\(?\\d+\\)?$/.test(temp.trim())||/^\\(?\\w\\)?$/.test(temp.trim());// 2. If the last word of temp is an abbreviation (like Fig. or e.g.)\nconst lastWordMatch=temp.trim().match(/(\\b[A-Za-z]+)\\.$/);const lastWord=lastWordMatch?lastWordMatch[1].toLowerCase():\"\";const isAbbreviation=[\"fig\",\"figs\",\"figure\",\"eg\",\"ie\",\"vs\",\"no\",\"approx\",\"dr\",\"mr\",\"mrs\",\"ms\",\"prof\",\"al\"].includes(lastWord);// 3. If there is a decimal split (e.g. \"2.\" and \"5\")\nconst isDecimalSplit=/\\b\\d+\\.$/.test(temp.trim())&&/^\\d+/.test(s);// 4. If this sentence starts with lowercase\nconst firstChar=s.charAt(0);const isFirstCharLowercase=firstChar===firstChar.toLowerCase()&&firstChar!==firstChar.toUpperCase();if(isListItem||isAbbreviation||isDecimalSplit||isFirstCharLowercase){temp=temp+\" \"+s;}else{sentences.push(temp);temp=s;}}else{temp=s;}}if(temp){sentences.push(temp);}// Filter out running headers, page numbers, and isolated layout labels\nconst isNoiseSentence=s=>{const trimmed=s.trim();if(!trimmed)return true;if(/^\\d+$/.test(trimmed))return true;// Page numbers\nconst lower=trimmed.toLowerCase();if(lower===\"grade 7\"||lower===\"grade 9\"||lower===\"curiosity\"||lower===\"science\"||lower.startsWith(\"chapter \")&&/^\\d+$/.test(lower.slice(8).trim()))return true;// Running headers\nif(/^\\([a-z]\\)$/i.test(trimmed))return true;// Subfigure labels (a), (b)\n// Glyph artifact lines: single non-alpha char + space pattern repeated (e.g. \"y How does...\")\nif(/^[^a-zA-Z0-9]\\s/.test(trimmed)&&trimmed.length<6)return true;// NCERT inline bullet bleed: sentence starting with a lone \"y\" or \"l\" glyph\nif(/^[yl]\\s+[A-Z]/.test(trimmed))return true;if(lower===\"initial\"||lower===\"final\"||lower===\"experimental set-up\"||lower===\"stomata\"||lower===\"beaker a\"||lower===\"beaker b\")return true;// Diagram labels\n// Very short fragments that don't end in punctuation and aren't list items\nif(trimmed.length<10&&!/[.!?]$/.test(trimmed)){return true;}return false;};const cleanSentences=sentences.filter(s=>!isNoiseSentence(s));const result={coreConcept:\"\",examples:[],steps:[],details:[]};if(cleanSentences.length===0)return result;result.coreConcept=cleanSentences[0];for(let i=1;i<cleanSentences.length;i++){const sentence=cleanSentences[i];const lower=sentence.toLowerCase();if(lower.includes(\"example\")||lower.includes(\"like\")||lower.includes(\"observe\")||lower.includes(\"phenomena\")||lower.includes(\"such as\")||lower.includes(\"instance\")){result.examples.push(sentence);}else if(lower.includes(\"process\")||lower.includes(\"step\")||lower.includes(\"experiment\")||lower.includes(\"formulate\")||lower.includes(\"method\")||lower.includes(\"involves\")||lower.includes(\"analyse\")||lower.includes(\"analyze\")||lower.includes(\"results\")||lower.includes(\"hypothes\")){result.steps.push(sentence);}else{// Guard: skip likely-corrupted lines (PDF glyph artifacts, garbled extractions)\nconst isLikelyCorrupted=(()=>{const words=sentence.trim().split(/\\s+/);const avgWordLen=sentence.replace(/\\s/g,\"\").length/Math.max(words.length,1);if(words.length>4&&avgWordLen<2.5)return true;// Glyph soup\nif(/^[yl]\\s+[A-Z]/.test(sentence.trim()))return true;// NCERT bullet bleed\nreturn false;})();if(!isLikelyCorrupted){result.details.push(sentence);}}}return result;};const renderParagraphWithAnalogies=(text,onKeywordClick)=>{const keywords=[\"scientific method\",\"observations\",\"observation\",\"hypotheses\",\"hypothesis\",\"experiments\",\"experiment\",\"science\",\"curiosity\"];const regex=new RegExp(`\\\\b(${keywords.join(\"|\")})\\\\b`,\"gi\");const parts=text.split(regex);return parts.map((part,i)=>{const lowerPart=part.toLowerCase();if(keywords.includes(lowerPart)){return /*#__PURE__*/_jsxs(\"span\",{className:\"analogy-trigger\",onClick:e=>{e.stopPropagation();onKeywordClick(lowerPart);},children:[part,/*#__PURE__*/_jsxs(\"span\",{className:\"analogy-card glass-card\",children:[/*#__PURE__*/_jsxs(\"span\",{className:\"analogy-card-title\",children:[\"💡 \",conceptAnalogies[lowerPart].title,\" Analogy\"]}),/*#__PURE__*/_jsx(\"span\",{className:\"analogy-card-text\",children:conceptAnalogies[lowerPart].analogy})]})]},i);}return part;});};const renderMarkdown=text=>{if(!text)return\"\";const lines=text.split(\"\\n\");let inList=false;const elements=[];lines.forEach((line,index)=>{let trimmed=line.trim();if(trimmed.startsWith(\"- \")||trimmed.startsWith(\"* \")){if(!inList){inList=true;}trimmed=trimmed.substring(2);elements.push(/*#__PURE__*/_jsx(\"li\",{style:{marginLeft:\"16px\",marginBottom:\"4px\",listStyleType:\"disc\"},children:parseInlineMarkdown(trimmed)},`li-${index}`));return;}else{if(inList){inList=false;}}if(trimmed.startsWith(\"### \")){elements.push(/*#__PURE__*/_jsx(\"h4\",{style:{fontSize:\"14px\",fontWeight:\"700\",color:\"#1e1b4b\",marginTop:\"12px\",marginBottom:\"6px\"},children:parseInlineMarkdown(trimmed.substring(4))},`h3-${index}`));return;}if(trimmed.startsWith(\"## \")){elements.push(/*#__PURE__*/_jsx(\"h3\",{style:{fontSize:\"15px\",fontWeight:\"700\",color:\"#1e1b4b\",marginTop:\"14px\",marginBottom:\"8px\"},children:parseInlineMarkdown(trimmed.substring(3))},`h2-${index}`));return;}if(trimmed.startsWith(\"# \")){elements.push(/*#__PURE__*/_jsx(\"h2\",{style:{fontSize:\"16px\",fontWeight:\"700\",color:\"#1e1b4b\",marginTop:\"16px\",marginBottom:\"10px\"},children:parseInlineMarkdown(trimmed.substring(2))},`h1-${index}`));return;}if(trimmed===\"\"){elements.push(/*#__PURE__*/_jsx(\"div\",{style:{height:\"8px\"}},`br-${index}`));return;}elements.push(/*#__PURE__*/_jsx(\"p\",{style:{margin:\"4px 0 8px 0\",lineHeight:\"1.5\"},children:parseInlineMarkdown(trimmed)},`p-${index}`));});return /*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexDirection:\"column\"},children:elements});};const parseInlineMarkdown=text=>{const parts=text.split(/\\*\\*([^*]+)\\*\\*/g);return parts.map((part,i)=>{if(i%2===1){return /*#__PURE__*/_jsx(\"strong\",{style:{fontWeight:\"700\"},children:part},i);}return part;});};// ==================== MITRA GUIDANCE PAGER ====================\nconst MitraGuidancePager=({mitraValues})=>{const[currentIndex,setCurrentIndex]=useState(0);const[hasSwiped,setHasSwiped]=useState(false);const scrollRef=useRef(null);const[isDragging,setIsDragging]=useState(false);const startXRef=useRef(0);const scrollLeftRef=useRef(0);const getPageDetails=(val,defaultLabel)=>{if(!val)return{label:defaultLabel,text:undefined};if(typeof val===\"object\"&&val.text){return{label:val.title||defaultLabel,text:val.text};}return{label:defaultLabel,text:typeof val===\"string\"?val:undefined};};const empathyDetails=getPageDetails(mitraValues?.empathy,\"Empathy\");const transparencyDetails=getPageDetails(mitraValues?.transparency,\"Transparency\");const temperamentDetails=getPageDetails(mitraValues?.scientificTemperament,\"Temperament\");const curiosityDetails=getPageDetails(mitraValues?.curiosity,\"Curiosity\");const pages=[{key:\"empathy\",label:empathyDetails.label,emoji:\"🤗\",text:empathyDetails.text,bg:\"linear-gradient(135deg, #f5f3ff 0%, #edd8fc 100%)\",border:\"#e9d5ff\",color:\"#4f46e5\"},{key:\"transparency\",label:transparencyDetails.label,emoji:\"🔍\",text:transparencyDetails.text,bg:\"linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%)\",border:\"#bbf7d0\",color:\"#065f46\"},{key:\"temperament\",label:temperamentDetails.label,emoji:\"🧠\",text:temperamentDetails.text,bg:\"linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%)\",border:\"#bae6fd\",color:\"#0369a1\"},{key:\"curiosity\",label:curiosityDetails.label,emoji:\"💡\",text:curiosityDetails.text,bg:\"linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%)\",border:\"#fde68a\",color:\"#92400e\"}].filter(p=>p.text);// Only display if text exists\nconst handleScroll=()=>{if(!scrollRef.current||isDragging)return;const width=scrollRef.current.offsetWidth;if(width===0)return;const newIndex=Math.round(scrollRef.current.scrollLeft/width);if(newIndex!==currentIndex){setCurrentIndex(newIndex);setHasSwiped(true);}};const handleMouseDown=e=>{if(!scrollRef.current)return;setIsDragging(true);scrollRef.current.style.scrollSnapType=\"none\";startXRef.current=e.pageX-scrollRef.current.offsetLeft;scrollLeftRef.current=scrollRef.current.scrollLeft;};const handleMouseLeave=()=>{if(!isDragging)return;setIsDragging(false);if(scrollRef.current){scrollRef.current.style.scrollSnapType=\"x mandatory\";}};const handleMouseUp=()=>{if(!isDragging)return;setIsDragging(false);if(scrollRef.current){scrollRef.current.style.scrollSnapType=\"x mandatory\";const width=scrollRef.current.offsetWidth;const newIndex=Math.round(scrollRef.current.scrollLeft/width);scrollRef.current.scrollTo({left:newIndex*width,behavior:\"smooth\"});setCurrentIndex(newIndex);setHasSwiped(true);}};const handleMouseMove=e=>{if(!isDragging||!scrollRef.current)return;e.preventDefault();const x=e.pageX-scrollRef.current.offsetLeft;const walk=(x-startXRef.current)*1.5;scrollRef.current.scrollLeft=scrollLeftRef.current-walk;};if(pages.length===0)return null;return /*#__PURE__*/_jsxs(\"div\",{style:{background:\"white\",padding:\"16px\",borderRadius:\"20px\",border:\"1px solid #e2e8f0\",boxShadow:\"0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05)\",marginTop:\"12px\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",justifyContent:\"space-between\",alignItems:\"center\",marginBottom:\"12px\"},children:[/*#__PURE__*/_jsx(\"h4\",{style:{fontSize:\"14.5px\",fontWeight:\"800\",color:\"#1e293b\",margin:0},children:\"Mitra Guidance\"}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",gap:\"6px\"},children:pages.map((_,idx)=>/*#__PURE__*/_jsx(\"div\",{onClick:()=>{if(scrollRef.current){scrollRef.current.scrollTo({left:idx*scrollRef.current.offsetWidth,behavior:\"smooth\"});setCurrentIndex(idx);setHasSwiped(true);}},style:{width:idx===currentIndex?\"18px\":\"6px\",height:\"6px\",borderRadius:\"3px\",background:idx===currentIndex?\"#6366f1\":\"#cbd5e1\",transition:\"all 0.3s ease\",cursor:\"pointer\"}},idx))})]}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\"},children:/*#__PURE__*/_jsx(\"div\",{ref:scrollRef,onScroll:handleScroll,onMouseDown:handleMouseDown,onMouseLeave:handleMouseLeave,onMouseUp:handleMouseUp,onMouseMove:handleMouseMove,style:{display:\"flex\",overflowX:\"auto\",scrollSnapType:\"x mandatory\",scrollbarWidth:\"none\",msOverflowStyle:\"none\",gap:\"16px\",paddingBottom:\"4px\",cursor:isDragging?\"grabbing\":\"grab\",userSelect:\"none\"},className:\"hide-scrollbar\",children:pages.map((page,idx)=>/*#__PURE__*/_jsx(\"div\",{style:{flex:\"0 0 100%\",scrollSnapAlign:\"start\",boxSizing:\"border-box\"},children:/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:\"12px\",padding:\"16px\",background:page.bg,border:`1px solid ${page.border}`,borderRadius:\"16px\",minHeight:\"130px\",position:\"relative\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:\"8px\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{width:\"36px\",height:\"36px\",borderRadius:\"50%\",background:\"white\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",fontSize:\"20px\",boxShadow:\"0 4px 6px -1px rgba(0,0,0,0.05)\"},children:page.emoji}),/*#__PURE__*/_jsx(\"span\",{style:{fontWeight:\"750\",fontSize:\"14px\",color:page.color},children:page.label})]}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",gap:\"12px\",alignItems:\"flex-start\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{flexShrink:0,background:\"white\",padding:\"6px\",borderRadius:\"50%\",boxShadow:\"0 4px 10px rgba(0,0,0,0.04)\"},children:renderMitraIllustration(page.key)}),/*#__PURE__*/_jsx(\"p\",{style:{margin:0,fontSize:\"13px\",color:\"#334155\",lineHeight:\"1.6\",fontWeight:\"500\",flex:1},children:page.text})]}),idx===0&&!hasSwiped&&/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",right:\"12px\",top:\"12px\",background:\"#6366f1\",color:\"white\",padding:\"4px 10px\",borderRadius:\"12px\",fontSize:\"10px\",fontWeight:\"bold\",display:\"flex\",alignItems:\"center\",gap:\"4px\",boxShadow:\"0 4px 10px rgba(99, 102, 241, 0.3)\",animation:\"bounce-horizontal 1.5s infinite\",cursor:\"pointer\"},onClick:()=>{if(scrollRef.current){scrollRef.current.scrollBy({left:scrollRef.current.offsetWidth,behavior:\"smooth\"});}},children:\"Swipe 👉\"})]})},page.key))})}),/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:`\n                .hide-scrollbar::-webkit-scrollbar {\n                    display: none;\n                }\n                @keyframes bounce-horizontal {\n                    0%, 100% { transform: translateX(0); }\n                    50% { transform: translateX(5px); }\n                }\n            `}})]});};const getQueryParamHelper=(key,fallback=null)=>{if(typeof window!==\"undefined\"){const params=new URLSearchParams(window.location.search);return params.get(key)||fallback;}return fallback;};export const StudySpaceScreen=({chapterTitle,chapterId,subjectId,onBack,announcements=[],chunks=[],summaryData=null,isLoading=false,isWhiteboardOpen,setIsWhiteboardOpen})=>{const[activeTab,setActiveTab]=useState(\"summary\");const[selectedBlockId,setSelectedBlockId]=useState(()=>getQueryParamHelper(\"selectedBlockId\",null));const[pdfUrl,setPdfUrl]=useState(null);const[selectedText,setSelectedText]=useState(()=>getQueryParamHelper(\"selectedText\",\"\"));const[selectionCoords,setSelectionCoords]=useState(null);const[aiLoading,setAiLoading]=useState(false);const[aiResponse,setAiResponse]=useState(null);const[aiError,setAiError]=useState(null);const[currentAiAction,setCurrentAiAction]=useState(\"explain\");const[activeSelectionTab,setActiveSelectionTab]=useState(\"explain\");const[selectionResponses,setSelectionResponses]=useState({});const[selectionLoading,setSelectionLoading]=useState(false);const[selectionError,setSelectionError]=useState(null);const[visualizerResponse,setVisualizerResponse]=useState(null);const[visualizerLoading,setVisualizerLoading]=useState(false);const[visualizerError,setVisualizerError]=useState(null);// PDF.js rendered pages state\nconst[pdfPages,setPdfPages]=useState([]);const[pdfLoadingPages,setPdfLoadingPages]=useState(false);const[pdfPageCount,setPdfPageCount]=useState(0);const pdfPageRefs=useRef([]);const pdfScrollContainerRef=useRef(null);const[extractedBoxes,setExtractedBoxes]=useState({});const[hoveredSectionId,setHoveredSectionId]=useState(null);useEffect(()=>{if(pdfUrl&&chunks&&chunks.length>0){extractBoundingBoxesFromPdf(pdfUrl,chunks,boxesMap=>{setExtractedBoxes(boxesMap);});}},[pdfUrl,chunks]);// Given a chunk index, compute the estimated PDF page (1-indexed)\nconst getEstimatedPage=chunkIndex=>{const chunk=textbookParagraphs?.[chunkIndex];if(chunk&&chunk.boundingBoxes&&chunk.boundingBoxes.length>0){return chunk.boundingBoxes[0].page;}const totalChunks=textbookParagraphs?textbookParagraphs.length:1;const totalPages=pdfPageCount>0?pdfPageCount:1;return Math.max(1,Math.round(chunkIndex/Math.max(totalChunks-1,1)*(totalPages-1))+1);};const scrollPdfToPage=pageIndex=>{// pageIndex is 0-based\nconst el=pdfPageRefs.current[pageIndex];if(el&&pdfScrollContainerRef.current){el.scrollIntoView({behavior:\"smooth\",block:\"start\"});}};const handleKeywordOrParagraphSelection=(text,blockId,chunkIndex)=>{setSelectedText(text);setSelectedBlockId(blockId);setActiveMitraSubTab(\"selection\");setSelectionResponses({});setSelectionError(null);setVisualizerResponse(null);setVisualizerError(null);fetchSelectionAction(activeSelectionTab,text);fetchVisualizerAction(text);};useEffect(()=>{if(isLoading)return;const initialBlockId=getQueryParamHelper(\"selectedBlockId\",null);const initialText=getQueryParamHelper(\"selectedText\",\"\");const initialChunkIdxStr=getQueryParamHelper(\"chunkIndex\",null);if(initialBlockId&&initialText&&textbookParagraphs&&textbookParagraphs.length>0&&pdfPages.length>0){const idx=initialChunkIdxStr?parseInt(initialChunkIdxStr):undefined;// Trigger selection explanation and PDF scroll on a small timeout to let component fully settle\nsetTimeout(()=>{handleKeywordOrParagraphSelection(initialText,initialBlockId,idx);},300);}},[pdfPages,chunks,isLoading]);const[mitraMood,setMitraMood]=useState(\"idle\");const[chatInput,setChatInput]=useState(\"\");const[chatMessages,setChatMessages]=useState([{sender:\"mitra\",text:\"Hello! I am Mitra, your learning companion. Select any text in your document to explain, summarize, translate, or quiz, or simply ask me a question here.\"}]);const[activeMitraSubTab,setActiveMitraSubTab]=useState(\"chat\");const[rawTextSpeechIndex,setRawTextSpeechIndex]=useState(null);const[activeMitraValTab,setActiveMitraValTab]=useState(\"empathy\");const[diagramPollingHash,setDiagramPollingHash]=useState(null);const diagramIntervalRef=useRef(null);const chatCardRef=useRef(null);const selectionCardRef=useRef(null);const visualizerCardRef=useRef(null);const simulatorCardRef=useRef(null);useEffect(()=>{if(!activeMitraSubTab)return;const cardRefMap={chat:chatCardRef,selection:selectionCardRef,visualizer:visualizerCardRef,simulator:simulatorCardRef};const targetRef=cardRefMap[activeMitraSubTab];if(targetRef&&targetRef.current){targetRef.current.scrollIntoView({behavior:\"smooth\",block:\"nearest\"});}},[activeMitraSubTab]);const[quizSelectedOption,setQuizSelectedOption]=useState(null);const[quizAnswered,setQuizAnswered]=useState(false);// RPG Scenario Simulator States\nconst[simScenarioId,setSimScenarioId]=useState(\"start\");const[simFeedback,setSimFeedback]=useState(null);const[simScore,setSimScore]=useState(0);const getFallbackParagraphs=()=>{let subName=\"\";if(typeof window!==\"undefined\"){const params=new URLSearchParams(window.location.search);subName=params.get(\"subjectName\")||params.get(\"subject\")||\"\";}const lower=subName.toLowerCase();if(lower.includes(\"social\")||lower.includes(\"hist\")||lower.includes(\"civic\")||lower.includes(\"geog\")||lower.includes(\"polit\")||lower.includes(\"sst\")||lower.includes(\"sociology\")||lower.includes(\"civics\")){return[{id:\"p1\",title:\"1.1 Understanding Our Past\",text:\"History is the study of past events, particularly in human affairs. By studying history, we understand how societies, cultures, and nations evolved over time. It helps us learn from past successes and failures to make better decisions for our future.\"},{id:\"p2\",title:\"1.2 Resources and Development\",text:\"Geography is the study of places and the relationships between people and their environments. Resources—both natural like water, minerals, and forests, and human-made—are essential for human survival and economic development. Sustaining these resources is vital.\"},{id:\"p3\",title:\"1.3 Democracy and Constitutional Values\",text:\"Civics and Political Science explain the functioning of the government, the constitution, and the rights and duties of citizens. A democracy is built on the pillars of equality, justice, liberty, and fraternity, ensuring every citizen has a voice in governance.\"}];}if(lower.includes(\"math\")||lower.includes(\"alg\")||lower.includes(\"geom\")||lower.includes(\"arithmetic\")){return[{id:\"p1\",title:\"1.1 Introduction to Numbers\",text:\"Mathematics is the science of numbers, quantities, and shapes. In this chapter, we will explore the properties of real numbers, rational numbers, and integers, laying the groundwork for algebraic expressions and problem-solving.\"},{id:\"p2\",title:\"1.2 Algebraic Thinking\",text:\"Algebra uses variables and symbols to represent numbers in equations and formulas. By understanding variables, terms, and coefficients, we can solve linear equations and model real-world relationships mathematically.\"},{id:\"p3\",title:\"1.3 Geometry and Visualizing Shapes\",text:\"Geometry deals with the properties and relations of points, lines, surfaces, and solids. Understanding angles, triangles, polygons, and coordinate grids helps us analyze physical space and design structures.\"}];}// Default Science Fallback\nreturn[{id:\"p1\",title:\"1.1 What is Science?\",text:\"Science is the systematic study of the structure and behaviour of the physical and natural world through observation, evidence, and experiment. In this chapter, we will explore the methods of scientific inquiry and how they shape our understanding of nature.\"},{id:\"p2\",title:\"1.2 Exploring the Natural World\",text:\"Curiosity is the seed of science. When we observe phenomena like the color of the sky, the growth of plants, or the motion of stars, we ask 'Why?' and 'How?'. Scientists formulate hypotheses, run controlled experiments, and analyze results to discover underlying principles.\"},{id:\"p3\",title:\"1.3 The Scientific Method\",text:\"The scientific method involves making observations, proposing a testable hypothesis, performing experiments to gather data, drawing conclusions, and refining the hypothesis. It is a continuous loop of learning and discovery that never truly ends.\"}];};const textbookParagraphs=chunks&&chunks.length>0?chunks.map((c,index)=>{// Extract clean section name from context field\n// context format: \"[Subject: X -> Chapter: Y -> Section Name]\"\nlet titleText=`Section ${c.order!==undefined?c.order:index+1}`;if(c.context){const inner=c.context.replace(/^\\[|\\]$/g,\"\").trim();const parts=inner.split(\"->\");const lastPart=parts[parts.length-1]?.trim();if(lastPart)titleText=lastPart;}else{// Fallback: look for a markdown heading on the first line\nconst firstLine=c.text.split(\"\\n\")[0].trim();if(firstLine.startsWith(\"#\")){titleText=firstLine.replace(/^[#\\s]+/,\"\").trim();}}// Strip the context prefix \"[...]\\n\\n\" from displayed text\nconst cleanText=c.text.replace(RegExp(\"^\\\\[.*?\\\\]\\\\n\\\\n\",\"s\"),\"\").trim()||c.text;let boxes=extractedBoxes[c._id||c.id||`p_${index}`]||c.boundingBoxes;if(!boxes||boxes.length===0){const pageCount=typeof pdfPages!==\"undefined\"&&pdfPages.length>0?pdfPages.length:5;const pageIndex=Math.min(pageCount-1,Math.floor(index/chunks.length*pageCount));const chunksPerPage=Math.ceil(chunks.length/pageCount);const chunkIndexOnPage=index%chunksPerPage;const boxHeight=80/chunksPerPage;const y0=10+chunkIndexOnPage*boxHeight;const y1=y0+boxHeight-2;boxes=[{page:pageIndex+1,x0:5,y0:y0,x1:95,y1:y1}];}return{id:c._id||c.id||`p_${index}`,title:titleText,text:cleanText,boundingBoxes:boxes};}):getFallbackParagraphs();useEffect(()=>{const fetchChapterPdf=async()=>{try{const res=await fetch(`${API_BASE_URL}/subjects/${subjectId}/chapters`);const json=await res.json();if(json.data&&json.data.chapters){const currentChap=json.data.chapters.find(c=>c.id===chapterId);if(currentChap&&currentChap.pdfUrl){setPdfUrl(currentChap.pdfUrl);}}}catch(e){console.error(\"Error fetching PDF URL\",e);}};fetchChapterPdf();},[subjectId,chapterId]);// Load PDF pages via PDF.js when pdfUrl is resolved\nuseEffect(()=>{if(!pdfUrl)return;let cancelled=false;const loadPages=async()=>{setPdfLoadingPages(true);try{// Reuse same PDF.js loader pattern as whiteboard\nconst loadPdfJsLib=()=>new Promise((resolve,reject)=>{if(typeof window===\"undefined\"){reject(\"no window\");return;}if(window.pdfjsLib){resolve(window.pdfjsLib);return;}const existingScript=document.getElementById(\"pdfjs-script-ss\");if(existingScript){let iv=setInterval(()=>{if(window.pdfjsLib){clearInterval(iv);resolve(window.pdfjsLib);}},100);return;}const script=document.createElement(\"script\");script.id=\"pdfjs-script-ss\";script.src=\"https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.16.105/pdf.min.js\";script.onload=()=>{const lib=window.pdfjsLib;lib.GlobalWorkerOptions.workerSrc=\"https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.16.105/pdf.worker.min.js\";resolve(lib);};script.onerror=reject;document.head.appendChild(script);});const pdfjsLib=await loadPdfJsLib();const loadingTask=pdfjsLib.getDocument(pdfUrl);const pdf=await loadingTask.promise;const numPages=Math.min(pdf.numPages,30);// cap at 30 pages for performance\nsetPdfPageCount(pdf.numPages);const pagesData=[];for(let i=1;i<=numPages;i++){if(cancelled)break;const page=await pdf.getPage(i);const viewport=page.getViewport({scale:1.5});const canvas=document.createElement(\"canvas\");const context=canvas.getContext(\"2d\");if(context){canvas.width=viewport.width;canvas.height=viewport.height;await page.render({canvasContext:context,viewport}).promise;pagesData.push({dataUrl:canvas.toDataURL(\"image/jpeg\",.8),width:viewport.width,height:viewport.height});}}if(!cancelled){setPdfPages(pagesData);pdfPageRefs.current=new Array(pagesData.length).fill(null);}}catch(err){console.error(\"[StudySpace] PDF.js render failed, falling back to iframe\",err);}finally{if(!cancelled)setPdfLoadingPages(false);}};loadPages();return()=>{cancelled=true;};},[pdfUrl]);useEffect(()=>{if(!selectedText)return;// Reset simulator states when selection changes\nsetSimScenarioId(\"start\");setSimFeedback(null);if(activeMitraSubTab===\"selection\"&&(!aiResponse||aiResponse.selectedText!==selectedText)){handleSelectionAction(\"explain\");}else if(activeMitraSubTab===\"visualizer\"&&(!aiResponse||aiResponse.action!==\"diagram\"||aiResponse.selectedText!==selectedText)){handleSelectionAction(\"diagram\");}},[activeMitraSubTab,selectedText]);// Auto-select the first section by default\nuseEffect(()=>{if(textbookParagraphs&&textbookParagraphs.length>0){const firstPara=textbookParagraphs[0];setSelectedBlockId(firstPara.id);setSelectedText(firstPara.text);fetchSelectionAction(activeSelectionTab,firstPara.text);fetchVisualizerAction(firstPara.text);}else{setSelectedBlockId(null);setSelectedText(\"\");}},[chapterId,chunks]);useEffect(()=>{return()=>{if(diagramIntervalRef.current){clearInterval(diagramIntervalRef.current);}};},[]);const renderRawTextSkeleton=()=>/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:\"20px\",padding:\"16px\"},children:[1,2,3].map(i=>/*#__PURE__*/_jsxs(\"div\",{className:\"raw-para-container\",style:{background:\"#f8fafc\",border:\"1px solid #e2e8f0\",padding:\"16px\",borderRadius:\"12px\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{height:\"20px\",width:\"150px\",background:\"#cbd5e1\",borderRadius:\"6px\",marginBottom:\"12px\",animation:\"pulse 1.5s infinite\"}}),/*#__PURE__*/_jsx(\"div\",{style:{height:\"14px\",width:\"100%\",background:\"#e2e8f0\",borderRadius:\"4px\",marginBottom:\"8px\",animation:\"pulse 1.5s infinite\"}}),/*#__PURE__*/_jsx(\"div\",{style:{height:\"14px\",width:\"95%\",background:\"#e2e8f0\",borderRadius:\"4px\",marginBottom:\"8px\",animation:\"pulse 1.5s infinite\"}}),/*#__PURE__*/_jsx(\"div\",{style:{height:\"14px\",width:\"70%\",background:\"#e2e8f0\",borderRadius:\"4px\",animation:\"pulse 1.5s infinite\"}})]},i))});const renderSummarySkeleton=()=>/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:\"16px\",padding:\"16px\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{height:\"24px\",width:\"200px\",background:\"#cbd5e1\",borderRadius:\"6px\",marginBottom:\"16px\",animation:\"pulse 1.5s infinite\"}}),/*#__PURE__*/_jsx(\"div\",{style:{height:\"14px\",width:\"100%\",background:\"#e2e8f0\",borderRadius:\"4px\",marginBottom:\"8px\",animation:\"pulse 1.5s infinite\"}}),/*#__PURE__*/_jsx(\"div\",{style:{height:\"14px\",width:\"98%\",background:\"#e2e8f0\",borderRadius:\"4px\",marginBottom:\"8px\",animation:\"pulse 1.5s infinite\"}}),/*#__PURE__*/_jsx(\"div\",{style:{height:\"14px\",width:\"90%\",background:\"#e2e8f0\",borderRadius:\"4px\",marginBottom:\"8px\",animation:\"pulse 1.5s infinite\"}}),/*#__PURE__*/_jsx(\"div\",{style:{height:\"14px\",width:\"85%\",background:\"#e2e8f0\",borderRadius:\"4px\",marginBottom:\"8px\",animation:\"pulse 1.5s infinite\"}})]});const handleTextSelection=e=>{const selection=window.getSelection();if(!selection)return;const text=selection.toString().trim();if(text.length>2){if(text!==selectedText){setAiResponse(null);}setSelectedText(text);const range=selection.getRangeAt(0);const rect=range.getBoundingClientRect();setSelectionCoords({x:rect.left+window.scrollX+rect.width/2,y:rect.top+window.scrollY-40});}else{setSelectedText(\"\");setSelectionCoords(null);}};const handleSelectionAction=async(action,customText)=>{const textToUse=customText||selectedText;if(!textToUse)return;if(diagramIntervalRef.current){clearInterval(diagramIntervalRef.current);diagramIntervalRef.current=null;}setDiagramPollingHash(null);setAiLoading(true);setAiResponse(null);setAiError(null);setCurrentAiAction(action);setMitraMood(\"thinking\");if(action===\"career\"){setActiveMitraSubTab(\"selection\");}else if(action===\"diagram\"){setActiveMitraSubTab(\"visualizer\");}else{setActiveMitraSubTab(\"selection\");}setSelectionCoords(null);setQuizAnswered(false);setQuizSelectedOption(null);try{const response=await fetch(`${API_BASE_URL}/aiSelectionHelp`,{method:\"POST\",headers:await getAuthHeaders(),body:JSON.stringify({selectedText:textToUse,action,context:chapterTitle})});const result=await response.json();let resultData=result.data;if(action===\"diagram\"&&resultData&&resultData.status===\"generating\"){const hash=resultData.promptHash;setDiagramPollingHash(hash);setAiLoading(false);const pollInterval=setInterval(async()=>{try{const pollRes=await fetch(`${API_BASE_URL}/aiSelectionHelp/status/${hash}`,{headers:await getAuthHeaders()});if(!pollRes.ok)throw new Error(\"Status check failed\");const pollResult=await pollRes.json();if(pollResult.status===\"completed\"){clearInterval(pollInterval);if(diagramIntervalRef.current===pollInterval){diagramIntervalRef.current=null;}setDiagramPollingHash(null);const title=pollResult.resultData?.title||\"Concept Diagram\";const description=pollResult.resultData?.description||`A visualization illustrating the components and relationships in \"${textToUse}\".`;const imageUrl=pollResult.imageUrl;const finalResultData={title,description,diagramSvg:`<img src=\"${imageUrl}\" alt=\"${title}\" style=\"width: 100%; height: auto; border-radius: 16px; box-shadow: 0 8px 32px rgba(0,0,0,0.2);\" />`,mitraValues:pollResult.resultData?.mitraValues||{empathy:`I've created a custom diagram to make this concept easier to visualize. Visualizing processes helps connect the dots!`,transparency:`Diagrams help simplify complex relationships. Storing this visually will make it 80% easier to recall during exams.`,scientificTemperament:`If you change one key element in this system, what would happen to the rest of the loop?`,curiosity:`Did you know that our brains process visual information up to 60,000 times faster than text?`}};setAiResponse({action:\"diagram\",data:finalResultData,selectedText:textToUse});setMitraMood(\"happy\");}else if(pollResult.status===\"failed\"){clearInterval(pollInterval);if(diagramIntervalRef.current===pollInterval){diagramIntervalRef.current=null;}setDiagramPollingHash(null);setAiError(pollResult.error||\"Failed to generate diagram.\");setMitraMood(\"idle\");}}catch(err){console.error(\"Error polling diagram status:\",err);}},5e3);diagramIntervalRef.current=pollInterval;return;}if(action===\"career\"&&resultData&&resultData.careers&&resultData.careers.length>0){const firstCareer=resultData.careers[0];const careerTitle=firstCareer.title||\"Professional Career\";const salaryLpa=firstCareer.startingSalaryLpa||\"6-12\";const exams=firstCareer.entranceExams||[];const description=firstCareer.description||\"\";resultData={careerTitle,salaryLpa,pathway:[\"Prepare for entrance exams: \"+(exams.length>0?exams.join(\", \"):\"Relevant Entrance Exams\"),description||\"Complete required education in this field.\",\"Start professional practice in India.\"],illustration:resultData.imageUrl?`<img src=\"${resultData.imageUrl}\" alt=\"${careerTitle}\" style=\"width: 100%; height: auto; border-radius: 12px;\" />`:defaultCareerIllustration,mitraValues:resultData.mitraValues||{empathy:`Exploring ${careerTitle} is a great step! Let's look at the pathways available to you.`,transparency:`Starting salaries average around ${salaryLpa}. This field is growing in India.`,scientificTemperament:`How would you apply the concepts we just read to a real-world problem in this career?`,curiosity:`Did you know that India has some of the world's leading institutes and research programs in this field?`}};}const hasDiagramUrl=!!(action===\"diagram\"&&resultData&&resultData.diagramUrl);if(hasDiagramUrl){const title=resultData.title||\"Concept Diagram\";const description=resultData.description||`A visualization illustrating the components and relationships in \"${selectedText}\".`;resultData={title,description,diagramSvg:`<img src=\"${resultData.diagramUrl}\" alt=\"${title}\" style=\"width: 100%; height: auto; border-radius: 16px; box-shadow: 0 8px 32px rgba(0,0,0,0.2);\" />`,mitraValues:resultData.mitraValues||{empathy:`I've created a custom diagram to make this concept easier to visualize. Visualizing processes helps connect the dots!`,transparency:`Diagrams help simplify complex relationships. Storing this visually will make it 80% easier to recall during exams.`,scientificTemperament:`If you change one key element in this system, what would happen to the rest of the loop?`,curiosity:`Did you know that our brains process visual information up to 60,000 times faster than text?`}};}if(action===\"career\"&&(!resultData||!resultData.careerTitle)){const lowerText=selectedText.toLowerCase();let careerTitle=\"Scientific Analyst\";let salaryLpa=8;let pathway=[\"Choose Science in Class 11-12 & Clear CUET/JEE Main\",\"Pursue B.Sc or B.Tech at a top Indian University (like IIT or Central Universities)\",\"Complete Postgrad/Specialization and secure role in R&D or corporate sector\"];let illustration=defaultCareerIllustration;if(lowerText.includes(\"plant\")||lowerText.includes(\"photosynthesis\")||lowerText.includes(\"biology\")||lowerText.includes(\"nature\")||lowerText.includes(\"cell\")){careerTitle=\"Botanist / Agricultural Scientist\";salaryLpa=9;pathway=[\"Complete Class 12 Science (PCB) & Clear NEET or ICAR AIEEA exam\",\"Complete B.Sc in Agriculture or Botany at top universities like IARI or BHU\",\"Complete M.Sc/Ph.D in Biotechnology and lead crop improvement research in Indian agencies\"];}else if(lowerText.includes(\"space\")||lowerText.includes(\"star\")||lowerText.includes(\"motion\")||lowerText.includes(\"physics\")||lowerText.includes(\"force\")){careerTitle=\"Aerospace Engineer at ISRO\";salaryLpa=14;pathway=[\"Take Class 11-12 with PCM & Clear JEE Main/Advanced with high rank\",\"Pursue Aerospace Engineering at IIST (Indian Institute of Space Science and Technology) or IITs\",\"Pass ISRO centralized recruitment board exam & join as Scientist/Engineer-SC\"];}else if(lowerText.includes(\"experiment\")||lowerText.includes(\"hypothesis\")||lowerText.includes(\"method\")||lowerText.includes(\"test\")){careerTitle=\"Clinical Research Scientist\";salaryLpa=11;pathway=[\"Pass Class 12 in Science stream & clear NEET/CUET\",\"Complete B.Pharm / B.Sc in Biotechnology / MBBS from IITs, AIIMS or Top Pharmacy Colleges\",\"Complete Postgrad in Clinical Research & join Indian pharma giants like Biocon or Cipla\"];}resultData={careerTitle,salaryLpa,pathway,illustration,mitraValues:{empathy:`Exploring ${careerTitle} is a great choice! Curiosity is the key to discovery.`,transparency:`As a ${careerTitle}, your work directly impacts Indian R&D, agricultural yields, or space missions, contributing to national growth.`,scientificTemperament:`How would you set up a double-blind test to prove the efficiency of a new research method in this field?`,curiosity:`Did you know that India's space program ISRO was founded on Independence Day in 1969, and launched its first satellite, Aryabhata, in 1975?`}};}if(action===\"diagram\"&&!hasDiagramUrl&&(!resultData||!resultData.diagramSvg)){const lowerText=selectedText.toLowerCase();let diagramSvg=defaultDiagramSvg;let title=\"Concept Diagram\";let description=\"A visualization illustrating the components and relationships in this scientific concept.\";if(lowerText.includes(\"photosynthesis\")||lowerText.includes(\"plant\")||lowerText.includes(\"chlorophyll\")){title=\"Process of Photosynthesis\";description=\"Visual representation of how plants convert sunlight, water, and carbon dioxide into energy and oxygen.\";diagramSvg=defaultDiagramSvg;}else if(lowerText.includes(\"scientific method\")||lowerText.includes(\"hypothesis\")||lowerText.includes(\"experiment\")){title=\"The Scientific Method Loop\";description=\"Flowchart detailing the continuous, cyclical steps involved in scientific inquiry and refinement.\";diagramSvg=`\n<svg viewBox=\"0 0 400 300\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" style=\"width: 100%; height: auto; border-radius: 16px; background: #0f172a; box-shadow: 0 8px 32px rgba(0,0,0,0.2);\">\n  <text x=\"20\" y=\"35\" fill=\"#e2e8f0\" font-size=\"14\" font-family=\"Poppins\" font-weight=\"700\">Scientific Method Loop</text>\n  <rect x=\"150\" y=\"50\" width=\"100\" height=\"35\" rx=\"8\" fill=\"#4f46e5\" />\n  <text x=\"200\" y=\"72\" fill=\"#ffffff\" font-size=\"11\" font-family=\"Poppins\" font-weight=\"600\" text-anchor=\"middle\">1. Observation</text>\n  <rect x=\"260\" y=\"110\" width=\"100\" height=\"35\" rx=\"8\" fill=\"#d946ef\" />\n  <text x=\"310\" y=\"132\" fill=\"#ffffff\" font-size=\"11\" font-family=\"Poppins\" font-weight=\"600\" text-anchor=\"middle\">2. Hypothesis</text>\n  <rect x=\"220\" y=\"190\" width=\"100\" height=\"35\" rx=\"8\" fill=\"#06b6d4\" />\n  <text x=\"270\" y=\"212\" fill=\"#ffffff\" font-size=\"11\" font-family=\"Poppins\" font-weight=\"600\" text-anchor=\"middle\">3. Experiment</text>\n  <rect x=\"80\" y=\"190\" width=\"100\" height=\"35\" rx=\"8\" fill=\"#10b981\" />\n  <text x=\"130\" y=\"212\" fill=\"#ffffff\" font-size=\"11\" font-family=\"Poppins\" font-weight=\"600\" text-anchor=\"middle\">4. Analyze / Conclude</text>\n  <rect x=\"40\" y=\"110\" width=\"100\" height=\"35\" rx=\"8\" fill=\"#f59e0b\" />\n  <text x=\"90\" y=\"132\" fill=\"#ffffff\" font-size=\"11\" font-family=\"Poppins\" font-weight=\"600\" text-anchor=\"middle\">5. Refine / Repeat</text>\n  <path d=\"M240 85 Q290 85 300 110\" stroke=\"#818cf8\" stroke-width=\"2\" fill=\"none\" marker-end=\"url(#arrow)\" />\n  <path d=\"M310 145 Q310 175 285 190\" stroke=\"#f472b6\" stroke-width=\"2\" fill=\"none\" marker-end=\"url(#arrow)\" />\n  <path d=\"M220 207 L180 207\" stroke=\"#22d3ee\" stroke-width=\"2\" fill=\"none\" marker-end=\"url(#arrow)\" />\n  <path d=\"M110 190 Q90 170 90 145\" stroke=\"#34d399\" stroke-width=\"2\" fill=\"none\" marker-end=\"url(#arrow)\" />\n  <path d=\"M100 110 Q110 85 150 85\" stroke=\"#fbbf24\" stroke-width=\"2\" fill=\"none\" marker-end=\"url(#arrow)\" />\n  <defs>\n    <marker id=\"arrow\" viewBox=\"0 0 10 10\" refX=\"6\" refY=\"5\" markerWidth=\"6\" markerHeight=\"6\" orient=\"auto-start-reverse\">\n      <path d=\"M0 0 L10 5 L0 10 z\" fill=\"#e2e8f0\" />\n    </marker>\n  </defs>\n</svg>\n`;}else{title=\"System Mechanics Visualization\";description=\"An interactive overview demonstrating the structure and behavior of the selected concept.\";diagramSvg=`\n<svg viewBox=\"0 0 400 300\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" style=\"width: 100%; height: auto; border-radius: 16px; background: #0f172a; box-shadow: 0 8px 32px rgba(0,0,0,0.2);\">\n  <text x=\"20\" y=\"35\" fill=\"#e2e8f0\" font-size=\"14\" font-family=\"Poppins\" font-weight=\"700\">Concept: ${selectedText.length>25?selectedText.slice(0,22)+\"...\":selectedText}</text>\n  <rect x=\"50\" y=\"100\" width=\"110\" height=\"50\" rx=\"10\" fill=\"#3b82f6\" opacity=\"0.8\" />\n  <text x=\"105\" y=\"125\" fill=\"white\" font-size=\"11\" font-family=\"Poppins\" font-weight=\"600\" text-anchor=\"middle\">Input Cause</text>\n  <path d=\"M160 125 L240 125\" stroke=\"#60a5fa\" stroke-width=\"3\" stroke-dasharray=\"4 4\" marker-end=\"url(#arrow)\" />\n  <rect x=\"240\" y=\"100\" width=\"110\" height=\"50\" rx=\"10\" fill=\"#10b981\" opacity=\"0.8\" />\n  <text x=\"295\" y=\"125\" fill=\"white\" font-size=\"11\" font-family=\"Poppins\" font-weight=\"600\" text-anchor=\"middle\">Observed Effect</text>\n  <rect x=\"50\" y=\"190\" width=\"300\" height=\"70\" rx=\"12\" fill=\"#1e293b\" stroke=\"#334155\" />\n  <text x=\"70\" y=\"215\" fill=\"#f8fafc\" font-size=\"11\" font-family=\"Poppins\" font-weight=\"700\">System Dynamic:</text>\n  <text x=\"70\" y=\"232\" fill=\"#94a3b8\" font-size=\"10.5\" font-family=\"Poppins\">If the input cause increases, the observed effect scales</text>\n  <text x=\"70\" y=\"248\" fill=\"#94a3b8\" font-size=\"10.5\" font-family=\"Poppins\">proportionately through the physical model pathway.</text>\n  <defs>\n    <marker id=\"arrow\" viewBox=\"0 0 10 10\" refX=\"6\" refY=\"5\" markerWidth=\"6\" markerHeight=\"6\" orient=\"auto-start-reverse\">\n      <path d=\"M0 0 L10 5 L0 10 z\" fill=\"#60a5fa\" />\n    </marker>\n  </defs>\n</svg>\n`;}resultData={title,description,diagramSvg,mitraValues:{empathy:`I've created a custom diagram to make this concept easier to visualize. Visualizing processes helps connect the dots!`,transparency:`Diagrams help simplify complex relationships. Storing this visually will make it 80% easier to recall during exams.`,scientificTemperament:`If you change one key element in this system, what would happen to the rest of the loop?`,curiosity:`Did you know that our brains process visual information up to 60,000 times faster than text?`}};}if(resultData){setAiResponse({action,data:resultData,selectedText:textToUse});setMitraMood(\"happy\");}}catch(err){console.error(\"AI Selection Help failed\",err);setAiError(err.message||\"An unexpected error occurred. Please try again.\");setMitraMood(\"idle\");}finally{setAiLoading(false);}};const fetchSelectionAction=async(action,customText)=>{const textToUse=customText||selectedText;if(!textToUse)return;setSelectionLoading(true);setSelectionError(null);setMitraMood(\"thinking\");setQuizAnswered(false);setQuizSelectedOption(null);try{const response=await fetch(`${API_BASE_URL}/aiSelectionHelp`,{method:\"POST\",headers:await getAuthHeaders(),body:JSON.stringify({selectedText:textToUse,action,context:chapterTitle})});const result=await response.json();let resultData=result.data;if(action===\"career\"&&resultData&&resultData.careers&&resultData.careers.length>0){const firstCareer=resultData.careers[0];const careerTitle=firstCareer.title||\"Professional Career\";const salaryLpa=firstCareer.startingSalaryLpa||\"6-12\";const exams=firstCareer.entranceExams||[];const description=firstCareer.description||\"\";resultData={careerTitle,salaryLpa,pathway:[\"Prepare for entrance exams: \"+(exams.length>0?exams.join(\", \"):\"Relevant Entrance Exams\"),description||\"Complete required education in this field.\",\"Start professional practice in India.\"],illustration:resultData.imageUrl?`<img src=\"${resultData.imageUrl}\" alt=\"${careerTitle}\" style=\"width: 100%; height: auto; border-radius: 12px;\" />`:defaultCareerIllustration,mitraValues:resultData.mitraValues||{empathy:`Exploring ${careerTitle} is a great step! Let's look at the pathways available to you.`,transparency:`Starting salaries average around ${salaryLpa}. This field is growing in India.`,scientificTemperament:`How would you apply the concepts we just read to a real-world problem in this career?`,curiosity:`Did you know that India has some of the world's leading institutes and research programs in this field?`}};}if(action===\"career\"&&(!resultData||!resultData.careerTitle)){const lowerText=textToUse.toLowerCase();let careerTitle=\"Scientific Analyst\";let salaryLpa=8;let pathway=[\"Choose Science in Class 11-12 & Clear CUET/JEE Main\",\"Pursue B.Sc or B.Tech at a top Indian University (like IIT or Central Universities)\",\"Complete Postgrad/Specialization and secure role in R&D or corporate sector\"];let illustration=defaultCareerIllustration;if(lowerText.includes(\"plant\")||lowerText.includes(\"photosynthesis\")||lowerText.includes(\"biology\")||lowerText.includes(\"nature\")||lowerText.includes(\"cell\")){careerTitle=\"Botanist / Agricultural Scientist\";salaryLpa=9;pathway=[\"Complete Class 12 Science (PCB) & Clear NEET or ICAR AIEEA exam\",\"Complete B.Sc in Agriculture or Botany at top universities like IARI or BHU\",\"Complete M.Sc/Ph.D in Biotechnology and lead crop improvement research in Indian agencies\"];}else if(lowerText.includes(\"space\")||lowerText.includes(\"star\")||lowerText.includes(\"motion\")||lowerText.includes(\"physics\")||lowerText.includes(\"force\")){careerTitle=\"Aerospace Engineer at ISRO\";salaryLpa=14;pathway=[\"Take Class 11-12 with PCM & Clear JEE Main/Advanced with high rank\",\"Pursue Aerospace Engineering at IIST (Indian Institute of Space Science and Technology) or IITs\",\"Pass ISRO centralized recruitment board exam & join as Scientist/Engineer-SC\"];}else if(lowerText.includes(\"experiment\")||lowerText.includes(\"hypothesis\")||lowerText.includes(\"method\")||lowerText.includes(\"test\")){careerTitle=\"Clinical Research Scientist\";salaryLpa=11;pathway=[\"Pass Class 12 in Science stream & clear NEET/CUET\",\"Complete B.Pharm / B.Sc in Biotechnology / MBBS from IITs, AIIMS or Top Pharmacy Colleges\",\"Complete Postgrad in Clinical Research & join Indian pharma giants like Biocon or Cipla\"];}resultData={careerTitle,salaryLpa,pathway,illustration,mitraValues:{empathy:`Exploring ${careerTitle} is a great choice! Curiosity is the key to discovery.`,transparency:`As a ${careerTitle}, your work directly impacts Indian R&D, agricultural yields, or space missions, contributing to national growth.`,scientificTemperament:`How would you set up a double-blind test to prove the efficiency of a new research method in this field?`,curiosity:`Did you know that India's space program ISRO was founded on Independence Day in 1969, and launched its first satellite, Aryabhata, in 1975?`}};}if(resultData){setSelectionResponses(prev=>({...prev,[action]:resultData}));setMitraMood(\"happy\");}}catch(err){console.error(\"fetchSelectionAction failed\",err);setSelectionError(err.message||\"An unexpected error occurred. Please try again.\");setMitraMood(\"idle\");}finally{setSelectionLoading(false);}};const fetchVisualizerAction=async customText=>{const textToUse=customText||selectedText;if(!textToUse)return;if(diagramIntervalRef.current){clearInterval(diagramIntervalRef.current);diagramIntervalRef.current=null;}setDiagramPollingHash(null);setVisualizerLoading(true);setVisualizerResponse(null);setVisualizerError(null);setMitraMood(\"thinking\");try{const response=await fetch(`${API_BASE_URL}/aiSelectionHelp`,{method:\"POST\",headers:await getAuthHeaders(),body:JSON.stringify({selectedText:textToUse,action:\"diagram\",context:chapterTitle,subjectId,chapterId})});const result=await response.json();let resultData=result.data;if(resultData&&resultData.status===\"generating\"){const hash=resultData.promptHash;setDiagramPollingHash(hash);setVisualizerLoading(false);const pollInterval=setInterval(async()=>{try{const pollRes=await fetch(`${API_BASE_URL}/aiSelectionHelp/status/${hash}`,{headers:await getAuthHeaders()});if(!pollRes.ok)throw new Error(\"Status check failed\");const pollResult=await pollRes.json();if(pollResult.status===\"completed\"){clearInterval(pollInterval);if(diagramIntervalRef.current===pollInterval){diagramIntervalRef.current=null;}setDiagramPollingHash(null);const title=pollResult.resultData?.title||\"Concept Diagram\";const description=pollResult.resultData?.description||`A visualization illustrating the components and relationships in \"${textToUse}\".`;const imageUrl=pollResult.imageUrl;const finalResultData={title,description,diagramSvg:`<img src=\"${imageUrl}\" alt=\"${title}\" style=\"width: 100%; height: auto; border-radius: 16px; box-shadow: 0 8px 32px rgba(0,0,0,0.2);\" />`,mitraValues:pollResult.resultData?.mitraValues||{empathy:`I've created a custom diagram to make this concept easier to visualize. Visualizing processes helps connect the dots!`,transparency:`Diagrams help simplify complex relationships. Storing this visually will make it 80% easier to recall during exams.`,scientificTemperament:`If you change one key element in this system, what would happen to the rest of the loop?`,curiosity:`Did you know that our brains process visual information up to 60,000 times faster than text?`}};setVisualizerResponse(finalResultData);setMitraMood(\"happy\");}else if(pollResult.status===\"failed\"){clearInterval(pollInterval);if(diagramIntervalRef.current===pollInterval){diagramIntervalRef.current=null;}setDiagramPollingHash(null);setVisualizerError(pollResult.error||\"Failed to generate diagram.\");setMitraMood(\"idle\");}}catch(err){console.error(\"Error polling diagram status:\",err);}},5e3);diagramIntervalRef.current=pollInterval;return;}const hasDiagramUrl=!!(resultData&&resultData.diagramUrl);if(hasDiagramUrl){const title=resultData.title||\"Concept Diagram\";const description=resultData.description||`A visualization illustrating the components and relationships in \"${textToUse}\".`;resultData={title,description,diagramSvg:`<img src=\"${resultData.diagramUrl}\" alt=\"${title}\" style=\"width: 100%; height: auto; border-radius: 16px; box-shadow: 0 8px 32px rgba(0,0,0,0.2);\" />`,mitraValues:resultData.mitraValues||{empathy:`I've created a custom diagram to make this concept easier to visualize. Visualizing processes helps connect the dots!`,transparency:`Diagrams help simplify complex relationships. Storing this visually will make it 80% easier to recall during exams.`,scientificTemperament:`If you change one key element in this system, what would happen to the rest of the loop?`,curiosity:`Did you know that our brains process visual information up to 60,000 times faster than text?`}};}if(!hasDiagramUrl&&(!resultData||!resultData.diagramSvg)){const lowerText=textToUse.toLowerCase();let diagramSvg=defaultDiagramSvg;let title=\"Concept Diagram\";let description=\"A visualization illustrating the components and relationships in this scientific concept.\";if(lowerText.includes(\"photosynthesis\")||lowerText.includes(\"plant\")||lowerText.includes(\"chlorophyll\")){title=\"Process of Photosynthesis\";description=\"Visual representation of how plants convert sunlight, water, and carbon dioxide into energy and oxygen.\";diagramSvg=defaultDiagramSvg;}else if(lowerText.includes(\"scientific method\")||lowerText.includes(\"hypothesis\")||lowerText.includes(\"experiment\")){title=\"The Scientific Method Loop\";description=\"Flowchart detailing the continuous, cyclical steps involved in scientific inquiry and refinement.\";diagramSvg=`\n<svg viewBox=\"0 0 400 300\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" style=\"width: 100%; height: auto; border-radius: 16px; background: #0f172a; box-shadow: 0 8px 32px rgba(0,0,0,0.2);\">\n  <text x=\"20\" y=\"35\" fill=\"#e2e8f0\" font-size=\"14\" font-family=\"Poppins\" font-weight=\"700\">Scientific Method Loop</text>\n  <rect x=\"150\" y=\"50\" width=\"100\" height=\"35\" rx=\"8\" fill=\"#4f46e5\" />\n  <text x=\"200\" y=\"72\" fill=\"#ffffff\" font-size=\"11\" font-family=\"Poppins\" font-weight=\"600\" text-anchor=\"middle\">1. Observation</text>\n  <rect x=\"260\" y=\"110\" width=\"100\" height=\"35\" rx=\"8\" fill=\"#d946ef\" />\n  <text x=\"310\" y=\"132\" fill=\"#ffffff\" font-size=\"11\" font-family=\"Poppins\" font-weight=\"600\" text-anchor=\"middle\">2. Hypothesis</text>\n  <rect x=\"220\" y=\"190\" width=\"100\" height=\"35\" rx=\"8\" fill=\"#06b6d4\" />\n  <text x=\"270\" y=\"212\" fill=\"#ffffff\" font-size=\"11\" font-family=\"Poppins\" font-weight=\"600\" text-anchor=\"middle\">3. Experiment</text>\n  <rect x=\"80\" y=\"190\" width=\"100\" height=\"35\" rx=\"8\" fill=\"#10b981\" />\n  <text x=\"130\" y=\"212\" fill=\"#ffffff\" font-size=\"11\" font-family=\"Poppins\" font-weight=\"600\" text-anchor=\"middle\">4. Analyze / Conclude</text>\n  <rect x=\"40\" y=\"110\" width=\"100\" height=\"35\" rx=\"8\" fill=\"#f59e0b\" />\n  <text x=\"90\" y=\"132\" fill=\"#ffffff\" font-size=\"11\" font-family=\"Poppins\" font-weight=\"600\" text-anchor=\"middle\">5. Refine / Repeat</text>\n  <path d=\"M240 85 Q290 85 300 110\" stroke=\"#818cf8\" stroke-width=\"2\" fill=\"none\" marker-end=\"url(#arrow)\" />\n  <path d=\"M310 145 Q310 175 285 190\" stroke=\"#f472b6\" stroke-width=\"2\" fill=\"none\" marker-end=\"url(#arrow)\" />\n  <path d=\"M220 207 L180 207\" stroke=\"#22d3ee\" stroke-width=\"2\" fill=\"none\" marker-end=\"url(#arrow)\" />\n  <path d=\"M110 190 Q90 170 90 145\" stroke=\"#34d399\" stroke-width=\"2\" fill=\"none\" marker-end=\"url(#arrow)\" />\n  <path d=\"M100 110 Q110 85 150 85\" stroke=\"#fbbf24\" stroke-width=\"2\" fill=\"none\" marker-end=\"url(#arrow)\" />\n  <defs>\n    <marker id=\"arrow\" viewBox=\"0 0 10 10\" refX=\"6\" refY=\"5\" markerWidth=\"6\" markerHeight=\"6\" orient=\"auto-start-reverse\">\n      <path d=\"M0 0 L10 5 L0 10 z\" fill=\"#e2e8f0\" />\n    </marker>\n  </defs>\n</svg>\n`;}else{title=\"System Mechanics Visualization\";description=\"An interactive overview demonstrating the structure and behavior of the selected concept.\";diagramSvg=`\n<svg viewBox=\"0 0 400 300\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" style=\"width: 100%; height: auto; border-radius: 16px; background: #0f172a; box-shadow: 0 8px 32px rgba(0,0,0,0.2);\">\n  <text x=\"20\" y=\"35\" fill=\"#e2e8f0\" font-size=\"14\" font-family=\"Poppins\" font-weight=\"700\">Concept: ${textToUse.length>25?textToUse.slice(0,22)+\"...\":textToUse}</text>\n  <rect x=\"50\" y=\"100\" width=\"110\" height=\"50\" rx=\"10\" fill=\"#3b82f6\" opacity=\"0.8\" />\n  <text x=\"105\" y=\"125\" fill=\"white\" font-size=\"11\" font-family=\"Poppins\" font-weight=\"600\" text-anchor=\"middle\">Input Cause</text>\n  <path d=\"M160 125 L240 125\" stroke=\"#60a5fa\" stroke-width=\"3\" stroke-dasharray=\"4 4\" marker-end=\"url(#arrow)\" />\n  <rect x=\"240\" y=\"100\" width=\"110\" height=\"50\" rx=\"10\" fill=\"#10b981\" opacity=\"0.8\" />\n  <text x=\"295\" y=\"125\" fill=\"white\" font-size=\"11\" font-family=\"Poppins\" font-weight=\"600\" text-anchor=\"middle\">Observed Effect</text>\n  <rect x=\"50\" y=\"190\" width=\"300\" height=\"70\" rx=\"12\" fill=\"#1e293b\" stroke=\"#334155\" />\n  <text x=\"70\" y=\"215\" fill=\"#f8fafc\" font-size=\"11\" font-family=\"Poppins\" font-weight=\"700\">System Dynamic:</text>\n  <text x=\"70\" y=\"232\" fill=\"#94a3b8\" font-size=\"10.5\" font-family=\"Poppins\">If the input cause increases, the observed effect scales</text>\n  <text x=\"70\" y=\"248\" fill=\"#94a3b8\" font-size=\"10.5\" font-family=\"Poppins\">proportionately through the physical model pathway.</text>\n  <defs>\n    <marker id=\"arrow\" viewBox=\"0 0 10 10\" refX=\"6\" refY=\"5\" markerWidth=\"6\" markerHeight=\"6\" orient=\"auto-start-reverse\">\n      <path d=\"M0 0 L10 5 L0 10 z\" fill=\"#60a5fa\" />\n    </marker>\n  </defs>\n</svg>\n`;}resultData={title,description,diagramSvg,mitraValues:{empathy:`I've created a custom diagram to make this concept easier to visualize. Visualizing processes helps connect the dots!`,transparency:`Diagrams help simplify complex relationships. Storing this visually will make it 80% easier to recall during exams.`,scientificTemperament:`If you change one key element in this system, what would happen to the rest of the loop?`,curiosity:`Did you know that our brains process visual information up to 60,000 times faster than text?`}};}if(resultData){setVisualizerResponse(resultData);setMitraMood(\"happy\");}}catch(err){console.error(\"fetchVisualizerAction failed\",err);setVisualizerError(err.message||\"An unexpected error occurred. Please try again.\");setMitraMood(\"idle\");}finally{setVisualizerLoading(false);}};const handleSendMessage=async e=>{e.preventDefault();if(!chatInput.trim())return;const userMsg=chatInput.trim();setChatInput(\"\");setChatMessages(prev=>[...prev,{sender:\"user\",text:userMsg}]);setMitraMood(\"thinking\");setAiLoading(true);try{const response=await fetch(`${API_BASE_URL}/subjects/${subjectId}/chapters/${chapterId}/chat`,{method:\"POST\",headers:{\"Content-Type\":\"application/json\"},body:JSON.stringify({prompt:userMsg,history:chatMessages.map(m=>({role:m.sender===\"user\"?\"user\":\"model\",parts:[{text:m.text}]}))})});if(!response.ok)throw new Error(\"Chat response not OK\");setChatMessages(prev=>[...prev,{sender:\"mitra\",text:\"\"}]);setMitraMood(\"speaking\");const reader=response.body?.getReader();const decoder=new TextDecoder;let done=false;let accumulatedText=\"\";if(reader){while(!done){const{value,done:readerDone}=await reader.read();done=readerDone;if(value){const chunk=decoder.decode(value,{stream:true});accumulatedText+=chunk;setChatMessages(prev=>{const next=[...prev];if(next.length>0){next[next.length-1]={sender:\"mitra\",text:accumulatedText};}return next;});}}}setMitraMood(\"idle\");}catch(err){console.error(\"Mitra chat failed\",err);setChatMessages(prev=>[...prev,{sender:\"mitra\",text:\"I'm sorry, I'm having trouble connecting to my servers. Let's try again.\"}]);setMitraMood(\"idle\");}finally{setAiLoading(false);}};const handleSpeakText=(text,index)=>{if(typeof window===\"undefined\")return;const synth=window.speechSynthesis;if(!synth)return;if(rawTextSpeechIndex===index){synth.cancel();setRawTextSpeechIndex(null);}else{synth.cancel();const utterance=new SpeechSynthesisUtterance(text);utterance.onend=()=>setRawTextSpeechIndex(null);utterance.onerror=()=>setRawTextSpeechIndex(null);setRawTextSpeechIndex(index);synth.speak(utterance);}};const handleAnswerQuiz=(selected,correct)=>{if(quizAnswered)return;setQuizSelectedOption(selected);setQuizAnswered(true);if(selected===correct){triggerConfetti();setMitraMood(\"happy\");}else{setMitraMood(\"idle\");}};const handleOpenWhiteboard=()=>{setIsWhiteboardOpen(true);};const handleCloseWhiteboard=()=>{if(typeof window!==\"undefined\"){const params=new URLSearchParams(window.location.search);if(params.get(\"whiteboard\")===\"true\"){window.history.back();}else{setIsWhiteboardOpen(false);}}else{setIsWhiteboardOpen(false);}};return /*#__PURE__*/_jsxs(\"div\",{className:\"study-space-container\",children:[/*#__PURE__*/_jsxs(\"div\",{className:\"study-space-header\",children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:\"12px\"},children:[/*#__PURE__*/_jsx(\"button\",{className:\"nav-btn\",onClick:onBack,children:/*#__PURE__*/_jsx(\"svg\",{viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2\",style:{width:\"22px\"},children:/*#__PURE__*/_jsx(\"path\",{d:\"M15 18l-6-6 6-6\"})})}),/*#__PURE__*/_jsxs(\"h2\",{children:[chapterTitle,\" - AI Study Space\"]})]}),/*#__PURE__*/_jsx(\"div\",{className:\"study-space-header-actions\",children:/*#__PURE__*/_jsx(\"button\",{className:\"launch-btn\",onClick:handleOpenWhiteboard,children:\"🎨 Collaborative Board\"})})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"study-space-workspace\",children:[/*#__PURE__*/_jsxs(\"div\",{className:\"left-workspace-panel\",onMouseUp:handleTextSelection,children:[/*#__PURE__*/_jsxs(\"div\",{className:\"workspace-tabs\",children:[/*#__PURE__*/_jsx(\"button\",{className:`workspace-tab ${activeTab===\"pdf\"?\"active\":\"\"}`,onClick:()=>setActiveTab(\"pdf\"),children:\"Textbook PDF\"}),/*#__PURE__*/_jsx(\"button\",{className:`workspace-tab ${activeTab===\"summary\"?\"active\":\"\"}`,onClick:()=>setActiveTab(\"summary\"),children:\"Smart Summary\"})]}),activeTab===\"pdf\"&&/*#__PURE__*/_jsxs(\"div\",{className:\"pdf-iframe-container\",style:{flexDirection:\"column\",overflow:\"hidden\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{padding:\"8px 16px\",background:\"#f8fafc\",borderBottom:\"1px solid #e2e8f0\",display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",flexShrink:0},children:[/*#__PURE__*/_jsx(\"span\",{style:{fontSize:\"12px\",color:\"#64748b\",fontWeight:\"600\"},children:pdfLoadingPages?\"🔄 Loading PDF pages…\":pdfPages.length>0?`📄 ${pdfPageCount} pages • Scroll or tap a section to navigate`:\"Textbook PDF\"}),pdfUrl&&/*#__PURE__*/_jsx(\"a\",{href:pdfUrl,target:\"_blank\",rel:\"noreferrer\",style:{fontSize:\"11px\",color:\"#6366f1\",fontWeight:\"700\",textDecoration:\"none\"},children:\"Open ↗\"})]}),pdfLoadingPages&&pdfPages.length===0?/*#__PURE__*/_jsx(\"div\",{style:{flex:1,display:\"flex\",flexDirection:\"column\",gap:\"16px\",padding:\"16px\",overflowY:\"auto\"},children:[1,2,3].map(i=>/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",aspectRatio:\"0.77\",background:\"linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%)\",backgroundSize:\"200% 100%\",borderRadius:\"8px\",animation:\"pulse 1.5s infinite\"}},i))}):pdfPages.length>0?/*#__PURE__*/_jsxs(\"div\",{ref:pdfScrollContainerRef,style:{flex:1,overflowY:\"auto\",padding:\"16px\",display:\"flex\",flexDirection:\"column\",gap:\"16px\",scrollbarWidth:\"thin\",scrollbarColor:\"#6366f1 #f1f5f9\"},children:[pdfPages.map((page,pageIdx)=>/*#__PURE__*/_jsxs(\"div\",{ref:el=>{pdfPageRefs.current[pageIdx]=el;},children:[/*#__PURE__*/_jsxs(\"div\",{style:{fontSize:\"10px\",color:\"#94a3b8\",fontWeight:\"700\",marginBottom:\"4px\",textAlign:\"center\"},children:[\"Page \",pageIdx+1]}),/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",width:\"100%\"},children:[/*#__PURE__*/_jsx(\"img\",{src:page.dataUrl,alt:`Page ${pageIdx+1}`,style:{width:\"100%\",height:\"auto\",borderRadius:\"8px\",border:\"1px solid #e2e8f0\",boxShadow:\"0 2px 8px rgba(0,0,0,0.06)\",display:\"block\"}}),textbookParagraphs&&textbookParagraphs.map((section,sectionIdx)=>{const isSelected=selectedBlockId===section.id;const isHighlighted=isSelected||hoveredSectionId===section.id;const boxes=section.boundingBoxes||[];return boxes.filter(box=>box.page===pageIdx+1).map((box,boxIdx)=>/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",left:`${box.x0}%`,top:`${box.y0}%`,width:`${box.x1-box.x0}%`,height:`${box.y1-box.y0}%`,backgroundColor:isHighlighted?\"rgba(99, 102, 241, 0.18)\":\"rgba(99, 102, 241, 0.04)\",border:isHighlighted?\"2px solid #6366f1\":\"1px dashed rgba(99, 102, 241, 0.3)\",borderRadius:\"4px\",cursor:\"pointer\",transition:\"all 0.2s ease\",zIndex:10},onMouseEnter:()=>setHoveredSectionId(section.id),onMouseLeave:()=>setHoveredSectionId(null),onClick:()=>handleKeywordOrParagraphSelection(section.text,section.id,sectionIdx),className:\"pdf-section-zone\",title:section.title},`${section.id}_box_${boxIdx}`));})]})]},pageIdx)),/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:`\n                                        .pdf-section-zone:hover {\n                                            background-color: rgba(99, 102, 241, 0.1) !important;\n                                            border: 1.5px solid rgba(99, 102, 241, 0.6) !important;\n                                        }\n                                    `}}),pdfPageCount>30&&/*#__PURE__*/_jsxs(\"div\",{style:{textAlign:\"center\",fontSize:\"12px\",color:\"#94a3b8\",padding:\"8px\"},children:[\"Showing first 30 of \",pdfPageCount,\" pages. \",/*#__PURE__*/_jsx(\"a\",{href:pdfUrl||\"\",target:\"_blank\",rel:\"noreferrer\",style:{color:\"#6366f1\",fontWeight:\"700\"},children:\"Open full PDF ↗\"})]})]}):/* Fallback to iframe if PDF.js failed or no url *//*#__PURE__*/_jsx(\"iframe\",{src:pdfUrl||\"https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf\",title:\"Textbook PDF Reader\",style:{flex:1,width:\"100%\",border:\"1px solid #e2e8f0\",borderRadius:\"0 0 16px 16px\"}})]}),activeTab===\"summary\"&&/*#__PURE__*/_jsx(\"div\",{className:\"raw-text-panel\",children:isLoading?renderRawTextSkeleton():/*#__PURE__*/_jsxs(_Fragment,{children:[summaryData&&/*#__PURE__*/_jsx(\"div\",{className:\"smart-summary-content-wrapper\",style:{marginBottom:\"32px\",padding:\"24px\",background:\"#ffffff\",borderRadius:\"16px\",border:\"1px solid #e2e8f0\",boxShadow:\"0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03)\"},children:/*#__PURE__*/_jsx(\"div\",{dangerouslySetInnerHTML:{__html:summaryData}})}),/*#__PURE__*/_jsxs(\"div\",{className:\"interactive-sections-header\",style:{marginBottom:\"16px\",marginTop:\"8px\",borderTop:summaryData?\"1px solid #e2e8f0\":\"none\",paddingTop:summaryData?\"24px\":\"0\"},children:[/*#__PURE__*/_jsx(\"h3\",{style:{fontSize:\"16px\",fontWeight:\"600\",color:\"#0f172a\"},children:\"📖 Interactive Study Guide\"}),/*#__PURE__*/_jsx(\"p\",{style:{fontSize:\"13px\",color:\"#64748b\",marginTop:\"4px\"},children:pdfPageCount>0?\"Tap any section to get AI explanations AND jump to that page in your PDF! 📄\":\"Click on any section below to ask Mitra to explain, visualize, or quiz you!\"})]}),textbookParagraphs.map((para,idx)=>{const isSelected=selectedBlockId===para.id;const parsed=parseTextbookParagraph(para.text);return /*#__PURE__*/_jsxs(\"div\",{className:`interactive-section-card ${isSelected?\"selected\":\"\"}`,onClick:()=>{handleKeywordOrParagraphSelection(para.text,para.id,idx);},children:[pdfPageCount>0&&/*#__PURE__*/_jsxs(\"div\",{style:{position:\"absolute\",top:\"12px\",right:\"12px\",background:\"linear-gradient(135deg, #6366f1, #8b5cf6)\",color:\"white\",fontSize:\"10px\",fontWeight:\"700\",padding:\"3px 8px\",borderRadius:\"8px\",display:\"flex\",alignItems:\"center\",gap:\"4px\",letterSpacing:\"0.3px\",boxShadow:\"0 2px 6px rgba(99,102,241,0.3)\",cursor:\"pointer\"},onClick:e=>{e.stopPropagation();const pageIdx=getEstimatedPage(idx)-1;setActiveTab(\"pdf\");setTimeout(()=>scrollPdfToPage(pageIdx),150);},children:[\"📄 p.\",getEstimatedPage(idx)]}),/*#__PURE__*/_jsxs(\"div\",{className:\"section-breakdown-container\",children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:\"8px\",marginBottom:\"12px\"},children:[/*#__PURE__*/_jsx(\"span\",{style:{fontSize:\"13px\",fontWeight:\"800\",color:\"#1e293b\",lineHeight:\"1.3\",flex:1},children:para.title}),isSelected&&/*#__PURE__*/_jsx(\"span\",{style:{fontSize:\"10px\",color:\"#6366f1\",fontWeight:\"700\",background:\"#f5f3ff\",padding:\"2px 8px\",borderRadius:\"6px\",whiteSpace:\"nowrap\"},children:\"✦ Selected\"})]}),parsed.coreConcept&&/*#__PURE__*/_jsxs(\"div\",{className:\"breakdown-core-concept\",children:[/*#__PURE__*/_jsxs(\"div\",{className:\"breakdown-subtitle\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"subtitle-icon\",children:\"💡\"}),\" Core Concept / Definition\"]}),/*#__PURE__*/_jsx(\"p\",{className:\"breakdown-text core-text\",children:renderParagraphWithAnalogies(parsed.coreConcept,kw=>{handleKeywordOrParagraphSelection(kw,`${para.id}_vocab_${kw}`);})})]}),(parsed.examples.length>0||parsed.steps.length>0||parsed.details.length>0)&&/*#__PURE__*/_jsxs(\"div\",{className:\"breakdown-details-grid\",children:[parsed.details.length>0&&/*#__PURE__*/_jsxs(\"div\",{className:\"breakdown-details-box detail-key-takeaways\",children:[/*#__PURE__*/_jsxs(\"div\",{className:\"breakdown-subtitle\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"subtitle-icon\",children:\"📌\"}),\" Deep Dive / Key Takeaways\"]}),/*#__PURE__*/_jsx(\"ul\",{className:\"breakdown-list\",children:parsed.details.map((sent,sidx)=>/*#__PURE__*/_jsxs(\"li\",{className:\"breakdown-list-item\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"bullet-dot\",children:\"•\"}),/*#__PURE__*/_jsx(\"span\",{className:\"list-text\",children:renderParagraphWithAnalogies(sent,kw=>{handleKeywordOrParagraphSelection(kw,`${para.id}_vocab_${kw}`);})})]},sidx))})]}),parsed.steps.length>0&&/*#__PURE__*/_jsxs(\"div\",{className:\"breakdown-details-box detail-process\",children:[/*#__PURE__*/_jsxs(\"div\",{className:\"breakdown-subtitle\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"subtitle-icon\",children:\"⚙️\"}),\" Methodology / Process\"]}),/*#__PURE__*/_jsx(\"ul\",{className:\"breakdown-list\",children:parsed.steps.map((sent,sidx)=>/*#__PURE__*/_jsxs(\"li\",{className:\"breakdown-list-item\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"bullet-dot\",children:\"➜\"}),/*#__PURE__*/_jsx(\"span\",{className:\"list-text\",children:renderParagraphWithAnalogies(sent,kw=>{handleKeywordOrParagraphSelection(kw,`${para.id}_vocab_${kw}`);})})]},sidx))})]}),parsed.examples.length>0&&/*#__PURE__*/_jsxs(\"div\",{className:\"breakdown-details-box detail-examples\",children:[/*#__PURE__*/_jsxs(\"div\",{className:\"breakdown-subtitle\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"subtitle-icon\",children:\"🔍\"}),\" Observation / Real-World Example\"]}),/*#__PURE__*/_jsx(\"ul\",{className:\"breakdown-list\",children:parsed.examples.map((sent,sidx)=>/*#__PURE__*/_jsxs(\"li\",{className:\"breakdown-list-item\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"bullet-dot\",children:\"✏️\"}),/*#__PURE__*/_jsx(\"span\",{className:\"list-text\",children:renderParagraphWithAnalogies(sent,kw=>{handleKeywordOrParagraphSelection(kw,`${para.id}_vocab_${kw}`);})})]},sidx))})]})]})]})]},para.id);})]})}),selectionCoords&&/*#__PURE__*/_jsxs(\"div\",{className:\"selection-tooltip\",style:{left:selectionCoords.x,top:selectionCoords.y},children:[/*#__PURE__*/_jsx(\"button\",{className:\"tooltip-btn\",onClick:()=>{setActiveSelectionTab(\"explain\");handleKeywordOrParagraphSelection(selectedText,`selection_${Date.now()}`);setSelectionCoords(null);},children:\"💡 Explain\"}),/*#__PURE__*/_jsx(\"button\",{className:\"tooltip-btn\",onClick:()=>{setActiveSelectionTab(\"summarize\");handleKeywordOrParagraphSelection(selectedText,`selection_${Date.now()}`);setSelectionCoords(null);},children:\"📝 Summarize\"}),/*#__PURE__*/_jsx(\"button\",{className:\"tooltip-btn\",onClick:()=>{setActiveSelectionTab(\"quiz\");handleKeywordOrParagraphSelection(selectedText,`selection_${Date.now()}`);setSelectionCoords(null);},children:\"❓ Quiz\"}),/*#__PURE__*/_jsx(\"button\",{className:\"tooltip-btn\",onClick:()=>{setActiveSelectionTab(\"translate\");handleKeywordOrParagraphSelection(selectedText,`selection_${Date.now()}`);setSelectionCoords(null);},children:\"🇮🇳 Translate\"}),/*#__PURE__*/_jsx(\"button\",{className:\"tooltip-btn\",onClick:()=>{setActiveSelectionTab(\"career\");handleKeywordOrParagraphSelection(selectedText,`selection_${Date.now()}`);setSelectionCoords(null);},children:\"🚀 Bhavishya\"}),/*#__PURE__*/_jsx(\"button\",{className:\"tooltip-btn\",onClick:()=>{setActiveMitraSubTab(\"visualizer\");handleKeywordOrParagraphSelection(selectedText,`selection_${Date.now()}`);setSelectionCoords(null);},children:\"🎨 Visualizer\"}),/*#__PURE__*/_jsx(\"button\",{className:\"tooltip-btn\",onClick:()=>{setActiveMitraSubTab(\"simulator\");setSelectionCoords(null);},children:\"🎮 Simulator\"})]})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"right-workspace-panel\",style:{display:\"flex\",flexDirection:\"column\",height:\"100%\",overflow:\"hidden\"},children:[/*#__PURE__*/_jsxs(\"div\",{className:\"mitra-ai-header\",style:{flexShrink:0},children:[/*#__PURE__*/_jsxs(\"div\",{className:\"mitra-avatar-container\",children:[mitraMood===\"speaking\"&&/*#__PURE__*/_jsx(\"div\",{className:\"mitra-speaking-pulse\"}),/*#__PURE__*/_jsxs(\"svg\",{className:\"mitra-avatar-svg\",viewBox:\"0 0 64 64\",fill:\"none\",children:[/*#__PURE__*/_jsx(\"circle\",{cx:\"32\",cy:\"32\",r:\"30\",fill:\"#f5f3ff\",stroke:\"#6366f1\",strokeWidth:\"2\"}),/*#__PURE__*/_jsx(\"circle\",{cx:\"22\",cy:\"28\",r:\"3\",fill:\"#4338ca\"}),/*#__PURE__*/_jsx(\"circle\",{cx:\"42\",cy:\"28\",r:\"3\",fill:\"#4338ca\"}),mitraMood===\"thinking\"?/*#__PURE__*/_jsx(\"path\",{d:\"M26 44h12\",stroke:\"#4338ca\",strokeWidth:\"3\",strokeLinecap:\"round\"}):mitraMood===\"happy\"?/*#__PURE__*/_jsx(\"path\",{d:\"M22 40c4 6 14 6 18 0\",stroke:\"#4338ca\",strokeWidth:\"3\",strokeLinecap:\"round\",fill:\"none\"}):/*#__PURE__*/_jsx(\"path\",{d:\"M24 42c3 3 11 3 14 0\",stroke:\"#4338ca\",strokeWidth:\"3\",strokeLinecap:\"round\",fill:\"none\"})]})]}),/*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsx(\"h3\",{style:{fontSize:\"14px\",fontWeight:\"700\",color:\"#1e1b4b\"},children:\"Mitra\"}),/*#__PURE__*/_jsx(\"p\",{style:{fontSize:\"11px\",color:\"#64748b\"},children:mitraMood===\"thinking\"?\"Mitra is reflecting...\":mitraMood===\"speaking\"?\"Mitra is speaking...\":\"Empathetic Study Companion\"})]})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"mitra-scrollable-workspace\",style:{flex:1,overflowY:\"auto\",display:\"flex\",flexDirection:\"column\",gap:\"20px\",padding:\"16px\"},children:[/*#__PURE__*/_jsxs(\"div\",{ref:chatCardRef,className:\"mitra-card-section chat-section glass-card\",style:{display:\"flex\",flexDirection:\"column\",background:\"white\",borderRadius:\"16px\",border:\"1px solid #e2e8f0\",overflow:\"hidden\",minHeight:\"400px\"},children:[/*#__PURE__*/_jsx(\"div\",{className:\"card-section-header\",style:{padding:\"12px 16px\",borderBottom:\"1px solid #f1f5f9\",background:\"#f8fafc\",fontWeight:\"700\",fontSize:\"13px\",color:\"#1e1b4b\"},children:\"💬 Chat with Mitra\"}),/*#__PURE__*/_jsxs(\"div\",{className:\"mitra-chat-container\",style:{flex:1,display:\"flex\",flexDirection:\"column\",overflow:\"hidden\"},children:[/*#__PURE__*/_jsx(\"div\",{className:\"mitra-messages\",style:{flex:1,overflowY:\"auto\",padding:\"16px\",display:\"flex\",flexDirection:\"column\",gap:\"12px\"},children:chatMessages.map((msg,index)=>/*#__PURE__*/_jsx(\"div\",{className:`chat-msg ${msg.sender}`,children:msg.text?msg.sender===\"mitra\"?renderMarkdown(msg.text):msg.text:aiLoading&&index===chatMessages.length-1?\"Typing...\":\"\"},index))}),/*#__PURE__*/_jsxs(\"form\",{className:\"chat-input-form\",onSubmit:handleSendMessage,children:[/*#__PURE__*/_jsx(\"input\",{className:\"chat-input\",type:\"text\",placeholder:\"Ask Mitra a question...\",value:chatInput,onChange:e=>setChatInput(e.target.value)}),/*#__PURE__*/_jsx(\"button\",{className:\"send-btn\",type:\"submit\",children:\"➔\"})]})]})]}),/*#__PURE__*/_jsxs(\"div\",{ref:selectionCardRef,className:\"mitra-card-section selection-section glass-card\",style:{background:\"white\",borderRadius:\"16px\",border:\"1px solid #e2e8f0\",overflow:\"hidden\"},children:[/*#__PURE__*/_jsx(\"div\",{className:\"card-section-header\",style:{padding:\"12px 16px\",borderBottom:\"1px solid #f1f5f9\",background:\"#f8fafc\",fontWeight:\"700\",fontSize:\"13px\",color:\"#1e1b4b\"},children:\"💡 Selection Assistant\"}),/*#__PURE__*/_jsx(\"div\",{style:{padding:\"8px 16px\",borderBottom:\"1px solid #f1f5f9\",background:\"#fdfdfd\",display:\"flex\",gap:\"6px\",overflowX:\"auto\"},children:[{id:\"explain\",label:\"💡 Explain\"},{id:\"summarize\",label:\"📝 Summarize\"},{id:\"quiz\",label:\"❓ Test Me\"},{id:\"career\",label:\"🚀 Bhavishya\"},{id:\"translate\",label:\"🇮🇳 Translate\"}].map(tab=>/*#__PURE__*/_jsx(\"button\",{onClick:()=>{setActiveSelectionTab(tab.id);if(selectedText&&!selectionResponses[tab.id]){fetchSelectionAction(tab.id,selectedText);}},style:{padding:\"6px 12px\",borderRadius:\"8px\",border:\"1px solid\",borderColor:activeSelectionTab===tab.id?\"#6366f1\":\"#e2e8f0\",background:activeSelectionTab===tab.id?\"#f5f3ff\":\"white\",color:activeSelectionTab===tab.id?\"#6366f1\":\"#475569\",fontSize:\"12px\",fontWeight:\"600\",cursor:\"pointer\",whiteSpace:\"nowrap\",transition:\"all 0.2s\"},children:tab.label},tab.id))}),/*#__PURE__*/_jsx(\"div\",{style:{padding:\"16px\"},children:selectionLoading?/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:\"12px\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{height:\"40px\",background:\"#f1f5f9\",borderRadius:\"12px\",animation:\"pulse 1.5s infinite\"}}),/*#__PURE__*/_jsx(\"div\",{style:{height:\"120px\",background:\"#f1f5f9\",borderRadius:\"12px\",animation:\"pulse 1.5s infinite\"}})]}):selectionError?/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:\"12px\"},children:/*#__PURE__*/_jsxs(\"div\",{style:{background:\"#fef2f2\",border:\"1px solid #fee2e2\",padding:\"16px\",borderRadius:\"16px\",color:\"#991b1b\",fontSize:\"13px\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:\"8px\",marginBottom:\"8px\"},children:[/*#__PURE__*/_jsx(\"span\",{style:{fontSize:\"18px\"},children:\"⚠️\"}),/*#__PURE__*/_jsx(\"strong\",{style:{fontWeight:\"700\"},children:\"AI Selection Help Failed\"})]}),/*#__PURE__*/_jsx(\"p\",{style:{margin:0,lineHeight:\"1.5\",marginBottom:\"12px\"},children:selectionError}),/*#__PURE__*/_jsx(\"button\",{onClick:()=>fetchSelectionAction(activeSelectionTab),style:{background:\"#ef4444\",color:\"white\",border:\"none\",padding:\"6px 12px\",borderRadius:\"8px\",fontSize:\"11px\",fontWeight:\"600\",cursor:\"pointer\",boxShadow:\"0 2px 4px rgba(239, 68, 68, 0.2)\"},children:\"Retry Action\"})]})}):selectionResponses[activeSelectionTab]?/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:\"16px\"},children:[activeSelectionTab===\"explain\"&&/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:\"12px\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{background:\"white\",padding:\"16px\",borderRadius:\"16px\",border:\"1px solid #e2e8f0\"},children:[/*#__PURE__*/_jsx(\"h4\",{style:{fontSize:\"14px\",fontWeight:\"700\",color:\"#1e293b\",marginBottom:\"8px\"},children:\"Explanation:\"}),/*#__PURE__*/_jsx(\"div\",{style:{fontSize:\"13px\",color:\"#374151\",lineHeight:\"1.6\"},children:renderMarkdown(selectionResponses.explain.explanation)}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",gap:\"6px\",flexWrap:\"wrap\",marginTop:\"12px\"},children:selectionResponses.explain.keyConcepts?.map((c,idx)=>/*#__PURE__*/_jsx(\"span\",{style:{background:\"#f5f3ff\",color:\"#6366f1\",fontSize:\"11px\",fontWeight:\"600\",padding:\"4px 8px\",borderRadius:\"8px\"},children:c},idx))})]}),/*#__PURE__*/_jsx(MitraGuidancePager,{mitraValues:selectionResponses.explain.mitraValues})]}),activeSelectionTab===\"summarize\"&&/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:\"12px\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{background:\"white\",padding:\"16px\",borderRadius:\"16px\",border:\"1px solid #e2e8f0\"},children:[/*#__PURE__*/_jsx(\"h4\",{style:{fontSize:\"14px\",fontWeight:\"700\",color:\"#1e293b\",marginBottom:\"8px\"},children:\"Summary:\"}),/*#__PURE__*/_jsx(\"div\",{style:{fontSize:\"13px\",color:\"#374151\",lineHeight:\"1.6\",marginBottom:\"12px\"},children:renderMarkdown(selectionResponses.summarize.summary)}),/*#__PURE__*/_jsx(\"h5\",{style:{fontSize:\"12.5px\",fontWeight:\"700\",color:\"#1e293b\",marginBottom:\"6px\"},children:\"Key Points:\"}),/*#__PURE__*/_jsx(\"ul\",{style:{paddingLeft:\"20px\",fontSize:\"12.5px\",color:\"#4b5563\"},children:selectionResponses.summarize.bulletPoints?.map((p,i)=>/*#__PURE__*/_jsx(\"li\",{style:{marginBottom:\"4px\"},children:p},i))})]}),/*#__PURE__*/_jsx(MitraGuidancePager,{mitraValues:selectionResponses.summarize.mitraValues})]}),activeSelectionTab===\"translate\"&&/*#__PURE__*/_jsxs(\"div\",{style:{background:\"white\",padding:\"16px\",borderRadius:\"16px\",border:\"1px solid #e2e8f0\",display:\"flex\",flexDirection:\"column\",gap:\"12px\"},children:[/*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsx(\"h4\",{style:{fontSize:\"12.5px\",color:\"#6366f1\",marginBottom:\"4px\"},children:\"Hindi Translation:\"}),/*#__PURE__*/_jsx(\"p\",{style:{fontSize:\"16px\",fontWeight:\"600\",color:\"#1e293b\"},children:selectionResponses.translate.translatedText})]}),/*#__PURE__*/_jsx(\"button\",{className:\"speaker-btn\",onClick:()=>handleSpeakText(selectionResponses.translate.translatedText,888),children:\"🔊 Hear Pronunciation\"})]}),activeSelectionTab===\"quiz\"&&selectionResponses.quiz.questions&&/*#__PURE__*/_jsxs(\"div\",{style:{background:\"white\",padding:\"16px\",borderRadius:\"16px\",border:\"1px solid #e2e8f0\"},children:[/*#__PURE__*/_jsx(\"h4\",{style:{fontSize:\"14px\",fontWeight:\"700\",color:\"#1e293b\",marginBottom:\"12px\"},children:\"Pop Quiz:\"}),selectionResponses.quiz.questions.map((q,qi)=>/*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsx(\"p\",{style:{fontSize:\"13px\",fontWeight:\"600\",color:\"#374151\",marginBottom:\"12px\"},children:q.question}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:\"8px\"},children:q.options.map((opt,oi)=>{const isSelected=quizSelectedOption===opt;const isCorrect=opt===q.correctAnswer;let btnClass=\"\";if(quizAnswered){if(isCorrect)btnClass=\"correct\";else if(isSelected)btnClass=\"incorrect\";else btnClass=\"disabled\";}return /*#__PURE__*/_jsx(\"button\",{className:`quiz-option-btn ${btnClass}`,onClick:()=>handleAnswerQuiz(opt,q.correctAnswer),children:opt},oi);})}),quizAnswered&&/*#__PURE__*/_jsxs(\"div\",{style:{marginTop:\"16px\",padding:\"12px\",background:\"#f8fafc\",borderRadius:\"12px\",fontSize:\"12px\",color:\"#475569\"},children:[/*#__PURE__*/_jsx(\"strong\",{children:\"Explanation:\"}),\" \",q.explanation]})]},qi))]}),activeSelectionTab===\"career\"&&/*#__PURE__*/_jsxs(\"div\",{className:\"career-card-container glass-card\",children:[/*#__PURE__*/_jsxs(\"div\",{className:\"career-card-header\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"career-illustration\",dangerouslySetInnerHTML:{__html:selectionResponses.career.illustration||defaultCareerIllustration}}),/*#__PURE__*/_jsxs(\"div\",{className:\"career-title-group\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"career-badge\",children:\"Bhavishya Career\"}),/*#__PURE__*/_jsx(\"h3\",{className:\"career-title\",children:selectionResponses.career.careerTitle||\"Research Scientist\"})]})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"career-salary-box\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"salary-label\",children:\"Estimated Starting Salary\"}),/*#__PURE__*/_jsxs(\"div\",{className:\"salary-value\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"currency\",children:\"₹\"}),/*#__PURE__*/_jsx(\"span\",{className:\"amount\",children:selectionResponses.career.salaryLpa||\"8 - 15\"}),/*#__PURE__*/_jsx(\"span\",{className:\"lpa\",children:\"LPA (Lakhs Per Annum)\"})]})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"career-pathway\",children:[/*#__PURE__*/_jsx(\"h4\",{className:\"pathway-title\",children:\"🎓 3-Step Indian Learning Pathway\"}),/*#__PURE__*/_jsx(\"div\",{className:\"pathway-steps\",children:(selectionResponses.career.pathway||[\"Complete Class 12 (PCB/PCM) & clear national level exams (NEET, JEE, CUET)\",\"Pursue Undergraduate/Postgraduate degrees at premier institutions like IITs, AIIMS, or IISERs\",\"Acquire professional credentials, research experience, and join public or private enterprises\"]).map((step,sIdx)=>/*#__PURE__*/_jsxs(\"div\",{className:\"pathway-step\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"step-num\",children:sIdx+1}),/*#__PURE__*/_jsx(\"p\",{className:\"step-text\",children:step})]},sIdx))})]}),/*#__PURE__*/_jsx(MitraGuidancePager,{mitraValues:selectionResponses.career.mitraValues})]})]}):/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexDirection:\"column\",alignItems:\"center\",justifyContent:\"center\",minHeight:\"120px\",color:\"#64748b\",textAlign:\"center\"},children:/*#__PURE__*/_jsx(\"p\",{style:{fontSize:\"13px\",fontWeight:\"600\",marginBottom:\"8px\"},children:\"Select text in the left reader pane to begin selection help.\"})})})]}),/*#__PURE__*/_jsxs(\"div\",{ref:visualizerCardRef,className:\"mitra-card-section visualizer-section glass-card\",style:{background:\"white\",borderRadius:\"16px\",border:\"1px solid #e2e8f0\",overflow:\"hidden\"},children:[/*#__PURE__*/_jsx(\"div\",{className:\"card-section-header\",style:{padding:\"12px 16px\",borderBottom:\"1px solid #f1f5f9\",background:\"#f8fafc\",fontWeight:\"700\",fontSize:\"13px\",color:\"#1e1b4b\"},children:\"🎨 Concept Visualizer\"}),/*#__PURE__*/_jsx(\"div\",{className:\"visualizer-container\",style:{padding:\"16px\"},children:diagramPollingHash?/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",alignItems:\"center\",justifyContent:\"center\",minHeight:\"250px\",padding:\"24px\",textAlign:\"center\"},children:[/*#__PURE__*/_jsx(\"div\",{className:\"mitra-avatar-loading animate-bounce\",style:{fontSize:\"48px\",marginBottom:\"16px\"},children:\"🎨\"}),/*#__PURE__*/_jsx(\"h4\",{style:{fontSize:\"16px\",fontWeight:\"700\",color:\"#1e293b\",marginBottom:\"8px\"},children:\"Mitra is drawing your diagram...\"}),/*#__PURE__*/_jsx(\"p\",{style:{fontSize:\"13px\",color:\"#64748b\",maxWidth:\"280px\",margin:\"0 auto 16px\",lineHeight:\"1.5\"},children:\"This requires running our AI model and typically takes about 1-2 minutes. Please wait!\"}),/*#__PURE__*/_jsx(\"div\",{style:{width:\"100px\",height:\"4px\",background:\"#cbd5e1\",borderRadius:\"2px\",overflow:\"hidden\",position:\"relative\"},children:/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",height:\"100%\",width:\"50%\",background:\"#4f46e5\",borderRadius:\"2px\",animation:\"loading-bar 1.5s infinite ease-in-out\"}})}),/*#__PURE__*/_jsx(\"style\",{children:`\n                                            @keyframes loading-bar {\n                                                0% { left: -50%; }\n                                                100% { left: 100%; }\n                                            }\n                                        `})]}):visualizerLoading?/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:\"12px\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{height:\"40px\",background:\"#f1f5f9\",borderRadius:\"12px\",animation:\"pulse 1.5s infinite\"}}),/*#__PURE__*/_jsx(\"div\",{style:{height:\"200px\",background:\"#f1f5f9\",borderRadius:\"12px\",animation:\"pulse 1.5s infinite\"}})]}):visualizerError?/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:\"12px\",padding:\"16px\"},children:/*#__PURE__*/_jsxs(\"div\",{style:{background:\"#fef2f2\",border:\"1px solid #fee2e2\",padding:\"16px\",borderRadius:\"16px\",color:\"#991b1b\",fontSize:\"13px\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:\"8px\",marginBottom:\"8px\"},children:[/*#__PURE__*/_jsx(\"span\",{style:{fontSize:\"18px\"},children:\"⚠️\"}),/*#__PURE__*/_jsx(\"strong\",{style:{fontWeight:\"700\"},children:\"AI Visualizer Failed\"})]}),/*#__PURE__*/_jsx(\"p\",{style:{margin:0,lineHeight:\"1.5\",marginBottom:\"12px\"},children:visualizerError}),/*#__PURE__*/_jsx(\"button\",{onClick:()=>fetchVisualizerAction(),style:{background:\"#ef4444\",color:\"white\",border:\"none\",padding:\"6px 12px\",borderRadius:\"8px\",fontSize:\"11px\",fontWeight:\"600\",cursor:\"pointer\",boxShadow:\"0 2px 4px rgba(239, 68, 68, 0.2)\"},children:\"Retry Action\"})]})}):visualizerResponse?/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:\"16px\"},children:[/*#__PURE__*/_jsx(\"div\",{className:\"diagram-render-area\",dangerouslySetInnerHTML:{__html:visualizerResponse.diagramSvg}}),visualizerResponse.mitraValues&&/*#__PURE__*/_jsx(MitraGuidancePager,{mitraValues:visualizerResponse.mitraValues})]}):/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:\"16px\"},children:/*#__PURE__*/_jsx(\"div\",{className:\"diagram-render-area\",dangerouslySetInnerHTML:{__html:defaultDiagramSvg}})})})]}),/*#__PURE__*/_jsxs(\"div\",{ref:simulatorCardRef,className:\"mitra-card-section simulator-section glass-card\",style:{background:\"white\",borderRadius:\"16px\",border:\"1px solid #e2e8f0\",overflow:\"hidden\"},children:[/*#__PURE__*/_jsx(\"div\",{className:\"card-section-header\",style:{padding:\"12px 16px\",borderBottom:\"1px solid #f1f5f9\",background:\"#f8fafc\",fontWeight:\"700\",fontSize:\"13px\",color:\"#1e1b4b\"},children:\"🎮 RPG Simulator\"}),/*#__PURE__*/_jsxs(\"div\",{className:\"simulator-container\",style:{padding:\"16px\",display:\"flex\",flexDirection:\"column\"},children:[/*#__PURE__*/_jsxs(\"div\",{className:\"simulator-header\",style:{display:\"flex\",justifyContent:\"space-between\",alignItems:\"center\",marginBottom:\"12px\"},children:[/*#__PURE__*/_jsx(\"span\",{className:\"simulator-badge\",style:{background:\"#f0f9ff\",color:\"#0284c7\",padding:\"4px 8px\",borderRadius:\"6px\",fontSize:\"11px\",fontWeight:\"600\"},children:\"🎮 Mitra RPG Adventure\"}),/*#__PURE__*/_jsxs(\"div\",{className:\"simulator-score\",style:{fontWeight:\"700\",color:\"#0284c7\"},children:[\"Score: \",simScore,\" pts\"]})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"simulator-main\",children:[/*#__PURE__*/_jsx(\"p\",{className:\"scenario-text\",style:{fontSize:\"13px\",lineHeight:\"1.5\",color:\"#374151\"},children:(generateSimulatorScenarios(selectedText,chapterTitle)[simScenarioId]||generateSimulatorScenarios(selectedText,chapterTitle)[\"start\"])?.text}),simFeedback&&/*#__PURE__*/_jsxs(\"div\",{className:\"simulator-feedback-bubble\",style:{background:\"#f0fdf4\",border:\"1px solid #bbf7d0\",padding:\"12px\",borderRadius:\"12px\",marginTop:\"12px\"},children:[/*#__PURE__*/_jsx(\"p\",{style:{margin:0,marginBottom:\"8px\",fontSize:\"12.5px\",color:\"#166534\"},children:simFeedback}),/*#__PURE__*/_jsx(\"button\",{className:\"continue-btn\",style:{background:\"#22c55e\",color:\"white\",border:\"none\",padding:\"6px 12px\",borderRadius:\"8px\",cursor:\"pointer\",fontWeight:\"600\",fontSize:\"11.5px\"},onClick:()=>setSimFeedback(null),children:\"Continue ➔\"})]}),!simFeedback&&/*#__PURE__*/_jsx(\"div\",{className:\"simulator-choices\",style:{display:\"flex\",flexDirection:\"column\",gap:\"8px\",marginTop:\"12px\"},children:(generateSimulatorScenarios(selectedText,chapterTitle)[simScenarioId]||generateSimulatorScenarios(selectedText,chapterTitle)[\"start\"])?.choices.map((choice,idx)=>/*#__PURE__*/_jsx(\"button\",{className:\"simulator-choice-btn\",style:{width:\"100%\",textAlign:\"left\",padding:\"10px 14px\",background:\"white\",border:\"1.5px solid #e2e8f0\",borderRadius:\"10px\",fontSize:\"12px\",cursor:\"pointer\",transition:\"all 0.2s\"},onClick:()=>{setSimFeedback(choice.feedback);if(choice.correct){setSimScore(prev=>prev+10);triggerConfetti();}setSimScenarioId(choice.nextId);},children:choice.text},idx))})]})]})]})]})]})]})]});};// ==================== APP DOWNLOAD MODAL ====================\nconst APP_STORE_URL=\"https://apps.apple.com/us/app/paathshala-new-way-of-learning/id6742110627\";const PLAY_STORE_URL=\"https://play.google.com/store/apps/details?id=com.safwhigre.paathshala.release\";const appDownloadModalStyles=`\n    @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');\n    .app-download-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(8px); z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadeInOverlay 0.3s ease-out; font-family: 'Poppins', sans-serif; }\n    @keyframes fadeInOverlay { from { opacity: 0; } to { opacity: 1; } }\n    .app-download-modal { background: white; border-radius: 24px; padding: 40px 30px; max-width: 420px; width: 100%; text-align: center; position: relative; animation: slideUp 0.3s ease-out; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }\n    @keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }\n    .modal-close-btn { position: absolute; top: 16px; right: 16px; background: #F3F4F6; border: none; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; color: #6B7280; }\n    .modal-close-btn:hover { background: #E5E7EB; transform: scale(1.1); }\n    .modal-title { font-size: 24px; font-weight: 700; color: #1A1B24; margin-bottom: 12px; }\n    .modal-message { font-size: 15px; color: #6B7280; line-height: 1.6; margin-bottom: 32px; }\n    .store-buttons { display: flex; flex-direction: column; gap: 12px; align-items: center; }\n    .store-btn { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 24px; color: white; border-radius: 8px; text-decoration: none; transition: all 0.2s; border: none; width: 100%; max-width: 240px; background: #000; }\n    .store-btn:hover { opacity: 0.85; transform: translateY(-1px); }\n    .store-btn-text { text-align: left; flex: 1; line-height: 1.2; }\n    .store-btn-label { display: block; font-size: 10px; font-weight: 400; opacity: 0.9; text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 2px; }\n    .store-btn-name { display: block; font-size: 20px; font-weight: 600; letter-spacing: -0.3px; }\n`;const AppDownloadModal=({onClose,message})=>/*#__PURE__*/_jsxs(\"div\",{className:\"app-download-overlay\",onClick:onClose,children:[/*#__PURE__*/_jsxs(\"div\",{className:\"app-download-modal\",onClick:e=>e.stopPropagation(),children:[/*#__PURE__*/_jsx(\"button\",{className:\"modal-close-btn\",onClick:onClose,children:/*#__PURE__*/_jsx(\"svg\",{width:\"24\",height:\"24\",viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M18 6L6 18M6 6l12 12\"})})}),/*#__PURE__*/_jsx(\"h2\",{className:\"modal-title\",children:\"Continue on our App\"}),/*#__PURE__*/_jsx(\"p\",{className:\"modal-message\",children:message}),/*#__PURE__*/_jsxs(\"div\",{className:\"store-buttons\",children:[/*#__PURE__*/_jsxs(\"a\",{href:PLAY_STORE_URL,target:\"_blank\",rel:\"noopener noreferrer\",className:\"store-btn playstore-btn\",children:[/*#__PURE__*/_jsxs(\"svg\",{width:\"30\",height:\"30\",viewBox:\"0 0 48 48\",fill:\"none\",children:[/*#__PURE__*/_jsx(\"path\",{d:\"M6 6L27 27L6 42V6Z\",fill:\"#3D7EF5\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M6 6L27 27L33.5 17.5L6 6Z\",fill:\"#30A851\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M41 24C41 25.1 40.5 26 39.7 26.5L33.5 30.5L27 27L33.5 17.5L39.7 21.5C40.5 22 41 22.9 41 24Z\",fill:\"#FAB908\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M33.5 30.5L6 42L27 27L33.5 30.5Z\",fill:\"#E04236\"})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"store-btn-text\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"store-btn-label\",children:\"GET IT ON\"}),/*#__PURE__*/_jsx(\"span\",{className:\"store-btn-name\",children:\"Google Play\"})]})]}),/*#__PURE__*/_jsxs(\"a\",{href:APP_STORE_URL,target:\"_blank\",rel:\"noopener noreferrer\",className:\"store-btn appstore-btn\",children:[/*#__PURE__*/_jsx(\"svg\",{width:\"24\",height:\"24\",viewBox:\"0 0 24 24\",fill:\"currentColor\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.81-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z\"})}),/*#__PURE__*/_jsxs(\"div\",{className:\"store-btn-text\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"store-btn-label\",children:\"Download on the\"}),/*#__PURE__*/_jsx(\"span\",{className:\"store-btn-name\",children:\"App Store\"})]})]})]})]}),/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:appDownloadModalStyles}})]});// ==================== IMAGE LIGHTBOX ====================\nconst lightboxStyles=`\n    @keyframes lightboxFadeIn { from { opacity: 0; } to { opacity: 1; } }\n    @keyframes lightboxZoomIn { from { transform: scale(0.82); opacity: 0; } to { transform: scale(1); opacity: 1; } }\n    .lightbox-overlay {\n        position: fixed; inset: 0; z-index: 99999;\n        background: rgba(0,0,0,0.88); backdrop-filter: blur(10px);\n        display: flex; align-items: center; justify-content: center; padding: 24px;\n        animation: lightboxFadeIn 0.22s ease-out forwards; cursor: zoom-out;\n    }\n    .lightbox-close-btn {\n        position: fixed; top: 20px; right: 20px; width: 44px; height: 44px; border-radius: 50%;\n        background: rgba(255,255,255,0.14); border: 1.5px solid rgba(255,255,255,0.22);\n        color: white; cursor: pointer; display: flex; align-items: center; justify-content: center;\n        transition: background 0.2s, transform 0.2s; z-index: 100000;\n    }\n    .lightbox-close-btn:hover { background: rgba(255,255,255,0.26); transform: scale(1.1); }\n    .lightbox-image-wrap {\n        max-width: min(90vw,680px); max-height: 88vh; border-radius: 12px; overflow: hidden;\n        box-shadow: 0 32px 80px rgba(0,0,0,0.6),0 4px 16px rgba(0,0,0,0.4);\n        animation: lightboxZoomIn 0.28s cubic-bezier(0.34,1.3,0.64,1) forwards; cursor: default;\n    }\n    .lightbox-image { display: block; width: 100%; height: 100%; object-fit: contain; max-height: 88vh; }\n    @media (max-width:600px) { .lightbox-image-wrap { max-width: 96vw; border-radius: 8px; } }\n`;const ImageLightbox=({imageUrl,altText=\"\",onClose})=>{useEffect(()=>{const handleKey=e=>{if(e.key===\"Escape\")onClose();};document.addEventListener(\"keydown\",handleKey);document.body.style.overflow=\"hidden\";return()=>{document.removeEventListener(\"keydown\",handleKey);document.body.style.overflow=\"\";};},[onClose]);return /*#__PURE__*/_jsxs(\"div\",{className:\"lightbox-overlay\",onClick:onClose,children:[/*#__PURE__*/_jsx(\"button\",{className:\"lightbox-close-btn\",onClick:onClose,\"aria-label\":\"Close\",children:/*#__PURE__*/_jsx(\"svg\",{width:\"24\",height:\"24\",viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2.5\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M18 6L6 18M6 6l12 12\"})})}),/*#__PURE__*/_jsx(\"div\",{className:\"lightbox-image-wrap\",onClick:e=>e.stopPropagation(),children:/*#__PURE__*/_jsx(\"img\",{src:imageUrl,alt:altText,className:\"lightbox-image\",onError:e=>{e.currentTarget.src=\"https://images.unsplash.com/photo-1576086213369-97a306d36557?w=300&h=400&fit=crop\";}})}),/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:lightboxStyles}})]});};// ==================== DYNAMIC BOOK COMPONENT ====================\nconst MAX_BOOK_HEIGHT=240;const MIN_BOOK_HEIGHT=140;const MAX_BOOK_WIDTH=200;const MIN_BOOK_WIDTH=100;const bookClickableStyles=`\n    .book-clickable { cursor: zoom-in !important; position: relative; }\n    .book-expand-hint {\n        position: absolute; bottom: 8px; right: 8px; width: 26px; height: 26px;\n        background: rgba(0, 0, 0, 0.6); border-radius: 50%; display: flex;\n        align-items: center; justify-content: center; color: white; opacity: 0;\n        transition: opacity 0.2s, transform 0.2s; border: 1px solid rgba(255,255,255,0.2);\n    }\n    .book-clickable:hover .book-expand-hint { opacity: 1; transform: scale(1.05); }\n    .book-expand-hint:hover { background: rgba(0, 0, 0, 0.8) !important; }\n`;const DynamicBook=({imageUrl,altText=\"\",brandName=\"paathshala\",variant=\"desktop\",onImageClick})=>{const[bookSize,setBookSize]=useState(null);const handleImageLoad=e=>{const img=e.currentTarget;const natW=img.naturalWidth;const natH=img.naturalHeight;if(!natW||!natH)return;const ratio=natW/natH;let h=MAX_BOOK_HEIGHT;let w=h*ratio;if(w>MAX_BOOK_WIDTH){w=MAX_BOOK_WIDTH;h=w/ratio;}if(h<MIN_BOOK_HEIGHT){h=MIN_BOOK_HEIGHT;w=h*ratio;}if(w<MIN_BOOK_WIDTH){w=MIN_BOOK_WIDTH;h=w/ratio;}setBookSize({w:Math.round(w),h:Math.round(h)});};const fallbackUrl=\"https://images.unsplash.com/photo-1576086213369-97a306d36557?w=300&h=400&fit=crop\";const w=bookSize?.w??160;const h=bookSize?.h??(variant===\"mobile\"?210:200);const isDesktop=variant===\"desktop\";const bookClass=isDesktop?\"cd-book\":\"mobile-book\";const frontClass=isDesktop?\"cd-book-front\":\"mobile-book-front\";const backClass=isDesktop?\"cd-book-back\":\"mobile-book-back\";const imgClass=isDesktop?\"cd-book-img\":\"mobile-book-img\";const backImgClass=isDesktop?\"cd-book-back-img\":\"mobile-book-back-img\";const brandClass=isDesktop?\"cd-book-brand\":\"mobile-book-brand\";const shadowClass=isDesktop?\"cd-book-shadow\":undefined;return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsxs(\"div\",{className:`${bookClass} book-clickable`,style:{width:w,height:h},onClick:onImageClick,title:\"Click to view full image\",children:[/*#__PURE__*/_jsxs(\"div\",{className:frontClass,children:[/*#__PURE__*/_jsx(\"img\",{src:imageUrl,alt:altText,className:imgClass,style:{width:\"100%\",height:\"100%\",objectFit:\"cover\",display:\"block\"},onLoad:handleImageLoad,onError:e=>{e.currentTarget.src=fallbackUrl;}}),/*#__PURE__*/_jsx(\"div\",{className:\"book-expand-hint\",children:/*#__PURE__*/_jsx(\"svg\",{width:\"13\",height:\"13\",viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2.5\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7\"})})})]}),/*#__PURE__*/_jsxs(\"div\",{className:backClass,children:[/*#__PURE__*/_jsx(\"img\",{src:imageUrl,alt:\"\",className:backImgClass,style:{width:\"100%\",height:\"100%\",objectFit:\"cover\",display:\"block\",filter:\"brightness(0.55) saturate(0.7)\"},onError:e=>{e.currentTarget.src=fallbackUrl;}}),/*#__PURE__*/_jsx(\"span\",{className:brandClass,children:brandName})]})]}),shadowClass&&/*#__PURE__*/_jsx(\"div\",{className:shadowClass,style:{width:w*.875}}),/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:bookClickableStyles}})]});};const shimmerCSS=`\n    @keyframes shimmer {\n        0%   { background-position: -600px 0; }\n        100% { background-position:  600px 0; }\n    }\n    .sk {\n        background: linear-gradient(90deg,#e8edf2 25%,#f5f7fa 50%,#e8edf2 75%);\n        background-size: 600px 100%; animation: shimmer 1.5s infinite linear;\n        border-radius: 8px; display: block;\n    }\n    .sk-dark {\n        background: linear-gradient(90deg,rgba(255,255,255,0.07) 25%,rgba(255,255,255,0.18) 50%,rgba(255,255,255,0.07) 75%);\n        background-size: 600px 100%; animation: shimmer 1.5s infinite linear;\n        border-radius: 8px; display: block;\n    }\n`;const Sk=({w=\"100%\",h,r=8,mb=0,style,dark})=>/*#__PURE__*/_jsx(\"span\",{className:dark?\"sk-dark\":\"sk\",style:{width:w,height:h,borderRadius:r,marginBottom:mb,flexShrink:0,...style}});const ChapterDetailSkeleton=()=>/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsxs(\"div\",{className:\"container\",children:[/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",padding:\"28px 0 20px\",background:\"transparent\"},children:/*#__PURE__*/_jsx(Sk,{w:160,h:210,r:6,style:{transform:\"rotateY(-22deg) rotateX(2deg)\"}})}),/*#__PURE__*/_jsxs(\"div\",{style:{padding:\"28px 24px 40px\"},children:[/*#__PURE__*/_jsx(Sk,{w:\"80%\",h:26,mb:12}),/*#__PURE__*/_jsx(Sk,{w:\"95%\",h:14,mb:6}),/*#__PURE__*/_jsx(Sk,{w:\"68%\",h:14,mb:28}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"grid\",gridTemplateColumns:\"1fr 1fr\",gap:16},children:Array.from({length:3}).map((_,i)=>/*#__PURE__*/_jsxs(\"div\",{style:{background:\"white\",border:\"1px solid #f3f4f6\",borderRadius:20,padding:20,display:\"flex\",flexDirection:\"column\",alignItems:\"center\",gap:14},children:[/*#__PURE__*/_jsx(Sk,{w:70,h:70,r:35}),/*#__PURE__*/_jsx(Sk,{w:80,h:14})]},i))})]})]}),/*#__PURE__*/_jsx(\"div\",{className:\"chapter-desktop\",children:/*#__PURE__*/_jsxs(\"div\",{style:{padding:\"52px 48px 80px\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"flex-start\",gap:48,marginBottom:52},children:[/*#__PURE__*/_jsxs(\"div\",{style:{flexShrink:0},children:[/*#__PURE__*/_jsx(Sk,{w:160,h:200,r:6}),/*#__PURE__*/_jsx(Sk,{w:140,h:14,r:6,style:{marginTop:10}})]}),/*#__PURE__*/_jsxs(\"div\",{style:{flex:1,display:\"flex\",flexDirection:\"column\",paddingTop:8},children:[/*#__PURE__*/_jsx(Sk,{w:\"72%\",h:44,mb:16}),/*#__PURE__*/_jsx(Sk,{w:\"90%\",h:14,mb:6}),/*#__PURE__*/_jsx(Sk,{w:\"52%\",h:14,mb:28}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:6},children:[[8,20,8,8,8,8,8].map((ww,i)=>/*#__PURE__*/_jsx(Sk,{w:ww,h:8,r:4},i)),/*#__PURE__*/_jsx(Sk,{w:100,h:12,r:4,style:{marginLeft:8}})]})]})]}),/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:1.5,background:\"#E4ECF5\",marginBottom:40}}),/*#__PURE__*/_jsx(Sk,{w:90,h:12,r:4,mb:20}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"grid\",gridTemplateColumns:\"repeat(3,1fr)\",gap:16,marginBottom:60},children:Array.from({length:3}).map((_,i)=>/*#__PURE__*/_jsxs(\"div\",{style:{background:\"white\",border:\"1.5px solid #E4ECF5\",borderRadius:18,padding:\"22px 24px\",display:\"flex\",flexDirection:\"column\",gap:14},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",justifyContent:\"space-between\",alignItems:\"center\"},children:[/*#__PURE__*/_jsx(Sk,{w:44,h:44,r:12}),/*#__PURE__*/_jsx(Sk,{w:56,h:22,r:11})]}),/*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsx(Sk,{w:\"58%\",h:15,mb:7}),/*#__PURE__*/_jsx(Sk,{w:\"90%\",h:12,mb:5}),/*#__PURE__*/_jsx(Sk,{w:\"72%\",h:12})]}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",justifyContent:\"space-between\",alignItems:\"center\"},children:[/*#__PURE__*/_jsx(Sk,{w:70,h:12,r:4}),/*#__PURE__*/_jsx(Sk,{w:28,h:28,r:8})]})]},i))}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",justifyContent:\"space-between\",paddingTop:32,borderTop:\"1.5px solid #E4ECF5\"},children:[/*#__PURE__*/_jsx(Sk,{w:160,h:44,r:12}),/*#__PURE__*/_jsx(Sk,{w:160,h:44,r:12})]})]})}),/*#__PURE__*/_jsx(\"style\",{children:shimmerCSS})]});export default function ChapterDetailPage({subjectId=\"693f8e49452f5e7477b081cc\",chapterId=\"695e39dc555b9ca048c3c0c7\",chapterName=\"\",chapterImageUrl=\"\",onBack}){const getQueryParam=(key,fallback)=>{if(typeof window!==\"undefined\"){const params=new URLSearchParams(window.location.search);return params.get(key)||fallback;}return fallback;};const[view,setView]=useState(()=>{const v=getQueryParam(\"view\",\"CHAPTER\");if(v.toUpperCase()===\"STUDY_SPACE\")return\"STUDY_SPACE\";if(v.toUpperCase()===\"FLASHCARD\")return\"FLASHCARD\";return\"CHAPTER\";});const[isWhiteboardOpen,setIsWhiteboardOpen]=useState(()=>{return getQueryParam(\"whiteboard\",\"false\")===\"true\";});const[widgets,setWidgets]=useState([]);const[isLoading,setIsLoading]=useState(true);const[teachers,setTeachers]=useState([]);const[announcements,setAnnouncements]=useState([]);const[chunks,setChunks]=useState([]);const[summaryData,setSummaryData]=useState(null);const[subId,setSubId]=useState(()=>getQueryParam(\"subjectId\",getQueryParam(\"subject\",subjectId)));const[chapId,setChapId]=useState(()=>getQueryParam(\"chapterId\",getQueryParam(\"chapter\",chapterId)));const[chapName,setChapName]=useState(()=>getQueryParam(\"chapterName\",getQueryParam(\"name\",chapterName)));const[chapImgUrl,setChapImgUrl]=useState(()=>getQueryParam(\"chapterImageUrl\",getQueryParam(\"pictureUrl\",getQueryParam(\"imageUrl\",chapterImageUrl))));const[chapters,setChapters]=useState([]);const[grade,setGrade]=useState(()=>{const g=getQueryParam(\"grade\",\"10\");return parseInt(g)||10;});const[showSpaceModal,setShowSpaceModal]=useState(false);const[lightboxOpen,setLightboxOpen]=useState(false);// Sample fallback teachers data\nconst sampleTeachers=[{_id:\"t1\",name:\"Sameeksha P.\",verified:true,priceRange:\"₹1300-₹3000\",subjects:[\"Phy\",\"Chem\",\"Bio\",\"+4\"]},{_id:\"t2\",name:\"Rahul K.\",verified:true,priceRange:\"₹1500-₹3200\",subjects:[\"Math\",\"Phy\"]},{_id:\"t3\",name:\"Priya S.\",verified:true,priceRange:\"₹1200-₹2800\",subjects:[\"Bio\",\"Chem\"]},{_id:\"t4\",name:\"Amit J.\",verified:true,priceRange:\"₹1400-₹3100\",subjects:[\"Science\",\"Math\"]}];useEffect(()=>{const fetchData=async()=>{setIsLoading(true);try{// 1. Fetch chapters list first to resolve real chapter details before load ends\nlet currentChapters=chapters;if(subId){try{const res=await fetch(`${API_BASE_URL}/subjects/${subId}/chapters`);const json=await res.json();if(json.data&&Array.isArray(json.data.chapters)){currentChapters=json.data.chapters;setChapters(json.data.chapters);}}catch(err){console.error(\"Error fetching chapters list\",err);}}// Resolve current chapter name and cover image immediately\nif(currentChapters.length>0&&chapId){const currentChap=currentChapters.find(c=>c.id===chapId);if(currentChap){if(currentChap.pictureUrl)setChapImgUrl(currentChap.pictureUrl);if(currentChap.name)setChapName(currentChap.name);}}// 2. Fetch chapter content\nconst url=`${API_BASE_URL}/subjects/${subId}/chapters/${chapId}/content`;const response=await fetch(url);const json=await response.json();if(json.data){if(json.data.widgets){setWidgets(json.data.widgets);const sw=json.data.widgets.find(w=>w.type===\"SUMMARY\");if(sw?.content?.html){setSummaryData(sw.content.html);}}if(json.data.announcements){setAnnouncements(json.data.announcements);}if(json.data.chunks){setChunks(json.data.chunks);}}setTeachers(sampleTeachers);}catch(err){console.error(\"API Error\",err);}finally{setIsLoading(false);}};fetchData();},[subId,chapId]);const handleLaunchStudySpace=()=>{if(typeof window!==\"undefined\"){const params=new URLSearchParams(window.location.search);window.location.href=`/student-library-study-space-page?${params.toString()}`;}};const handleActionClick=type=>{const widget=widgets.find(w=>w.type===type);if(widget){if(type===\"FLASHCARD\"){setView(\"FLASHCARD\");}else if(type===\"SUMMARY\"){handleLaunchStudySpace();}else{alert(\"This feature is coming soon!\");}}else{alert(\"This content is not available for this chapter yet.\");}};// Helper to get flashcard data formatted for the component\nconst getFlashcardData=()=>{const widget=widgets.find(w=>w.type===\"FLASHCARD\");if(!widget||!widget.content.cards)return[];return widget.content.cards.map((card,index)=>({_id:`fc_${index}`,question:card.front,answer:card.back}));};const hasWidget=type=>widgets.some(w=>w.type===type);const chapterIndex=chapters.findIndex(c=>c.id===chapId);const totalChapters=chapters.length;const isLocked=chapterIndex>=3;const handleNavigateToChapter=(targetChapId,targetChapName,targetChapImg)=>{setChapId(targetChapId);setChapName(targetChapName);setChapImgUrl(targetChapImg);if(typeof window!==\"undefined\"){const params=new URLSearchParams(window.location.search);params.set(\"chapterId\",targetChapId);params.set(\"chapterName\",targetChapName);if(targetChapImg){params.set(\"chapterImageUrl\",targetChapImg);}else{params.delete(\"chapterImageUrl\");}window.history.pushState({},\"\",`${window.location.pathname}?${params.toString()}`);}};const prev=()=>{if(chapterIndex>0){const target=chapters[chapterIndex-1];handleNavigateToChapter(target.id,target.name,target.pictureUrl);}};const next=()=>{if(chapterIndex<totalChapters-1){const target=chapters[chapterIndex+1];handleNavigateToChapter(target.id,target.name,target.pictureUrl);}};// --- Render ---\nreturn /*#__PURE__*/_jsxs(\"div\",{className:\"paathshala-app-wrapper\",style:{minHeight:\"100vh\"},children:[isLoading?/*#__PURE__*/_jsxs(\"div\",{className:\"loading-container-skeleton\",style:{minHeight:\"100vh\",background:\"#F8FBFF\"},children:[/*#__PURE__*/_jsx(HeaderNavBar,{}),/*#__PURE__*/_jsx(ChapterDetailSkeleton,{}),/*#__PURE__*/_jsx(Footer,{variant:\"b4JPUOJ8J\",width:\"100%\"})]}):view===\"FLASHCARD\"?/*#__PURE__*/_jsx(FlashcardScreen,{data:getFlashcardData(),onBack:()=>setView(\"CHAPTER\"),chapterTitle:chapName}):/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(HeaderNavBar,{}),/*#__PURE__*/_jsxs(\"div\",{className:\"container\",children:[/*#__PURE__*/_jsxs(\"div\",{className:\"header-image\",style:{backgroundImage:`url(${chapImgUrl})`,backgroundSize:\"cover\",backgroundPosition:\"center\"},children:[/*#__PURE__*/_jsx(\"div\",{className:\"nav-buttons\",children:/*#__PURE__*/_jsx(\"button\",{className:\"nav-btn\",onClick:onBack||(()=>window.history.back()),children:/*#__PURE__*/_jsx(\"svg\",{viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M15 18l-6-6 6-6\"})})})}),/*#__PURE__*/_jsx(\"div\",{className:\"mobile-book-header\",children:/*#__PURE__*/_jsx(\"div\",{className:\"mobile-book-scene\",children:/*#__PURE__*/_jsx(DynamicBook,{imageUrl:chapImgUrl,altText:chapName,brandName:\"paathshala\",variant:\"mobile\",onImageClick:()=>setLightboxOpen(true)})})})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"content\",children:[/*#__PURE__*/_jsx(\"h1\",{children:chapName}),isLocked&&/*#__PURE__*/_jsxs(\"div\",{className:\"chapter-access-banner chapter-access-locked\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"access-icon\",children:\"🔒\"}),/*#__PURE__*/_jsx(\"span\",{children:\"Download the app to unlock the full content for this chapter\"})]}),/*#__PURE__*/_jsx(\"p\",{className:\"description\",children:\"Science is a way of thinking, observing, and doing things to uncover the secrets of the universe. It is fundamentally driven by curiosity, which encourages us to explore our surroundings.\"}),/*#__PURE__*/_jsxs(\"div\",{className:\"ai-study-card\",children:[/*#__PURE__*/_jsxs(\"div\",{className:\"ai-study-left\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"ai-feature-badge\",children:\"Interactive AI Feature\"}),/*#__PURE__*/_jsx(\"h2\",{children:\"Interactive AI Study Space\"}),/*#__PURE__*/_jsx(\"p\",{className:\"ai-study-desc\",children:\"Dive into a split-screen workspace with our AI Companion Mitra, load PDF textbooks, generate real-time notes, and sketch on our collaborative whiteboard with other students!\"}),/*#__PURE__*/_jsx(\"button\",{className:\"ai-launch-btn\",onClick:handleLaunchStudySpace,children:\"🚀 Launch Study Space\"})]}),/*#__PURE__*/_jsx(\"div\",{className:\"ai-study-right\",children:/*#__PURE__*/_jsxs(\"div\",{className:\"ai-online-bubble\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"ai-online-icon\",children:\"👥\"}),/*#__PURE__*/_jsx(\"span\",{children:\"3 Online Now\"})]})})]}),/*#__PURE__*/_jsx(ChapterAnnouncements,{announcements:announcements}),/*#__PURE__*/_jsxs(\"div\",{className:\"action-cards\",children:[/*#__PURE__*/_jsxs(\"div\",{className:`action-card ${hasWidget(\"FLASHCARD\")?\"active\":\"disabled\"}`,onClick:()=>handleActionClick(\"FLASHCARD\"),children:[/*#__PURE__*/_jsxs(\"div\",{className:\"icon-wrapper purple\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"sparkle\",children:\"✨\"}),/*#__PURE__*/_jsx(\"div\",{className:\"icon-content\",children:\"🗂️\"})]}),/*#__PURE__*/_jsx(\"h3\",{children:\"Flash Card\"}),hasWidget(\"FLASHCARD\")&&/*#__PURE__*/_jsx(\"div\",{className:\"badge\",children:\"Ready\"})]}),/*#__PURE__*/_jsxs(\"div\",{className:`action-card ${hasWidget(\"QUIZ\")?\"active\":\"disabled\"}`,onClick:()=>handleActionClick(\"QUIZ\"),children:[/*#__PURE__*/_jsxs(\"div\",{className:\"icon-wrapper blue\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"sparkle\",children:\"✨\"}),/*#__PURE__*/_jsx(\"div\",{className:\"icon-content\",children:\"❓\"})]}),/*#__PURE__*/_jsx(\"h3\",{children:\"Quiz Me\"}),hasWidget(\"QUIZ\")&&/*#__PURE__*/_jsx(\"div\",{className:\"badge\",children:\"Ready\"})]}),/*#__PURE__*/_jsxs(\"div\",{className:`action-card ${hasWidget(\"SUMMARY\")?\"active\":\"disabled\"}`,onClick:()=>handleActionClick(\"SUMMARY\"),children:[/*#__PURE__*/_jsxs(\"div\",{className:\"icon-wrapper green\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"sparkle\",children:\"✨\"}),/*#__PURE__*/_jsx(\"div\",{className:\"icon-content\",children:\"📝\"})]}),/*#__PURE__*/_jsx(\"h3\",{children:\"Summarize\"}),hasWidget(\"SUMMARY\")&&/*#__PURE__*/_jsx(\"div\",{className:\"badge\",children:\"Ready\"})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"action-card disabled\",children:[/*#__PURE__*/_jsxs(\"div\",{className:\"icon-wrapper yellow\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"sparkle\",children:\"✨\"}),/*#__PURE__*/_jsx(\"div\",{className:\"icon-content\",children:\"💯\"})]}),/*#__PURE__*/_jsx(\"h3\",{children:\"Mock tests\"})]})]}),/*#__PURE__*/_jsx(\"h2\",{className:\"section-title\",children:\"Check this out!\"}),/*#__PURE__*/_jsxs(\"div\",{className:\"featured-cards\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"featured-card neurons\",children:/*#__PURE__*/_jsx(\"div\",{className:\"featured-card-content\",children:/*#__PURE__*/_jsxs(\"h3\",{children:[\"Breathing Life Into\",/*#__PURE__*/_jsx(\"br\",{}),\"Learning\"]})})}),/*#__PURE__*/_jsx(\"div\",{className:\"featured-card video\",children:/*#__PURE__*/_jsx(\"div\",{className:\"featured-card-content\",children:/*#__PURE__*/_jsx(\"h3\",{children:\"Learn with video\"})})})]}),/*#__PURE__*/_jsx(\"h2\",{className:\"section-title\",children:\"Related Teachers\"}),/*#__PURE__*/_jsx(\"div\",{className:\"teachers-grid\",children:teachers.map(teacher=>/*#__PURE__*/_jsxs(\"div\",{className:\"teacher-card\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"teacher-image\",children:/*#__PURE__*/_jsx(\"div\",{className:\"teacher-placeholder\",children:teacher.name[0]})}),/*#__PURE__*/_jsxs(\"div\",{className:\"teacher-info\",children:[/*#__PURE__*/_jsxs(\"div\",{className:\"teacher-name\",children:[/*#__PURE__*/_jsx(\"h3\",{children:teacher.name}),teacher.verified&&/*#__PURE__*/_jsx(\"span\",{className:\"verified-badge\",children:\"✓\"})]}),/*#__PURE__*/_jsx(\"div\",{className:\"teacher-price\",children:teacher.priceRange}),/*#__PURE__*/_jsx(\"div\",{className:\"subjects\",children:teacher.subjects.map((s,i)=>/*#__PURE__*/_jsx(\"span\",{className:\"subject-tag\",children:s},i))})]})]},teacher._id))}),(chapterIndex>0||chapterIndex<totalChapters-1)&&/*#__PURE__*/_jsxs(\"div\",{className:\"chapter-detail-pagination\",children:[chapterIndex>0?/*#__PURE__*/_jsxs(\"button\",{className:\"chapter-detail-nav-btn chapter-detail-nav-prev\",onClick:prev,children:[/*#__PURE__*/_jsx(\"svg\",{width:\"18\",height:\"18\",viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M19 12H5M12 19l-7-7 7-7\"})}),/*#__PURE__*/_jsx(\"span\",{children:\"Previous Chapter\"})]}):/*#__PURE__*/_jsx(\"div\",{}),chapterIndex<totalChapters-1?/*#__PURE__*/_jsxs(\"button\",{className:\"chapter-detail-nav-btn chapter-detail-nav-next\",onClick:next,children:[/*#__PURE__*/_jsx(\"span\",{children:\"Next Chapter\"}),/*#__PURE__*/_jsx(\"svg\",{width:\"18\",height:\"18\",viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M5 12h14M12 5l7 7-7 7\"})})]}):/*#__PURE__*/_jsx(\"div\",{})]})]})]}),/*#__PURE__*/_jsx(\"div\",{className:\"chapter-desktop fade-in\",children:/*#__PURE__*/_jsxs(\"div\",{className:\"cd-main\",children:[/*#__PURE__*/_jsxs(\"div\",{className:\"cd-header\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"cd-book-wrap\",children:/*#__PURE__*/_jsx(DynamicBook,{imageUrl:chapImgUrl,altText:chapName,brandName:\"paathshala\",variant:\"desktop\",onImageClick:()=>setLightboxOpen(true)})}),/*#__PURE__*/_jsxs(\"div\",{className:\"cd-chapter-meta\",children:[/*#__PURE__*/_jsx(\"h1\",{children:chapName}),/*#__PURE__*/_jsx(\"p\",{className:\"cd-subtitle\",children:\"Explore this chapter through interactive flashcards, quizzes, summaries, and mock tests.\"}),isLocked&&/*#__PURE__*/_jsxs(\"div\",{className:\"cd-access-banner cd-access-locked\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"cd-access-icon\",children:\"🔒\"}),/*#__PURE__*/_jsx(\"span\",{children:\"Download the app to unlock the full content for this chapter\"})]}),totalChapters>0&&/*#__PURE__*/_jsxs(\"div\",{className:\"cd-chapter-dots\",children:[Array.from({length:totalChapters}).map((_,i)=>/*#__PURE__*/_jsx(\"div\",{className:`cd-dash${i===chapterIndex?\" cd-dash-active\":\"\"}`,onClick:()=>{const target=chapters[i];handleNavigateToChapter(target.id,target.name,target.pictureUrl);},title:`Chapter ${i+1}`},i)),/*#__PURE__*/_jsxs(\"span\",{className:\"cd-dot-label\",children:[\"Ch. \",chapterIndex+1,\"/\",totalChapters]})]})]})]}),/*#__PURE__*/_jsx(\"div\",{className:\"cd-divider\"}),/*#__PURE__*/_jsxs(\"div\",{className:\"ai-study-card\",children:[/*#__PURE__*/_jsxs(\"div\",{className:\"ai-study-left\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"ai-feature-badge\",children:\"Interactive AI Feature\"}),/*#__PURE__*/_jsx(\"h2\",{children:\"Interactive AI Study Space\"}),/*#__PURE__*/_jsx(\"p\",{className:\"ai-study-desc\",children:\"Dive into a split-screen workspace with our AI Companion Mitra, load PDF textbooks, generate real-time notes, and sketch on our collaborative whiteboard with other students!\"}),/*#__PURE__*/_jsx(\"button\",{className:\"ai-launch-btn\",onClick:handleLaunchStudySpace,children:\"🚀 Launch Study Space\"})]}),/*#__PURE__*/_jsx(\"div\",{className:\"ai-study-right\",children:/*#__PURE__*/_jsxs(\"div\",{className:\"ai-online-bubble\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"ai-online-icon\",children:\"👥\"}),/*#__PURE__*/_jsx(\"span\",{children:\"3 Online Now\"})]})})]}),/*#__PURE__*/_jsx(\"div\",{className:\"cd-divider\"}),/*#__PURE__*/_jsx(ChapterAnnouncements,{announcements:announcements}),/*#__PURE__*/_jsx(\"div\",{className:\"cd-section-label\",children:\"Study tools\"}),/*#__PURE__*/_jsxs(\"div\",{className:\"cd-activities\",children:[/*#__PURE__*/_jsxs(\"div\",{className:`cd-activity-card cd-flash${!hasWidget(\"FLASHCARD\")?\" cd-disabled\":\"\"}`,onClick:()=>hasWidget(\"FLASHCARD\")&&handleActionClick(\"FLASHCARD\"),children:[/*#__PURE__*/_jsxs(\"div\",{className:\"cd-card-top\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"cd-icon-wrap\",children:\"🗂️\"}),/*#__PURE__*/_jsx(\"span\",{className:`cd-status-pill ${hasWidget(\"FLASHCARD\")?\"cd-status-ready\":\"cd-status-locked\"}`,children:hasWidget(\"FLASHCARD\")?\"Ready\":\"Locked\"})]}),/*#__PURE__*/_jsx(\"div\",{className:\"cd-activity-name\",children:\"Flash Cards\"}),/*#__PURE__*/_jsx(\"div\",{className:\"cd-activity-desc\",children:\"Review key terms and concepts at your own pace\"}),/*#__PURE__*/_jsxs(\"div\",{className:\"cd-card-footer\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"cd-count-badge\",children:hasWidget(\"FLASHCARD\")?\"Available\":\"Not available\"}),/*#__PURE__*/_jsx(\"div\",{className:\"cd-go-btn\",children:\"→\"})]})]}),/*#__PURE__*/_jsxs(\"div\",{className:`cd-activity-card cd-quiz${!hasWidget(\"QUIZ\")?\" cd-disabled\":\"\"}`,onClick:()=>hasWidget(\"QUIZ\")&&handleActionClick(\"QUIZ\"),children:[/*#__PURE__*/_jsxs(\"div\",{className:\"cd-card-top\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"cd-icon-wrap\",children:\"❓\"}),/*#__PURE__*/_jsx(\"span\",{className:`cd-status-pill ${hasWidget(\"QUIZ\")?\"cd-status-ready\":\"cd-status-locked\"}`,children:hasWidget(\"QUIZ\")?\"Ready\":\"Locked\"})]}),/*#__PURE__*/_jsx(\"div\",{className:\"cd-activity-name\",children:\"Quiz Me\"}),/*#__PURE__*/_jsx(\"div\",{className:\"cd-activity-desc\",children:\"Test your understanding with adaptive questions\"}),/*#__PURE__*/_jsxs(\"div\",{className:\"cd-card-footer\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"cd-count-badge\",children:hasWidget(\"QUIZ\")?\"Available\":\"Not available\"}),/*#__PURE__*/_jsx(\"div\",{className:\"cd-go-btn\",children:\"→\"})]})]}),/*#__PURE__*/_jsxs(\"div\",{className:`cd-activity-card cd-summary${!hasWidget(\"SUMMARY\")?\" cd-disabled\":\"\"}`,onClick:()=>hasWidget(\"SUMMARY\")&&handleActionClick(\"SUMMARY\"),children:[/*#__PURE__*/_jsxs(\"div\",{className:\"cd-card-top\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"cd-icon-wrap\",children:\"📝\"}),/*#__PURE__*/_jsx(\"span\",{className:`cd-status-pill ${hasWidget(\"SUMMARY\")?\"cd-status-ready\":\"cd-status-locked\"}`,children:hasWidget(\"SUMMARY\")?\"Ready\":\"Locked\"})]}),/*#__PURE__*/_jsx(\"div\",{className:\"cd-activity-name\",children:\"Summarize\"}),/*#__PURE__*/_jsx(\"div\",{className:\"cd-activity-desc\",children:\"Get a concise overview of the chapter's key ideas\"}),/*#__PURE__*/_jsxs(\"div\",{className:\"cd-card-footer\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"cd-count-badge\",children:hasWidget(\"SUMMARY\")?\"~3 min read\":\"Not available\"}),/*#__PURE__*/_jsx(\"div\",{className:\"cd-go-btn\",children:\"→\"})]})]})]}),totalChapters>0&&/*#__PURE__*/_jsxs(\"div\",{className:\"cd-bottom-nav\",children:[/*#__PURE__*/_jsx(\"button\",{className:\"cd-nav-btn\",onClick:prev,disabled:chapterIndex<=0,children:\"← Previous Chapter\"}),/*#__PURE__*/_jsx(\"button\",{className:\"cd-nav-btn cd-primary\",onClick:next,disabled:chapterIndex>=totalChapters-1,children:\"Next Chapter →\"})]})]})}),/*#__PURE__*/_jsx(Footer,{variant:\"b4JPUOJ8J\",width:\"100%\"})]}),lightboxOpen&&chapImgUrl&&/*#__PURE__*/_jsx(ImageLightbox,{imageUrl:chapImgUrl,altText:chapName,onClose:()=>setLightboxOpen(false)}),showSpaceModal&&/*#__PURE__*/_jsx(AppDownloadModal,{onClose:()=>setShowSpaceModal(false),message:\"Download our app to experience the fully interactive split-screen Study Space with real-time multiplayer whiteboard, PDF loading, and AI companion Mitra!\"}),/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:`\n                @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');\n                * { margin: 0; padding: 0; box-sizing: border-box; }\n                \n                @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }\n                @keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }\n                .fade-in { animation: fadeIn 0.4s ease-out forwards; }\n                \n                .container { font-family: 'Poppins', sans-serif; background: #F8FBFF; min-height: 100vh; padding-bottom: 40px; }\n                .header-image { width: 100%; height: 260px; background-size: cover; background-position: center; position: relative; }\n                .nav-buttons { position: absolute; top: 20px; left: 0; right: 0; display: flex; justify-content: space-between; padding: 0 20px; z-index: 10; }\n                .nav-btn { width: 44px; height: 44px; border-radius: 50%; background: white; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.15); transition: transform 0.2s; }\n                .nav-btn:active { transform: scale(0.9); }\n                .nav-btn svg { width: 22px; height: 22px; }\n\n                .content { padding: 28px 24px 40px; background: #F8FBFF; position: relative; box-sizing: border-box; }\n                .content h1 { font-size: 24px; font-weight: 700; margin-bottom: 12px; color: #1A1B24; font-family: 'Poppins', sans-serif; }\n                .description { font-size: 14px; color: #6b7280; margin-bottom: 30px; line-height: 1.6; font-family: 'Poppins', sans-serif; }\n                \n                /* Warnings / Access locked banner */\n                .chapter-access-banner { display: flex; align-items: center; gap: 10px; border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; font-size: 13px; font-weight: 500; line-height: 1.4; font-family: 'Poppins', sans-serif; }\n                .chapter-access-locked { background: #FFFDEB; border: 1px solid #FDE047; color: #854D0E; }\n                .access-icon { font-size: 16px; flex-shrink: 0; }\n                \n                /* Action Cards */\n                .action-cards { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; margin-bottom: 40px; }\n                .action-card { background: white; border: 1px solid #f3f4f6; border-radius: 20px; padding: 20px; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); transition: transform 0.2s, box-shadow 0.2s; }\n                .action-card.active { cursor: pointer; }\n                .action-card.active:hover { transform: translateY(-4px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }\n                .action-card.disabled { opacity: 0.6; cursor: not-allowed; filter: grayscale(1); }\n                .badge { position: absolute; top: 12px; right: 12px; background: #dcfce7; color: #166534; font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 12px; font-family: 'Poppins', sans-serif; }\n                .icon-wrapper { width: 70px; height: 70px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; position: relative; font-size: 30px; }\n                .icon-wrapper.purple { background: #f3e8ff; } .icon-wrapper.blue { background: #e0f2fe; } .icon-wrapper.green { background: #dcfce7; } .icon-wrapper.yellow { background: #fef9c3; }\n                .sparkle { position: absolute; font-size: 16px; top: -5px; right: -5px; animation: bounce 2s infinite; }\n                .action-card h3 { font-size: 14px; font-weight: 600; color: #374151; font-family: 'Poppins', sans-serif; }\n                \n                .chapter-detail-pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding-top: 16px; border-top: 1px solid #E5E7EB; gap: 12px; }\n                .chapter-detail-nav-btn { display: flex; align-items: center; gap: 8px; padding: 12px 22px; background: white; border: 1.5px solid #E5E7EB; border-radius: 12px; color: #1A1B24; font-family: 'Poppins', sans-serif; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }\n                .chapter-detail-nav-btn:hover { background: #F3F4F6; border-color: #D1D5DB; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }\n                .chapter-detail-nav-prev { margin-right: auto; } .chapter-detail-nav-next { margin-left: auto; }\n\n                /* 3D Book Layout & Scenes */\n                .mobile-book-header { width: 100%; background: transparent; display: flex; align-items: center; justify-content: center; padding: 28px 0 20px; }\n                .mobile-book-scene { perspective: 700px; }\n                .mobile-book { position: relative; transform-style: preserve-3d; transform: rotateY(-22deg) rotateX(2deg); transition: transform 0.5s cubic-bezier(0.34,1.3,0.64,1); cursor: zoom-in; }\n                .mobile-book:hover { transform: rotateY(-10deg) rotateX(1deg) translateY(-8px); }\n                .mobile-book-front { position: absolute; inset: 0; border-radius: 3px 7px 7px 3px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: inset -3px 0 10px rgba(0,0,0,0.22), 6px 12px 28px rgba(0,0,0,0.26), 1px 2px 6px rgba(0,0,0,0.12); }\n                .mobile-book-back { position: absolute; inset: 0; border-radius: 7px 3px 3px 7px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; transform: rotateY(180deg); }\n                .mobile-book-back-img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; background: #d0d0d0; }\n                .mobile-book-brand { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: 'Poppins', sans-serif; font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: lowercase; color: rgba(255,255,255,0.18); writing-mode: vertical-rl; transform: rotate(180deg); user-select: none; }\n                .mobile-book-img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; background: #f0f0f0; }\n\n                /* Desktop Layout styles */\n                .chapter-desktop { display: none; }\n                @media (min-width: 768px) { .container { display: none; } .chapter-desktop { display: block; } }\n                .chapter-desktop { font-family: 'Poppins', sans-serif; background: #F8FBFF; min-height: 100vh; padding-bottom: 60px; width: 100%; }\n                .cd-main { max-width: 100%; margin: 0; padding: 52px 48px 80px; }\n                .cd-header { display: flex; align-items: flex-start; justify-content: flex-start; gap: 48px; margin-bottom: 52px; }\n                .cd-book-wrap { flex-shrink: 0; perspective: 900px; }\n                .cd-book { position: relative; transform-style: preserve-3d; transform: rotateY(-22deg) rotateX(2deg); transition: transform 0.5s cubic-bezier(0.34,1.3,0.64,1); cursor: zoom-in; }\n                .cd-book:hover { transform: rotateY(-10deg) rotateX(1deg) translateY(-10px); }\n                .cd-book-front { position: absolute; inset: 0; border-radius: 3px 7px 7px 3px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: inset -3px 0 10px rgba(0,0,0,0.22), 6px 12px 32px rgba(0,0,0,0.24), 1px 2px 6px rgba(0,0,0,0.12); }\n                .cd-book-back { position: absolute; inset: 0; border-radius: 7px 3px 3px 7px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; transform: rotateY(180deg); }\n                .cd-book-back-img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; background: #d0d0d0; filter: brightness(0.55) saturate(0.7); }\n                .cd-book-brand { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: 'Poppins', sans-serif; font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: lowercase; color: rgba(255,255,255,0.18); writing-mode: vertical-rl; transform: rotate(180deg); user-select: none; }\n                .cd-book-img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; background: #f0f0f0; }\n                .cd-book-front::after { content: ''; position: absolute; inset: 0; background: linear-gradient(155deg,rgba(255,255,255,0.10) 0%,transparent 40%,rgba(0,0,0,0.06) 100%); pointer-events: none; }\n                .cd-book-shadow { height: 14px; background: radial-gradient(ellipse,rgba(0,0,0,0.16) 0%,transparent 70%); margin: 8px auto 0; border-radius: 50%; }\n                \n                .cd-chapter-meta { flex: 1; text-align: left; }\n                .cd-chapter-meta h1 { font-family: 'Poppins', sans-serif; font-size: clamp(26px,4vw,44px); font-weight: 800; color: #1A1B24; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 14px; text-align: left; }\n                .cd-subtitle { font-size: 14px; color: #6b7280; line-height: 1.65; max-width: 460px; margin-bottom: 20px; font-family: 'Poppins', sans-serif; text-align: left; }\n                \n                .cd-access-banner { display: flex; align-items: center; gap: 10px; border-radius: 10px; padding: 11px 16px; margin-bottom: 20px; font-size: 13px; font-weight: 500; line-height: 1.4; font-family: 'Poppins', sans-serif; }\n                .cd-access-locked { background: #FFFDEB; border: 1px solid #FDE047; color: #854D0E; }\n                .cd-access-icon { font-size: 16px; flex-shrink: 0; }\n                \n                .cd-chapter-dots { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; overflow: hidden; max-width: 100%; }\n                .cd-dash { width: 16px; height: 3px; border-radius: 99px; background: #D0D8E4; flex-shrink: 0; transition: background 0.2s ease, width 0.25s cubic-bezier(0.34,1.3,0.64,1); cursor: pointer; }\n                .cd-dash-active { background: #1A1B24; width: 28px; }\n                .cd-dot-label { margin-left: 8px; font-size: 11px; font-weight: 600; color: #9aa3b2; font-family: 'Poppins', sans-serif; white-space: nowrap; flex-shrink: 0; }\n                .cd-divider { width: 100%; height: 1.5px; background: #E4ECF5; margin-bottom: 40px; }\n                \n                .cd-section-label { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #8a8898; margin-bottom: 20px; font-family: 'Poppins', sans-serif; text-align: left; display: block; width: 100%; }\n                .cd-activities { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 60px; width: 100%; }\n                .cd-activity-card { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px; border-radius: 18px; border: 1.5px solid #E4ECF5; background: white; cursor: pointer; transition: all 0.24s ease; position: relative; overflow: hidden; font-family: 'Poppins', sans-serif; text-align: left; }\n                .cd-activity-card::before { content: ''; position: absolute; top: 18px; bottom: 18px; left: 0; width: 3px; border-radius: 0 2px 2px 0; transition: top 0.22s ease, bottom 0.22s ease; }\n                .cd-flash::before { background: #3d7a5c; } .cd-quiz::before { background: #c98a2e; } .cd-summary::before { background: #6278c8; }\n                .cd-activity-card:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.09),0 2px 8px rgba(0,0,0,0.04); border-color: transparent; }\n                .cd-activity-card:hover::before { top: 0; bottom: 0; }\n                .cd-activity-card.cd-disabled { opacity: 0.42; cursor: not-allowed; filter: grayscale(0.5); }\n                .cd-activity-card.cd-disabled:hover { transform: none; box-shadow: none; border-color: #E4ECF5; }\n                .cd-card-top { display: flex; align-items: center; justify-content: space-between; }\n                .cd-icon-wrap { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 21px; }\n                .cd-flash .cd-icon-wrap { background: #e8f4ee; } .cd-quiz .cd-icon-wrap { background: #fdf0db; } .cd-summary .cd-icon-wrap { background: #eef0fc; }\n                .cd-status-pill { font-size: 9.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 10px; border-radius: 20px; font-family: 'Poppins', sans-serif; }\n                .cd-status-ready { background: #e8f4ee; color: #3d7a5c; } .cd-status-locked { background: #f0ece6; color: #8a8898; }\n                .cd-activity-name { font-size: 15px; font-weight: 600; color: #1A1B24; margin-bottom: 3px; }\n                .cd-activity-desc { font-size: 12.5px; color: #6b7280; line-height: 1.45; }\n                .cd-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }\n                .cd-count-badge { font-size: 12px; color: #8a8898; font-weight: 500; }\n                .cd-go-btn { width: 28px; height: 28px; border-radius: 8px; background: #EEF2F8; display: flex; align-items: center; justify-content: center; font-size: 14px; color: #8a8898; transition: all 0.2s; flex-shrink: 0; }\n                .cd-activity-card:hover .cd-go-btn { background: #1A1B24; color: white; }\n                \n                .cd-bottom-nav { display: flex; align-items: center; justify-content: space-between; padding-top: 32px; border-top: 1.5px solid #E4ECF5; width: 100%; }\n                .cd-nav-btn { display: flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 12px; border: 1.5px solid #E4ECF5; background: white; font-size: 13px; font-weight: 500; color: #1A1B24; cursor: pointer; transition: all 0.2s; font-family: 'Poppins', sans-serif; }\n                .cd-nav-btn:hover:not(:disabled) { background: #EEF2F8; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }\n                .cd-nav-btn.cd-primary { background: #1A1B24; border-color: #1A1B24; color: white; }\n                .cd-nav-btn.cd-primary:hover:not(:disabled) { background: #2e3048; }\n                .cd-nav-btn:disabled { opacity: 0.32; cursor: not-allowed; }\n\n                /* Interactive AI Study Space Card styles */\n                .ai-study-card {\n                    position: relative;\n                    background: linear-gradient(135deg, #f3ebfc 0%, #fef7ff 100%);\n                    border: 1.5px solid #e9d5ff;\n                    border-radius: 24px;\n                    padding: 32px 40px;\n                    margin-bottom: 40px;\n                    display: flex;\n                    justify-content: space-between;\n                    align-items: center;\n                    overflow: hidden;\n                    font-family: 'Poppins', sans-serif;\n                    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.03);\n                    width: 100%;\n                }\n                .ai-study-card::before {\n                    content: '';\n                    position: absolute;\n                    right: -80px;\n                    bottom: -80px;\n                    width: 300px;\n                    height: 300px;\n                    background: radial-gradient(circle, rgba(236, 72, 153, 0.15) 0%, rgba(99, 102, 241, 0.15) 50%, transparent 70%);\n                    filter: blur(40px);\n                    pointer-events: none;\n                    z-index: 1;\n                }\n                .ai-study-left {\n                    max-width: 65%;\n                    display: flex;\n                    flex-direction: column;\n                    gap: 12px;\n                    z-index: 2;\n                    text-align: left;\n                }\n                .ai-feature-badge {\n                    background: #d946ef;\n                    color: white;\n                    font-size: 11px;\n                    font-weight: 700;\n                    padding: 4px 12px;\n                    border-radius: 99px;\n                    width: fit-content;\n                    text-transform: capitalize;\n                    letter-spacing: 0.02em;\n                }\n                .ai-study-card h2 {\n                    font-size: 26px;\n                    font-weight: 800;\n                    color: #1a1b2f;\n                    margin: 0;\n                    line-height: 1.2;\n                }\n                .ai-study-desc {\n                    font-size: 14px;\n                    color: #5d5c70;\n                    line-height: 1.6;\n                    margin: 0;\n                }\n                .ai-launch-btn {\n                    display: flex;\n                    align-items: center;\n                    gap: 8px;\n                    background: white;\n                    border: 1.5px solid #dcd3fc;\n                    border-radius: 99px;\n                    padding: 11px 22px;\n                    color: rgb(0, 51, 202);\n                    font-size: 14px;\n                    font-weight: 600;\n                    cursor: pointer;\n                    transition: all 0.2s ease;\n                    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.08);\n                    width: fit-content;\n                    margin-top: 8px;\n                }\n                .ai-launch-btn:hover {\n                    transform: translateY(-2px);\n                    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.15);\n                    border-color: rgb(0, 51, 202);\n                    background: #fdfbff;\n                }\n                .ai-study-right {\n                    position: relative;\n                    z-index: 2;\n                    display: flex;\n                    align-items: center;\n                    justify-content: flex-end;\n                    width: 30%;\n                }\n                .ai-online-bubble {\n                    background: rgba(255, 255, 255, 0.85);\n                    border: 1px solid #ebdfff;\n                    border-radius: 99px;\n                    padding: 6px 14px;\n                    font-size: 12px;\n                    font-weight: 600;\n                    color: #5d5c70;\n                    display: flex;\n                    align-items: center;\n                    gap: 6px;\n                    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);\n                    backdrop-filter: blur(8px);\n                    -webkit-backdrop-filter: blur(8px);\n                }\n                .ai-online-icon {\n                    color: #6366f1;\n                    font-size: 14px;\n                }\n                @media (max-width: 767px) {\n                    .ai-study-card {\n                        flex-direction: column;\n                        align-items: flex-start;\n                        padding: 24px;\n                        gap: 20px;\n                        margin-bottom: 24px;\n                    }\n                    .ai-study-left {\n                        max-width: 100%;\n                    }\n                    .ai-study-right {\n                        width: 100%;\n                        justify-content: flex-start;\n                    }\n                }\n                \n                .study-space-banner-content h2 {\n                  font-size: 20px;\n                  font-weight: 700;\n                  color: #1e1b4b;\n                  margin-bottom: 8px;\n                }\n                .study-space-banner-content p {\n                  font-size: 13.5px;\n                  color: #4b5563;\n                  max-width: 600px;\n                  line-height: 1.5;\n                  margin-bottom: 16px;\n                }\n                .banner-pill {\n                  display: inline-block;\n                  background: linear-gradient(135deg, hsl(239 84% 67%) 0%, hsl(314 93% 61%) 100%);\n                  color: white;\n                  font-size: 11px;\n                  font-weight: 600;\n                  padding: 4px 10px;\n                  border-radius: 12px;\n                  margin-bottom: 10px;\n                }\n                .launch-btn {\n                  background: white;\n                  border: 1px solid hsl(var(--primary-hsl) / 0.3);\n                  color: hsl(var(--primary-hsl));\n                  padding: 8px 20px;\n                  border-radius: 12px;\n                  font-size: 13.5px;\n                  font-weight: 600;\n                  cursor: pointer;\n                  transition: all 0.2s;\n                  box-shadow: 0 4px 12px rgba(0,0,0,0.05);\n                }\n                .launch-btn:disabled {\n                  opacity: 0.5;\n                  cursor: not-allowed;\n                  border-color: #cbd5e1;\n                  color: #94a3b8;\n                  background: #f1f5f9;\n                  box-shadow: none;\n                }\n                .study-space-banner:hover .launch-btn {\n                  background: hsl(var(--primary-hsl));\n                  color: white;\n                  border-color: hsl(var(--primary-hsl));\n                }\n                .study-space-banner-graphic {\n                  position: relative;\n                  width: 140px;\n                  height: 140px;\n                  display: flex;\n                  align-items: center;\n                  justify-content: center;\n                }\n                .glow-orb {\n                  position: absolute;\n                  border-radius: 50%;\n                  filter: blur(25px);\n                  opacity: 0.6;\n                }\n                .orb-purple {\n                  width: 70px;\n                  height: 70px;\n                  background: hsl(var(--primary-hsl));\n                  top: 10px;\n                  left: 10px;\n                  animation: floatOrb 4s infinite alternate;\n                }\n                .orb-pink {\n                  width: 60px;\n                  height: 60px;\n                  background: hsl(var(--accent-hsl));\n                  bottom: 10px;\n                  right: 10px;\n                  animation: floatOrb 4s infinite alternate-reverse;\n                }\n                @keyframes floatOrb {\n                  0% { transform: translate(0, 0) scale(1); }\n                  100% { transform: translate(15px, 15px) scale(1.1); }\n                }\n                .multiplayer-badge {\n                  position: absolute;\n                  background: rgba(255, 255, 255, 0.85);\n                  border: 1px solid #e5e7eb;\n                  padding: 6px 12px;\n                  border-radius: 20px;\n                  font-size: 11px;\n                  font-weight: 600;\n                  color: #374151;\n                  box-shadow: 0 4px 12px rgba(0,0,0,0.05);\n                  bottom: 20px;\n                  white-space: nowrap;\n                }\n\n                /* Study Space Layout */\n                .study-space-container {\n                  display: flex;\n                  flex-direction: column;\n                  height: 100vh;\n                  background: #f8fafc;\n                  font-family: 'Poppins', sans-serif;\n                  overflow: hidden;\n                }\n                .study-space-header {\n                  display: flex;\n                  justify-content: space-between;\n                  align-items: center;\n                  padding: 12px 24px;\n                  background: white;\n                  border-bottom: 1px solid #e2e8f0;\n                }\n                .study-space-header h2 {\n                  font-size: 16px;\n                  font-weight: 700;\n                  color: #1e293b;\n                }\n                .study-space-header-actions {\n                  display: flex;\n                  gap: 12px;\n                }\n                .study-space-workspace {\n                  display: flex;\n                  flex: 1;\n                  overflow: hidden;\n                }\n                .left-workspace-panel {\n                  flex: 1.2;\n                  border-right: 1px solid #e2e8f0;\n                  display: flex;\n                  flex-direction: column;\n                  background: white;\n                  overflow: hidden;\n                }\n                .right-workspace-panel {\n                  flex: 0.8;\n                  display: flex;\n                  flex-direction: column;\n                  background: #f8fafc;\n                  overflow: hidden;\n                }\n\n                /* Tabs */\n                .workspace-tabs {\n                  display: flex;\n                  background: #f1f5f9;\n                  padding: 6px;\n                  margin: 12px 16px;\n                  border-radius: 12px;\n                }\n                .workspace-tab {\n                  flex: 1;\n                  padding: 8px;\n                  border: none;\n                  background: transparent;\n                  font-size: 12.5px;\n                  font-weight: 600;\n                  color: #64748b;\n                  border-radius: 8px;\n                  cursor: pointer;\n                  transition: all 0.2s;\n                  text-align: center;\n                }\n                .workspace-tab.active {\n                  background: white;\n                  color: #0f172a;\n                  box-shadow: 0 2px 8px rgba(0,0,0,0.05);\n                }\n\n                /* PDF Viewer */\n                .pdf-iframe-container {\n                  flex: 1;\n                  padding: 0 16px 16px;\n                  display: flex;\n                  flex-direction: column;\n                }\n                .pdf-iframe-container iframe {\n                  width: 100%;\n                  height: 100%;\n                  border: 1px solid #e2e8f0;\n                  border-radius: 16px;\n                  background: #f1f5f9;\n                }\n\n                /* Raw Text and Selection Tooltip */\n                .raw-text-panel {\n                  flex: 1;\n                  overflow-y: auto;\n                  padding: 0 24px 24px;\n                  position: relative;\n                  scrollbar-width: thin;\n                  scrollbar-color: hsl(var(--primary-hsl) / 0.3) rgba(0, 0, 0, 0.05);\n                }\n                /* Interactive Section Cards */\n                .interactive-section-card {\n                  margin-bottom: 24px;\n                  padding: 24px;\n                  border-radius: 20px;\n                  background: #ffffff;\n                  border: 1.5px solid #f1f5f9;\n                  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n                  cursor: pointer;\n                  position: relative;\n                  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);\n                }\n                .interactive-section-card:hover {\n                  border-color: #cbd5e1;\n                  transform: translateY(-2px);\n                  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);\n                }\n                .interactive-section-card.selected {\n                  background: hsl(var(--primary-hsl) / 0.02);\n                  border-color: hsl(var(--primary-hsl));\n                  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.08);\n                }\n\n                /* Section Card Header */\n                .section-card-header {\n                  display: flex;\n                  align-items: center;\n                  gap: 12px;\n                  margin-bottom: 16px;\n                }\n                .section-badge {\n                  font-size: 10px;\n                  font-weight: 700;\n                  color: hsl(var(--primary-hsl));\n                  background: hsl(var(--primary-hsl) / 0.1);\n                  padding: 3px 8px;\n                  border-radius: 8px;\n                  text-transform: uppercase;\n                  letter-spacing: 0.5px;\n                }\n                .section-title {\n                  font-size: 15px;\n                  font-weight: 600;\n                  color: #1e293b;\n                  margin: 0;\n                  flex: 1;\n                }\n\n                /* Section Body Text */\n                .section-body-text {\n                  font-size: 14px;\n                  line-height: 1.75;\n                  color: #334155;\n                  margin: 0;\n                }\n\n                /* Structured Section Breakdown Styling */\n                .section-breakdown-container {\n                  display: flex;\n                  flex-direction: column;\n                  gap: 16px;\n                  margin-top: 8px;\n                }\n                .breakdown-core-concept {\n                  background: linear-gradient(135deg, hsl(var(--primary-hsl) / 0.04) 0%, hsl(var(--primary-hsl) / 0.01) 100%);\n                  border-left: 4px solid hsl(var(--primary-hsl));\n                  border-radius: 12px;\n                  padding: 16px;\n                  box-shadow: inset 0 1px 3px rgba(0,0,0,0.01);\n                }\n                .breakdown-subtitle {\n                  font-size: 11px;\n                  font-weight: 700;\n                  text-transform: uppercase;\n                  letter-spacing: 0.5px;\n                  color: #475569;\n                  margin-bottom: 8px;\n                  display: flex;\n                  align-items: center;\n                  gap: 6px;\n                }\n                .subtitle-icon {\n                  font-size: 13px;\n                }\n                .breakdown-text.core-text {\n                  font-size: 14px;\n                  font-weight: 600;\n                  line-height: 1.6;\n                  color: #1e293b;\n                  margin: 0;\n                }\n                .breakdown-details-grid {\n                  display: flex;\n                  flex-direction: column;\n                  gap: 12px;\n                }\n                .breakdown-details-box {\n                  padding: 14px 18px;\n                  border-radius: 12px;\n                  border: 1.5px solid #e2e8f0;\n                  transition: all 0.2s ease;\n                }\n                .detail-key-takeaways {\n                  background: #f8fafc;\n                  border-color: #e2e8f0;\n                }\n                .detail-process {\n                  background: #f0fdf4;\n                  border-color: #dcfce7;\n                }\n                .detail-process .breakdown-subtitle {\n                  color: #166534;\n                }\n                .detail-examples {\n                  background: #fffbeb;\n                  border-color: #fef3c7;\n                }\n                .detail-examples .breakdown-subtitle {\n                  color: #92400e;\n                }\n                .breakdown-list {\n                  list-style: none;\n                  padding: 0;\n                  margin: 0;\n                  display: flex;\n                  flex-direction: column;\n                  gap: 8px;\n                }\n                .breakdown-list-item {\n                  display: flex;\n                  align-items: flex-start;\n                  gap: 10px;\n                }\n                .bullet-dot {\n                  font-size: 12px;\n                  color: #64748b;\n                  flex-shrink: 0;\n                  margin-top: 2px;\n                }\n                .detail-process .bullet-dot {\n                  color: #22c55e;\n                }\n                .detail-examples .bullet-dot {\n                  color: #f59e0b;\n                }\n                .list-text {\n                  font-size: 13.5px;\n                  line-height: 1.6;\n                  color: #334155;\n                }\n\n                /* AI Toolbar inside Card */\n                .section-ai-toolbar {\n                  display: flex;\n                  align-items: center;\n                  gap: 8px;\n                  margin-top: 20px;\n                  padding-top: 16px;\n                  border-top: 1.5px dashed #e2e8f0;\n                  flex-wrap: wrap;\n                }\n                .toolbar-label {\n                  font-size: 11.5px;\n                  font-weight: 700;\n                  color: #64748b;\n                  margin-right: 4px;\n                  text-transform: uppercase;\n                  letter-spacing: 0.5px;\n                }\n                .toolbar-btn {\n                  background: #f8fafc;\n                  border: 1px solid #e2e8f0;\n                  padding: 6px 12px;\n                  border-radius: 12px;\n                  font-size: 12px;\n                  font-weight: 600;\n                  color: #475569;\n                  cursor: pointer;\n                  transition: all 0.2s ease;\n                  display: flex;\n                  align-items: center;\n                  gap: 4px;\n                }\n                .toolbar-btn:hover {\n                  background: white;\n                  border-color: #cbd5e1;\n                  color: #1e293b;\n                  transform: translateY(-1px);\n                  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);\n                }\n                .toolbar-btn:active {\n                  transform: translateY(0);\n                }\n                .speaker-btn {\n                  display: flex;\n                  align-items: center;\n                  gap: 6px;\n                  background: white;\n                  border: 1px solid #cbd5e1;\n                  padding: 4px 10px;\n                  border-radius: 10px;\n                  font-size: 11px;\n                  font-weight: 600;\n                  cursor: pointer;\n                  transition: all 0.2s;\n                }\n                .speaker-btn:hover {\n                  border-color: hsl(var(--primary-hsl));\n                  color: hsl(var(--primary-hsl));\n                }\n                .speaker-btn.playing {\n                  background: hsl(var(--primary-hsl) / 0.1);\n                  border-color: hsl(var(--primary-hsl));\n                  color: hsl(var(--primary-hsl));\n                }\n\n\n                /* ==================== INTERACTIVE AI COMPANION FEATURE STYLES ==================== */\n                .analogy-trigger {\n                  position: relative;\n                  border-bottom: 2px dashed hsl(var(--primary-hsl));\n                  cursor: help;\n                  font-weight: 600;\n                  color: hsl(var(--primary-hsl));\n                  display: inline-block;\n                }\n                .analogy-trigger:hover {\n                  color: hsl(var(--accent-hsl));\n                  border-bottom-color: hsl(var(--accent-hsl));\n                }\n                .analogy-card {\n                  position: absolute;\n                  bottom: 125%;\n                  left: 50%;\n                  transform: translateX(-50%) scale(0.95);\n                  background: rgba(255, 255, 255, 0.95);\n                  border: 1px solid rgba(255, 255, 255, 0.4);\n                  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);\n                  backdrop-filter: blur(12px);\n                  -webkit-backdrop-filter: blur(12px);\n                  border-radius: 12px;\n                  padding: 12px 16px;\n                  width: 240px;\n                  z-index: 500;\n                  pointer-events: none;\n                  opacity: 0;\n                  transition: opacity 0.2s ease, transform 0.2s ease;\n                  display: flex;\n                  flex-direction: column;\n                  gap: 4px;\n                  text-align: left;\n                }\n                .analogy-trigger:hover .analogy-card {\n                  opacity: 1;\n                  pointer-events: auto;\n                  transform: translateX(-50%) scale(1);\n                }\n                .analogy-card-title {\n                  font-size: 11px;\n                  font-weight: 700;\n                  color: hsl(var(--primary-hsl));\n                  text-transform: uppercase;\n                  letter-spacing: 0.05em;\n                }\n                .analogy-card-text {\n                  font-size: 12px;\n                  color: #374151;\n                  line-height: 1.4;\n                  font-weight: 400;\n                }\n\n                .career-card-container {\n                  background: rgba(255, 255, 255, 0.7);\n                  border: 1px solid rgba(255, 255, 255, 0.5);\n                  border-radius: 20px;\n                  padding: 20px;\n                  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);\n                  backdrop-filter: blur(12px);\n                  -webkit-backdrop-filter: blur(12px);\n                  display: flex;\n                  flex-direction: column;\n                  gap: 16px;\n                  margin-top: 12px;\n                  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;\n                }\n                .career-card-container:hover {\n                  transform: scale(1.02);\n                  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);\n                }\n                .career-card-header {\n                  display: flex;\n                  align-items: center;\n                  gap: 16px;\n                }\n                .career-illustration {\n                  width: 70px;\n                  height: 70px;\n                  border-radius: 16px;\n                  background: linear-gradient(135deg, hsl(239 84% 67% / 0.1), hsl(314 93% 61% / 0.1));\n                  padding: 4px;\n                  border: 1px solid rgba(255, 255, 255, 0.5);\n                  display: flex;\n                  align-items: center;\n                  justify-content: center;\n                  flex-shrink: 0;\n                }\n                .career-illustration svg {\n                  width: 100%;\n                  height: 100%;\n                  border-radius: 12px;\n                }\n                .career-title-group {\n                  display: flex;\n                  flex-direction: column;\n                  gap: 4px;\n                }\n                .career-badge {\n                  align-self: flex-start;\n                  background: linear-gradient(135deg, #a21caf, #d946ef);\n                  color: white;\n                  font-size: 10px;\n                  font-weight: 700;\n                  padding: 2px 8px;\n                  border-radius: 8px;\n                  text-transform: uppercase;\n                  letter-spacing: 0.05em;\n                }\n                .career-title {\n                  font-size: 16px;\n                  font-weight: 700;\n                  color: #1e1b4b;\n                }\n                .career-salary-box {\n                  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(4, 120, 87, 0.1));\n                  border: 1px solid rgba(16, 185, 129, 0.2);\n                  border-radius: 14px;\n                  padding: 12px 16px;\n                  display: flex;\n                  flex-direction: column;\n                  gap: 4px;\n                }\n                .salary-label {\n                  font-size: 11px;\n                  font-weight: 600;\n                  color: #065f46;\n                  text-transform: uppercase;\n                  letter-spacing: 0.05em;\n                }\n                .salary-value {\n                  display: flex;\n                  align-items: baseline;\n                  gap: 4px;\n                  color: #047857;\n                }\n                .salary-value .currency {\n                  font-size: 18px;\n                  font-weight: 800;\n                }\n                .salary-value .amount {\n                  font-size: 24px;\n                  font-weight: 800;\n                }\n                .salary-value .lpa {\n                  font-size: 12px;\n                  font-weight: 600;\n                  margin-left: 4px;\n                }\n                .career-pathway {\n                  display: flex;\n                  flex-direction: column;\n                  gap: 12px;\n                }\n                .pathway-title {\n                  font-size: 13px;\n                  font-weight: 700;\n                  color: #374151;\n                }\n                .pathway-steps {\n                  display: flex;\n                  flex-direction: column;\n                  gap: 10px;\n                }\n                .pathway-step {\n                  display: flex;\n                  gap: 12px;\n                  align-items: flex-start;\n                }\n                .step-num {\n                  width: 24px;\n                  height: 24px;\n                  border-radius: 50%;\n                  background: hsl(var(--primary-hsl));\n                  color: white;\n                  font-size: 12px;\n                  font-weight: 700;\n                  display: flex;\n                  align-items: center;\n                  justify-content: center;\n                  flex-shrink: 0;\n                  box-shadow: 0 4px 10px hsl(var(--primary-hsl) / 0.2);\n                }\n                .step-text {\n                  font-size: 12.5px;\n                  color: #4b5563;\n                  line-height: 1.4;\n                  text-align: left;\n                }\n\n                .visualizer-container {\n                  padding: 16px;\n                  display: flex;\n                  flex-direction: column;\n                  gap: 16px;\n                  flex: 1;\n                  overflow-y: auto;\n                  text-align: left;\n                }\n                .diagram-title {\n                  font-size: 16px;\n                  font-weight: 700;\n                  color: #1f2937;\n                }\n                .diagram-desc {\n                  font-size: 13px;\n                  color: #4b5563;\n                  line-height: 1.5;\n                }\n                .diagram-render-area {\n                  background: white;\n                  border: 1px solid #e2e8f0;\n                  border-radius: 16px;\n                  padding: 12px;\n                  box-shadow: 0 4px 12px rgba(0,0,0,0.02);\n                  display: flex;\n                  align-items: center;\n                  justify-content: center;\n                  overflow: hidden;\n                  transition: transform 0.3s ease;\n                }\n                .diagram-render-area:hover {\n                  transform: scale(1.01);\n                }\n                .diagram-render-area svg {\n                  max-width: 100%;\n                  height: auto;\n                  border-radius: 12px;\n                }\n\n                .simulator-container {\n                  background: rgba(255, 255, 255, 0.7);\n                  border: 1px solid rgba(255, 255, 255, 0.5);\n                  box-shadow: 0 10px 30px rgba(0,0,0,0.05);\n                  backdrop-filter: blur(12px);\n                  -webkit-backdrop-filter: blur(12px);\n                  border-radius: 20px;\n                  display: flex;\n                  flex-direction: column;\n                  gap: 16px;\n                  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;\n                }\n                .simulator-header {\n                  display: flex;\n                  justify-content: space-between;\n                  align-items: center;\n                  border-bottom: 1px solid rgba(0,0,0,0.05);\n                  padding-bottom: 12px;\n                }\n                .simulator-badge {\n                  background: linear-gradient(135deg, hsl(var(--primary-hsl)) 0%, hsl(var(--accent-hsl)) 100%);\n                  color: white;\n                  font-size: 10px;\n                  font-weight: 700;\n                  padding: 4px 10px;\n                  border-radius: 10px;\n                  text-transform: uppercase;\n                  letter-spacing: 0.05em;\n                }\n                .simulator-score {\n                  font-size: 12.5px;\n                  font-weight: 700;\n                  color: hsl(var(--primary-hsl));\n                }\n                .simulator-main {\n                  display: flex;\n                  flex-direction: column;\n                  gap: 16px;\n                  flex: 1;\n                }\n                .scenario-text {\n                  font-size: 13.5px;\n                  color: #374151;\n                  line-height: 1.6;\n                  background: white;\n                  padding: 16px;\n                  border-radius: 14px;\n                  border: 1px solid #cbd5e1;\n                  text-align: left;\n                }\n                .simulator-choices {\n                  display: flex;\n                  flex-direction: column;\n                  gap: 10px;\n                }\n                .simulator-choice-btn {\n                  background: white;\n                  border: 1.5px solid #cbd5e1;\n                  padding: 12px 16px;\n                  border-radius: 12px;\n                  text-align: left;\n                  cursor: pointer;\n                  font-family: inherit;\n                  font-size: 13px;\n                  font-weight: 600;\n                  color: #4b5563;\n                  transition: all 0.2s ease;\n                }\n                .simulator-choice-btn:hover {\n                  border-color: hsl(var(--primary-hsl));\n                  background: hsl(var(--primary-hsl) / 0.05);\n                  color: hsl(var(--primary-hsl));\n                  transform: translateY(-2px);\n                }\n                .simulator-feedback-bubble {\n                  background: #fdf2f8;\n                  border: 1px solid #fbcfe8;\n                  border-radius: 14px;\n                  padding: 14px;\n                  display: flex;\n                  flex-direction: column;\n                  gap: 12px;\n                  animation: pulseBubble 0.3s ease;\n                }\n                @keyframes pulseBubble {\n                  from { opacity: 0; transform: translateY(5px); }\n                  to { opacity: 1; transform: translateY(0); }\n                }\n                .simulator-feedback-bubble p {\n                  font-size: 13px;\n                  color: #9d174d;\n                  font-weight: 600;\n                  line-height: 1.5;\n                  text-align: left;\n                }\n                .continue-btn {\n                  align-self: flex-end;\n                  background: linear-gradient(135deg, hsl(var(--primary-hsl)) 0%, hsl(var(--accent-hsl)) 100%);\n                  color: white;\n                  border: none;\n                  padding: 6px 16px;\n                  border-radius: 8px;\n                  font-size: 12px;\n                  font-weight: 600;\n                  cursor: pointer;\n                  box-shadow: 0 4px 12px hsl(var(--primary-hsl) / 0.2);\n                  transition: all 0.2s;\n                }\n                .continue-btn:hover {\n                  transform: scale(1.05);\n                }\n\n                .guidance-content-inner {\n                  display: flex;\n                  align-items: center;\n                  gap: 16px;\n                  text-align: left;\n                }\n                .guidance-illustration {\n                  flex-shrink: 0;\n                  border-radius: 16px;\n                  overflow: hidden;\n                  background: white;\n                  box-shadow: 0 4px 10px rgba(0,0,0,0.03);\n                }\n                .guidance-illustration svg {\n                  display: block;\n                }\n                .guidance-text {\n                  flex: 1;\n                }\n\n                @keyframes shimmer {\n                  0% { background-position: -200% 0; }\n                  100% { background-position: 200% 0; }\n                }\n                .shimmer-loader {\n                  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);\n                  background-size: 200% 100%;\n                  animation: shimmer 1.5s infinite;\n                }\n\n                .mitra-card-section {\n                  flex-shrink: 0 !important;\n                }\n\n                /* Mobile Responsive Column Collapse */\n                @media (max-width: 1024px) and (min-width: 769px) {\n                  .study-space-workspace {\n                    flex-direction: column;\n                    overflow-y: auto;\n                  }\n                  .left-workspace-panel, .right-workspace-panel {\n                    flex: none;\n                    width: 100%;\n                    height: auto;\n                    border-right: none;\n                  }\n                  .left-workspace-panel {\n                    border-bottom: 2px dashed #cbd5e1;\n                    min-height: 400px;\n                  }\n                  .right-workspace-panel {\n                    min-height: 500px;\n                  }\n                }\n\n                @media (max-width: 768px) {\n                  .study-space-workspace {\n                    flex-direction: column !important;\n                    height: calc(100vh - 100px) !important;\n                    overflow: hidden !important;\n                  }\n                  .left-workspace-panel {\n                    flex: none !important;\n                    width: 100% !important;\n                    height: 42% !important;\n                    border-right: none !important;\n                    border-bottom: 1.5px solid #cbd5e1 !important;\n                    display: flex !important;\n                    flex-direction: column !important;\n                  }\n                  .right-workspace-panel {\n                    flex: none !important;\n                    width: 100% !important;\n                    height: 58% !important;\n                    border-right: none !important;\n                    display: flex !important;\n                    flex-direction: column !important;\n                  }\n                }\n                /* ========================================================================= */\n\n                .selection-tooltip {\n                  position: absolute;\n                  background: #1e293b;\n                  border-radius: 12px;\n                  padding: 6px;\n                  display: flex;\n                  gap: 4px;\n                  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);\n                  z-index: 100;\n                  transform: translate(-50%, -100%);\n                  animation: tooltipFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);\n                }\n                @keyframes tooltipFade {\n                  from { opacity: 0; transform: translate(-50%, -90%) scale(0.95); }\n                  to { opacity: 1; transform: translate(-50%, -100%) scale(1); }\n                }\n                .tooltip-btn {\n                  background: transparent;\n                  border: none;\n                  color: white;\n                  padding: 6px 12px;\n                  border-radius: 8px;\n                  font-size: 11px;\n                  font-weight: 600;\n                  cursor: pointer;\n                  transition: background-color 0.15s;\n                }\n                .tooltip-btn:hover {\n                  background: rgba(255, 255, 255, 0.15);\n                }\n\n                /* Mitra AI Panel styles */\n                .mitra-ai-header {\n                  padding: 16px;\n                  display: flex;\n                  align-items: center;\n                  gap: 16px;\n                  background: linear-gradient(135deg, hsl(239 84% 67% / 0.05) 0%, hsl(314 93% 61% / 0.05) 100%);\n                  border-bottom: 1px solid #e2e8f0;\n                }\n                .mitra-avatar-container {\n                  width: 50px;\n                  height: 50px;\n                  position: relative;\n                  background: white;\n                  border-radius: 50%;\n                  border: 2px solid hsl(var(--primary-hsl));\n                  display: flex;\n                  align-items: center;\n                  justify-content: center;\n                  box-shadow: 0 4px 12px hsl(var(--primary-hsl) / 0.15);\n                }\n                .mitra-avatar-svg {\n                  width: 36px;\n                  height: 36px;\n                  transition: transform 0.3s;\n                }\n                .mitra-speaking-pulse {\n                  position: absolute;\n                  inset: -4px;\n                  border-radius: 50%;\n                  border: 2px solid hsl(var(--primary-hsl) / 0.4);\n                  animation: pulseSpeaking 1.5s infinite;\n                }\n                @keyframes pulseSpeaking {\n                  0% { transform: scale(1); opacity: 1; }\n                  100% { transform: scale(1.2); opacity: 0; }\n                }\n\n                .mitra-chat-container {\n                  flex: 1;\n                  display: flex;\n                  flex-direction: column;\n                  overflow: hidden;\n                }\n                .mitra-messages {\n                  flex: 1;\n                  overflow-y: auto;\n                  padding: 16px;\n                  display: flex;\n                  flex-direction: column;\n                  gap: 12px;\n                  scrollbar-width: thin;\n                  scrollbar-color: hsl(var(--primary-hsl) / 0.3) rgba(0, 0, 0, 0.05);\n                }\n                .chat-msg {\n                  max-width: 80%;\n                  padding: 12px 16px;\n                  border-radius: 18px;\n                  font-size: 13px;\n                  line-height: 1.5;\n                }\n                .chat-msg.user {\n                  align-self: flex-end;\n                  background: hsl(var(--primary-hsl));\n                  color: white;\n                  border-bottom-right-radius: 4px;\n                }\n                .chat-msg.mitra {\n                  align-self: flex-start;\n                  background: white;\n                  color: #374151;\n                  border: 1px solid #cbd5e1;\n                  border-bottom-left-radius: 4px;\n                  box-shadow: 0 2px 6px rgba(0,0,0,0.02);\n                }\n                .chat-input-form {\n                  padding: 12px 16px;\n                  background: white;\n                  border-top: 1px solid #e2e8f0;\n                  display: flex;\n                  gap: 8px;\n                }\n                .chat-input {\n                  flex: 1;\n                  border: 1px solid #cbd5e1;\n                  padding: 10px 16px;\n                  border-radius: 24px;\n                  font-size: 13.5px;\n                  font-family: inherit;\n                  outline: none;\n                  transition: border-color 0.2s;\n                }\n                .chat-input:focus {\n                  border-color: hsl(var(--primary-hsl));\n                }\n                .send-btn {\n                  background: hsl(var(--primary-hsl));\n                  border: none;\n                  color: white;\n                  width: 40px;\n                  height: 40px;\n                  border-radius: 50%;\n                  cursor: pointer;\n                  display: flex;\n                  align-items: center;\n                  justify-content: center;\n                  transition: transform 0.2s;\n                }\n                .send-btn:active {\n                  transform: scale(0.9);\n                }\n\n                /* Whiteboard Overlay styles */\n                .whiteboard-overlay {\n                  position: fixed;\n                  inset: 0;\n                  background: #f1f5f9;\n                  z-index: 10000;\n                  display: flex;\n                  flex-direction: column;\n                }\n                .whiteboard-header {\n                  display: flex;\n                  justify-content: space-between;\n                  align-items: center;\n                  padding: 12px 24px;\n                  background: white;\n                  border-bottom: 1px solid #cbd5e1;\n                  z-index: 10;\n                }\n                .whiteboard-toolbar {\n                  position: absolute;\n                  top: 90px;\n                  left: 24px;\n                  background: rgba(255, 255, 255, 0.85);\n                  backdrop-filter: blur(16px);\n                  -webkit-backdrop-filter: blur(16px);\n                  border-radius: 20px;\n                  box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.08), 0 4px 12px -2px rgba(0, 0, 0, 0.03);\n                  border: 1px solid rgba(226, 232, 240, 0.8);\n                  padding: 10px;\n                  display: flex;\n                  flex-direction: column;\n                  gap: 8px;\n                  z-index: 100;\n                  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n                }\n                .toolbar-tool {\n                  width: 46px;\n                  height: 46px;\n                  border-radius: 14px;\n                  border: none;\n                  background: transparent;\n                  color: #475569;\n                  cursor: pointer;\n                  display: flex;\n                  align-items: center;\n                  justify-content: center;\n                  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);\n                  position: relative;\n                }\n                .toolbar-tool svg {\n                  width: 22px;\n                  height: 22px;\n                  fill: none;\n                  stroke: currentColor;\n                  stroke-width: 2;\n                  stroke-linecap: round;\n                  stroke-linejoin: round;\n                  transition: transform 0.2s ease;\n                }\n                .toolbar-tool:hover svg {\n                  transform: scale(1.1);\n                }\n                .toolbar-tool.active {\n                  background: hsl(var(--primary-hsl));\n                  color: white;\n                  box-shadow: 0 4px 14px hsl(var(--primary-hsl) / 0.35);\n                }\n                .toolbar-tool:hover:not(.active) {\n                  background: #f1f5f9;\n                  color: #0f172a;\n                }\n                .toolbar-tool.disabled {\n                  opacity: 0.35;\n                  cursor: not-allowed !important;\n                }\n                .toolbar-tool.disabled:hover {\n                  background: transparent !important;\n                  color: #475569 !important;\n                }\n                .toolbar-tool.disabled svg {\n                  transform: none !important;\n                }\n                .color-swatch.disabled {\n                  opacity: 0.35;\n                  cursor: not-allowed !important;\n                  transform: none !important;\n                }\n                .color-swatches {\n                  margin-top: 10px;\n                  border-top: 1px solid #e2e8f0;\n                  padding-top: 10px;\n                  display: flex;\n                  flex-direction: column;\n                  align-items: center;\n                  gap: 8px;\n                }\n                .color-swatch {\n                  width: 20px;\n                  height: 20px;\n                  border-radius: 50%;\n                  cursor: pointer;\n                  border: 2px solid white;\n                  box-shadow: 0 0 0 1px #cbd5e1;\n                  transition: transform 0.2s;\n                }\n                .color-swatch.active {\n                  transform: scale(1.25);\n                  box-shadow: 0 0 0 1px #111827;\n                }\n\n                .whiteboard-canvas-container {\n                  flex: 1;\n                  position: relative;\n                  overflow: hidden;\n                  background: #f8fafc;\n                }\n                .whiteboard-canvas-content {\n                  background: radial-gradient(circle, #cbd5e1 1.2px, transparent 1.2px);\n                  background-size: 24px 24px;\n                }\n                .whiteboard-zoom-controls {\n                  position: absolute;\n                  bottom: 24px;\n                  left: 24px;\n                  background: rgba(255, 255, 255, 0.85);\n                  backdrop-filter: blur(16px);\n                  -webkit-backdrop-filter: blur(16px);\n                  border-radius: 14px;\n                  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);\n                  border: 1px solid rgba(226, 232, 240, 0.8);\n                  padding: 8px 12px;\n                  display: flex;\n                  align-items: center;\n                  gap: 10px;\n                  z-index: 100;\n                }\n                .whiteboard-zoom-controls button {\n                  width: 28px;\n                  height: 28px;\n                  border-radius: 8px;\n                  border: 1px solid #e2e8f0;\n                  background: white;\n                  color: #475569;\n                  font-weight: bold;\n                  cursor: pointer;\n                  display: flex;\n                  align-items: center;\n                  justify-content: center;\n                  transition: all 0.2s;\n                }\n                .whiteboard-zoom-controls button:hover {\n                  background: #f1f5f9;\n                  border-color: #cbd5e1;\n                  color: #0f172a;\n                }\n                .whiteboard-svg {\n                  position: absolute;\n                  inset: 0;\n                  width: 100%;\n                  height: 100%;\n                }\n                .whiteboard-html-layer {\n                  position: absolute;\n                  inset: 0;\n                  pointer-events: none;\n                }\n                .whiteboard-html-layer > * {\n                  pointer-events: inherit;\n                }\n\n                /* Moderation dashed styles and spinner */\n                .element-reviewing {\n                  border: 2px dashed #a855f7 !important;\n                  animation: borderDance 1s infinite linear;\n                }\n                @keyframes borderDance {\n                  0% { stroke-dashoffset: 0; }\n                  100% { stroke-dashoffset: 8; }\n                }\n                .reviewing-spinner-overlay {\n                  position: absolute;\n                  inset: 0;\n                  background: rgba(255, 255, 255, 0.7);\n                  display: flex;\n                  align-items: center;\n                  justify-content: center;\n                  border-radius: inherit;\n                }\n                .spinner-micro {\n                  width: 16px;\n                  height: 16px;\n                  border: 2px solid #e2e8f0;\n                  border-top: 2px solid #a855f7;\n                  border-radius: 50%;\n                  animation: spin 0.6s linear infinite;\n                }\n\n                .sticky-note {\n                  position: absolute;\n                  padding: 12px;\n                  box-shadow: 0 8px 16px rgba(0,0,0,0.1);\n                  display: flex;\n                  flex-direction: column;\n                  min-width: 120px;\n                  min-height: 120px;\n                  border-radius: 4px;\n                  touch-action: none;\n                  -webkit-user-drag: none;\n                }\n                .sticky-note textarea {\n                  border: none;\n                  background: transparent;\n                  resize: none;\n                  outline: none;\n                  flex: 1;\n                  font-family: inherit;\n                  font-size: 12px;\n                }\n\n                /* Collaborative presence cursors */\n                .collaborator-cursor {\n                  position: absolute;\n                  width: 0;\n                  height: 0;\n                  border-left: 10px solid transparent;\n                  border-right: 10px solid transparent;\n                  border-bottom: 20px solid var(--cursor-color, #ef4444);\n                  transform: rotate(-45deg);\n                  pointer-events: none;\n                  z-index: 1000;\n                  transition: left 0.1s linear, top 0.1s linear;\n                }\n                .collaborator-cursor-tag {\n                  position: absolute;\n                  left: 12px;\n                  top: 15px;\n                  background: var(--cursor-color, #ef4444);\n                  color: white;\n                  padding: 2px 8px;\n                  border-radius: 10px;\n                  font-size: 9px;\n                  font-weight: 700;\n                  white-space: nowrap;\n                  box-shadow: 0 4px 8px rgba(0,0,0,0.1);\n                }\n                \n                .sticky-text-input {\n                  position: absolute;\n                  border: 1px dashed transparent;\n                  border-radius: 4px;\n                  background: transparent;\n                  pointer-events: auto;\n                  touch-action: none;\n                  user-select: none;\n                  -webkit-user-drag: none;\n                }\n                .sticky-text-input input {\n                  border: none;\n                  background: transparent;\n                  outline: none;\n                  font-size: 14px;\n                  font-family: inherit;\n                }\n                .canvas-image-wrapper {\n                  position: absolute;\n                  border: 1px solid #cbd5e1;\n                  border-radius: 8px;\n                  overflow: hidden;\n                  pointer-events: auto;\n                  touch-action: none;\n                  user-select: none;\n                  -webkit-user-drag: none;\n                }\n                .canvas-image-wrapper img {\n                  width: 100%;\n                  height: 100%;\n                  object-fit: cover;\n                  user-select: none;\n                  -webkit-user-drag: none;\n                }\n                .canvas-pdf-wrapper {\n                  position: absolute;\n                  border: 1px solid #cbd5e1;\n                  border-radius: 8px;\n                  overflow: hidden;\n                  background-color: white;\n                  pointer-events: auto;\n                  touch-action: none;\n                  user-select: none;\n                  -webkit-user-drag: none;\n                }\n                .canvas-pdf-wrapper iframe {\n                  user-select: none;\n                  -webkit-user-drag: none;\n                }\n            `}})]});}// ==================== INLINED HEADER NAVBAR ====================\n// --- Dependencies for inlined HeaderNavBar ---\nconst firebaseAppUrl=\"https://www.gstatic.com/firebasejs/10.13.0/firebase-app.js\";const firebaseAuthUrl=\"https://www.gstatic.com/firebasejs/10.13.0/firebase-auth.js\";const firebaseConfig={apiKey:\"AIzaSyAD3p3IwIfl9B8v-ycIemf6rhVyaqIyQbQ\",authDomain:\"paathshala-bf93b.firebaseapp.com\",projectId:\"paathshala-bf93b\",storageBucket:\"paathshala-bf93b.appspot.com\",messagingSenderId:\"144773839129\",appId:\"1:144773839129:web:04efd90489924cb3d66d88\",measurementId:\"G-97C8TYB9K6\"};const startTransition=React.startTransition||(cb=>cb());function HeaderNavBar(props){const{primaryColor=\"#0033CA\",buttonRadius=100,apiHost=\"https://paathshala-server-825590928224.asia-south1.run.app\"}=props;const[firebaseUser,setFirebaseUser]=useState(null);const[userProfile,setUserProfile]=useState(null);const[authInitialized,setAuthInitialized]=useState(false);const[isLoggedIn,setIsLoggedIn]=useState(false);const[cachedAvatar,setCachedAvatar]=useState(\"\");useEffect(()=>{if(typeof window!==\"undefined\"){const loggedIn=localStorage.getItem(\"userLoggedIn\")===\"true\";if(loggedIn){setIsLoggedIn(true);setCachedAvatar(localStorage.getItem(\"userPhotoUrl\")||\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\");}}},[]);useEffect(()=>{let active=true;async function loadFirebase(){try{const{initializeApp,getApps,getApp}=await import(firebaseAppUrl);const{getAuth,onAuthStateChanged}=await import(firebaseAuthUrl);if(!active)return;let app;const apps=getApps();if(apps.length===0){app=initializeApp(firebaseConfig);}else{app=getApp();}const auth=getAuth(app);const unsubscribe=onAuthStateChanged(auth,async user=>{if(user){if(active){startTransition(()=>{setFirebaseUser(user);});}if(typeof window!==\"undefined\"){localStorage.setItem(\"userLoggedIn\",\"true\");if(!localStorage.getItem(\"userPhotoUrl\")){localStorage.setItem(\"userPhotoUrl\",user.photoURL||\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\");}}try{const token=await user.getIdToken();if(typeof window!==\"undefined\"){localStorage.setItem(\"firebaseToken\",token);window.firebaseToken=token;}const res=await fetch(`${apiHost}/api/v1/user`,{headers:{\"Authorization\":`Bearer ${token}`}});if(res.ok){const json=await res.json();const profile=json.data||json;if(active){startTransition(()=>{setUserProfile(profile);});}if(typeof window!==\"undefined\"){localStorage.setItem(\"userPhotoUrl\",user.photoURL||profile?.pictureUrl||\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\");}}}catch(e){console.error(\"Error fetching profile in HeaderNavBar:\",e);}}else{if(active){startTransition(()=>{setFirebaseUser(null);setUserProfile(null);});}if(typeof window!==\"undefined\"){localStorage.removeItem(\"userLoggedIn\");localStorage.removeItem(\"userPhotoUrl\");localStorage.removeItem(\"firebaseToken\");delete window.firebaseToken;}}if(active){startTransition(()=>{setAuthInitialized(true);});}});return()=>unsubscribe();}catch(err){console.error(\"Error loading Firebase in HeaderNavBar:\",err);}}loadFirebase();return()=>{active=false;};},[apiHost]);const[desktopContainer,setDesktopContainer]=useState(null);const[tabletContainer,setTabletContainer]=useState(null);const[mobileContainer,setMobileContainer]=useState(null);useEffect(()=>{let active=true;const findContainers=()=>{if(!active)return;const dt=document.querySelector('.nav-desktop-only [class*=\"-container\"]');const tabContainer=document.querySelector('.nav-tablet-only [class*=\"-container\"]');const tab=tabContainer||document.querySelector(\".nav-tablet-only > div\");const mobContainer=document.querySelector('.nav-phone-only [class*=\"-container\"]');const mob=mobContainer||document.querySelector(\".nav-phone-only > div\");if(dt)setDesktopContainer(dt);if(tab)setTabletContainer(tab);if(mob)setMobileContainer(mob);};findContainers();const timer=setTimeout(findContainers,1500);const interval=setInterval(findContainers,3e3);return()=>{active=false;clearTimeout(timer);clearInterval(interval);};},[authInitialized]);const renderNavBarActions=device=>{const dashboardUrl=\"/dashboard\";const loginUrl=\"/teacher-signup\";const isUserLoggedIn=authInitialized&&firebaseUser||!authInitialized&&isLoggedIn;const avatarUrl=authInitialized&&firebaseUser?userProfile?.pictureUrl||firebaseUser.photoURL||cachedAvatar||\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\":cachedAvatar;const overlayClass=device===\"desktop\"?\"navbar-actions-overlay-desktop\":device===\"tablet\"?\"navbar-actions-overlay-tablet\":\"navbar-actions-overlay-mobile\";return /*#__PURE__*/_jsx(\"div\",{className:overlayClass,children:isUserLoggedIn?/*#__PURE__*/_jsx(\"a\",{href:dashboardUrl,children:/*#__PURE__*/_jsx(\"img\",{src:avatarUrl,alt:\"Profile\",className:\"navbar-profile-avatar\"})}):/*#__PURE__*/_jsx(\"a\",{href:loginUrl,className:\"navbar-btn-login\",children:\"Log In\"})});};return /*#__PURE__*/_jsxs(\"div\",{className:\"navbar-container-outer\",children:[/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:`\n                @import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&family=Poppins:wght@400;500;600;700&display=swap');\n                \n                /* Hide standard children of download container but keep the container layout */\n                .navbar-container-outer [class*=\"-container\"] > :not(.navbar-actions-overlay-desktop):not(.navbar-actions-overlay-tablet):not(.navbar-actions-overlay-mobile) {\n                    display: none !important;\n                }\n                \n                /* Ensure container is visible, flex-based, and clickable */\n                .navbar-container-outer [class*=\"-container\"] {\n                    display: flex !important;\n                    align-items: center !important;\n                    justify-content: center !important;\n                    pointer-events: auto !important;\n                    width: auto !important;\n                    height: auto !important;\n                    min-width: max-content !important;\n                }\n                \n                /* Custom Dynamic Navbar Overlays */\n                .navbar-actions-overlay-desktop {\n                    display: flex;\n                    align-items: center;\n                    justify-content: center;\n                    width: 100%;\n                    height: 100%;\n                    pointer-events: auto;\n                }\n                .navbar-actions-overlay-tablet,\n                .navbar-actions-overlay-mobile {\n                    display: flex !important;\n                    align-items: center !important;\n                    justify-content: center !important;\n                    pointer-events: auto !important;\n                    margin-left: 16px !important;\n                }\n                \n                /* Root div fallback cases (when portalled directly into the root div instead of an inner container) */\n                .nav-phone-only > div,\n                .nav-tablet-only > div {\n                    position: relative !important;\n                }\n                .nav-phone-only > div > .navbar-actions-overlay-mobile {\n                    position: absolute !important;\n                    right: 64px !important;\n                    top: 50% !important;\n                    transform: translateY(-50%) !important;\n                    z-index: 1000 !important;\n                    margin-left: 0 !important;\n                }\n                .nav-tablet-only > div > .navbar-actions-overlay-tablet {\n                    position: absolute !important;\n                    right: 72px !important;\n                    top: 50% !important;\n                    transform: translateY(-50%) !important;\n                    z-index: 1000 !important;\n                    margin-left: 0 !important;\n                }\n                \n                /* Hide links wrapper on phone to make room for Logo and Login button */\n                .nav-phone-only > div > div:nth-child(2) {\n                    display: none !important;\n                }\n\n                @media (max-width: 1023.98px) {\n                    .nav-tablet-only > div > div:nth-child(2) {\n                        display: none !important;\n                    }\n                    .nav-tablet-only > div > .navbar-actions-overlay-tablet {\n                        right: 72px !important;\n                    }\n                }\n\n                @media (max-width: 767.98px) {\n                    .navbar-btn-login {\n                        width: 90px !important;\n                        height: 32px !important;\n                        font-size: 0.8rem !important;\n                    }\n                }\n\n                .navbar-btn-login {\n                    background: ${primaryColor} !important;\n                    color: white !important;\n                    border: none !important;\n                    border-radius: ${buttonRadius}px !important;\n                    font-weight: 700 !important;\n                    font-size: 0.85rem !important;\n                    cursor: pointer !important;\n                    text-decoration: none !important;\n                    transition: all 0.2s ease !important;\n                    display: inline-flex !important;\n                    align-items: center !important;\n                    justify-content: center !important;\n                    box-shadow: 0 4px 14px rgba(0, 51, 202, 0.15) !important;\n                    white-space: nowrap !important;\n                    flex-shrink: 0 !important;\n                    width: 110px !important;\n                    height: 38px !important;\n                    box-sizing: border-box !important;\n                }\n                .navbar-btn-login:hover {\n                    opacity: 0.95 !important;\n                    transform: translateY(-1px) !important;\n                    box-shadow: 0 6px 20px rgba(0, 51, 202, 0.25) !important;\n                }\n                .navbar-profile-avatar {\n                    width: 38px !important;\n                    height: 38px !important;\n                    border-radius: 50% !important;\n                    object-fit: cover !important;\n                    border: 2px solid ${primaryColor} !important;\n                    cursor: pointer !important;\n                    transition: transform 0.2s ease, box-shadow 0.2s ease !important;\n                    display: block !important;\n                }\n                .navbar-profile-avatar:hover {\n                    transform: scale(1.05) !important;\n                    box-shadow: 0 4px 12px rgba(0, 51, 202, 0.15) !important;\n                }\n                \n                .navbar-container-outer {\n                    width: 100%;\n                    max-width: 1200px;\n                    margin: 0 auto;\n                    padding: 0 16px;\n                    box-sizing: border-box;\n                    font-family: 'Poppins', sans-serif;\n                }\n                \n                .nav-desktop-only {\n                    display: flex !important;\n                    justify-content: center !important;\n                    align-items: center !important;\n                    width: 100% !important;\n                }\n                .nav-tablet-only,\n                .nav-phone-only {\n                    display: none;\n                    width: 100%;\n                }\n\n                @media (max-width: 1439.98px) and (min-width: 768px) {\n                    .nav-desktop-only {\n                        display: none !important;\n                    }\n                    .nav-tablet-only {\n                        display: flex !important;\n                        justify-content: center !important;\n                        align-items: center !important;\n                        width: 100% !important;\n                    }\n                }\n\n                @media (max-width: 767.98px) {\n                    .nav-desktop-only,\n                    .nav-tablet-only {\n                        display: none !important;\n                    }\n                    .nav-phone-only {\n                        display: flex !important;\n                        justify-content: center !important;\n                        align-items: center !important;\n                        width: 100% !important;\n                    }\n                }\n            `}}),/*#__PURE__*/_jsxs(\"div\",{className:\"nav-desktop-only\",style:{position:\"relative\",width:\"100%\"},children:[/*#__PURE__*/_jsx(NavBar,{variant:\"QlwippDSs\",width:\"100%\"}),desktopContainer&&/*#__PURE__*/createPortal(renderNavBarActions(\"desktop\"),desktopContainer)]}),/*#__PURE__*/_jsxs(\"div\",{className:\"nav-tablet-only\",style:{position:\"relative\",width:\"100%\"},children:[/*#__PURE__*/_jsx(NavBar,{variant:\"Gh4kM_PVO\",width:\"100%\"}),tabletContainer&&/*#__PURE__*/createPortal(renderNavBarActions(\"tablet\"),tabletContainer)]}),/*#__PURE__*/_jsxs(\"div\",{className:\"nav-phone-only\",style:{position:\"relative\",width:\"100%\"},children:[/*#__PURE__*/_jsx(NavBar,{variant:\"WW2XL7OwL\",width:\"100%\"}),mobileContainer&&/*#__PURE__*/createPortal(renderNavBarActions(\"mobile\"),mobileContainer)]})]});}\nexport const __FramerMetadata__ = {\"exports\":{\"Widget\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"WidgetContent\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"ChapterDetailPage\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"WhiteboardOverlay\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"StudySpaceScreenProps\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"CanvasElement\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"WhiteboardOverlayProps\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"StudySpaceScreen\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Student_library_chapter.map"],"mappings":"8VAOsH,ICwD+Y,SAAS,GAAW,CAAC,OAAK,CAAC,IAAM,EAAUA,EAAa,KAAK,CAAM,CAAC,EAAQ,GAAYC,EAAe,GAAK,CAE/O,OAFgP,MAAc,CAAC,GAAU,IAAS,QAAa,CAAC,EAAU,QAAQ,OAAO,IAAI,EAAa,KAAoF,EAAS,GAAW,CAAK,KAAU,QAAe,GAAG,CAAC,EAAa,IAAI,EAAU,CAAK,MAAI,OAAO,EAAU,QAAQ,SAAS,GAAK,WAAW,CAAC,EAAa,8BAA8B,CAAC,EAAW,G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