(function() { // Load Bootstrap Icons if not already loaded if (!document.querySelector('link[href*="bootstrap-icons"]')) { const bootstrapIcons = document.createElement('link'); bootstrapIcons.rel = 'stylesheet'; bootstrapIcons.href = 'https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.0/font/bootstrap-icons.css'; document.head.appendChild(bootstrapIcons); } // Check if container already exists if (document.querySelector('.shohrah-container')) { return; // Already loaded } // Add CSS styles const style = document.createElement('style'); style.textContent = ` @import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap"); .shohrah-container * { margin: 0; padding: 0; box-sizing: border-box; font-family: "Poppins", sans-serif; } .shohrah-container { position: fixed; bottom: 20px; left: 0px; display: flex; flex-direction: column-reverse; align-items: center; z-index: 9999; } .media-icons { display: flex; align-items: flex-start; flex-direction: column; justify-content: center; background-color: #fff; padding: 6px; border-radius: 6px; box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1); transform: translateX(-100%); transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55); } .close-btn.open ~ .media-icons { transform: translateX(0); } .media-icons a { text-decoration: none; position: relative; height: 35px; width: 35px; display: flex; align-items: center; justify-content: center; border-radius: 6px; margin: 6px; box-shadow: none; transition: transform 0.3s ease, box-shadow 0.3s ease; } .media-icons a i { color: #fff; font-size: 16px; } .media-icons a .tooltip { position: absolute; left: 55px; font-size: 14px; font-weight: 400; pointer-events: none; background-color: #fff; padding: 6px 12px; border-radius: 6px; transform: translateY(-25px); opacity: 0; transition: all 0.3s ease; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15); white-space: nowrap; color: #333; font-weight: 500; } a:hover .tooltip { opacity: 1; transform: translateY(0); } a .tooltip::before { content: ""; position: absolute; height: 10px; width: 10px; top: 50%; left: -5px; transform: translateY(-50%) rotate(45deg); background-color: #fff; } .close-btn { display: flex; align-items: center; justify-content: center; height: 35px; width: 35px; border-radius: 50%; color: #fff; font-size: 18px; margin-bottom: 10px; background-color: #215c68; box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1); cursor: pointer; transition: background-color 0.3s; } .close-btn:hover { background-color: #1a434b; } `; document.head.appendChild(style); // Add HTML content const container = document.createElement('div'); container.innerHTML = `