File size: 3,474 Bytes
73f5b3d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
174
:root {
  --primary-color: #2563eb;
  --secondary-color: #1e40af;
  --background-color: #f8fafc;
  --chat-bg: #ffffff;
  --text-color: #1e293b;
  --border-color: #e2e8f0;
  --shadow-color: rgba(0, 0, 0, 0.1);
}

/* Global Styles */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
}

/* Header Styling */
.header {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  padding: 1.5rem;
  border-radius: 0 0 1rem 1rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px var(--shadow-color);
}

.header h1 {
  color: white;
  font-size: 1.8rem;
  font-weight: 600;
  text-align: center;
  margin: 0;
}

/* Chat Container */
.gradio-container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 1rem !important;
}

.chat-container {
  background-color: var(--chat-bg);
  border-radius: 1rem;
  box-shadow: 0 4px 6px var(--shadow-color);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Message Bubbles */
.message {
  padding: 1rem;
  border-radius: 1rem;
  margin-bottom: 1rem;
  max-width: 80%;
  animation: fadeIn 0.3s ease-in-out;
}

.user-message {
  background-color: var(--primary-color);
  color: white;
  margin-left: auto;
  border-bottom-right-radius: 0.25rem;
}

.bot-message {
  background-color: var(--background-color);
  border: 1px solid var(--border-color);
  margin-right: auto;
  border-bottom-left-radius: 0.25rem;
}

/* Input Area */
.input-container {
  background-color: var(--chat-bg);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 4px 6px var(--shadow-color);
}

textarea {
  border: 2px solid var(--border-color) !important;
  border-radius: 0.75rem !important;
  padding: 1rem !important;
  font-size: 1rem !important;
  transition: border-color 0.3s ease !important;
}

textarea:focus {
  border-color: var(--primary-color) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
}

/* Buttons */
button {
  background-color: var(--primary-color) !important;
  color: white !important;
  border-radius: 0.75rem !important;
  padding: 0.75rem 1.5rem !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
}

button:hover {
  background-color: var(--secondary-color) !important;
  transform: translateY(-1px);
}

/* Sliders and Additional Inputs */
.additional-inputs {
  background-color: var(--chat-bg);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-top: 1.5rem;
  box-shadow: 0 4px 6px var(--shadow-color);
}

.slider-label {
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .header h1 {
    font-size: 1.5rem;
  }
  
  .message {
    max-width: 90%;
  }
  
  .gradio-container {
    padding: 0.5rem !important;
  }
}

/* Accessibility */
button:focus,
textarea:focus {
  outline: 3px solid rgba(37, 99, 235, 0.5) !important;
  outline-offset: 2px !important;
}

/* Loading Indicator */
.loading {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  border: 3px solid var(--border-color);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}