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 
 
 
 
 
 
 
 
 
 
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
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
class CSSStyles:
    """
    CSS styling configuration for the SceneWeaver application.
    Professional design system with clean typography and modern aesthetics.
    """

    @staticmethod
    def get_main_css() -> str:
        """
        Get the main CSS styling for the application.

        Returns:
            Complete CSS string for Gradio interface styling
        """
        return """
        /* Import professional fonts */
        @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

        /* CSS Variables - Professional color system */
        :root {
            /* Primary brand colors */
            --primary-color: #1e3a5f;
            --primary-hover: #2d5a8a;
            --primary-light: #e8f4fd;

            /* Accent colors */
            --accent-color: #3b82f6;
            --accent-hover: #2563eb;
            --accent-light: #dbeafe;

            /* Status colors */
            --success-color: #10b981;
            --warning-color: #f59e0b;
            --error-color: #ef4444;

            /* Neutral colors */
            --bg-primary: #ffffff;
            --bg-secondary: #f8fafc;
            --bg-tertiary: #f1f5f9;
            --text-primary: #1e293b;
            --text-secondary: #475569;
            --text-muted: #94a3b8;
            --border-color: #e2e8f0;
            --border-light: #f1f5f9;

            /* Shadows */
            --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
            --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
            --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
            --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

            /* Border radius */
            --radius-sm: 6px;
            --radius-md: 8px;
            --radius-lg: 12px;
            --radius-xl: 16px;

            /* Transitions */
            --transition-fast: 150ms ease;
            --transition-normal: 250ms ease;
            --transition-slow: 350ms ease;
        }

        /* Global styles */
        * {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
            -webkit-font-smoothing: antialiased !important;
            -moz-osx-font-smoothing: grayscale !important;
        }

        /* Main container */
        .gradio-container {
            background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
            min-height: 100vh !important;
            padding: 24px !important;
        }

        /* ===== HEADER SECTION ===== */
        .main-header {
            text-align: center !important;
            padding: 48px 32px 40px !important;
            margin-bottom: 32px !important;
            background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%) !important;
            border-radius: var(--radius-xl) !important;
            box-shadow: var(--shadow-md) !important;
            border: 1px solid var(--border-light) !important;
        }

        .main-title {
            font-size: 2.75rem !important;
            font-weight: 700 !important;
            color: var(--primary-color) !important;
            margin: 0 0 12px 0 !important;
            letter-spacing: -0.03em !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            gap: 14px !important;
            line-height: 1.2 !important;
        }

        .title-emoji {
            font-size: 2.5rem !important;
            filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15)) !important;
            transition: transform var(--transition-normal) !important;
        }

        .title-emoji:hover {
            transform: scale(1.1) rotate(-5deg) !important;
        }

        .main-subtitle {
            font-size: 1.1rem !important;
            color: var(--text-secondary) !important;
            font-weight: 400 !important;
            margin: 0 !important;
            line-height: 1.5 !important;
            max-width: 700px !important;
            margin: 0 auto !important;
        }

        /* ===== CARD SYSTEM ===== */
        .feature-card {
            background: var(--bg-primary) !important;
            border: 1px solid var(--border-color) !important;
            border-radius: var(--radius-lg) !important;
            padding: 24px !important;
            margin-bottom: 20px !important;
            box-shadow: var(--shadow-sm) !important;
            transition: all var(--transition-normal) !important;
            position: relative !important;
        }

        .feature-card:hover {
            border-color: var(--accent-color) !important;
            box-shadow: var(--shadow-lg) !important;
            transform: translateY(-2px) !important;
        }

        .card-title {
            font-size: 1.25rem !important;
            font-weight: 600 !important;
            color: var(--text-primary) !important;
            margin-bottom: 16px !important;
            display: flex !important;
            align-items: center !important;
            gap: 10px !important;
        }

        .section-emoji {
            font-size: 1.2rem !important;
            filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1)) !important;
        }

        /* ===== INPUT COMPONENTS ===== */
        .input-field {
            border: 1px solid var(--border-color) !important;
            border-radius: var(--radius-md) !important;
            background: var(--bg-primary) !important;
            transition: all var(--transition-fast) !important;
        }

        .input-field:focus-within {
            border-color: var(--accent-color) !important;
            box-shadow: 0 0 0 3px var(--accent-light) !important;
        }

        /* ===== BUTTONS ===== */
        .primary-button {
            background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%) !important;
            color: white !important;
            border: none !important;
            border-radius: var(--radius-md) !important;
            padding: 14px 28px !important;
            font-size: 1rem !important;
            font-weight: 600 !important;
            cursor: pointer !important;
            transition: all var(--transition-normal) !important;
            box-shadow: var(--shadow-md) !important;
        }

        .primary-button:hover {
            transform: translateY(-2px) !important;
            box-shadow: var(--shadow-lg) !important;
            filter: brightness(1.05) !important;
        }

        .secondary-button {
            background: var(--bg-primary) !important;
            color: var(--accent-color) !important;
            border: 1.5px solid var(--accent-color) !important;
            border-radius: var(--radius-md) !important;
            padding: 12px 20px !important;
            font-size: 0.95rem !important;
            font-weight: 500 !important;
            cursor: pointer !important;
            transition: all var(--transition-fast) !important;
        }

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

        /* ===== RESULTS GALLERY ===== */
        #results-gallery-centered {
            display: flex !important;
            flex-direction: column !important;
            align-items: center !important;
        }

        #results-gallery-centered .gradio-tabs {
            width: 100% !important;
        }

        .result-gallery {
            border-radius: var(--radius-lg) !important;
            overflow: hidden !important;
            border: 1px solid var(--border-color) !important;
            box-shadow: var(--shadow-md) !important;
        }

        .result-gallery img {
            width: 100% !important;
            height: auto !important;
            object-fit: contain !important;
        }

        /* ===== STATUS PANEL ===== */
        .status-panel {
            background: var(--bg-secondary) !important;
            border: 1px solid var(--border-color) !important;
            border-radius: var(--radius-md) !important;
            padding: 12px 16px !important;
            margin: 16px 0 !important;
        }

        .status-ready {
            color: var(--success-color) !important;
            font-weight: 500 !important;
        }

        /* ===== LOADING NOTICE ===== */
        .loading-notice {
            background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%) !important;
            border: 1px solid #f59e0b !important;
            border-radius: var(--radius-md) !important;
            padding: 14px 18px !important;
            margin: 16px 0 !important;
            display: flex !important;
            align-items: center !important;
            gap: 12px !important;
        }

        .loading-notice-icon {
            font-size: 1.3rem !important;
            flex-shrink: 0 !important;
        }

        .loading-notice-text {
            color: #92400e !important;
            font-size: 0.9rem !important;
            font-weight: 500 !important;
            line-height: 1.5 !important;
        }

        /* ===== QUICK START GUIDE ===== */
        .user-guidance-panel {
            background: var(--bg-secondary) !important;
            border: 1px solid var(--border-color) !important;
            border-radius: var(--radius-md) !important;
            margin: 16px 0 !important;
            overflow: hidden !important;
        }

        .guidance-summary {
            background: var(--bg-primary) !important;
            padding: 12px 16px !important;
            cursor: pointer !important;
            font-weight: 500 !important;
            color: var(--text-primary) !important;
            transition: background var(--transition-fast) !important;
            list-style: none !important;
            display: flex !important;
            align-items: center !important;
            gap: 8px !important;
            border-bottom: 1px solid var(--border-color) !important;
        }

        .guidance-summary:hover {
            background: var(--accent-light) !important;
        }

        .guidance-summary::-webkit-details-marker {
            display: none !important;
        }

        .guidance-content {
            padding: 16px !important;
            color: var(--text-secondary) !important;
            line-height: 1.6 !important;
        }

        .guidance-content p {
            margin: 8px 0 !important;
            font-size: 0.9rem !important;
        }

        .guidance-content strong {
            color: var(--primary-color) !important;
            font-weight: 600 !important;
        }

        /* ===== FOOTER ===== */
        .app-footer {
            background: var(--bg-primary) !important;
            border: 1px solid var(--border-color) !important;
            border-radius: var(--radius-lg) !important;
            padding: 32px !important;
            margin-top: 32px !important;
            text-align: center !important;
        }

        .footer-powered {
            margin-bottom: 20px !important;
        }

        .footer-powered-title {
            font-size: 0.85rem !important;
            font-weight: 500 !important;
            color: var(--text-muted) !important;
            text-transform: uppercase !important;
            letter-spacing: 0.1em !important;
            margin-bottom: 16px !important;
        }

        .footer-tech-grid {
            display: flex !important;
            flex-wrap: wrap !important;
            justify-content: center !important;
            gap: 12px !important;
            margin-bottom: 24px !important;
        }

        .footer-tech-item {
            background: var(--bg-secondary) !important;
            border: 1px solid var(--border-color) !important;
            border-radius: var(--radius-sm) !important;
            padding: 8px 16px !important;
            font-size: 0.85rem !important;
            font-weight: 500 !important;
            color: var(--text-secondary) !important;
            transition: all var(--transition-fast) !important;
        }

        .footer-tech-item:hover {
            background: var(--accent-light) !important;
            border-color: var(--accent-color) !important;
            color: var(--accent-color) !important;
        }

        .footer-divider {
            height: 1px !important;
            background: var(--border-color) !important;
            margin: 20px auto !important;
            max-width: 400px !important;
        }

        .footer-copyright {
            font-size: 0.85rem !important;
            color: var(--text-muted) !important;
            font-weight: 400 !important;
        }

        .footer-copyright a {
            color: var(--accent-color) !important;
            text-decoration: none !important;
            font-weight: 500 !important;
        }

        .footer-copyright a:hover {
            text-decoration: underline !important;
        }

        /* ===== TABS STYLING ===== */
        .gradio-tabs {
            border: none !important;
        }

        .gradio-tabs > .tab-nav {
            background: var(--bg-secondary) !important;
            border-radius: var(--radius-md) !important;
            padding: 4px !important;
            gap: 4px !important;
            border: 1px solid var(--border-color) !important;
            margin-bottom: 16px !important;
        }

        .gradio-tabs > .tab-nav > button {
            border-radius: var(--radius-sm) !important;
            padding: 10px 20px !important;
            font-weight: 500 !important;
            font-size: 0.9rem !important;
            transition: all var(--transition-fast) !important;
            border: none !important;
            background: transparent !important;
            color: var(--text-secondary) !important;
        }

        .gradio-tabs > .tab-nav > button.selected {
            background: var(--bg-primary) !important;
            color: var(--accent-color) !important;
            box-shadow: var(--shadow-sm) !important;
        }

        .gradio-tabs > .tab-nav > button:hover:not(.selected) {
            background: var(--bg-primary) !important;
            color: var(--text-primary) !important;
        }

        /* ===== ACCORDION ===== */
        .gradio-accordion {
            border: 1px solid var(--border-color) !important;
            border-radius: var(--radius-md) !important;
            overflow: hidden !important;
            margin-top: 12px !important;
        }

        .gradio-accordion > .label-wrap {
            background: var(--bg-secondary) !important;
            padding: 12px 16px !important;
            font-weight: 500 !important;
        }

        .gradio-accordion > .label-wrap:hover {
            background: var(--bg-tertiary) !important;
        }

        /* ===== RESPONSIVE ===== */
        @media (max-width: 768px) {
            .main-title {
                font-size: 2rem !important;
            }

            .main-subtitle {
                font-size: 1rem !important;
            }

            .footer-tech-grid {
                gap: 8px !important;
            }

            .footer-tech-item {
                padding: 6px 12px !important;
                font-size: 0.8rem !important;
            }
        }

        /* ===== EMOJI ENHANCEMENT ===== */
        .emoji-enhanced {
            display: inline-block !important;
            font-style: normal !important;
            filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1)) !important;
            transition: transform var(--transition-fast) !important;
        }

        .emoji-enhanced:hover {
            transform: scale(1.1) !important;
        }

        /* ===== IMAGE DISPLAY FIX ===== */
        .gradio-image {
            min-height: 200px !important;
        }

        .gradio-image img {
            max-height: 500px !important;
            object-fit: contain !important;
        }

        /* ===== SCENE TEMPLATE DROPDOWN ===== */
        .template-dropdown {
            margin: 8px 0 !important;
        }

        .template-dropdown select,
        .template-dropdown input {
            font-size: 0.95rem !important;
            padding: 10px 14px !important;
            border-radius: var(--radius-md) !important;
            border: 1px solid var(--border-color) !important;
            background: var(--bg-primary) !important;
            transition: all var(--transition-fast) !important;
        }

        .template-dropdown select:hover,
        .template-dropdown input:hover {
            border-color: var(--accent-color) !important;
        }

        .template-dropdown select:focus,
        .template-dropdown input:focus {
            border-color: var(--accent-color) !important;
            box-shadow: 0 0 0 3px var(--accent-light) !important;
            outline: none !important;
        }

        /* Dropdown option styling */
        .template-dropdown option {
            padding: 8px 12px !important;
            font-size: 0.95rem !important;
        }
        """