Menixis Claude Opus 4.7 (1M context) commited on
Commit
3036e5d
·
1 Parent(s): b1eb504

Apply neon-indigo theme: gradient buttons, bright-yellow warning alert

Browse files

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

Files changed (3) hide show
  1. .streamlit/config.toml +2 -2
  2. note.md +9 -9
  3. streamlit_app.py +104 -93
.streamlit/config.toml CHANGED
@@ -1,7 +1,7 @@
1
  [theme]
2
  base = "dark"
3
- primaryColor = "#6B5BA8"
4
- backgroundColor = "#2A2342"
5
  secondaryBackgroundColor = "#352C54"
6
  textColor = "#F4F1FA"
7
  font = "sans serif"
 
1
  [theme]
2
  base = "dark"
3
+ primaryColor = "#7C5CFF"
4
+ backgroundColor = "#1E1A3C"
5
  secondaryBackgroundColor = "#352C54"
6
  textColor = "#F4F1FA"
7
  font = "sans serif"
note.md CHANGED
@@ -15,15 +15,15 @@ vendor name, job title, etc., then renders a downloadable document.
15
  - **Live deployment:** Hugging Face Space **`Menixis/auto-form`** (private).
16
  URL: https://huggingface.co/spaces/Menixis/auto-form
17
  - **SDK:** Docker (see `Dockerfile`), Streamlit on **port 7860** (HF convention).
18
- - **Theme:** "Indigo Dusk" dark theme (deep indigo-purple bg, panel-purple cards) with a
19
- flat single-tone cream accent (`#EFD2A0`) on the hero card, primary/download/PO-search
20
- buttons and the active step — all with purple (`#4A3D78`) text/icons. The hero card is
21
- styled as a **ticket/receipt**: a left-aligned "PTT DOCUMENTS GENERATOR" pill in the stub,
22
- a bold dashed perforation, and two semicircular edge notches punched as TRUE transparent
23
- holes via CSS `mask` (so the page background shows through them exactly — no colour
24
- seam). AUTO FORM title + subtitle are left-aligned; all content is vertically balanced.
25
- Lavender is the secondary accent, mint = success. Minimalist: flat accents, no glow
26
- auras. No sidebar.
27
  Data loads silently
28
  — no data-source bar and no manual upload UI (the app does not tell users where the
29
  data comes from).
 
15
  - **Live deployment:** Hugging Face Space **`Menixis/auto-form`** (private).
16
  URL: https://huggingface.co/spaces/Menixis/auto-form
17
  - **SDK:** Docker (see `Dockerfile`), Streamlit on **port 7860** (HF convention).
18
+ - **Theme:** "Neon Indigo" dark dashboard theme (deep indigo bg `#262150`→`#191730`, panel-
19
+ purple cards) with a vibrant **violet→magenta gradient** (`#7C5CFF → #FF4D8D`) as the primary
20
+ accent on the hero card, primary/download/PO-search buttons and the active step — all with
21
+ white text/icons and a soft glow. **Cyan** (`#22D3EE`) marks success/done; light-violet
22
+ (`#C9B7FF`) is the secondary text accent. The hero card is styled as a **ticket/receipt**: a
23
+ left-aligned "PTT DOCUMENTS GENERATOR" pill in the stub, a bold dashed perforation (light),
24
+ and two semicircular edge notches punched as TRUE transparent holes via CSS `mask` (so the
25
+ page background shows through them exactly — no colour seam). AUTO FORM title + subtitle are
26
+ left-aligned; all content is vertically balanced. Buttons are gradient pills. No sidebar.
27
  Data loads silently
28
  — no data-source bar and no manual upload UI (the app does not tell users where the
29
  data comes from).
streamlit_app.py CHANGED
@@ -141,15 +141,15 @@ st.markdown("""
141
 
142
  <style>
143
  /* ─── COLORS ─────────────────────────────────────────────────────
144
- Page bg : #2A2342 (deep indigo-purple)
145
  Card surface : #352C54 (panel purple)
146
  Field bg : #2C244A (indented input)
147
  Text primary : #F4F1FA (near-white lavender)
148
  Text label : #C5BEDC (light lavender)
149
  Text muted : #8E86AC (muted lavender)
150
- Primary action: #6B5BA8 (lavender)
151
- Accent peach : #F2D3A0 (warm receipt sand)
152
- Done (success): #7FD4A8 (mint)
153
  Border : rgba(255, 255, 255, 0.08)
154
  ──────────────────────────────────────────────────────────────── */
155
 
@@ -166,9 +166,9 @@ st.markdown("""
166
  below it.) */
167
  html {
168
  background:
169
- radial-gradient(at 18% 8%, rgba(123, 107, 184, 0.16) 0px, transparent 55%),
170
- radial-gradient(at 85% 92%, rgba(242, 211, 160, 0.08) 0px, transparent 55%),
171
- linear-gradient(180deg, #2E2748 0%, #221C38 100%) !important;
172
  background-attachment: fixed !important;
173
  }
174
  .stApp { background: transparent !important; }
@@ -178,14 +178,14 @@ st.markdown("""
178
  white track color (unreachable by ::-webkit-scrollbar-track), showing as a
179
  white bar. Just a normal right scrollbar with a transparent track + soft
180
  coral thumb, so there is no white bar on either side. */
181
- html { scrollbar-color: rgba(123, 107, 184, 0.45) transparent; scrollbar-width: thin; }
182
  ::-webkit-scrollbar { width: 10px; height: 10px; }
183
  ::-webkit-scrollbar-track { background: transparent; }
184
  ::-webkit-scrollbar-thumb {
185
- background: rgba(123, 107, 184, 0.45);
186
  border-radius: 8px;
187
  }
188
- ::-webkit-scrollbar-thumb:hover { background: rgba(123, 107, 184, 0.65); }
189
 
190
  /* Hide Streamlit chrome */
191
  [data-testid="stToolbar"] { visibility: hidden; height: 0; position: fixed; }
@@ -243,8 +243,8 @@ st.markdown("""
243
  to { opacity: 1; transform: translateY(0); }
244
  }
245
  @keyframes pulse {
246
- 0%, 100% { box-shadow: 0 0 0 0 rgba(227, 184, 113, 0.4); }
247
- 50% { box-shadow: 0 0 0 7px rgba(227, 184, 113, 0); }
248
  }
249
  @keyframes blob {
250
  0%, 100% { transform: translate(0, 0) scale(1); }
@@ -277,10 +277,10 @@ st.markdown("""
277
  becomes a hole (default "add" would cancel them out). */
278
  .hero {
279
  position: relative;
280
- background: #EFD2A0;
281
  padding: 0.875rem 2.5rem 1.25rem;
282
  border-radius: 24px;
283
- color: #4A3D78;
284
  margin-bottom: 2rem;
285
  overflow: hidden;
286
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.10);
@@ -302,7 +302,7 @@ st.markdown("""
302
  right: 18px;
303
  height: 4px;
304
  background-image: repeating-linear-gradient(to right,
305
- #2A2342 0, #2A2342 22px,
306
  transparent 22px, transparent 38px);
307
  pointer-events: none;
308
  }
@@ -311,9 +311,9 @@ st.markdown("""
311
  display: inline-flex;
312
  align-items: center;
313
  gap: 0.4rem;
314
- background: rgba(50, 44, 82, 0.92);
315
- border: 1px solid rgba(50, 44, 82, 0.5);
316
- color: #F5DEAC;
317
  padding: 0.3rem 0.78rem;
318
  border-radius: 999px;
319
  font-size: 0.66rem;
@@ -323,7 +323,7 @@ st.markdown("""
323
  text-transform: uppercase;
324
  }
325
  .hero .hero-title {
326
- color: #4A3D78 !important;
327
  text-align: left !important;
328
  font-size: 2.2rem !important;
329
  font-weight: 800 !important;
@@ -333,7 +333,7 @@ st.markdown("""
333
  text-transform: uppercase !important;
334
  }
335
  .hero .hero-subtitle {
336
- color: rgba(74, 61, 120, 0.85) !important;
337
  text-align: left !important;
338
  font-size: 0.92rem !important;
339
  font-weight: 400 !important;
@@ -365,20 +365,20 @@ st.markdown("""
365
  border: 2px solid rgba(255, 255, 255, 0.12);
366
  }
367
  .step-active .step-circle {
368
- background: #EFD2A0;
369
- color: #4A3D78;
370
- box-shadow: none;
371
  animation: stepBreathe 2.6s ease-in-out infinite;
372
  }
373
  .step-done .step-circle {
374
- background: linear-gradient(135deg, #A8E6C6 0%, #5FB890 100%);
375
  color: white;
376
- box-shadow: 0 4px 12px rgba(127, 212, 168, 0.35);
377
  animation: stepPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
378
  }
379
  .step-label { font-size: 0.85rem; font-weight: 500; color: #8E86AC; white-space: nowrap; }
380
- .step-active .step-label { color: #EFD2A0; font-weight: 600; }
381
- .step-done .step-label { color: #7FD4A8; font-weight: 600; }
382
 
383
  .step-bar {
384
  flex: 1; height: 3px;
@@ -388,14 +388,14 @@ st.markdown("""
388
  }
389
  .step-bar-fill {
390
  position: absolute; inset: 0;
391
- background: #EFD2A0;
392
  transform-origin: left;
393
  transition: transform 0.5s ease;
394
  }
395
  .step-bar-fill.empty { transform: scaleX(0); }
396
  .step-bar-fill.full {
397
  transform: scaleX(1);
398
- background: #EFD2A0;
399
  animation: growX 0.6s cubic-bezier(0.65, 0, 0.35, 1) 0.1s both;
400
  }
401
 
@@ -410,8 +410,8 @@ st.markdown("""
410
  display: flex; align-items: center; justify-content: center;
411
  font-size: 1.25rem;
412
  }
413
- .card-icon-1 { background: linear-gradient(135deg, rgba(123, 107, 184, 0.3) 0%, rgba(123, 107, 184, 0.18) 100%); }
414
- .card-icon-2 { background: linear-gradient(135deg, rgba(242, 211, 160, 0.28) 0%, rgba(242, 211, 160, 0.16) 100%); }
415
  .card-title {
416
  font-size: 1.1rem; font-weight: 700; color: #F4F1FA; margin: 0; line-height: 1.2;
417
  }
@@ -439,8 +439,8 @@ st.markdown("""
439
 
440
  /* ─── VENDOR CARDS ───────────────────────────────────────────── */
441
  .vendor-card {
442
- background: linear-gradient(135deg, rgba(242, 211, 160, 0.12) 0%, rgba(242, 211, 160, 0.06) 100%);
443
- border: 1px solid rgba(242, 211, 160, 0.22);
444
  padding: 1rem 1.25rem;
445
  border-radius: 14px;
446
  margin: 0.6rem 0;
@@ -450,19 +450,19 @@ st.markdown("""
450
  }
451
  .vendor-card:hover {
452
  transform: translateX(2px);
453
- box-shadow: 0 4px 16px rgba(242, 211, 160, 0.12);
454
  }
455
  .vendor-card::before {
456
  content: "";
457
  position: absolute;
458
  left: 0; top: 0; bottom: 0;
459
  width: 4px;
460
- background: linear-gradient(180deg, #F2D3A0 0%, #E9C088 100%);
461
  }
462
  .vendor-card-label {
463
  font-size: 0.7rem;
464
  text-transform: uppercase;
465
- color: #F2D3A0;
466
  font-weight: 700;
467
  letter-spacing: 0.06em;
468
  margin-bottom: 0.4rem;
@@ -477,33 +477,33 @@ st.markdown("""
477
 
478
  /* ─── BUTTONS ────────────────────────────────────────────────── */
479
  .stButton button[kind="primary"] {
480
- background: #EFD2A0 !important;
481
  border: none !important;
482
- color: #4A3D78 !important;
483
- box-shadow: none !important;
484
  font-weight: 700 !important;
485
  height: 3.25rem !important;
486
  font-size: 1.05rem !important;
487
  transition: all 0.3s ease !important;
488
- border-radius: 12px !important;
489
  }
490
  .stButton button[kind="primary"]:hover {
491
  transform: translateY(-1px);
492
- box-shadow: none !important;
493
- background: #E7C690 !important;
494
  }
495
  .stButton button[kind="secondary"] {
496
- background: rgba(123, 107, 184, 0.08) !important;
497
- border: 1.5px solid rgba(123, 107, 184, 0.3) !important;
498
- color: #C3B6EC !important;
499
  font-weight: 600 !important;
500
  height: 3rem !important;
501
- border-radius: 12px !important;
502
  transition: all 0.2s ease !important;
503
  }
504
  .stButton button[kind="secondary"]:hover {
505
- background: rgba(123, 107, 184, 0.15) !important;
506
- border-color: #6B5BA8 !important;
507
  transform: translateY(-1px);
508
  }
509
  /* PO lookup button — match the PO input height (both pinned to 3rem via their
@@ -519,20 +519,20 @@ st.markdown("""
519
  height: 3rem !important;
520
  }
521
  .stDownloadButton button {
522
- background: #EFD2A0 !important;
523
- color: #4A3D78 !important;
524
  border: none !important;
525
- box-shadow: none !important;
526
  font-weight: 700 !important;
527
  height: 3.25rem !important;
528
  font-size: 1.05rem !important;
529
- border-radius: 12px !important;
530
  transition: all 0.3s ease !important;
531
  }
532
  .stDownloadButton button:hover {
533
  transform: translateY(-1px);
534
- box-shadow: none !important;
535
- background: #E7C690 !important;
536
  }
537
  /* Cream buttons render their label inside a stMarkdownContainer <p>, which the
538
  global markdown rule forces to light text. Re-assert purple on the label text
@@ -541,7 +541,7 @@ st.markdown("""
541
  .stButton button[kind="primary"] [data-testid="stMarkdownContainer"] span,
542
  .stDownloadButton button [data-testid="stMarkdownContainer"] p,
543
  .stDownloadButton button [data-testid="stMarkdownContainer"] span {
544
- color: #4A3D78 !important;
545
  }
546
 
547
  /* ─── INPUTS — bulletproof dark styling ──────────────────────── */
@@ -560,7 +560,7 @@ st.markdown("""
560
  [data-baseweb="base-input"] > div {
561
  background-color: #2C244A !important; /* soft off-white field */
562
  background: #2C244A !important;
563
- border: 1.5px solid rgba(123, 107, 184, 0.25) !important;
564
  border-radius: 12px !important;
565
  color: #F4F1FA !important;
566
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25) !important; /* subtle inner shadow */
@@ -582,7 +582,7 @@ st.markdown("""
582
  font-size: 0.95rem !important;
583
  font-weight: 500 !important; /* typed text — clearly bolder */
584
  border: none !important;
585
- caret-color: #6B5BA8 !important;
586
  font-style: normal !important;
587
  }
588
 
@@ -614,9 +614,9 @@ st.markdown("""
614
  [data-testid="stTextInput"] > div > div:focus-within,
615
  [data-baseweb="input"]:focus-within,
616
  [data-baseweb="base-input"]:focus-within {
617
- border-color: #6B5BA8 !important;
618
  box-shadow:
619
- 0 0 0 4px rgba(123, 107, 184, 0.25),
620
  inset 0 1px 2px rgba(0, 0, 0, 0.04) !important;
621
  background-color: #3E3563 !important;
622
  background: #3E3563 !important;
@@ -632,7 +632,7 @@ st.markdown("""
632
  [data-baseweb="select"] > div > div {
633
  background-color: #2C244A !important;
634
  background: #2C244A !important;
635
- border: 1.5px solid rgba(123, 107, 184, 0.25) !important;
636
  border-radius: 12px !important;
637
  color: #F4F1FA !important;
638
  }
@@ -670,7 +670,7 @@ st.markdown("""
670
  /* The single rounded frame: the listbox container only */
671
  html body [data-baseweb="popover"] [role="listbox"],
672
  [role="listbox"] {
673
- border: 1px solid rgba(123, 107, 184, 0.3) !important;
674
  border-radius: 12px !important;
675
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
676
  }
@@ -703,8 +703,8 @@ st.markdown("""
703
  html body [data-baseweb="popover"] li:hover,
704
  html body [role="option"]:hover,
705
  li[role="option"]:hover {
706
- background: rgba(123, 107, 184, 0.22) !important;
707
- background-color: rgba(123, 107, 184, 0.22) !important;
708
  color: #C3B6EC !important;
709
  }
710
  html body [data-baseweb="popover"] li:hover *,
@@ -717,8 +717,8 @@ st.markdown("""
717
  /* Selected option */
718
  html body [role="option"][aria-selected="true"],
719
  li[role="option"][aria-selected="true"] {
720
- background: rgba(123, 107, 184, 0.18) !important;
721
- background-color: rgba(123, 107, 184, 0.18) !important;
722
  color: #C3B6EC !important;
723
  }
724
 
@@ -730,7 +730,7 @@ st.markdown("""
730
  }
731
  [data-baseweb="popover"] ul::-webkit-scrollbar-thumb,
732
  [role="listbox"]::-webkit-scrollbar-thumb {
733
- background: rgba(123, 107, 184, 0.3);
734
  border-radius: 4px;
735
  }
736
 
@@ -741,7 +741,7 @@ st.markdown("""
741
  background-color: #2C244A !important;
742
  background: #2C244A !important;
743
  color: #F4F1FA !important;
744
- border: 1.5px solid rgba(123, 107, 184, 0.25) !important;
745
  border-radius: 12px !important;
746
  -webkit-text-fill-color: #F4F1FA !important;
747
  }
@@ -754,25 +754,25 @@ st.markdown("""
754
  }
755
  .stRadio [data-baseweb="radio"] div[role="radio"] {
756
  background-color: rgba(255, 255, 255, 0.05) !important;
757
- border-color: rgba(123, 107, 184, 0.4) !important;
758
  }
759
  .stRadio [data-baseweb="radio"] div[role="radio"][aria-checked="true"] {
760
- background-color: #6B5BA8 !important;
761
- border-color: #6B5BA8 !important;
762
  }
763
 
764
  /* File uploader */
765
  [data-testid="stFileUploader"] section,
766
  [data-testid="stFileUploader"] > div {
767
  background: rgba(255, 255, 255, 0.04) !important;
768
- border: 2px dashed rgba(123, 107, 184, 0.3) !important;
769
  border-radius: 14px !important;
770
  color: #F4F1FA !important;
771
  }
772
  [data-testid="stFileUploader"] button {
773
- background: rgba(123, 107, 184, 0.15) !important;
774
  color: #C3B6EC !important;
775
- border: 1px solid rgba(123, 107, 184, 0.3) !important;
776
  }
777
  [data-testid="stFileUploader"] small,
778
  [data-testid="stFileUploader"] span {
@@ -798,16 +798,27 @@ st.markdown("""
798
  backdrop-filter: blur(10px);
799
  }
800
  [data-testid="stNotificationContentSuccess"] {
801
- background: rgba(127, 212, 168, 0.15) !important;
802
- color: #7FD4A8 !important;
803
  }
804
  [data-testid="stNotificationContentInfo"] {
805
- background: rgba(123, 107, 184, 0.18) !important;
806
  color: #C3B6EC !important;
807
  }
808
- [data-testid="stNotificationContentWarning"] {
809
- background: rgba(242, 169, 62, 0.15) !important;
810
- color: #F2A93E !important;
 
 
 
 
 
 
 
 
 
 
 
811
  }
812
  [data-testid="stNotificationContentError"] {
813
  background: rgba(239, 68, 68, 0.18) !important;
@@ -821,7 +832,7 @@ st.markdown("""
821
  border-radius: 12px !important;
822
  color: #C5BEDC !important;
823
  font-weight: 600 !important;
824
- border: 1px solid rgba(123, 107, 184, 0.12) !important;
825
  }
826
  [data-testid="stExpander"] {
827
  background: transparent !important;
@@ -833,7 +844,7 @@ st.markdown("""
833
  }
834
  [data-testid="stExpander"] [data-testid="stExpanderDetails"] {
835
  background: rgba(255, 255, 255, 0.03) !important;
836
- border: 1px solid rgba(123, 107, 184, 0.1) !important;
837
  border-radius: 12px !important;
838
  padding: 1rem !important;
839
  margin-top: 0.5rem !important;
@@ -850,7 +861,7 @@ st.markdown("""
850
  .section-title::before {
851
  content: "";
852
  width: 4px; height: 18px;
853
- background: linear-gradient(180deg, #F2D3A0 0%, #E9C088 100%);
854
  border-radius: 2px;
855
  }
856
 
@@ -860,7 +871,7 @@ st.markdown("""
860
  padding: 2rem 1rem;
861
  background: rgba(255, 255, 255, 0.03);
862
  border-radius: 14px;
863
- border: 2px dashed rgba(123, 107, 184, 0.2);
864
  margin: 1rem 0;
865
  }
866
  .empty-state-icon { margin-bottom: 0.75rem; opacity: 0.7; line-height: 0; }
@@ -870,7 +881,7 @@ st.markdown("""
870
  hr {
871
  border: none !important;
872
  height: 1px !important;
873
- background: linear-gradient(90deg, transparent 0%, rgba(123, 107, 184, 0.25) 50%, transparent 100%) !important;
874
  margin: 1rem 0 !important;
875
  }
876
 
@@ -883,17 +894,17 @@ st.markdown("""
883
  .stMarkdown, .stMarkdown p, [data-testid="stMarkdownContainer"] {
884
  color: #F4F1FA !important;
885
  }
886
- .stMarkdown strong { color: #F2D3A0 !important; }
887
  .stMarkdown code {
888
- background: rgba(242, 211, 160, 0.14) !important;
889
- color: #F2D3A0 !important;
890
  padding: 0.15rem 0.45rem !important;
891
  border-radius: 6px !important;
892
  }
893
 
894
  /* Spinner */
895
  .stSpinner > div {
896
- border-top-color: #6B5BA8 !important;
897
  }
898
  </style>
899
  """, unsafe_allow_html=True)
@@ -1115,7 +1126,7 @@ with left_col:
1115
  st.markdown("""
1116
  <div class="empty-state">
1117
  <div class="empty-state-icon">
1118
- <svg width="56" height="56" viewBox="0 0 24 24" fill="none" stroke="#F2D3A0" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round">
1119
  <circle cx="11" cy="11" r="7"></circle>
1120
  <line x1="21" y1="21" x2="16.65" y2="16.65"></line>
1121
  </svg>
@@ -1229,14 +1240,14 @@ with right_col:
1229
  if st.session_state.generated_file:
1230
  st.markdown("<div style='height: 0.75rem;'></div>", unsafe_allow_html=True)
1231
  st.markdown("""
1232
- <div style="background: linear-gradient(135deg, rgba(127, 212, 168, 0.16) 0%, rgba(127, 212, 168, 0.10) 100%);
1233
- border: 1px solid rgba(127, 212, 168, 0.4); padding: 0.85rem 1rem; border-radius: 14px;
1234
  margin-bottom: 0.75rem;">
1235
  <div style="display: flex; align-items: center; gap: 0.5rem;">
1236
- <span style="background: linear-gradient(135deg, #7FD4A8, #5FB890); color: white; width: 24px; height: 24px;
1237
  border-radius: 50%; display: inline-flex; align-items: center;
1238
  justify-content: center; font-size: 0.85rem;">✓</span>
1239
- <span style="font-weight: 600; color: #7FD4A8;">สร้างเอกสารสำเร็จ!</span>
1240
  </div>
1241
  </div>
1242
  """, unsafe_allow_html=True)
 
141
 
142
  <style>
143
  /* ─── COLORS ─────────────────────────────────────────────────────
144
+ Page bg : #262150 → #191730 (deep indigo, vibrant)
145
  Card surface : #352C54 (panel purple)
146
  Field bg : #2C244A (indented input)
147
  Text primary : #F4F1FA (near-white lavender)
148
  Text label : #C5BEDC (light lavender)
149
  Text muted : #8E86AC (muted lavender)
150
+ Primary action: linear-gradient #7C5CFF → #FF4D8D (violet→magenta)
151
+ Accent violet : #7C5CFF Accent magenta: #FF4D8D
152
+ Accent cyan : #22D3EE (also success/done)
153
  Border : rgba(255, 255, 255, 0.08)
154
  ──────────────────────────────────────────────────────────────── */
155
 
 
166
  below it.) */
167
  html {
168
  background:
169
+ radial-gradient(at 18% 8%, rgba(124, 92, 255, 0.16) 0px, transparent 55%),
170
+ radial-gradient(at 85% 92%, rgba(255, 77, 141, 0.10) 0px, transparent 55%),
171
+ linear-gradient(180deg, #262150 0%, #191730 100%) !important;
172
  background-attachment: fixed !important;
173
  }
174
  .stApp { background: transparent !important; }
 
178
  white track color (unreachable by ::-webkit-scrollbar-track), showing as a
179
  white bar. Just a normal right scrollbar with a transparent track + soft
180
  coral thumb, so there is no white bar on either side. */
181
+ html { scrollbar-color: rgba(124, 92, 255, 0.45) transparent; scrollbar-width: thin; }
182
  ::-webkit-scrollbar { width: 10px; height: 10px; }
183
  ::-webkit-scrollbar-track { background: transparent; }
184
  ::-webkit-scrollbar-thumb {
185
+ background: rgba(124, 92, 255, 0.45);
186
  border-radius: 8px;
187
  }
188
+ ::-webkit-scrollbar-thumb:hover { background: rgba(124, 92, 255, 0.65); }
189
 
190
  /* Hide Streamlit chrome */
191
  [data-testid="stToolbar"] { visibility: hidden; height: 0; position: fixed; }
 
243
  to { opacity: 1; transform: translateY(0); }
244
  }
245
  @keyframes pulse {
246
+ 0%, 100% { box-shadow: 0 0 0 0 rgba(124, 92, 255, 0.4); }
247
+ 50% { box-shadow: 0 0 0 7px rgba(124, 92, 255, 0); }
248
  }
249
  @keyframes blob {
250
  0%, 100% { transform: translate(0, 0) scale(1); }
 
277
  becomes a hole (default "add" would cancel them out). */
278
  .hero {
279
  position: relative;
280
+ background: linear-gradient(135deg, #7C5CFF 0%, #FF4D8D 100%);
281
  padding: 0.875rem 2.5rem 1.25rem;
282
  border-radius: 24px;
283
+ color: #FFFFFF;
284
  margin-bottom: 2rem;
285
  overflow: hidden;
286
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.10);
 
302
  right: 18px;
303
  height: 4px;
304
  background-image: repeating-linear-gradient(to right,
305
+ rgba(255, 255, 255, 0.45) 0, rgba(255, 255, 255, 0.45) 22px,
306
  transparent 22px, transparent 38px);
307
  pointer-events: none;
308
  }
 
311
  display: inline-flex;
312
  align-items: center;
313
  gap: 0.4rem;
314
+ background: rgba(255, 255, 255, 0.18);
315
+ border: 1px solid rgba(255, 255, 255, 0.35);
316
+ color: #FFFFFF;
317
  padding: 0.3rem 0.78rem;
318
  border-radius: 999px;
319
  font-size: 0.66rem;
 
323
  text-transform: uppercase;
324
  }
325
  .hero .hero-title {
326
+ color: #FFFFFF !important;
327
  text-align: left !important;
328
  font-size: 2.2rem !important;
329
  font-weight: 800 !important;
 
333
  text-transform: uppercase !important;
334
  }
335
  .hero .hero-subtitle {
336
+ color: rgba(255, 255, 255, 0.9) !important;
337
  text-align: left !important;
338
  font-size: 0.92rem !important;
339
  font-weight: 400 !important;
 
365
  border: 2px solid rgba(255, 255, 255, 0.12);
366
  }
367
  .step-active .step-circle {
368
+ background: linear-gradient(135deg, #7C5CFF 0%, #FF4D8D 100%);
369
+ color: #FFFFFF;
370
+ box-shadow: 0 4px 12px rgba(124, 92, 255, 0.40);
371
  animation: stepBreathe 2.6s ease-in-out infinite;
372
  }
373
  .step-done .step-circle {
374
+ background: linear-gradient(135deg, #22D3EE 0%, #0EA5C0 100%);
375
  color: white;
376
+ box-shadow: 0 4px 12px rgba(34, 211, 238, 0.35);
377
  animation: stepPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
378
  }
379
  .step-label { font-size: 0.85rem; font-weight: 500; color: #8E86AC; white-space: nowrap; }
380
+ .step-active .step-label { color: #C9B7FF; font-weight: 600; }
381
+ .step-done .step-label { color: #22D3EE; font-weight: 600; }
382
 
383
  .step-bar {
384
  flex: 1; height: 3px;
 
388
  }
389
  .step-bar-fill {
390
  position: absolute; inset: 0;
391
+ background: linear-gradient(90deg, #7C5CFF 0%, #FF4D8D 100%);
392
  transform-origin: left;
393
  transition: transform 0.5s ease;
394
  }
395
  .step-bar-fill.empty { transform: scaleX(0); }
396
  .step-bar-fill.full {
397
  transform: scaleX(1);
398
+ background: linear-gradient(90deg, #7C5CFF 0%, #FF4D8D 100%);
399
  animation: growX 0.6s cubic-bezier(0.65, 0, 0.35, 1) 0.1s both;
400
  }
401
 
 
410
  display: flex; align-items: center; justify-content: center;
411
  font-size: 1.25rem;
412
  }
413
+ .card-icon-1 { background: linear-gradient(135deg, rgba(124, 92, 255, 0.3) 0%, rgba(124, 92, 255, 0.18) 100%); }
414
+ .card-icon-2 { background: linear-gradient(135deg, rgba(34, 211, 238, 0.28) 0%, rgba(34, 211, 238, 0.16) 100%); }
415
  .card-title {
416
  font-size: 1.1rem; font-weight: 700; color: #F4F1FA; margin: 0; line-height: 1.2;
417
  }
 
439
 
440
  /* ─── VENDOR CARDS ───────────────────────────────────────────── */
441
  .vendor-card {
442
+ background: linear-gradient(135deg, rgba(124, 92, 255, 0.14) 0%, rgba(255, 77, 141, 0.06) 100%);
443
+ border: 1px solid rgba(124, 92, 255, 0.25);
444
  padding: 1rem 1.25rem;
445
  border-radius: 14px;
446
  margin: 0.6rem 0;
 
450
  }
451
  .vendor-card:hover {
452
  transform: translateX(2px);
453
+ box-shadow: 0 4px 16px rgba(124, 92, 255, 0.18);
454
  }
455
  .vendor-card::before {
456
  content: "";
457
  position: absolute;
458
  left: 0; top: 0; bottom: 0;
459
  width: 4px;
460
+ background: linear-gradient(180deg, #7C5CFF 0%, #FF4D8D 100%);
461
  }
462
  .vendor-card-label {
463
  font-size: 0.7rem;
464
  text-transform: uppercase;
465
+ color: #C9B7FF;
466
  font-weight: 700;
467
  letter-spacing: 0.06em;
468
  margin-bottom: 0.4rem;
 
477
 
478
  /* ─── BUTTONS ────────────────────────────────────────────────── */
479
  .stButton button[kind="primary"] {
480
+ background: linear-gradient(135deg, #7C5CFF 0%, #FF4D8D 100%) !important;
481
  border: none !important;
482
+ color: #FFFFFF !important;
483
+ box-shadow: 0 4px 14px rgba(124, 92, 255, 0.35) !important;
484
  font-weight: 700 !important;
485
  height: 3.25rem !important;
486
  font-size: 1.05rem !important;
487
  transition: all 0.3s ease !important;
488
+ border-radius: 999px !important;
489
  }
490
  .stButton button[kind="primary"]:hover {
491
  transform: translateY(-1px);
492
+ box-shadow: 0 6px 20px rgba(255, 77, 141, 0.45) !important;
493
+ background: linear-gradient(135deg, #8B6BFF 0%, #FF5E9C 100%) !important;
494
  }
495
  .stButton button[kind="secondary"] {
496
+ background: rgba(124, 92, 255, 0.10) !important;
497
+ border: 1.5px solid rgba(124, 92, 255, 0.35) !important;
498
+ color: #C9B7FF !important;
499
  font-weight: 600 !important;
500
  height: 3rem !important;
501
+ border-radius: 999px !important;
502
  transition: all 0.2s ease !important;
503
  }
504
  .stButton button[kind="secondary"]:hover {
505
+ background: rgba(124, 92, 255, 0.15) !important;
506
+ border-color: #7C5CFF !important;
507
  transform: translateY(-1px);
508
  }
509
  /* PO lookup button — match the PO input height (both pinned to 3rem via their
 
519
  height: 3rem !important;
520
  }
521
  .stDownloadButton button {
522
+ background: linear-gradient(135deg, #7C5CFF 0%, #FF4D8D 100%) !important;
523
+ color: #FFFFFF !important;
524
  border: none !important;
525
+ box-shadow: 0 4px 14px rgba(124, 92, 255, 0.35) !important;
526
  font-weight: 700 !important;
527
  height: 3.25rem !important;
528
  font-size: 1.05rem !important;
529
+ border-radius: 999px !important;
530
  transition: all 0.3s ease !important;
531
  }
532
  .stDownloadButton button:hover {
533
  transform: translateY(-1px);
534
+ box-shadow: 0 6px 20px rgba(255, 77, 141, 0.45) !important;
535
+ background: linear-gradient(135deg, #8B6BFF 0%, #FF5E9C 100%) !important;
536
  }
537
  /* Cream buttons render their label inside a stMarkdownContainer <p>, which the
538
  global markdown rule forces to light text. Re-assert purple on the label text
 
541
  .stButton button[kind="primary"] [data-testid="stMarkdownContainer"] span,
542
  .stDownloadButton button [data-testid="stMarkdownContainer"] p,
543
  .stDownloadButton button [data-testid="stMarkdownContainer"] span {
544
+ color: #FFFFFF !important;
545
  }
546
 
547
  /* ─── INPUTS — bulletproof dark styling ──────────────────────── */
 
560
  [data-baseweb="base-input"] > div {
561
  background-color: #2C244A !important; /* soft off-white field */
562
  background: #2C244A !important;
563
+ border: 1.5px solid rgba(124, 92, 255, 0.25) !important;
564
  border-radius: 12px !important;
565
  color: #F4F1FA !important;
566
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25) !important; /* subtle inner shadow */
 
582
  font-size: 0.95rem !important;
583
  font-weight: 500 !important; /* typed text — clearly bolder */
584
  border: none !important;
585
+ caret-color: #7C5CFF !important;
586
  font-style: normal !important;
587
  }
588
 
 
614
  [data-testid="stTextInput"] > div > div:focus-within,
615
  [data-baseweb="input"]:focus-within,
616
  [data-baseweb="base-input"]:focus-within {
617
+ border-color: #7C5CFF !important;
618
  box-shadow:
619
+ 0 0 0 4px rgba(124, 92, 255, 0.25),
620
  inset 0 1px 2px rgba(0, 0, 0, 0.04) !important;
621
  background-color: #3E3563 !important;
622
  background: #3E3563 !important;
 
632
  [data-baseweb="select"] > div > div {
633
  background-color: #2C244A !important;
634
  background: #2C244A !important;
635
+ border: 1.5px solid rgba(124, 92, 255, 0.25) !important;
636
  border-radius: 12px !important;
637
  color: #F4F1FA !important;
638
  }
 
670
  /* The single rounded frame: the listbox container only */
671
  html body [data-baseweb="popover"] [role="listbox"],
672
  [role="listbox"] {
673
+ border: 1px solid rgba(124, 92, 255, 0.3) !important;
674
  border-radius: 12px !important;
675
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
676
  }
 
703
  html body [data-baseweb="popover"] li:hover,
704
  html body [role="option"]:hover,
705
  li[role="option"]:hover {
706
+ background: rgba(124, 92, 255, 0.22) !important;
707
+ background-color: rgba(124, 92, 255, 0.22) !important;
708
  color: #C3B6EC !important;
709
  }
710
  html body [data-baseweb="popover"] li:hover *,
 
717
  /* Selected option */
718
  html body [role="option"][aria-selected="true"],
719
  li[role="option"][aria-selected="true"] {
720
+ background: rgba(124, 92, 255, 0.18) !important;
721
+ background-color: rgba(124, 92, 255, 0.18) !important;
722
  color: #C3B6EC !important;
723
  }
724
 
 
730
  }
731
  [data-baseweb="popover"] ul::-webkit-scrollbar-thumb,
732
  [role="listbox"]::-webkit-scrollbar-thumb {
733
+ background: rgba(124, 92, 255, 0.3);
734
  border-radius: 4px;
735
  }
736
 
 
741
  background-color: #2C244A !important;
742
  background: #2C244A !important;
743
  color: #F4F1FA !important;
744
+ border: 1.5px solid rgba(124, 92, 255, 0.25) !important;
745
  border-radius: 12px !important;
746
  -webkit-text-fill-color: #F4F1FA !important;
747
  }
 
754
  }
755
  .stRadio [data-baseweb="radio"] div[role="radio"] {
756
  background-color: rgba(255, 255, 255, 0.05) !important;
757
+ border-color: rgba(124, 92, 255, 0.4) !important;
758
  }
759
  .stRadio [data-baseweb="radio"] div[role="radio"][aria-checked="true"] {
760
+ background-color: #7C5CFF !important;
761
+ border-color: #7C5CFF !important;
762
  }
763
 
764
  /* File uploader */
765
  [data-testid="stFileUploader"] section,
766
  [data-testid="stFileUploader"] > div {
767
  background: rgba(255, 255, 255, 0.04) !important;
768
+ border: 2px dashed rgba(124, 92, 255, 0.3) !important;
769
  border-radius: 14px !important;
770
  color: #F4F1FA !important;
771
  }
772
  [data-testid="stFileUploader"] button {
773
+ background: rgba(124, 92, 255, 0.15) !important;
774
  color: #C3B6EC !important;
775
+ border: 1px solid rgba(124, 92, 255, 0.3) !important;
776
  }
777
  [data-testid="stFileUploader"] small,
778
  [data-testid="stFileUploader"] span {
 
798
  backdrop-filter: blur(10px);
799
  }
800
  [data-testid="stNotificationContentSuccess"] {
801
+ background: rgba(34, 211, 238, 0.15) !important;
802
+ color: #22D3EE !important;
803
  }
804
  [data-testid="stNotificationContentInfo"] {
805
+ background: rgba(124, 92, 255, 0.18) !important;
806
  color: #C3B6EC !important;
807
  }
808
+ /* Warning alert. Streamlit 1.57 paints the colored box on stAlertContainer
809
+ (the old stNotificationContentWarning testid no longer exists); scope to
810
+ warnings only via :has() so success/info/error keep their own colors. */
811
+ [data-testid="stAlertContainer"]:has([data-testid="stAlertContentWarning"]) {
812
+ background: rgba(252, 211, 77, 0.12) !important;
813
+ border: 1px solid rgba(252, 211, 77, 0.35) !important;
814
+ border-left: 4px solid #FCD34D !important;
815
+ }
816
+ [data-testid="stAlertContentWarning"],
817
+ [data-testid="stAlertContentWarning"] * {
818
+ color: #FCD34D !important;
819
+ }
820
+ [data-testid="stAlertContainer"]:has([data-testid="stAlertContentWarning"]) svg {
821
+ fill: #FCD34D !important;
822
  }
823
  [data-testid="stNotificationContentError"] {
824
  background: rgba(239, 68, 68, 0.18) !important;
 
832
  border-radius: 12px !important;
833
  color: #C5BEDC !important;
834
  font-weight: 600 !important;
835
+ border: 1px solid rgba(124, 92, 255, 0.12) !important;
836
  }
837
  [data-testid="stExpander"] {
838
  background: transparent !important;
 
844
  }
845
  [data-testid="stExpander"] [data-testid="stExpanderDetails"] {
846
  background: rgba(255, 255, 255, 0.03) !important;
847
+ border: 1px solid rgba(124, 92, 255, 0.1) !important;
848
  border-radius: 12px !important;
849
  padding: 1rem !important;
850
  margin-top: 0.5rem !important;
 
861
  .section-title::before {
862
  content: "";
863
  width: 4px; height: 18px;
864
+ background: linear-gradient(180deg, #7C5CFF 0%, #FF4D8D 100%);
865
  border-radius: 2px;
866
  }
867
 
 
871
  padding: 2rem 1rem;
872
  background: rgba(255, 255, 255, 0.03);
873
  border-radius: 14px;
874
+ border: 2px dashed rgba(124, 92, 255, 0.2);
875
  margin: 1rem 0;
876
  }
877
  .empty-state-icon { margin-bottom: 0.75rem; opacity: 0.7; line-height: 0; }
 
881
  hr {
882
  border: none !important;
883
  height: 1px !important;
884
+ background: linear-gradient(90deg, transparent 0%, rgba(124, 92, 255, 0.25) 50%, transparent 100%) !important;
885
  margin: 1rem 0 !important;
886
  }
887
 
 
894
  .stMarkdown, .stMarkdown p, [data-testid="stMarkdownContainer"] {
895
  color: #F4F1FA !important;
896
  }
897
+ .stMarkdown strong { color: #C9B7FF !important; }
898
  .stMarkdown code {
899
+ background: rgba(124, 92, 255, 0.16) !important;
900
+ color: #C9B7FF !important;
901
  padding: 0.15rem 0.45rem !important;
902
  border-radius: 6px !important;
903
  }
904
 
905
  /* Spinner */
906
  .stSpinner > div {
907
+ border-top-color: #7C5CFF !important;
908
  }
909
  </style>
910
  """, unsafe_allow_html=True)
 
1126
  st.markdown("""
1127
  <div class="empty-state">
1128
  <div class="empty-state-icon">
1129
+ <svg width="56" height="56" viewBox="0 0 24 24" fill="none" stroke="#7C5CFF" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round">
1130
  <circle cx="11" cy="11" r="7"></circle>
1131
  <line x1="21" y1="21" x2="16.65" y2="16.65"></line>
1132
  </svg>
 
1240
  if st.session_state.generated_file:
1241
  st.markdown("<div style='height: 0.75rem;'></div>", unsafe_allow_html=True)
1242
  st.markdown("""
1243
+ <div style="background: linear-gradient(135deg, rgba(34, 211, 238, 0.16) 0%, rgba(34, 211, 238, 0.10) 100%);
1244
+ border: 1px solid rgba(34, 211, 238, 0.4); padding: 0.85rem 1rem; border-radius: 14px;
1245
  margin-bottom: 0.75rem;">
1246
  <div style="display: flex; align-items: center; gap: 0.5rem;">
1247
+ <span style="background: linear-gradient(135deg, #22D3EE, #0EA5C0); color: white; width: 24px; height: 24px;
1248
  border-radius: 50%; display: inline-flex; align-items: center;
1249
  justify-content: center; font-size: 0.85rem;">✓</span>
1250
+ <span style="font-weight: 600; color: #22D3EE;">สร้างเอกสารสำเร็จ!</span>
1251
  </div>
1252
  </div>
1253
  """, unsafe_allow_html=True)