shubhendu-ghosh commited on
Commit
81885fa
·
verified ·
1 Parent(s): 8e807c8

Update static/style.css

Browse files
Files changed (1) hide show
  1. static/style.css +47 -9
static/style.css CHANGED
@@ -25,7 +25,7 @@ body {
25
 
26
  /* LEFT PANEL */
27
  .left-panel {
28
- width: 30%;
29
  background: linear-gradient(135deg, #43cea2, #185a9d);
30
  padding: 40px 25px;
31
  display: flex;
@@ -33,7 +33,7 @@ body {
33
  justify-content: center;
34
  border-right: 1px solid rgba(255, 255, 255, 0.3);
35
  color: #fff;
36
- border-radius: 20px 0 0 20px;
37
  box-shadow: inset -5px 0 10px rgba(0, 0, 0, 0.1);
38
  }
39
 
@@ -84,10 +84,10 @@ body {
84
  /* RIGHT PANEL */
85
  .right-panel {
86
  width: 70%;
87
- background: #fafafa;
88
  display: flex;
89
  flex-direction: column;
90
- border-radius: 0 20px 20px 0;
91
  position: relative;
92
  height: 100%;
93
  }
@@ -103,7 +103,6 @@ body {
103
  flex-shrink: 0;
104
  }
105
 
106
- /* Chat Section Wrapper */
107
  .chat-section {
108
  display: flex;
109
  flex-direction: column;
@@ -112,13 +111,22 @@ body {
112
  overflow: hidden;
113
  }
114
 
115
- /* Chat Container */
116
  .chat-container {
117
  flex: 1;
118
  overflow-y: auto;
 
119
  padding: 20px 25px;
120
  background-color: #fafafa;
121
  scroll-behavior: smooth;
 
 
 
 
 
 
 
 
 
122
  }
123
 
124
  /* Chat Box */
@@ -127,6 +135,7 @@ body {
127
  flex-direction: column;
128
  gap: 12px;
129
  padding-bottom: 10px;
 
130
  }
131
 
132
  /* Individual chat message row */
@@ -164,8 +173,8 @@ body {
164
  }
165
 
166
  .chat-bot .chat-bubble {
167
- background: linear-gradient(135deg, #eeeeee, #dddddd);
168
- color: #333;
169
  border-bottom-left-radius: 0;
170
  align-self: flex-start;
171
  }
@@ -235,6 +244,13 @@ body {
235
  cursor: pointer;
236
  transition: all 0.3s ease;
237
  margin-bottom: 15px;
 
 
 
 
 
 
 
238
  }
239
 
240
  .file-upload-label input {
@@ -243,6 +259,7 @@ body {
243
 
244
  .file-upload-label:hover {
245
  background: linear-gradient(135deg, #f6d365, #fda085);
 
246
  }
247
 
248
  /* Message box for status */
@@ -259,7 +276,7 @@ body {
259
  font-size: 0.9em;
260
  margin-top: -10px;
261
  margin-bottom: 10px;
262
- color: #666;
263
  }
264
 
265
  /* Animations */
@@ -287,3 +304,24 @@ body {
287
  .chat-container::-webkit-scrollbar-track {
288
  background: #f0f0f0;
289
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
 
26
  /* LEFT PANEL */
27
  .left-panel {
28
+ width: 25%;
29
  background: linear-gradient(135deg, #43cea2, #185a9d);
30
  padding: 40px 25px;
31
  display: flex;
 
33
  justify-content: center;
34
  border-right: 1px solid rgba(255, 255, 255, 0.3);
35
  color: #fff;
36
+ border-radius: 20px 20px;
37
  box-shadow: inset -5px 0 10px rgba(0, 0, 0, 0.1);
38
  }
39
 
 
84
  /* RIGHT PANEL */
85
  .right-panel {
86
  width: 70%;
87
+ background: #eee4ff;
88
  display: flex;
89
  flex-direction: column;
90
+ border-radius: 20px 20px;
91
  position: relative;
92
  height: 100%;
93
  }
 
103
  flex-shrink: 0;
104
  }
105
 
 
106
  .chat-section {
107
  display: flex;
108
  flex-direction: column;
 
111
  overflow: hidden;
112
  }
113
 
 
114
  .chat-container {
115
  flex: 1;
116
  overflow-y: auto;
117
+ overflow-x: hidden;
118
  padding: 20px 25px;
119
  background-color: #fafafa;
120
  scroll-behavior: smooth;
121
+ height: calc(100% - 80px); /* Ensures input section does not hide messages */
122
+ }
123
+
124
+ /* Automatically scroll to bottom */
125
+ .chat-container:after {
126
+ content: '';
127
+ display: block;
128
+ height: 1px;
129
+ margin-bottom: 1px;
130
  }
131
 
132
  /* Chat Box */
 
135
  flex-direction: column;
136
  gap: 12px;
137
  padding-bottom: 10px;
138
+ flex-shrink: 0;
139
  }
140
 
141
  /* Individual chat message row */
 
173
  }
174
 
175
  .chat-bot .chat-bubble {
176
+ background: linear-gradient(135deg, #dbe9f4, #b0cde9);
177
+ color: #1a1a1a;
178
  border-bottom-left-radius: 0;
179
  align-self: flex-start;
180
  }
 
244
  cursor: pointer;
245
  transition: all 0.3s ease;
246
  margin-bottom: 15px;
247
+ width: 95%;
248
+ }
249
+
250
+ .file-upload-label span {
251
+ display: block;
252
+ width: 100%;
253
+ height: 100%;
254
  }
255
 
256
  .file-upload-label input {
 
259
 
260
  .file-upload-label:hover {
261
  background: linear-gradient(135deg, #f6d365, #fda085);
262
+ transform: scale(1.05);
263
  }
264
 
265
  /* Message box for status */
 
276
  font-size: 0.9em;
277
  margin-top: -10px;
278
  margin-bottom: 10px;
279
+ color: #03f397;
280
  }
281
 
282
  /* Animations */
 
304
  .chat-container::-webkit-scrollbar-track {
305
  background: #f0f0f0;
306
  }
307
+
308
+ /* Clear button in top-right of header */
309
+ .top-clear-btn {
310
+ position: absolute;
311
+ top: 27px;
312
+ right: 25px;
313
+ padding: 10px 16px;
314
+ border: none;
315
+ border-radius: 10px;
316
+ background: linear-gradient(135deg, #ff6a00, #ee0979);
317
+ color: white;
318
+ font-weight: bold;
319
+ font-size: 0.95em;
320
+ cursor: pointer;
321
+ transition: all 0.3s ease;
322
+ z-index: 10;
323
+ }
324
+
325
+ .top-clear-btn:hover {
326
+ background: linear-gradient(135deg, #ff416c, #ff4b2b);
327
+ }