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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Global container - Light paper background */
2
+ .gradio-container {
3
+ background: linear-gradient(135deg, #faf8f3 0%, #f5f2e8 50%, #f0ebe0 100%);
4
+ min-height: 100vh;
5
+ font-family: 'Georgia', 'Times New Roman', serif;
6
+ }
7
+
8
+ /* Main header - Classic book cover feel */
9
+ .main-header {
10
+ background: linear-gradient(145deg, #ffffff 0%, #fdfcf8 100%);
11
+ backdrop-filter: blur(10px);
12
+ padding: 45px;
13
+ border-radius: 20px;
14
+ margin-bottom: 35px;
15
+ text-align: center;
16
+ color: #3d2914;
17
+ border: 1px solid #e8dcc6;
18
+ box-shadow: 0 10px 30px rgba(139, 69, 19, 0.08),
19
+ 0 5px 15px rgba(139, 69, 19, 0.05),
20
+ inset 0 1px 2px rgba(255, 255, 255, 0.9);
21
+ position: relative;
22
+ overflow: hidden;
23
+ }
24
+
25
+ /* Book spine decoration */
26
+ .main-header::before {
27
+ content: '';
28
+ position: absolute;
29
+ left: 50px;
30
+ top: 0;
31
+ bottom: 0;
32
+ width: 3px;
33
+ background: linear-gradient(180deg, #d4a574 0%, #c19656 50%, #d4a574 100%);
34
+ box-shadow: 1px 0 2px rgba(0, 0, 0, 0.1);
35
+ }
36
+
37
+ .header-title {
38
+ font-size: 3.2em;
39
+ margin-bottom: 20px;
40
+ font-weight: 700;
41
+ color: #2c1810;
42
+ text-shadow: 2px 2px 4px rgba(139, 69, 19, 0.1);
43
+ font-family: 'Playfair Display', 'Georgia', serif;
44
+ letter-spacing: -0.5px;
45
+ }
46
+
47
+ .header-description {
48
+ font-size: 0.95em;
49
+ color: #5a453a;
50
+ line-height: 1.7;
51
+ margin-top: 25px;
52
+ text-align: justify;
53
+ max-width: 920px;
54
+ margin-left: auto;
55
+ margin-right: auto;
56
+ font-family: 'Georgia', serif;
57
+ }
58
+
59
+ .badges-container {
60
+ display: flex;
61
+ justify-content: center;
62
+ gap: 12px;
63
+ margin-top: 25px;
64
+ margin-bottom: 25px;
65
+ }
66
+
67
+ /* Progress notes - Manuscript notes style */
68
+ .progress-note {
69
+ background: linear-gradient(135deg, #fff9e6 0%, #fff5d6 100%);
70
+ border-left: 4px solid #d4a574;
71
+ padding: 22px 30px;
72
+ margin: 25px auto;
73
+ border-radius: 12px;
74
+ color: #5a453a;
75
+ max-width: 820px;
76
+ font-weight: 500;
77
+ box-shadow: 0 4px 12px rgba(212, 165, 116, 0.15);
78
+ position: relative;
79
+ }
80
+
81
+ /* Handwritten note effect */
82
+ .progress-note::after {
83
+ content: '📌';
84
+ position: absolute;
85
+ top: -10px;
86
+ right: 20px;
87
+ font-size: 24px;
88
+ transform: rotate(15deg);
89
+ }
90
+
91
+ .warning-note {
92
+ background: #fef3e2;
93
+ border-left: 4px solid #f6b73c;
94
+ padding: 18px 25px;
95
+ margin: 20px auto;
96
+ border-radius: 10px;
97
+ color: #7a5c00;
98
+ max-width: 820px;
99
+ font-size: 0.92em;
100
+ box-shadow: 0 3px 10px rgba(246, 183, 60, 0.15);
101
+ }
102
+
103
+ /* Input section - Writing desk feel */
104
+ .input-section {
105
+ background: linear-gradient(145deg, #ffffff 0%, #fcfaf7 100%);
106
+ backdrop-filter: blur(10px);
107
+ padding: 30px;
108
+ border-radius: 16px;
109
+ margin-bottom: 28px;
110
+ border: 1px solid #e8dcc6;
111
+ box-shadow: 0 6px 20px rgba(139, 69, 19, 0.06),
112
+ inset 0 1px 3px rgba(255, 255, 255, 0.8);
113
+ }
114
+
115
+ /* Session section - File cabinet style */
116
+ .session-section {
117
+ background: linear-gradient(145deg, #f8f4ed 0%, #f3ede2 100%);
118
+ backdrop-filter: blur(8px);
119
+ padding: 22px;
120
+ border-radius: 14px;
121
+ margin-top: 28px;
122
+ color: #3d2914;
123
+ border: 1px solid #ddd0b8;
124
+ box-shadow: inset 0 2px 4px rgba(139, 69, 19, 0.08);
125
+ }
126
+
127
+ /* Display areas - Clean manuscript pages */
128
+ #stages-display {
129
+ background: linear-gradient(to bottom, #ffffff 0%, #fdfcfa 100%);
130
+ padding: 35px 40px;
131
+ border-radius: 16px;
132
+ max-height: 680px;
133
+ overflow-y: auto;
134
+ box-shadow: 0 8px 25px rgba(139, 69, 19, 0.08),
135
+ inset 0 1px 3px rgba(255, 255, 255, 0.9);
136
+ color: #3d2914;
137
+ border: 1px solid #e8dcc6;
138
+ font-family: 'Georgia', serif;
139
+ line-height: 1.8;
140
+ }
141
+
142
+ #novel-output {
143
+ background: linear-gradient(to bottom, #ffffff 0%, #fdfcfa 100%);
144
+ padding: 45px 50px;
145
+ border-radius: 16px;
146
+ max-height: 780px;
147
+ overflow-y: auto;
148
+ box-shadow: 0 10px 30px rgba(139, 69, 19, 0.1),
149
+ inset 0 1px 3px rgba(255, 255, 255, 0.9);
150
+ color: #2c1810;
151
+ line-height: 2.1;
152
+ font-size: 1.05em;
153
+ border: 1px solid #e8dcc6;
154
+ font-family: 'Georgia', serif;
155
+ }
156
+
157
+ /* Typography enhancements */
158
+ #novel-output h1, #novel-output h2, #novel-output h3 {
159
+ color: #2c1810;
160
+ font-family: 'Playfair Display', 'Georgia', serif;
161
+ margin-top: 30px;
162
+ margin-bottom: 20px;
163
+ }
164
+
165
+ #novel-output blockquote {
166
+ border-left: 3px solid #d4a574;
167
+ padding-left: 20px;
168
+ margin: 20px 0;
169
+ font-style: italic;
170
+ color: #5a453a;
171
+ }
172
+
173
+ /* Download section - Book binding style */
174
+ .download-section {
175
+ background: linear-gradient(145deg, #faf6f0 0%, #f5efe6 100%);
176
+ padding: 24px;
177
+ border-radius: 14px;
178
+ margin-top: 28px;
179
+ box-shadow: 0 5px 15px rgba(139, 69, 19, 0.08);
180
+ border: 1px solid #e8dcc6;
181
+ }
182
+
183
+ /* Progress bar - Vintage style */
184
+ .progress-bar {
185
+ background-color: #f0e6d6;
186
+ height: 28px;
187
+ border-radius: 14px;
188
+ overflow: hidden;
189
+ margin: 18px 0;
190
+ box-shadow: inset 0 3px 6px rgba(139, 69, 19, 0.15);
191
+ border: 1px solid #e0d0b8;
192
+ }
193
+
194
+ .progress-fill {
195
+ background: linear-gradient(90deg, #d4a574 0%, #c8995d 50%, #d4a574 100%);
196
+ height: 100%;
197
+ transition: width 0.6s ease;
198
+ box-shadow: 0 2px 8px rgba(212, 165, 116, 0.4);
199
+ }
200
+
201
+ /* Custom scrollbar - Antique style */
202
+ ::-webkit-scrollbar {
203
+ width: 12px;
204
+ }
205
+
206
+ ::-webkit-scrollbar-track {
207
+ background: #f5f0e6;
208
+ border-radius: 6px;
209
+ box-shadow: inset 0 0 3px rgba(139, 69, 19, 0.1);
210
+ }
211
+
212
+ ::-webkit-scrollbar-thumb {
213
+ background: linear-gradient(180deg, #d4a574, #c19656);
214
+ border-radius: 6px;
215
+ box-shadow: 0 2px 4px rgba(139, 69, 19, 0.2);
216
+ }
217
+
218
+ ::-webkit-scrollbar-thumb:hover {
219
+ background: linear-gradient(180deg, #c19656, #b08648);
220
+ }
221
+
222
+ /* Button styling - Vintage typewriter keys */
223
+ .gr-button {
224
+ background: linear-gradient(145deg, #faf8f5 0%, #f0e8dc 100%);
225
+ border: 1px solid #d4a574;
226
+ color: #3d2914;
227
+ font-weight: 600;
228
+ box-shadow: 0 3px 8px rgba(139, 69, 19, 0.15),
229
+ inset 0 1px 2px rgba(255, 255, 255, 0.8);
230
+ transition: all 0.3s ease;
231
+ font-family: 'Georgia', serif;
232
+ }
233
+
234
+ .gr-button:hover {
235
+ transform: translateY(-2px);
236
+ box-shadow: 0 5px 12px rgba(139, 69, 19, 0.2),
237
+ inset 0 1px 3px rgba(255, 255, 255, 0.9);
238
+ background: linear-gradient(145deg, #fdfbf8 0%, #f3ebe0 100%);
239
+ }
240
+
241
+ .gr-button:active {
242
+ transform: translateY(0);
243
+ box-shadow: 0 2px 5px rgba(139, 69, 19, 0.15),
244
+ inset 0 1px 2px rgba(139, 69, 19, 0.1);
245
+ }
246
+
247
+ /* Primary button - Gold accent */
248
+ .gr-button.primary, button[variant="primary"] {
249
+ background: linear-gradient(145deg, #e4c896 0%, #d4a574 100%);
250
+ border: 1px solid #c19656;
251
+ color: #2c1810;
252
+ font-weight: 700;
253
+ }
254
+
255
+ .gr-button.primary:hover, button[variant="primary"]:hover {
256
+ background: linear-gradient(145deg, #e8d0a4 0%, #ddb280 100%);
257
+ }
258
+
259
+ /* Secondary button - Deep brown */
260
+ .gr-button.secondary, button[variant="secondary"] {
261
+ background: linear-gradient(145deg, #8b6239 0%, #6d4e31 100%);
262
+ border: 1px solid #5a3e28;
263
+ color: #faf8f5;
264
+ }
265
+
266
+ .gr-button.secondary:hover, button[variant="secondary"]:hover {
267
+ background: linear-gradient(145deg, #96693f 0%, #785436 100%);
268
+ }
269
+
270
+ /* Input fields - Parchment style */
271
+ input[type="text"], textarea, .gr-textbox textarea {
272
+ background: #fffefa;
273
+ border: 1px solid #d4c4b0;
274
+ color: #3d2914;
275
+ font-family: 'Georgia', serif;
276
+ box-shadow: inset 0 2px 4px rgba(139, 69, 19, 0.05);
277
+ }
278
+
279
+ input[type="text"]:focus, textarea:focus, .gr-textbox textarea:focus {
280
+ border-color: #c19656;
281
+ box-shadow: 0 0 0 2px rgba(212, 165, 116, 0.2),
282
+ inset 0 2px 4px rgba(139, 69, 19, 0.05);
283
+ outline: none;
284
+ }
285
+
286
+ /* Tab styling - Book chapters */
287
+ .gr-tab-button {
288
+ background: #f5f0e6;
289
+ border: 1px solid #d4c4b0;
290
+ color: #5a453a;
291
+ font-weight: 600;
292
+ }
293
+
294
+ .gr-tab-button.selected {
295
+ background: linear-gradient(145deg, #ffffff 0%, #fdfcf8 100%);
296
+ border-bottom-color: transparent;
297
+ color: #2c1810;
298
+ box-shadow: 0 -2px 8px rgba(139, 69, 19, 0.1);
299
+ }
300
+
301
+ /* Dropdown styling */
302
+ select, .gr-dropdown {
303
+ background: #fffefa;
304
+ border: 1px solid #d4c4b0;
305
+ color: #3d2914;
306
+ }
307
+
308
+ /* Radio button styling */
309
+ .gr-radio-group {
310
+ background: transparent;
311
+ }
312
+
313
+ .gr-radio-group label {
314
+ color: #3d2914;
315
+ }
316
+
317
+ /* Examples section */
318
+ .gr-examples {
319
+ background: #f8f4ed;
320
+ border: 1px solid #e8dcc6;
321
+ border-radius: 12px;
322
+ padding: 20px;
323
+ margin-top: 20px;
324
+ }
325
+
326
+ /* Loading animation - Typewriter effect */
327
+ @keyframes typewriter {
328
+ from { width: 0; }
329
+ to { width: 100%; }
330
+ }
331
+
332
+ .typing-indicator {
333
+ overflow: hidden;
334
+ border-right: 3px solid #3d2914;
335
+ white-space: nowrap;
336
+ animation: typewriter 3s steps(40, end);
337
+ }
338
+
339
+ /* Markdown content styling */
340
+ .markdown-text h1, .markdown-text h2, .markdown-text h3 {
341
+ color: #2c1810;
342
+ font-family: 'Playfair Display', 'Georgia', serif;
343
+ }
344
+
345
+ .markdown-text p {
346
+ color: #3d2914;
347
+ line-height: 1.8;
348
+ }
349
+
350
+ .markdown-text code {
351
+ background: #f5f0e6;
352
+ padding: 2px 6px;
353
+ border-radius: 4px;
354
+ font-family: 'Courier New', monospace;
355
+ color: #5a453a;
356
+ }
357
+
358
+ /* File component styling */
359
+ .gr-file {
360
+ background: #faf8f5;
361
+ border: 1px solid #d4c4b0;
362
+ border-radius: 8px;
363
+ }
364
+
365
+ /* Status text special styling */
366
+ #status_text textarea {
367
+ background: linear-gradient(145deg, #fff9e6 0%, #fff5d6 100%);
368
+ border: 2px solid #d4a574;
369
+ font-weight: 600;
370
+ text-align: center;
371
+ }
372
+
373
+ /* Theme Library Styles - Simplified card design */
374
+ .library-stats {
375
+ display: flex;
376
+ justify-content: space-around;
377
+ margin-bottom: 30px;
378
+ padding: 20px;
379
+ background: linear-gradient(145deg, #f8f4ed 0%, #f3ede2 100%);
380
+ border-radius: 12px;
381
+ box-shadow: 0 4px 12px rgba(139, 69, 19, 0.08);
382
+ }
383
+
384
+ .stat-item {
385
+ text-align: center;
386
+ }
387
+
388
+ .stat-label {
389
+ display: block;
390
+ font-size: 0.9em;
391
+ color: #5a453a;
392
+ margin-bottom: 5px;
393
+ }
394
+
395
+ .stat-value {
396
+ display: block;
397
+ font-size: 2em;
398
+ font-weight: bold;
399
+ color: #2c1810;
400
+ font-family: 'Playfair Display', 'Georgia', serif;
401
+ }
402
+
403
+ .theme-cards-grid {
404
+ display: grid;
405
+ grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
406
+ gap: 25px;
407
+ padding: 20px;
408
+ }
409
+
410
+ .theme-card {
411
+ background: linear-gradient(145deg, #ffffff 0%, #fdfcf8 100%);
412
+ border: 1px solid #e8dcc6;
413
+ border-radius: 12px;
414
+ padding: 0;
415
+ box-shadow: 0 4px 12px rgba(139, 69, 19, 0.06);
416
+ transition: all 0.3s ease;
417
+ position: relative;
418
+ overflow: hidden;
419
+ display: flex;
420
+ flex-direction: column;
421
+ height: 450px; /* Reduced height */
422
+ }
423
+
424
+ .theme-card:hover {
425
+ transform: translateY(-3px);
426
+ box-shadow: 0 6px 20px rgba(139, 69, 19, 0.12);
427
+ }
428
+
429
+ .theme-card-header {
430
+ display: flex;
431
+ justify-content: space-between;
432
+ align-items: center;
433
+ padding: 15px 20px;
434
+ border-bottom: 1px solid #e8dcc6;
435
+ background: linear-gradient(145deg, #faf6f0 0%, #f5efe6 100%);
436
+ flex-shrink: 0;
437
+ }
438
+
439
+ .theme-id {
440
+ font-family: 'Courier New', monospace;
441
+ color: #8b6239;
442
+ font-size: 0.85em;
443
+ font-weight: bold;
444
+ }
445
+
446
+ .theme-timestamp {
447
+ font-size: 0.8em;
448
+ color: #8a7968;
449
+ }
450
+
451
+ .theme-card-content {
452
+ flex: 1;
453
+ overflow-y: auto;
454
+ padding: 20px;
455
+ background: #fffefa;
456
+ }
457
+
458
+ /* Custom scrollbar for theme content */
459
+ .theme-card-content::-webkit-scrollbar {
460
+ width: 6px;
461
+ }
462
+
463
+ .theme-card-content::-webkit-scrollbar-track {
464
+ background: #f5f0e6;
465
+ border-radius: 3px;
466
+ }
467
+
468
+ .theme-card-content::-webkit-scrollbar-thumb {
469
+ background: #d4a574;
470
+ border-radius: 3px;
471
+ }
472
+
473
+ .theme-card-content::-webkit-scrollbar-thumb:hover {
474
+ background: #c19656;
475
+ }
476
+
477
+ .theme-full-text {
478
+ font-family: 'Georgia', serif;
479
+ line-height: 1.8;
480
+ color: #3d2914;
481
+ margin-bottom: 15px;
482
+ font-size: 0.95em;
483
+ text-align: justify;
484
+ }
485
+
486
+ .theme-tags {
487
+ display: flex;
488
+ flex-wrap: wrap;
489
+ gap: 6px;
490
+ margin-top: 15px;
491
+ padding-top: 15px;
492
+ border-top: 1px solid #e8dcc6;
493
+ }
494
+
495
+ .theme-tag {
496
+ display: inline-block;
497
+ padding: 4px 12px;
498
+ background: #f0e6d6;
499
+ border-radius: 15px;
500
+ font-size: 0.75em;
501
+ color: #6d4e31;
502
+ border: 1px solid #d4c4b0;
503
+ }
504
+
505
+ .theme-card-footer {
506
+ display: flex;
507
+ justify-content: space-between;
508
+ align-items: center;
509
+ padding: 15px 20px;
510
+ border-top: 1px solid #e8dcc6;
511
+ background: linear-gradient(145deg, #faf6f0 0%, #f5efe6 100%);
512
+ flex-shrink: 0;
513
+ }
514
+
515
+ .theme-stats {
516
+ display: flex;
517
+ gap: 15px;
518
+ }
519
+
520
+ .theme-stat {
521
+ font-size: 0.85em;
522
+ color: #8a7968;
523
+ }
524
+
525
+ .theme-action-btn {
526
+ padding: 8px 20px;
527
+ font-size: 0.9em;
528
+ border-radius: 6px;
529
+ border: 1px solid #d4a574;
530
+ background: linear-gradient(145deg, #e4c896 0%, #d4a574 100%);
531
+ color: #2c1810;
532
+ cursor: pointer;
533
+ transition: all 0.2s ease;
534
+ font-family: 'Georgia', serif;
535
+ font-weight: bold;
536
+ }
537
+
538
+ .theme-action-btn:hover {
539
+ background: linear-gradient(145deg, #e8d0a4 0%, #ddb280 100%);
540
+ transform: translateY(-1px);
541
+ box-shadow: 0 3px 8px rgba(212, 165, 116, 0.3);
542
+ }
543
+
544
+ .use-btn {
545
+ background: linear-gradient(145deg, #e4c896 0%, #d4a574 100%);
546
+ font-weight: bold;
547
+ }
548
+
549
+ .empty-library {
550
+ text-align: center;
551
+ padding: 60px 20px;
552
+ color: #5a453a;
553
+ font-size: 1.1em;
554
+ font-style: italic;
555
+ }
556
+
557
+ /* Responsive design */
558
+ @media (max-width: 768px) {
559
+ .theme-cards-grid {
560
+ grid-template-columns: 1fr;
561
+ }
562
+
563
+ .theme-card {
564
+ height: 400px;
565
+ }
566
+ }