Chaitu2112 commited on
Commit
0aed578
·
verified ·
1 Parent(s): 681a83a

Update static/style.css

Browse files
Files changed (1) hide show
  1. static/style.css +22 -29
static/style.css CHANGED
@@ -178,40 +178,32 @@ main.content {
178
  }
179
 
180
  /* ==========================
181
- CHAT FORM - HORIZONTAL LAYOUT
182
  ========================== */
183
  #chat-form,
184
  form#chat-form,
185
  .chat-form {
186
- display: flex !important;
187
- flex-direction: row !important;
188
- align-items: flex-end !important;
189
- justify-content: space-between !important;
190
- gap: 12px !important;
191
- background: transparent !important;
192
- border-radius: 0 !important;
193
- box-shadow: none !important;
194
  padding: 0 !important;
195
  margin: 0 !important;
196
  flex-shrink: 0 !important;
197
- width: 100% !important;
198
  }
199
 
200
  /* ==========================
201
- TEXTAREA STYLING
202
  ========================== */
203
  #chat-input,
204
  textarea#chat-input,
205
  .chat-form textarea {
206
- flex: 1 1 auto !important;
207
- width: auto !important;
208
- min-width: 0 !important;
209
  min-height: 50px !important;
210
  max-height: 120px !important;
211
- padding: 12px 15px !important;
212
  font-size: 14px !important;
213
  line-height: 1.5 !important;
214
- border-radius: 8px !important;
215
  border: 1px solid #d0d7de !important;
216
  background: #fff !important;
217
  font-family: inherit !important;
@@ -241,42 +233,43 @@ textarea#chat-input,
241
  }
242
 
243
  /* ==========================
244
- BUTTON STYLING
245
  ========================== */
246
  #chat-form button,
247
  form#chat-form button,
248
  .chat-form button {
249
- flex: 0 0 50px !important;
250
- flex-shrink: 0 !important;
251
- flex-grow: 0 !important;
252
- height: 50px !important;
253
- width: 50px !important;
254
- min-width: 50px !important;
255
- max-width: 50px !important;
256
  padding: 0 !important;
257
  margin: 0 !important;
258
  background: var(--primary) !important;
259
  color: white !important;
260
  border: none !important;
261
- border-radius: 8px !important;
262
  cursor: pointer !important;
263
  font-weight: 600 !important;
264
- font-size: 18px !important;
265
  display: flex !important;
266
  align-items: center !important;
267
  justify-content: center !important;
268
  transition: all 0.25s ease !important;
269
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
270
- align-self: flex-end !important;
271
  }
272
 
273
  .chat-form button:hover {
274
  background: var(--accent) !important;
275
- transform: translateY(-2px);
 
276
  }
277
 
278
  .chat-form button:active {
279
- transform: translateY(0);
280
  }
281
 
282
  /* ==========================
 
178
  }
179
 
180
  /* ==========================
181
+ CHAT FORM - WRAPPER WITH BUTTON INSIDE
182
  ========================== */
183
  #chat-form,
184
  form#chat-form,
185
  .chat-form {
186
+ position: relative !important;
187
+ display: block !important;
188
+ width: 100% !important;
 
 
 
 
 
189
  padding: 0 !important;
190
  margin: 0 !important;
191
  flex-shrink: 0 !important;
 
192
  }
193
 
194
  /* ==========================
195
+ TEXTAREA STYLING - WITH PADDING FOR BUTTON
196
  ========================== */
197
  #chat-input,
198
  textarea#chat-input,
199
  .chat-form textarea {
200
+ width: 100% !important;
 
 
201
  min-height: 50px !important;
202
  max-height: 120px !important;
203
+ padding: 12px 60px 12px 15px !important; /* Extra padding on right for button */
204
  font-size: 14px !important;
205
  line-height: 1.5 !important;
206
+ border-radius: 25px !important; /* Rounded pill shape */
207
  border: 1px solid #d0d7de !important;
208
  background: #fff !important;
209
  font-family: inherit !important;
 
233
  }
234
 
235
  /* ==========================
236
+ BUTTON STYLING - POSITIONED INSIDE TEXTAREA
237
  ========================== */
238
  #chat-form button,
239
  form#chat-form button,
240
  .chat-form button {
241
+ position: absolute !important;
242
+ right: 8px !important;
243
+ bottom: 8px !important;
244
+ height: 36px !important;
245
+ width: 36px !important;
246
+ min-width: 36px !important;
247
+ max-width: 36px !important;
248
  padding: 0 !important;
249
  margin: 0 !important;
250
  background: var(--primary) !important;
251
  color: white !important;
252
  border: none !important;
253
+ border-radius: 50% !important; /* Circular button */
254
  cursor: pointer !important;
255
  font-weight: 600 !important;
256
+ font-size: 16px !important;
257
  display: flex !important;
258
  align-items: center !important;
259
  justify-content: center !important;
260
  transition: all 0.25s ease !important;
261
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
262
+ z-index: 10 !important;
263
  }
264
 
265
  .chat-form button:hover {
266
  background: var(--accent) !important;
267
+ transform: scale(1.1);
268
+ box-shadow: 0 3px 10px rgba(27, 58, 122, 0.3) !important;
269
  }
270
 
271
  .chat-form button:active {
272
+ transform: scale(0.95);
273
  }
274
 
275
  /* ==========================