File size: 5,575 Bytes
b9a40a4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Universal AI Sales Widget</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">
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        'premium-gradient-start': '#9333ea',
                        'premium-gradient-end': '#7c3aed',
                        'dark-base': '#1a1a1a',
                        'success': '#22c55e',
                        'error': '#ef4444',
                        'typing-indicator': '#6366f1'
                    },
                    animation: {
                        'pulse-attention': 'pulseAttention 2s infinite',
                        'typing': 'typing 1.5s infinite',
                        'fade-in': 'fadeIn 0.3s ease-in'
                    },
                    keyframes: {
                        pulseAttention: {
                            '0%, 100%': { transform: 'scale(1)', boxShadow: '0 0 0 0 rgba(147, 51, 234, 0.7)' },
                            '50%': { transform: 'scale(1.02)', boxShadow: '0 0 0 10px rgba(147, 51, 234, 0)' }
                        },
                        typing: {
                            '0%': { transform: 'translateY(0px)' },
                            '33%': { transform: 'translateY(-5px)' },
                            '66%': { transform: 'translateY(5px)' }
                        },
                        fadeIn: {
                            '0%': { opacity: 0, transform: 'translateY(10px)' },
                            '100%': { opacity: 1, transform: 'translateY(0)' }
                        }
                    }
                }
            }
        }
    </script>
    <style>
        @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
        
        body {
            font-family: 'Inter', system-ui, sans-serif;
            background-color: #f3f4f6;
        }
        
        .ai-widget-container {
            position: fixed;
            bottom: 30px;
            right: 30px;
            z-index: 10000;
            perspective: 1000px;
        }
        
        .ai-widget {
            background: linear-gradient(135deg, var(--premium-gradient-start) 0%, var(--premium-gradient-end) 100%);
            border-radius: 16px;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 15px rgba(147, 51, 234, 0.3);
            width: 380px;
            max-height: 80vh;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            transform-origin: bottom right;
            animation: pulse-attention 2s infinite;
        }
        
        .ai-minimized {
            width: auto;
            border-radius: 50px;
            cursor: pointer;
            padding: 16px 24px;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
        }
        
        .ai-header {
            padding: 16px 20px;
            display: flex;
            align-items: center;
            gap: 12px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        }
        
        .ai-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        
        .ai-chat-container {
            flex-grow: 1;
            overflow-y: auto;
            max-height: 50vh;
            padding: 20px;
            display: flex;
            flex-direction: column;
            gap: 16px;
        }
        
        .ai-message {
            max-width: 80%;
            padding: 14px 18px;
            border-radius: 18px;
            position: relative;
            animation: fade-in 0.3s ease-in;
        }
        
        .ai-message.user {
            background: rgba(255, 255, 255, 0.1);
            border-bottom-right-radius: 4px;
            align-self: flex-end;
        }
        
        .ai-message.bot {
            background: rgba(0, 0, 0, 0.2);
            border-bottom-left-radius: 4px;
            align-self: flex-start;
        }
        
        .ai-typing-container {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 12px 20px;
            background: rgba(0, 0, 0, 0.15);
            border-radius: 18px;
            align-self: flex-start;
        }
        
        .ai-typing-indicator {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background-color: var(--typing-indicator);
            animation: typing 1.5s infinite;
        }
        
        .ai-typing-indicator:nth-child(2) {
            animation-delay: 0.2s;
        }
        
        .ai-typing-indicator:nth-child(3) {
            animation-delay: 0.4s;
        }
        
        .ai-input-container {
            padding: 16px 20px;
            background: rgba(0, 0, 0, 0.2);
            display: flex;
            gap: 12px;
        }
        
        .ai-input {
            flex-grow: 1;
            background: rgba(255, 255, 255, 0.15);
            border: none;
            border-radius: 12px;
            padding: 14px 18px;
            color: white;

</head>
</html>