File size: 5,429 Bytes
21e5d4d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
186b52e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
"""
CSS styles and themes
"""

CUSTOM_CSS = """
/* Main container */
.gradio-container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Headers */
h1, h2, h3, h4 {
    color: #1a365d !important;
    font-weight: 600 !important;
}

h1 {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px !important;
}

/* Buttons */
.gradio-button.primary {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
    font-weight: 600 !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
}

.gradio-button.primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4) !important;
}

.gradio-button.secondary {
    background: linear-gradient(90deg, #4ECDC4 0%, #44A08D 100%) !important;
    color: white !important;
    border: none !important;
    font-weight: 600 !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
}

/* Tabs */
.gradio-tab {
    border-bottom: 2px solid transparent !important;
    padding: 12px 24px !important;
    font-weight: 500 !important;
}

.gradio-tab.selected {
    border-bottom: 2px solid #667eea !important;
    color: #667eea !important;
    font-weight: 600 !important;
}

/* JSON displays */
.gr-json {
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 15px !important;
    background: #f8fafc !important;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace !important;
    font-size: 13px !important;
}

/* Checkboxes and radios */
.gr-checkbox, .gr-radio {
    padding: 10px !important;
    border-radius: 6px !important;
    border: 1px solid #e2e8f0 !important;
}

.gr-checkbox:hover, .gr-radio:hover {
    border-color: #667eea !important;
    background: #f8fafc !important;
}

/* Sliders */
.gr-slider {
    padding: 20px 0 !important;
}

.gr-slider .range {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%) !important;
}

/* Dataframes */
.gr-dataframe {
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

.gr-dataframe th {
    background: #f8fafc !important;
    color: #1a365d !important;
    font-weight: 600 !important;
    padding: 12px !important;
    border-bottom: 2px solid #e2e8f0 !important;
}

.gr-dataframe td {
    padding: 10px !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

/* Plot containers */
.gr-plot {
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 15px !important;
    background: white !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
}

/* Custom classes */
.critical-metric {
    background: linear-gradient(135deg, rgba(255,107,107,0.1) 0%, rgba(255,107,107,0.2) 100%) !important;
    border-left: 4px solid #FF6B6B !important;
    padding: 15px !important;
    border-radius: 8px !important;
    margin: 10px 0 !important;
    font-weight: bold !important;
}

.success-metric {
    background: linear-gradient(135deg, rgba(78,205,196,0.1) 0%, rgba(78,205,196,0.2) 100%) !important;
    border-left: 4px solid #4ECDC4 !important;
    padding: 15px !important;
    border-radius: 8px !important;
    margin: 10px 0 !important;
    font-weight: bold !important;
}

.roi-highlight {
    font-size: 2.5em !important;
    font-weight: 900 !important;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-align: center !important;
    margin: 20px 0 !important;
}

.presenter-guidance {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    padding: 20px !important;
    border-radius: 10px !important;
    margin: 15px 0 !important;
    border-left: 5px solid #4ECDC4 !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
}

/* Footer */
.footer {
    margin-top: 40px !important;
    padding-top: 20px !important;
    border-top: 1px solid #e2e8f0 !important;
    color: #718096 !important;
    font-size: 14px !important;
}
"""

THEME = gr.themes.Soft(
    primary_hue="purple",
    secondary_hue="teal",
    neutral_hue="gray",
    font=["-apple-system", "BlinkMacSystemFont", "Segoe UI", "Roboto", "sans-serif"]
).set(
    button_primary_background_fill="linear-gradient(90deg, #667eea 0%, #764ba2 100%)",
    button_primary_background_fill_hover="linear-gradient(90deg, #764ba2 0%, #667eea 100%)",
    button_primary_text_color="white",
    button_primary_border_color="#667eea",
    button_secondary_background_fill="linear-gradient(90deg, #4ECDC4 0%, #44A08D 100%)",
    button_secondary_background_fill_hover="linear-gradient(90deg, #44A08D 0%, #4ECDC4 100%)",
    button_secondary_text_color="white",
    background_fill_primary="#f8fafc",
    background_fill_secondary="#ffffff",
    border_color_primary="#e2e8f0",
    border_color_secondary="#cbd5e0",
    shadow_spread="2px",
    shadow_spread_dark="1px"
)