Nischal Subedi commited on
Commit
aad2854
·
1 Parent(s): badac92
Files changed (1) hide show
  1. app.py +26 -25
app.py CHANGED
@@ -301,36 +301,37 @@ Answer:"""
301
  /* Import legible fonts from Google Fonts */
302
  @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@600;700;800&display=swap');
303
 
304
- /* Root variables for consistent theming - adjusted for very light calm_seafoam feel */
305
  :root {
306
- --primary-color: #3cb371; /* Medium Sea Green (vibrant seafoam) */
307
- --primary-hover: #339966;
308
- --background-primary: hsl(180, 100%, 98%); /* Very light seafoam for main cards */
309
- --background-secondary: hsl(180, 100%, 96%); /* Slightly darker for overall app background */
310
- --text-primary: hsl(210, 20%, 20%); /* Dark blue-gray for main text */
311
- --text-secondary: hsl(210, 10%, 45%); /* Muted blue-gray for secondary text */
312
- --border-color: hsl(180, 30%, 85%); /* Subtle seafoam gray for borders */
313
- --border-focus: #3cb371; /* Focus color matches primary */
314
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
315
  --shadow-md: 0 4px 10px rgba(0,0,0,0.1);
316
  --shadow-lg: 0 10px 20px rgba(0,0,0,0.15);
317
- --error-bg: #FFEBEB;
318
- --error-border: #FFCACA;
319
- --error-text: #D32F2F;
320
  }
321
 
322
  /* Dark mode variables - for consistency if a dark mode toggle were present */
323
  body.dark {
324
- --background-primary: #1F303A; /* Dark blue-green */
325
- --background-secondary: #2C404B;
326
- --text-primary: #E0F2F1;
327
- --text-secondary: #A7C5C8;
328
- --border-color: #5F7C8A;
329
- --primary-color: #66BB6A; /* Brighter green for dark mode */
330
- --primary-hover: #5cb85f;
331
- --error-bg: #3F1D1D;
332
- --error-border: #5A1A1A;
333
- --error-text: #FF7070;
 
334
  }
335
 
336
  /* Base container improvements */
@@ -366,8 +367,8 @@ Answer:"""
366
  left: 0;
367
  width: 100%;
368
  height: 100%;
369
- background: radial-gradient(circle at top left, rgba(60,179,113,0.05) 0%, transparent 40%),
370
- radial-gradient(circle at bottom right, rgba(60,179,113,0.05) 0%, transparent 40%);
371
  z-index: 0;
372
  opacity: 0.8;
373
  pointer-events: none;
@@ -484,7 +485,7 @@ Answer:"""
484
  .gradio-dropdown .primary-wrap.focused { /* Apply focus style to dropdown wrap */
485
  outline: none !important;
486
  border-color: var(--border-focus) !important; /* Distinct border on focus */
487
- box-shadow: 0 0 0 4px rgba(60, 179, 113, 0.2) !important; /* Broader, softer glow on focus */
488
  }
489
 
490
  /* Label styling for better readability */
 
301
  /* Import legible fonts from Google Fonts */
302
  @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@600;700;800&display=swap');
303
 
304
+ /* Root variables for consistent theming - adjusted for an inviting orange palette */
305
  :root {
306
+ --primary-color: #FF8000; /* Vibrant Orange */
307
+ --primary-hover: #E67300; /* Slightly darker orange */
308
+ --background-primary: #FFF5E0; /* Very light cream/off-white for cards */
309
+ --background-secondary: #FAEBD7; /* Slightly darker cream for overall app background */
310
+ --text-primary: #4A3C32; /* Dark warm brown/charcoal for main text */
311
+ --text-secondary: #8C7B6F; /* Muted warm gray/brown for secondary text */
312
+ --border-color: #DDC6AF; /* Light, desaturated orange-brown for borders */
313
+ --border-focus: #FF8000; /* Focus color matches primary */
314
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
315
  --shadow-md: 0 4px 10px rgba(0,0,0,0.1);
316
  --shadow-lg: 0 10px 20px rgba(0,0,0,0.15);
317
+ --error-bg: #FFF0E0; /* Light orange-pink for errors */
318
+ --error-border: #FFD2B2; /* Medium orange-pink for error borders */
319
+ --error-text: #E05C00; /* Darker, strong orange-red for error text */
320
  }
321
 
322
  /* Dark mode variables - for consistency if a dark mode toggle were present */
323
  body.dark {
324
+ --primary-color: #FFA500; /* Bright orange for dark mode */
325
+ --primary-hover: #CC8400;
326
+ --background-primary: #2C2C2C; /* Dark charcoal */
327
+ --background-secondary: #1F1F1F; /* Even darker charcoal */
328
+ --text-primary: #F0F0F0;
329
+ --text-secondary: #B0B0B0;
330
+ --border-color: #555555;
331
+ --border-focus: #FFA500;
332
+ --error-bg: #400000;
333
+ --error-border: #800000;
334
+ --error-text: #FF6666;
335
  }
336
 
337
  /* Base container improvements */
 
367
  left: 0;
368
  width: 100%;
369
  height: 100%;
370
+ background: radial-gradient(circle at top left, rgba(255,128,0,0.05) 0%, transparent 40%),
371
+ radial-gradient(circle at bottom right, rgba(255,128,0,0.05) 0%, transparent 40%);
372
  z-index: 0;
373
  opacity: 0.8;
374
  pointer-events: none;
 
485
  .gradio-dropdown .primary-wrap.focused { /* Apply focus style to dropdown wrap */
486
  outline: none !important;
487
  border-color: var(--border-focus) !important; /* Distinct border on focus */
488
+ box-shadow: 0 0 0 4px rgba(255, 128, 0, 0.2) !important; /* Broader, softer glow on focus */
489
  }
490
 
491
  /* Label styling for better readability */