chrome.runtime.getURL("icons/sidebar-icon.png");function r(){if(document.getElementById("spotlight-gmail-btn"))return;const t=document.createElement("button");t.id="spotlight-gmail-btn",t.title="Open Spotlight",Object.assign(t.style,{position:"fixed",bottom:"28px",right:"28px",width:"54px",height:"54px",borderRadius:"16px",border:"none",background:"linear-gradient(135deg, #8b5cf6 0%, #7c3aed 50%, #6d28d9 100%)",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",zIndex:"9999",padding:"0",boxShadow:"0 4px 20px rgba(124, 58, 237, 0.35), 0 0 0 0 rgba(139, 92, 246, 0)",transition:"transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease",overflow:"hidden"});const i=document.createElement("div");Object.assign(i.style,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0",borderRadius:"16px",background:"radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2) 0%, transparent 60%)",pointerEvents:"none"}),t.appendChild(i);const e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttribute("width","24"),e.setAttribute("height","24"),e.setAttribute("viewBox","0 0 24 24"),e.setAttribute("fill","none"),e.style.position="relative",e.style.zIndex="1",e.style.filter="drop-shadow(0 1px 2px rgba(0,0,0,0.15))";const n=document.createElementNS("http://www.w3.org/2000/svg","path");n.setAttribute("d","M12 3l1.5 5.5L19 10l-5.5 1.5L12 17l-1.5-5.5L5 10l5.5-1.5L12 3z"),n.setAttribute("fill","white"),n.setAttribute("stroke","white"),n.setAttribute("stroke-width","0.5"),n.setAttribute("stroke-linecap","round"),n.setAttribute("stroke-linejoin","round"),e.appendChild(n);const o=document.createElementNS("http://www.w3.org/2000/svg","path");o.setAttribute("d","M19 15l.5 2 2 .5-2 .5-.5 2-.5-2-2-.5 2-.5.5-2z"),o.setAttribute("fill","rgba(255,255,255,0.8)"),e.appendChild(o);const s=document.createElementNS("http://www.w3.org/2000/svg","path");s.setAttribute("d","M5 17l.5 1.5 1.5.5-1.5.5-.5 1.5-.5-1.5-1.5-.5 1.5-.5.5-1.5z"),s.setAttribute("fill","rgba(255,255,255,0.6)"),e.appendChild(s),t.appendChild(e);const l=`
    @keyframes spotlight-pulse {
      0% { box-shadow: 0 4px 20px rgba(124,58,237,0.35), 0 0 0 0 rgba(139,92,246,0.4); }
      70% { box-shadow: 0 4px 20px rgba(124,58,237,0.35), 0 0 0 12px rgba(139,92,246,0); }
      100% { box-shadow: 0 4px 20px rgba(124,58,237,0.35), 0 0 0 0 rgba(139,92,246,0); }
    }
  `,a=document.createElement("style");a.textContent=l,document.head.appendChild(a),t.style.animation="spotlight-pulse 1.5s ease-out 2",t.addEventListener("mouseenter",()=>{t.style.transform="scale(1.1)",t.style.boxShadow="0 6px 28px rgba(124, 58, 237, 0.5), 0 0 0 0 rgba(139,92,246,0)",t.style.animation="none"}),t.addEventListener("mouseleave",()=>{t.style.transform="scale(1)",t.style.boxShadow="0 4px 20px rgba(124, 58, 237, 0.35), 0 0 0 0 rgba(139,92,246,0)"}),t.addEventListener("mousedown",()=>{t.style.transform="scale(0.95)"}),t.addEventListener("mouseup",()=>{t.style.transform="scale(1.1)"}),t.addEventListener("click",()=>{chrome.runtime.sendMessage({type:"OPEN_SIDE_PANEL"})}),document.body.appendChild(t)}function d(){new MutationObserver(()=>{document.getElementById("spotlight-gmail-btn")||r()}).observe(document.body||document.documentElement,{childList:!0,subtree:!0})}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>{r(),d()}):(r(),d());
