ZunairaHawwar commited on
Commit
7338d0e
·
verified ·
1 Parent(s): dc34c8e

Create style.css

Browse files
Files changed (1) hide show
  1. style.css +230 -0
style.css ADDED
@@ -0,0 +1,230 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
2
+
3
+ html, body, [class*="css"] {
4
+ font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
5
+ }
6
+
7
+ /* Hide Streamlit elements if needed */
8
+ /*
9
+ #MainMenu { visibility: hidden; }
10
+ footer { visibility: hidden; }
11
+ header { visibility: hidden; }
12
+ */
13
+
14
+ .main .block-container {
15
+ padding-top: 1rem;
16
+ padding-bottom: 2rem;
17
+ max-width: 80%;
18
+ }
19
+
20
+ /* Logo styling */
21
+ .chatbot-logo {
22
+ width: 60px;
23
+ height: 60px;
24
+ border-radius: 50%;
25
+ object-fit: cover;
26
+ border: 2px solid #ccc;
27
+ margin-right: 15px;
28
+ vertical-align: middle;
29
+ }
30
+
31
+ /* Custom header */
32
+ .custom-header {
33
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 60%);
34
+ padding: 1rem;
35
+ margin-bottom: 20px;
36
+ border-radius: 16px;
37
+ text-align: center;
38
+ color: white;
39
+ box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
40
+ }
41
+
42
+ .custom-header h1 {
43
+ margin: 0;
44
+ font-size: 2rem;
45
+ font-weight: 700;
46
+ text-shadow: 0 2px 4px rgba(0,0,0,0.1);
47
+ display: flex;
48
+ align-items: center;
49
+ justify-content: center;
50
+ }
51
+
52
+ /* Response box styling (fallback for inline styles) */
53
+ .response-box {
54
+ border: 1px solid #e8e8e8;
55
+ border-radius: 12px;
56
+ margin: 1rem 0;
57
+ overflow: hidden;
58
+ box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.06);
59
+ font-family: 'Inter', sans-serif;
60
+ background-color: #fafafa;
61
+ }
62
+
63
+ .response-header {
64
+ display: flex;
65
+ justify-content: space-between;
66
+ align-items: center;
67
+ background: #f5f7f8;
68
+ padding: 0.8rem 1rem;
69
+ font-size: 1rem;
70
+ color: #333;
71
+ font-weight: 500;
72
+ }
73
+
74
+ .response-content {
75
+ background: #ffffff;
76
+ padding: 1rem;
77
+ max-height: 240px;
78
+ overflow-y: auto;
79
+ white-space: pre-wrap;
80
+ word-break: break-word;
81
+ scroll-behavior: smooth;
82
+ font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
83
+ color: #2c2c2c;
84
+ line-height: 1.6;
85
+ border: none;
86
+ border-radius: 0;
87
+ margin-top: 0;
88
+ font-weight: 400;
89
+ }
90
+
91
+ /* Scrollbar styling for response content */
92
+ .response-content::-webkit-scrollbar {
93
+ width: 6px;
94
+ }
95
+
96
+ .response-content::-webkit-scrollbar-thumb {
97
+ background-color: #d0d0d0;
98
+ border-radius: 3px;
99
+ }
100
+
101
+ .response-content::-webkit-scrollbar-thumb:hover {
102
+ background-color: #b8b8b8;
103
+ }
104
+
105
+ .response-content::-webkit-scrollbar-track {
106
+ background-color: #f8f8f8;
107
+ border-radius: 3px;
108
+ }
109
+
110
+ /* Firefox scrollbar */
111
+ .response-content {
112
+ scrollbar-width: thin;
113
+ scrollbar-color: #d0d0d0 #f8f8f8;
114
+ }
115
+
116
+ .copy-button {
117
+ background: #e8e8e8;
118
+ border: none;
119
+ border-radius: 6px;
120
+ cursor: pointer;
121
+ font-size: 1rem;
122
+ padding: 6px 12px;
123
+ transition: background-color 0.2s ease;
124
+ color: #555;
125
+ }
126
+
127
+ .copy-button:hover {
128
+ background-color: #dcdcdc;
129
+ }
130
+
131
+ .copy-button:active {
132
+ background-color: #d0d0d0;
133
+ }
134
+
135
+ /* Chat container */
136
+ .chat-container {
137
+ position: relative;
138
+ width: 100%;
139
+ margin: 1rem 0;
140
+ }
141
+
142
+ /* Toast notification */
143
+ .custom-toast {
144
+ visibility: hidden;
145
+ min-width: 220px;
146
+ margin-left: -110px;
147
+ background-color: #4CAF50;
148
+ color: #fff;
149
+ text-align: center;
150
+ border-radius: 8px;
151
+ padding: 12px;
152
+ position: fixed;
153
+ z-index: 9999;
154
+ left: 50%;
155
+ bottom: 50px;
156
+ font-size: 16px;
157
+ box-shadow: 0 4px 12px rgba(0,0,0,0.3);
158
+ transition: all 0.3s ease;
159
+ opacity: 0;
160
+ transform: translateY(30px);
161
+ }
162
+
163
+ .custom-toast.show {
164
+ visibility: visible;
165
+ opacity: 1;
166
+ transform: translateY(0);
167
+ }
168
+
169
+ /* Typing animation */
170
+ .typing-indicator {
171
+ color: #666;
172
+ font-size: 14px;
173
+ font-style: italic;
174
+ }
175
+
176
+ .cursor {
177
+ animation: blink 1s infinite;
178
+ }
179
+
180
+ @keyframes blink {
181
+ 0%, 50% { opacity: 1; }
182
+ 51%, 100% { opacity: 0; }
183
+ }
184
+
185
+ /* Responsive design */
186
+ @media (max-width: 768px) {
187
+ .main .block-container {
188
+ max-width: 95%;
189
+ padding-top: 0.5rem;
190
+ }
191
+
192
+ .custom-header h1 {
193
+ font-size: 1.5rem;
194
+ flex-direction: column;
195
+ gap: 10px;
196
+ }
197
+
198
+ .chatbot-logo {
199
+ width: 50px;
200
+ height: 50px;
201
+ margin-right: 0;
202
+ margin-bottom: 10px;
203
+ }
204
+
205
+ .response-box {
206
+ margin: 0.5rem 0;
207
+ }
208
+
209
+ .response-header {
210
+ padding: 0.6rem;
211
+ font-size: 0.9rem;
212
+ }
213
+
214
+ .response-content {
215
+ padding: 0.8rem;
216
+ max-height: 200px;
217
+ }
218
+
219
+ .copy-button {
220
+ padding: 4px 8px;
221
+ font-size: 0.9rem;
222
+ }
223
+ }
224
+
225
+ /* Streamlit specific overrides */
226
+ .stChatMessage {
227
+ padding: 1rem 0;
228
+ }
229
+
230
+ .stChat