Shakeel401 commited on
Commit
199e2ca
·
verified ·
1 Parent(s): 1d3bacf

Update static/style.css

Browse files
Files changed (1) hide show
  1. static/style.css +38 -76
static/style.css CHANGED
@@ -52,7 +52,7 @@
52
  bottom: 90px;
53
  width: 380px;
54
  height: 560px;
55
- max-width: calc(100vw - 20px); /* prevents left cut */
56
  background: #fff;
57
  border-radius: 20px;
58
  box-shadow: 0 30px 80px rgba(0,0,0,0.25);
@@ -84,35 +84,6 @@
84
  align-items: center;
85
  }
86
 
87
- .chat-header-left {
88
- display: flex;
89
- flex-direction: column;
90
- }
91
-
92
- .chat-header-title {
93
- font-size: 15px;
94
- font-weight: 600;
95
- }
96
-
97
- .chat-status {
98
- font-size: 12px;
99
- opacity: 0.8;
100
- }
101
-
102
- .close-btn {
103
- cursor: pointer;
104
- font-size: 18px;
105
- width: 30px;
106
- height: 30px;
107
- display: flex;
108
- align-items: center;
109
- justify-content: center;
110
- }
111
-
112
- .close-btn:hover {
113
- opacity: 0.7;
114
- }
115
-
116
  /* ============================= */
117
  /* MESSAGES */
118
  /* ============================= */
@@ -124,39 +95,49 @@
124
  display: flex;
125
  flex-direction: column;
126
  gap: 14px;
 
127
  }
128
 
129
- .suggestions-wrapper {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
130
  display: flex;
131
- flex-direction: column;
132
- gap: 12px;
133
- }
134
 
135
- .welcome-message {
136
- background: #fff;
137
- border: 1px solid #e5eaf2;
138
- padding: 16px;
139
- border-radius: 14px;
140
- }
141
 
142
- .suggestion-divider {
143
- font-size: 12px;
144
- color: #888;
145
- margin: 4px 0 2px;
 
146
  }
147
 
148
- .suggestion-btn {
149
- padding: 12px;
150
- border-radius: 12px;
151
- border: 1px solid #e2e8f0;
152
- background: white;
153
- font-size: 14px;
154
- cursor: pointer;
155
- text-align: left;
156
  }
157
 
158
- .suggestion-btn:hover {
159
- background: #eef3ff;
160
  }
161
 
162
  /* ============================= */
@@ -237,39 +218,20 @@
237
  .chatbot-container {
238
  width: 90%;
239
  right: 5%;
240
- left: auto;
241
  bottom: 80px;
242
  height: 75vh;
243
  border-radius: 16px;
244
  }
245
  }
246
 
247
- /* Mobile (widget style, NOT fullscreen) */
248
  @media (max-width: 480px) {
249
  .chatbot-container {
250
- width: calc(100% - 20px); /* margin both sides */
251
  right: 10px;
252
  left: 10px;
253
  bottom: 80px;
254
- height: 70vh; /* not full screen */
255
  border-radius: 18px;
256
  }
257
-
258
- .chat-header {
259
- padding: 12px;
260
- }
261
-
262
- .chat-messages {
263
- padding: 12px;
264
- }
265
-
266
- .bubble {
267
- max-width: 85%;
268
- font-size: 14px;
269
- }
270
-
271
- .launcher {
272
- right: 12px;
273
- bottom: 12px;
274
- }
275
  }
 
52
  bottom: 90px;
53
  width: 380px;
54
  height: 560px;
55
+ max-width: calc(100vw - 20px);
56
  background: #fff;
57
  border-radius: 20px;
58
  box-shadow: 0 30px 80px rgba(0,0,0,0.25);
 
84
  align-items: center;
85
  }
86
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
87
  /* ============================= */
88
  /* MESSAGES */
89
  /* ============================= */
 
95
  display: flex;
96
  flex-direction: column;
97
  gap: 14px;
98
+ position: relative; /* IMPORTANT for button positioning */
99
  }
100
 
101
+ /* ============================= */
102
+ /* SCROLL TO BOTTOM BUTTON */
103
+ /* ============================= */
104
+ .scroll-to-bottom {
105
+ position: absolute;
106
+ right: 14px;
107
+ bottom: 14px;
108
+
109
+ width: 38px;
110
+ height: 38px;
111
+ border-radius: 50%;
112
+ border: none;
113
+
114
+ background: var(--primary);
115
+ color: #fff;
116
+ font-size: 18px;
117
+ cursor: pointer;
118
+
119
  display: flex;
120
+ align-items: center;
121
+ justify-content: center;
 
122
 
123
+ box-shadow: 0 6px 16px rgba(0,0,0,0.2);
 
 
 
 
 
124
 
125
+ opacity: 0;
126
+ transform: translateY(10px);
127
+ pointer-events: none;
128
+
129
+ transition: all 0.25s ease;
130
  }
131
 
132
+ /* SHOW STATE */
133
+ .scroll-to-bottom.show {
134
+ opacity: 1;
135
+ transform: translateY(0);
136
+ pointer-events: auto;
 
 
 
137
  }
138
 
139
+ .scroll-to-bottom:hover {
140
+ transform: translateY(-2px);
141
  }
142
 
143
  /* ============================= */
 
218
  .chatbot-container {
219
  width: 90%;
220
  right: 5%;
 
221
  bottom: 80px;
222
  height: 75vh;
223
  border-radius: 16px;
224
  }
225
  }
226
 
227
+ /* Mobile */
228
  @media (max-width: 480px) {
229
  .chatbot-container {
230
+ width: calc(100% - 20px);
231
  right: 10px;
232
  left: 10px;
233
  bottom: 80px;
234
+ height: 70vh;
235
  border-radius: 18px;
236
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
237
  }