=== SonaliSavran Floating Chat Button ===
Contributors: sonalisavran
Tags: chat, floating button, contact, lead capture, messenger
Requires at least: 5.8
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Add a lightweight, customizable floating chat button with Smart Lead Capture to your WordPress website — no coding required.

== Description ==

**SonaliSavran Floating Chat Button** adds a responsive floating chat button to your website so visitors can reach you in one click. Configure everything from the WordPress admin: colors, position, spacing, size, animations, and device visibility — no theme edits or custom code needed.

The plugin works with popular mobile messaging click-to-chat links, making it easy for visitors on desktop, tablet, or mobile to start a conversation.

= Key Features =

* **Floating chat button** — always visible, stays out of the way of your content
* **Easy setup** — enable the button, enter your number, and save
* **Custom colors** — background, text, and hover colors
* **Position controls** — left or right side with adjustable spacing
* **Button sizes** — small, medium, or large
* **Custom button text and tooltip**
* **Mobile and desktop visibility** — show on desktop, tablet, mobile, or any combination
* **Open in a new tab** option
* **Animations** — pulse, bounce, or none
* **Lightweight frontend** — vanilla JavaScript, no jQuery dependency
* **Pre-filled default message** for faster conversations

= Smart Lead Capture =

Collect visitor details before opening the chat link:

* Professional popup form (name, phone, email, message)
* Leads saved inside WordPress
* Admin leads table with search and pagination
* Mark leads as New or Contacted
* Bulk delete and CSV export
* Optional email notification to the site admin
* Privacy policy checkbox support

= Why SonaliSavran Floating Chat Button? =

* Built with the WordPress Settings API
* Sanitized inputs and escaped outputs
* Translation ready
* Clean, object-oriented architecture
* Optimized for performance

== Installation ==

1. Upload the `sonalisavran-floating-chat-button` folder to `/wp-content/plugins/` or install via the WordPress plugins screen.
2. Activate the plugin through the **Plugins** menu in WordPress.
3. Go to **Settings → Floating Chat Button** to configure your button.
4. Enter your phone number with country code and save settings.
5. Visit your website to see the floating chat button.

== Frequently Asked Questions ==

= Where do I configure the plugin? =

Go to **Settings → Floating Chat Button** in your WordPress dashboard.

= Where can I view captured leads? =

Go to **Chat Leads** in the WordPress admin menu.

= Do I need a business account? =

No. Any valid mobile number works with click-to-chat links.

= Does this plugin use jQuery? =

No. The frontend uses modern vanilla JavaScript.

= Can I show the button only on mobile? =

Yes. Use the responsive visibility options to control desktop, tablet, and mobile display independently.

== Screenshots ==

1. General settings tab
2. Appearance settings tab
3. Lead Capture settings tab
4. Chat Leads admin page
5. Floating chat button on the frontend
6. Smart Lead Capture popup

== Changelog ==

= 1.1.0 =
* Added Smart Lead Capture with popup form
* Added Chat Leads admin panel
* Added CSV export for leads
* Added optional email notifications
* Improved AJAX security and error handling

= 1.0.0 =
* Initial release with floating chat button
* Customizable appearance and positioning
* Responsive display options

== Upgrade Notice ==

= 1.1.0 =
Adds Smart Lead Capture, leads dashboard, and export tools.
