Spaces:
Running
Running
File size: 75,405 Bytes
8e813de | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AI Marketing CRM</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
.sidebar {
transition: all 0.3s ease;
}
.sidebar.collapsed {
width: 70px;
}
.sidebar.collapsed .sidebar-text {
display: none;
}
.sidebar.collapsed .logo-text {
display: none;
}
.main-content {
transition: all 0.3s ease;
}
.sidebar.collapsed + .main-content {
margin-left: 70px;
}
.chat-container {
height: calc(100vh - 150px);
}
.email-editor {
min-height: 300px;
}
.slide-preview {
aspect-ratio: 16/9;
}
@media (max-width: 768px) {
.sidebar {
position: fixed;
z-index: 50;
transform: translateX(-100%);
}
.sidebar.open {
transform: translateX(0);
}
.main-content {
margin-left: 0 !important;
}
.mobile-menu-btn {
display: block;
}
}
</style>
</head>
<body class="bg-gray-50">
<div class="flex h-screen overflow-hidden">
<!-- Sidebar -->
<div class="sidebar bg-indigo-800 text-white w-64 flex flex-col fixed h-full">
<div class="p-4 flex items-center space-x-2 border-b border-indigo-700">
<i class="fas fa-robot text-2xl text-indigo-300"></i>
<span class="logo-text text-xl font-bold">AI Marketing CRM</span>
</div>
<div class="flex-1 overflow-y-auto py-4">
<div class="px-4 space-y-1">
<div class="text-indigo-300 uppercase text-xs font-semibold px-2 py-2 sidebar-text">Dashboard</div>
<a href="#" class="flex items-center px-2 py-2 rounded-lg bg-indigo-700 text-white">
<i class="fas fa-chart-line mr-3"></i>
<span class="sidebar-text">Overview</span>
</a>
<a href="#" class="flex items-center px-2 py-2 rounded-lg hover:bg-indigo-700 text-white">
<i class="fas fa-calendar-alt mr-3"></i>
<span class="sidebar-text">Campaigns</span>
</a>
<a href="#" class="flex items-center px-2 py-2 rounded-lg hover:bg-indigo-700 text-white">
<i class="fas fa-bell mr-3"></i>
<span class="sidebar-text">Notifications</span>
</a>
</div>
<div class="px-4 mt-6 space-y-1">
<div class="text-indigo-300 uppercase text-xs font-semibold px-2 py-2 sidebar-text">Marketing Tools</div>
<a href="#" class="flex items-center px-2 py-2 rounded-lg hover:bg-indigo-700 text-white">
<i class="fas fa-envelope mr-3"></i>
<span class="sidebar-text">Email Campaigns</span>
</a>
<a href="#" class="flex items-center px-2 py-2 rounded-lg hover:bg-indigo-700 text-white">
<i class="fas fa-sms mr-3"></i>
<span class="sidebar-text">SMS Marketing</span>
</a>
<a href="#" class="flex items-center px-2 py-2 rounded-lg hover:bg-indigo-700 text-white">
<i class="fas fa-newspaper mr-3"></i>
<span class="sidebar-text">Newsletters</span>
</a>
<a href="#" class="flex items-center px-2 py-2 rounded-lg hover:bg-indigo-700 text-white">
<i class="fas fa-file-powerpoint mr-3"></i>
<span class="sidebar-text">Presentation Builder</span>
</a>
</div>
<div class="px-4 mt-6 space-y-1">
<div class="text-indigo-300 uppercase text-xs font-semibold px-2 py-2 sidebar-text">Management</div>
<a href="#" class="flex items-center px-2 py-2 rounded-lg hover:bg-indigo-700 text-white">
<i class="fas fa-users mr-3"></i>
<span class="sidebar-text">User Management</span>
</a>
<a href="#" class="flex items-center px-2 py-2 rounded-lg hover:bg-indigo-700 text-white">
<i class="fas fa-comments mr-3"></i>
<span class="sidebar-text">Customer Support</span>
</a>
<a href="#" class="flex items-center px-2 py-2 rounded-lg hover:bg-indigo-700 text-white">
<i class="fas fa-mobile-alt mr-3"></i>
<span class="sidebar-text">Mobile App</span>
</a>
<a href="#" class="flex items-center px-2 py-2 rounded-lg hover:bg-indigo-700 text-white">
<i class="fas fa-cog mr-3"></i>
<span class="sidebar-text">Settings</span>
</a>
</div>
</div>
<div class="p-4 border-t border-indigo-700">
<div class="flex items-center">
<img src="https://randomuser.me/api/portraits/women/44.jpg" alt="User" class="w-10 h-10 rounded-full">
<div class="ml-3 sidebar-text">
<div class="font-medium">Sarah Johnson</div>
<div class="text-xs text-indigo-300">Admin</div>
</div>
<button class="ml-auto text-indigo-300 hover:text-white">
<i class="fas fa-sign-out-alt"></i>
</button>
</div>
</div>
</div>
<!-- Main Content -->
<div class="main-content flex-1 flex flex-col overflow-hidden ml-64">
<!-- Top Navigation -->
<header class="bg-white shadow-sm">
<div class="px-4 py-3 flex items-center justify-between">
<div class="flex items-center">
<button id="mobile-menu-btn" class="mobile-menu-btn mr-4 text-gray-500 hover:text-gray-600 md:hidden">
<i class="fas fa-bars text-xl"></i>
</button>
<h1 class="text-xl font-semibold text-gray-800">AI Marketing Dashboard</h1>
</div>
<div class="flex items-center space-x-4">
<div class="relative">
<button class="text-gray-500 hover:text-gray-600">
<i class="fas fa-bell text-xl"></i>
</button>
<span class="absolute top-0 right-0 w-2 h-2 bg-red-500 rounded-full"></span>
</div>
<div class="relative">
<button class="text-gray-500 hover:text-gray-600">
<i class="fas fa-envelope text-xl"></i>
</button>
<span class="absolute top-0 right-0 w-2 h-2 bg-red-500 rounded-full"></span>
</div>
<div class="relative">
<button id="ai-assistant-btn" class="bg-indigo-600 text-white p-2 rounded-full hover:bg-indigo-700">
<i class="fas fa-robot"></i>
</button>
</div>
</div>
</div>
</header>
<!-- AI Assistant Panel -->
<div id="ai-assistant-panel" class="hidden absolute right-4 top-16 w-80 bg-white rounded-lg shadow-xl z-50 border border-gray-200">
<div class="p-4 border-b border-gray-200 bg-indigo-600 text-white rounded-t-lg">
<div class="flex items-center justify-between">
<h3 class="font-semibold">AI Marketing Assistant</h3>
<button id="close-ai-panel" class="text-white hover:text-indigo-200">
<i class="fas fa-times"></i>
</button>
</div>
</div>
<div class="p-4 bg-gray-50">
<div class="mb-4">
<p class="text-sm text-gray-600">How can I help with your marketing today?</p>
</div>
<div class="space-y-2">
<button class="w-full text-left px-3 py-2 bg-white border border-gray-200 rounded-lg hover:bg-gray-50 text-sm">
<i class="fas fa-envelope mr-2 text-indigo-500"></i> Generate email campaign
</button>
<button class="w-full text-left px-3 py-2 bg-white border border-gray-200 rounded-lg hover:bg-gray-50 text-sm">
<i class="fas fa-chart-line mr-2 text-indigo-500"></i> Analyze campaign performance
</button>
<button class="w-full text-left px-3 py-2 bg-white border border-gray-200 rounded-lg hover:bg-gray-50 text-sm">
<i class="fas fa-users mr-2 text-indigo-500"></i> Suggest customer segments
</button>
<button class="w-full text-left px-3 py-2 bg-white border border-gray-200 rounded-lg hover:bg-gray-50 text-sm">
<i class="fas fa-lightbulb mr-2 text-indigo-500"></i> Creative campaign ideas
</button>
</div>
</div>
<div class="p-4 border-t border-gray-200">
<div class="relative">
<input type="text" placeholder="Ask the AI assistant..." class="w-full pl-4 pr-10 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500">
<button class="absolute right-2 top-2 text-indigo-600">
<i class="fas fa-paper-plane"></i>
</button>
</div>
</div>
</div>
<!-- Main Content Area -->
<main class="flex-1 overflow-y-auto p-4 bg-gray-50">
<!-- Dashboard Overview -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 mb-6">
<div class="bg-white p-4 rounded-lg shadow-sm border border-gray-200">
<div class="flex items-center justify-between">
<div>
<p class="text-sm text-gray-500">Total Campaigns</p>
<h3 class="text-2xl font-bold">128</h3>
</div>
<div class="p-3 rounded-full bg-indigo-100 text-indigo-600">
<i class="fas fa-bullhorn"></i>
</div>
</div>
<div class="mt-2">
<span class="text-green-500 text-sm font-medium">+12%</span>
<span class="text-gray-500 text-sm ml-1">from last month</span>
</div>
</div>
<div class="bg-white p-4 rounded-lg shadow-sm border border-gray-200">
<div class="flex items-center justify-between">
<div>
<p class="text-sm text-gray-500">Active Subscribers</p>
<h3 class="text-2xl font-bold">24,589</h3>
</div>
<div class="p-3 rounded-full bg-green-100 text-green-600">
<i class="fas fa-users"></i>
</div>
</div>
<div class="mt-2">
<span class="text-green-500 text-sm font-medium">+5.8%</span>
<span class="text-gray-500 text-sm ml-1">from last month</span>
</div>
</div>
<div class="bg-white p-4 rounded-lg shadow-sm border border-gray-200">
<div class="flex items-center justify-between">
<div>
<p class="text-sm text-gray-500">Open Rate</p>
<h3 class="text-2xl font-bold">34.7%</h3>
</div>
<div class="p-3 rounded-full bg-blue-100 text-blue-600">
<i class="fas fa-envelope-open"></i>
</div>
</div>
<div class="mt-2">
<span class="text-green-500 text-sm font-medium">+2.3%</span>
<span class="text-gray-500 text-sm ml-1">from last month</span>
</div>
</div>
<div class="bg-white p-4 rounded-lg shadow-sm border border-gray-200">
<div class="flex items-center justify-between">
<div>
<p class="text-sm text-gray-500">Conversion Rate</p>
<h3 class="text-2xl font-bold">8.2%</h3>
</div>
<div class="p-3 rounded-full bg-purple-100 text-purple-600">
<i class="fas fa-exchange-alt"></i>
</div>
</div>
<div class="mt-2">
<span class="text-red-500 text-sm font-medium">-1.1%</span>
<span class="text-gray-500 text-sm ml-1">from last month</span>
</div>
</div>
</div>
<!-- Recent Campaigns and AI Tools -->
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
<!-- Recent Campaigns -->
<div class="lg:col-span-2 bg-white rounded-lg shadow-sm border border-gray-200">
<div class="p-4 border-b border-gray-200">
<h2 class="font-semibold text-lg">Recent Campaigns</h2>
</div>
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-200">
<thead class="bg-gray-50">
<tr>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Campaign</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Type</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Performance</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="font-medium">Summer Sale 2023</div>
<div class="text-sm text-gray-500">Sent: 2 days ago</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-indigo-100 text-indigo-800">Email</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Active</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="w-20 bg-gray-200 rounded-full h-2.5 mr-2">
<div class="bg-green-500 h-2.5 rounded-full" style="width: 72%"></div>
</div>
<span>72%</span>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
<button class="text-indigo-600 hover:text-indigo-900 mr-3"><i class="fas fa-eye"></i></button>
<button class="text-indigo-600 hover:text-indigo-900"><i class="fas fa-chart-bar"></i></button>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="font-medium">New Product Launch</div>
<div class="text-sm text-gray-500">Sent: 1 week ago</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-blue-100 text-blue-800">SMS</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Active</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="w-20 bg-gray-200 rounded-full h-2.5 mr-2">
<div class="bg-green-500 h-2.5 rounded-full" style="width: 85%"></div>
</div>
<span>85%</span>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
<button class="text-indigo-600 hover:text-indigo-900 mr-3"><i class="fas fa-eye"></i></button>
<button class="text-indigo-600 hover:text-indigo-900"><i class="fas fa-chart-bar"></i></button>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="font-medium">Monthly Newsletter</div>
<div class="text-sm text-gray-500">Scheduled</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-purple-100 text-purple-800">Newsletter</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">Pending</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="w-20 bg-gray-200 rounded-full h-2.5 mr-2">
<div class="bg-gray-300 h-2.5 rounded-full" style="width: 0%"></div>
</div>
<span>0%</span>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
<button class="text-indigo-600 hover:text-indigo-900 mr-3"><i class="fas fa-eye"></i></button>
<button class="text-indigo-600 hover:text-indigo-900"><i class="fas fa-chart-bar"></i></button>
</td>
</tr>
</tbody>
</table>
</div>
<div class="p-4 border-t border-gray-200 text-center">
<button class="text-indigo-600 hover:text-indigo-800 font-medium">View All Campaigns</button>
</div>
</div>
<!-- AI Marketing Tools -->
<div class="bg-white rounded-lg shadow-sm border border-gray-200">
<div class="p-4 border-b border-gray-200">
<h2 class="font-semibold text-lg">AI Marketing Tools</h2>
</div>
<div class="p-4 space-y-4">
<div class="p-4 bg-indigo-50 rounded-lg border border-indigo-100">
<div class="flex items-start">
<div class="p-2 bg-indigo-100 rounded-full text-indigo-600 mr-3">
<i class="fas fa-envelope"></i>
</div>
<div>
<h3 class="font-medium">AI Email Generator</h3>
<p class="text-sm text-gray-600 mt-1">Create high-converting emails in seconds with AI</p>
<button class="mt-2 text-sm text-indigo-600 hover:text-indigo-800 font-medium">Try Now</button>
</div>
</div>
</div>
<div class="p-4 bg-green-50 rounded-lg border border-green-100">
<div class="flex items-start">
<div class="p-2 bg-green-100 rounded-full text-green-600 mr-3">
<i class="fas fa-sms"></i>
</div>
<div>
<h3 class="font-medium">SMS Campaign Builder</h3>
<p class="text-sm text-gray-600 mt-1">Generate personalized SMS messages with AI</p>
<button class="mt-2 text-sm text-green-600 hover:text-green-800 font-medium">Try Now</button>
</div>
</div>
</div>
<div class="p-4 bg-purple-50 rounded-lg border border-purple-100">
<div class="flex items-start">
<div class="p-2 bg-purple-100 rounded-full text-purple-600 mr-3">
<i class="fas fa-file-powerpoint"></i>
</div>
<div>
<h3 class="font-medium">Presentation Creator</h3>
<p class="text-sm text-gray-600 mt-1">AI-powered slides for your marketing decks</p>
<button class="mt-2 text-sm text-purple-600 hover:text-purple-800 font-medium">Try Now</button>
</div>
</div>
</div>
<div class="p-4 bg-blue-50 rounded-lg border border-blue-100">
<div class="flex items-start">
<div class="p-2 bg-blue-100 rounded-full text-blue-600 mr-3">
<i class="fas fa-chart-pie"></i>
</div>
<div>
<h3 class="font-medium">Performance Analyzer</h3>
<p class="text-sm text-gray-600 mt-1">Get AI insights on your campaign performance</p>
<button class="mt-2 text-sm text-blue-600 hover:text-blue-800 font-medium">Try Now</button>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Email Campaign Builder (Hidden by default, shown when user clicks on email tool) -->
<div id="email-builder" class="hidden mt-6 bg-white rounded-lg shadow-sm border border-gray-200">
<div class="p-4 border-b border-gray-200 flex justify-between items-center">
<h2 class="font-semibold text-lg">AI Email Campaign Builder</h2>
<button id="close-email-builder" class="text-gray-500 hover:text-gray-700">
<i class="fas fa-times"></i>
</button>
</div>
<div class="p-4">
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
<div class="lg:col-span-2">
<div class="mb-4">
<label class="block text-sm font-medium text-gray-700 mb-1">Campaign Goal</label>
<select class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500">
<option>Increase sales</option>
<option>Promote new product</option>
<option>Customer retention</option>
<option>Brand awareness</option>
<option>Event promotion</option>
</select>
</div>
<div class="mb-4">
<label class="block text-sm font-medium text-gray-700 mb-1">Target Audience</label>
<select class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500">
<option>All customers</option>
<option>New customers</option>
<option>Repeat customers</option>
<option>High-value customers</option>
<option>Inactive customers</option>
</select>
</div>
<div class="mb-4">
<label class="block text-sm font-medium text-gray-700 mb-1">Email Tone</label>
<select class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500">
<option>Professional</option>
<option>Friendly</option>
<option>Urgent</option>
<option>Exciting</option>
<option>Informative</option>
</select>
</div>
<div class="mb-4">
<label class="block text-sm font-medium text-gray-700 mb-1">Additional Details</label>
<textarea class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500" rows="3" placeholder="Any specific details about your product/service or special offers..."></textarea>
</div>
<button class="bg-indigo-600 text-white px-4 py-2 rounded-lg hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2">
Generate Email with AI
</button>
</div>
<div>
<div class="bg-gray-50 p-4 rounded-lg border border-gray-200">
<h3 class="font-medium text-gray-800 mb-3">AI Suggestions</h3>
<div class="space-y-3">
<div class="p-3 bg-white rounded-lg border border-gray-200 shadow-xs">
<div class="flex items-start">
<div class="bg-indigo-100 p-1 rounded-full mr-2">
<i class="fas fa-lightbulb text-indigo-600 text-xs"></i>
</div>
<p class="text-sm text-gray-700">Highlight your unique selling proposition in the first paragraph.</p>
</div>
</div>
<div class="p-3 bg-white rounded-lg border border-gray-200 shadow-xs">
<div class="flex items-start">
<div class="bg-indigo-100 p-1 rounded-full mr-2">
<i class="fas fa-lightbulb text-indigo-600 text-xs"></i>
</div>
<p class="text-sm text-gray-700">Use a limited-time offer to create urgency.</p>
</div>
</div>
<div class="p-3 bg-white rounded-lg border border-gray-200 shadow-xs">
<div class="flex items-start">
<div class="bg-indigo-100 p-1 rounded-full mr-2">
<i class="fas fa-lightbulb text-indigo-600 text-xs"></i>
</div>
<p class="text-sm text-gray-700">Include social proof like customer testimonials.</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- User Management Section -->
<div id="user-management" class="hidden mt-6 bg-white rounded-lg shadow-sm border border-gray-200">
<div class="p-4 border-b border-gray-200 flex justify-between items-center">
<h2 class="font-semibold text-lg">User Management</h2>
<div>
<button id="close-user-management" class="text-gray-500 hover:text-gray-700 mr-3">
<i class="fas fa-times"></i>
</button>
<button class="bg-indigo-600 text-white px-3 py-1 rounded-lg text-sm hover:bg-indigo-700">
<i class="fas fa-plus mr-1"></i> Add User
</button>
</div>
</div>
<div class="p-4">
<div class="mb-4 flex justify-between items-center">
<div class="relative w-64">
<input type="text" placeholder="Search users..." class="w-full pl-8 pr-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500">
<i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
</div>
<div class="flex space-x-2">
<select class="border border-gray-300 rounded-lg px-3 py-2 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 text-sm">
<option>All Roles</option>
<option>Admin</option>
<option>Manager</option>
<option>Editor</option>
<option>Viewer</option>
</select>
<select class="border border-gray-300 rounded-lg px-3 py-2 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 text-sm">
<option>All Status</option>
<option>Active</option>
<option>Inactive</option>
<option>Suspended</option>
</select>
</div>
</div>
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-200">
<thead class="bg-gray-50">
<tr>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">User</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Email</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Role</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10">
<img class="h-10 w-10 rounded-full" src="https://randomuser.me/api/portraits/men/32.jpg" alt="">
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">John Smith</div>
<div class="text-sm text-gray-500">Last active: 2h ago</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">john.smith@example.com</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-purple-100 text-purple-800">Admin</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Active</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
<a href="#" class="text-indigo-600 hover:text-indigo-900 mr-3"><i class="fas fa-edit"></i></a>
<a href="#" class="text-red-600 hover:text-red-900"><i class="fas fa-trash-alt"></i></a>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10">
<img class="h-10 w-10 rounded-full" src="https://randomuser.me/api/portraits/women/44.jpg" alt="">
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Sarah Johnson</div>
<div class="text-sm text-gray-500">Last active: 1d ago</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">sarah.j@example.com</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-blue-100 text-blue-800">Manager</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Active</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
<a href="#" class="text-indigo-600 hover:text-indigo-900 mr-3"><i class="fas fa-edit"></i></a>
<a href="#" class="text-red-600 hover:text-red-900"><i class="fas fa-trash-alt"></i></a>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10">
<img class="h-10 w-10 rounded-full" src="https://randomuser.me/api/portraits/men/75.jpg" alt="">
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Michael Brown</div>
<div class="text-sm text-gray-500">Last active: 3d ago</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">michael.b@example.com</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Editor</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">Inactive</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
<a href="#" class="text-indigo-600 hover:text-indigo-900 mr-3"><i class="fas fa-edit"></i></a>
<a href="#" class="text-red-600 hover:text-red-900"><i class="fas fa-trash-alt"></i></a>
</td>
</tr>
</tbody>
</table>
</div>
<div class="mt-4 flex items-center justify-between">
<div class="text-sm text-gray-500">
Showing <span class="font-medium">1</span> to <span class="font-medium">3</span> of <span class="font-medium">24</span> users
</div>
<div class="flex space-x-2">
<button class="px-3 py-1 border border-gray-300 rounded-lg text-sm bg-white text-gray-700 hover:bg-gray-50">
Previous
</button>
<button class="px-3 py-1 border border-gray-300 rounded-lg text-sm bg-indigo-600 text-white hover:bg-indigo-700">
1
</button>
<button class="px-3 py-1 border border-gray-300 rounded-lg text-sm bg-white text-gray-700 hover:bg-gray-50">
2
</button>
<button class="px-3 py-1 border border-gray-300 rounded-lg text-sm bg-white text-gray-700 hover:bg-gray-50">
3
</button>
<button class="px-3 py-1 border border-gray-300 rounded-lg text-sm bg-white text-gray-700 hover:bg-gray-50">
Next
</button>
</div>
</div>
</div>
</div>
<!-- Chat Support Section -->
<div id="chat-support" class="hidden mt-6 bg-white rounded-lg shadow-sm border border-gray-200">
<div class="p-4 border-b border-gray-200 flex justify-between items-center">
<h2 class="font-semibold text-lg">Customer Support Chat</h2>
<div>
<button id="close-chat-support" class="text-gray-500 hover:text-gray-700 mr-3">
<i class="fas fa-times"></i>
</button>
<button class="bg-indigo-600 text-white px-3 py-1 rounded-lg text-sm hover:bg-indigo-700">
<i class="fas fa-plus mr-1"></i> New Chat
</button>
</div>
</div>
<div class="flex">
<!-- Chat List -->
<div class="w-1/3 border-r border-gray-200">
<div class="p-3 border-b border-gray-200">
<input type="text" placeholder="Search conversations..." class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 text-sm">
</div>
<div class="overflow-y-auto" style="height: 500px;">
<div class="p-3 border-b border-gray-200 hover:bg-gray-50 cursor-pointer">
<div class="flex items-center">
<div class="relative">
<img class="h-10 w-10 rounded-full" src="https://randomuser.me/api/portraits/women/12.jpg" alt="">
<span class="absolute bottom-0 right-0 w-3 h-3 bg-green-500 rounded-full border-2 border-white"></span>
</div>
<div class="ml-3">
<div class="text-sm font-medium text-gray-900">Emily Wilson</div>
<div class="text-xs text-gray-500">Hey, I have a question about my subscription...</div>
</div>
<div class="ml-auto text-xs text-gray-500">2 min ago</div>
</div>
</div>
<div class="p-3 border-b border-gray-200 bg-gray-50 cursor-pointer">
<div class="flex items-center">
<div class="relative">
<img class="h-10 w-10 rounded-full" src="https://randomuser.me/api/portraits/men/42.jpg" alt="">
<span class="absolute bottom-0 right-0 w-3 h-3 bg-green-500 rounded-full border-2 border-white"></span>
</div>
<div class="ml-3">
<div class="text-sm font-medium text-gray-900">David Miller</div>
<div class="text-xs text-gray-500">The mobile app is not showing my notifications...</div>
</div>
<div class="ml-auto text-xs text-gray-500">15 min ago</div>
</div>
</div>
<div class="p-3 border-b border-gray-200 hover:bg-gray-50 cursor-pointer">
<div class="flex items-center">
<div class="relative">
<img class="h-10 w-10 rounded-full" src="https://randomuser.me/api/portraits/women/33.jpg" alt="">
<span class="absolute bottom-0 right-0 w-3 h-3 bg-gray-500 rounded-full border-2 border-white"></span>
</div>
<div class="ml-3">
<div class="text-sm font-medium text-gray-900">Jessica Brown</div>
<div class="text-xs text-gray-500">Thanks for your help!</div>
</div>
<div class="ml-auto text-xs text-gray-500">1h ago</div>
</div>
</div>
<div class="p-3 border-b border-gray-200 hover:bg-gray-50 cursor-pointer">
<div class="flex items-center">
<div class="relative">
<img class="h-10 w-10 rounded-full" src="https://randomuser.me/api/portraits/men/64.jpg" alt="">
<span class="absolute bottom-0 right-0 w-3 h-3 bg-gray-500 rounded-full border-2 border-white"></span>
</div>
<div class="ml-3">
<div class="text-sm font-medium text-gray-900">Robert Taylor</div>
<div class="text-xs text-gray-500">How do I change my email preferences?</div>
</div>
<div class="ml-auto text-xs text-gray-500">3h ago</div>
</div>
</div>
<div class="p-3 border-b border-gray-200 hover:bg-gray-50 cursor-pointer">
<div class="flex items-center">
<div class="relative">
<img class="h-10 w-10 rounded-full" src="https://randomuser.me/api/portraits/women/28.jpg" alt="">
<span class="absolute bottom-0 right-0 w-3 h-3 bg-green-500 rounded-full border-2 border-white"></span>
</div>
<div class="ml-3">
<div class="text-sm font-medium text-gray-900">Sophia Davis</div>
<div class="text-xs text-gray-500">I'm interested in your premium plan...</div>
</div>
<div class="ml-auto text-xs text-gray-500">5h ago</div>
</div>
</div>
</div>
</div>
<!-- Chat Conversation -->
<div class="w-2/3 flex flex-col">
<div class="p-4 border-b border-gray-200 flex items-center">
<img class="h-10 w-10 rounded-full" src="https://randomuser.me/api/portraits/men/42.jpg" alt="">
<div class="ml-3">
<div class="text-sm font-medium text-gray-900">David Miller</div>
<div class="text-xs text-gray-500">Online</div>
</div>
<div class="ml-auto flex space-x-2">
<button class="text-gray-500 hover:text-gray-700">
<i class="fas fa-phone"></i>
</button>
<button class="text-gray-500 hover:text-gray-700">
<i class="fas fa-video"></i>
</button>
<button class="text-gray-500 hover:text-gray-700">
<i class="fas fa-ellipsis-v"></i>
</button>
</div>
</div>
<div class="flex-1 p-4 overflow-y-auto chat-container">
<div class="space-y-4">
<div class="flex items-start">
<img class="h-8 w-8 rounded-full" src="https://randomuser.me/api/portraits/men/42.jpg" alt="">
<div class="ml-3">
<div class="bg-gray-100 rounded-lg py-2 px-4">
<p class="text-sm text-gray-800">Hi there! The mobile app is not showing my notifications even though I've enabled them in settings.</p>
</div>
<div class="text-xs text-gray-500 mt-1">15 minutes ago</div>
</div>
</div>
<div class="flex items-start justify-end">
<div class="mr-3 text-right">
<div class="bg-indigo-100 rounded-lg py-2 px-4">
<p class="text-sm text-gray-800">Hi David, sorry to hear that. Let me check your account settings.</p>
</div>
<div class="text-xs text-gray-500 mt-1">14 minutes ago</div>
</div>
<img class="h-8 w-8 rounded-full" src="https://randomuser.me/api/portraits/women/44.jpg" alt="">
</div>
<div class="flex items-start justify-end">
<div class="mr-3 text-right">
<div class="bg-indigo-100 rounded-lg py-2 px-4">
<p class="text-sm text-gray-800">I can see that notifications are enabled on our end. Have you checked your device settings to make sure notifications are allowed for our app?</p>
</div>
<div class="text-xs text-gray-500 mt-1">12 minutes ago</div>
</div>
<img class="h-8 w-8 rounded-full" src="https://randomuser.me/api/portraits/women/44.jpg" alt="">
</div>
<div class="flex items-start">
<img class="h-8 w-8 rounded-full" src="https://randomuser.me/api/portraits/men/42.jpg" alt="">
<div class="ml-3">
<div class="bg-gray-100 rounded-lg py-2 px-4">
<p class="text-sm text-gray-800">Yes, I've checked my phone settings and notifications are enabled for the app. I've also tried reinstalling but no luck.</p>
</div>
<div class="text-xs text-gray-500 mt-1">10 minutes ago</div>
</div>
</div>
<div class="flex items-start justify-end">
<div class="mr-3 text-right">
<div class="bg-indigo-100 rounded-lg py-2 px-4">
<p class="text-sm text-gray-800">I see. Let me escalate this to our technical team. Could you tell me what device and OS version you're using?</p>
</div>
<div class="text-xs text-gray-500 mt-1">8 minutes ago</div>
</div>
<img class="h-8 w-8 rounded-full" src="https://randomuser.me/api/portraits/women/44.jpg" alt="">
</div>
<div class="flex items-start">
<img class="h-8 w-8 rounded-full" src="https://randomuser.me/api/portraits/men/42.jpg" alt="">
<div class="ml-3">
<div class="bg-gray-100 rounded-lg py-2 px-4">
<p class="text-sm text-gray-800">I'm using an iPhone 12 with iOS 16.5. The app version is 2.4.1.</p>
</div>
<div class="text-xs text-gray-500 mt-1">5 minutes ago</div>
</div>
</div>
<div class="flex items-start justify-end">
<div class="mr-3 text-right">
<div class="bg-indigo-100 rounded-lg py-2 px-4">
<p class="text-sm text-gray-800">Thanks for the details. I've created a support ticket (#45782) for this issue. Our team will investigate and we'll notify you via email once we have an update. Is there anything else I can help you with today?</p>
</div>
<div class="text-xs text-gray-500 mt-1">2 minutes ago</div>
</div>
<img class="h-8 w-8 rounded-full" src="https://randomuser.me/api/portraits/women/44.jpg" alt="">
</div>
</div>
</div>
<div class="p-4 border-t border-gray-200">
<div class="flex items-center">
<button class="text-gray-500 hover:text-gray-700 mr-2">
<i class="fas fa-paperclip"></i>
</button>
<input type="text" placeholder="Type your message..." class="flex-1 px-4 py-2 border border-gray-300 rounded-full focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500">
<button class="ml-2 bg-indigo-600 text-white p-2 rounded-full hover:bg-indigo-700">
<i class="fas fa-paper-plane"></i>
</button>
</div>
</div>
</div>
</div>
</div>
<!-- Mobile App Section -->
<div id="mobile-app" class="hidden mt-6 bg-white rounded-lg shadow-sm border border-gray-200">
<div class="p-4 border-b border-gray-200 flex justify-between items-center">
<h2 class="font-semibold text-lg">Mobile App Management</h2>
<div>
<button id="close-mobile-app" class="text-gray-500 hover:text-gray-700 mr-3">
<i class="fas fa-times"></i>
</button>
<button class="bg-indigo-600 text-white px-3 py-1 rounded-lg text-sm hover:bg-indigo-700">
<i class="fas fa-plus mr-1"></i> New Push Campaign
</button>
</div>
</div>
<div class="p-4">
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6">
<div>
<h3 class="font-medium text-gray-800 mb-3">App Statistics</h3>
<div class="grid grid-cols-2 gap-4 mb-6">
<div class="bg-white p-4 rounded-lg shadow-xs border border-gray-200">
<div class="text-sm text-gray-500 mb-1">Installs</div>
<div class="text-2xl font-bold">24,589</div>
<div class="text-green-500 text-sm mt-1">+12% this month</div>
</div>
<div class="bg-white p-4 rounded-lg shadow-xs border border-gray-200">
<div class="text-sm text-gray-500 mb-1">Active Users</div>
<div class="text-2xl font-bold">18,742</div>
<div class="text-green-500 text-sm mt-1">+8% this month</div>
</div>
<div class="bg-white p-4 rounded-lg shadow-xs border border-gray-200">
<div class="text-sm text-gray-500 mb-1">Push Opens</div>
<div class="text-2xl font-bold">62%</div>
<div class="text-green-500 text-sm mt-1">+5% this month</div>
</div>
<div class="bg-white p-4 rounded-lg shadow-xs border border-gray-200">
<div class="text-sm text-gray-500 mb-1">Avg. Session</div>
<div class="text-2xl font-bold">3.2m</div>
<div class="text-red-500 text-sm mt-1">-0.5m this month</div>
</div>
</div>
<h3 class="font-medium text-gray-800 mb-3">Recent Push Notifications</h3>
<div class="space-y-3">
<div class="p-3 bg-white rounded-lg border border-gray-200 shadow-xs">
<div class="flex items-start">
<div class="bg-indigo-100 p-2 rounded-full text-indigo-600 mr-3">
<i class="fas fa-bell"></i>
</div>
<div>
<div class="font-medium">Summer Sale Starts Now!</div>
<div class="text-sm text-gray-600 mt-1">Sent to 24,589 users - 62% open rate</div>
<div class="text-xs text-gray-500 mt-1">2 days ago</div>
</div>
</div>
</div>
<div class="p-3 bg-white rounded-lg border border-gray-200 shadow-xs">
<div class="flex items-start">
<div class="bg-green-100 p-2 rounded-full text-green-600 mr-3">
<i class="fas fa-bell"></i>
</div>
<div>
<div class="font-medium">New Feature: Personalized Recommendations</div>
<div class="text-sm text-gray-600 mt-1">Sent to 18,742 users - 58% open rate</div>
<div class="text-xs text-gray-500 mt-1">1 week ago</div>
</div>
</div>
</div>
<div class="p-3 bg-white rounded-lg border border-gray-200 shadow-xs">
<div class="flex items-start">
<div class="bg-blue-100 p-2 rounded-full text-blue-600 mr-3">
<i class="fas fa-bell"></i>
</div>
<div>
<div class="font-medium">Your Exclusive Discount Awaits</div>
<div class="text-sm text-gray-600 mt-1">Sent to 5,200 users - 71% open rate</div>
<div class="text-xs text-gray-500 mt-1">2 weeks ago</div>
</div>
</div>
</div>
</div>
</div>
<div>
<h3 class="font-medium text-gray-800 mb-3">Create New Push Notification</h3>
<div class="bg-gray-50 p-4 rounded-lg border border-gray-200">
<div class="mb-4">
<label class="block text-sm font-medium text-gray-700 mb-1">Notification Title</label>
<input type="text" class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500" placeholder="Limited Time Offer!">
</div>
<div class="mb-4">
<label class="block text-sm font-medium text-gray-700 mb-1">Message</label>
<textarea class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500" rows="3" placeholder="Get 20% off all products this weekend only!"></textarea>
</div>
<div class="mb-4">
<label class="block text-sm font-medium text-gray-700 mb-1">Target Audience</label>
<select class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500">
<option>All Users</option>
<option>Active Users (last 30 days)</option>
<option>Inactive Users (30+ days)</option>
<option>High-Value Customers</option>
<option>iOS Users</option>
<option>Android Users</option>
</select>
</div>
<div class="mb-4">
<label class="block text-sm font-medium text-gray-700 mb-1">Delivery Time</label>
<div class="flex space-x-4">
<label class="inline-flex items-center">
<input type="radio" class="form-radio text-indigo-600" name="delivery" checked>
<span class="ml-2">Send immediately</span>
</label>
<label class="inline-flex items-center">
<input type="radio" class="form-radio text-indigo-600" name="delivery">
<span class="ml-2">Schedule</span>
</label>
</div>
</div>
<div class="mb-4">
<label class="block text-sm font-medium text-gray-700 mb-1">Deep Link (optional)</label>
<input type="text" class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500" placeholder="https://example.com/summer-sale">
</div>
<div class="flex justify-end">
<button class="bg-indigo-600 text-white px-4 py-2 rounded-lg hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2">
Send Notification
</button>
</div>
</div>
<h3 class="font-medium text-gray-800 mt-6 mb-3">App Preview</h3>
<div class="relative mx-auto" style="width: 300px;">
<img src="https://via.placeholder.com/300x600" alt="Mobile App" class="rounded-lg border border-gray-300">
<div class="absolute inset-0 flex items-center justify-center">
<div class="bg-white p-4 rounded-lg shadow-lg" style="width: 90%;">
<div class="font-medium mb-1">Limited Time Offer!</div>
<div class="text-sm text-gray-600">Get 20% off all products this weekend only!</div>
<div class="mt-2 text-xs text-gray-500">Just now</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
</div>
</div>
<script>
// Toggle sidebar on mobile
document.getElementById('mobile-menu-btn').addEventListener('click', function() {
document.querySelector('.sidebar').classList.toggle('open');
});
// Toggle AI assistant panel
document.getElementById('ai-assistant-btn').addEventListener('click', function() {
document.getElementById('ai-assistant-panel').classList.toggle('hidden');
});
document.getElementById('close-ai-panel').addEventListener('click', function() {
document.getElementById('ai-assistant-panel').classList.add('hidden');
});
// Show email builder when clicking on AI email tool
document.querySelectorAll('[class*="text-indigo-600"].font-medium').forEach(button => {
button.addEventListener('click', function() {
if (this.textContent.includes('Email')) {
document.getElementById('email-builder').classList.remove('hidden');
} else if (this.textContent.includes('User')) {
document.getElementById('user-management').classList.remove('hidden');
} else if (this.textContent.includes('Customer')) {
document.getElementById('chat-support').classList.remove('hidden');
} else if (this.textContent.includes('Mobile')) {
document.getElementById('mobile-app').classList.remove('hidden');
}
});
});
// Close panels
document.getElementById('close-email-builder').addEventListener('click', function() {
document.getElementById('email-builder').classList.add('hidden');
});
document.getElementById('close-user-management').addEventListener('click', function() {
document.getElementById('user-management').classList.add('hidden');
});
document.getElementById('close-chat-support').addEventListener('click', function() {
document.getElementById('chat-support').classList.add('hidden');
});
document.getElementById('close-mobile-app').addEventListener('click', function() {
document.getElementById('mobile-app').classList.add('hidden');
});
// Simulate AI email generation
document.querySelector('#email-builder button.bg-indigo-600').addEventListener('click', function() {
alert('AI is generating your email campaign... Check back in a few seconds!');
});
</script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=syncronetix/crm" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html> |