File size: 7,483 Bytes
c51a38f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
/* static/css/style.css */

/* General Body Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Theme Variables (important for dark/light mode) */
html[data-theme='dark'] {
    --background-color: #1a1a2e; /* Dark blue/purple */
    --card-background: #16213e; /* Slightly lighter dark blue */
    --primary-color: #e94560; /* Vibrant red/pink */
    --accent-color: #0f3460; /* Darker blue */
    --text-color: #e0e0e0; /* Light grey */
    --border-color: #3e204c; /* Darker border */
    --shadow: rgba(0, 0, 0, 0.4);
}

html[data-theme='light'] {
    --background-color: #f0f2f5; /* Light grey */
    --card-background: #ffffff; /* White */
    --primary-color: #e94560; /* Vibrant red/pink */
    --accent-color: #4CAF50; /* Green */
    --text-color: #333333; /* Dark grey */
    --border-color: #cccccc; /* Light grey border */
    --shadow: rgba(0, 0, 0, 0.1);
}

/* Container for centering content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.main-header {
    background-color: var(--card-background);
    color: var(--text-color);
    padding: 15px 0;
    box-shadow: 0 2px 10px var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.8em;
    font-weight: bold;
    transition: color 0.3s ease;
}

.logo:hover {
    color: var(--accent-color);
}

/* --- FIX FOR NAV BAR STARTS HERE --- */
.main-nav ul {
    list-style: none; /* Remove bullet points */
    margin: 0;
    padding: 0;
    display: flex; /* Make list items display in a row */
    gap: 25px; /* Space between navigation items */
}

.main-nav li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 5px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.main-nav li a:hover {
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.1); /* Subtle background on hover */
}
/* --- FIX FOR NAV BAR ENDS HERE --- */


/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 2px solid var(--text-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.2em;
    color: var(--text-color);
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.theme-toggle:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    display: none; /* Hide both by default */
}

html[data-theme='light'] .theme-toggle .icon-moon {
    display: block; /* Show moon icon in light mode */
}

html[data-theme='dark'] .theme-toggle .icon-sun {
    display: block; /* Show sun icon in dark mode */
}

/* Main Content Area */
.main-content {
    padding: 40px 0;
    min-height: calc(100vh - 180px); /* Adjust based on header/footer height */
}

/* Footer Styles */
.main-footer {
    background-color: var(--card-background);
    color: var(--text-color);
    text-align: center;
    padding: 20px 0;
    box-shadow: 0 -2px 10px var(--shadow);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.footer-content p {
    margin: 0;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.5em;
    margin-left: 15px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Animations and Utilities */
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.pulse {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.hover-grow:hover {
    transform: scale(1.02);
    transition: transform 0.2s ease;
}

/* Flash message styling (moved from index.html for global use) */
.flash-messages {
    list-style: none;
    padding: 0;
    margin: 20px auto; /* Center the list */
    text-align: center;
    max-width: 600px; /* Optional: limit width */
}
.flash-messages li {
    padding: 12px 25px;
    margin-bottom: 10px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block; /* Display messages inline-block to allow centering */
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    animation: fadeInOut 0.5s ease forwards;
    width: auto; /* Adjust width based on content */
    max-width: 90%; /* Ensure it doesn't go too wide on small screens */
    box-sizing: border-box; /* Include padding in width calculation */
}
.flash-messages .error {
    background-color: #dc3545; /* Red */
    color: #fff;
}
.flash-messages .success {
    background-color: #28a745; /* Green */
    color: #fff;
}
.flash-messages .info {
    background-color: #007bff; /* Blue */
    color: #fff;
}

.cta-button {
    background-color: var(--accent-color); /* You might want a different color than download */
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    font-weight: 600;
    text-decoration: none; /* For the anchor tag */
    display: inline-block;
    margin-top: 20px;
}

.cta-button:hover {
    background-color: var(--primary-color); /* Or another distinct hover color */
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.cta-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}


@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .main-nav ul {
        flex-direction: column; /* Stack nav items vertically on small screens */
        gap: 10px; /* Adjust gap for vertical stacking */
        margin-top: 15px;
    }

    .theme-toggle {
        margin-top: 15px;
    }

    .footer-content {
        flex-direction: column;
    }

    .social-links {
        margin-top: 15px;
    }
}

/* Styles from index.html (ensure they are either in style.css or copied) */
/*

If you had these in index.html, move them to style.css for global application

.inference-form { ... }

.inference-form h2 { ... }

.form-group { ... }

.form-group label { ... }

.form-group input[type="file"], .form-group select, .form-group input[type="number"] { ... }

.checkbox-group { ... }

.checkbox-group input[type="checkbox"] { ... }

.checkbox-group label { ... }

.submit-button { ... }

.loading-overlay { ... }

.spinner { ... }

@keyframes spin { ... }

*/