Nischal Subedi
commited on
Commit
·
29ad528
1
Parent(s):
38f68bc
UI v31
Browse files
app.py
CHANGED
@@ -291,21 +291,23 @@ Answer:"""
|
|
291 |
/* Import legible fonts from Google Fonts */
|
292 |
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@600;700;800&display=swap');
|
293 |
|
294 |
-
/* Root variables for consistent theming
|
295 |
:root {
|
296 |
-
--primary-color: hsl(
|
297 |
-
--primary-hover: hsl(
|
298 |
-
--accent-orange: hsl(
|
|
|
|
|
299 |
|
300 |
-
--background-app: hsl(
|
301 |
-
--background-header: hsl(
|
|
|
302 |
--background-card: hsl(0, 0%, 100%); /* Pure white for content cards */
|
303 |
--background-input-output: hsl(0, 0%, 100%); /* Pure white for input/output elements */
|
304 |
|
305 |
-
--text-dark: hsl(210, 20%, 20%); /* Dark
|
306 |
--text-light: hsl(210, 10%, 30%); /* Slightly lighter dark for general text on white cards */
|
307 |
-
|
308 |
-
--text-muted: hsl(210, 10%, 50%); /* Muted gray for secondary info/placeholders */
|
309 |
|
310 |
--border-card: hsl(210, 10%, 85%); /* Light gray border for cards */
|
311 |
--border-input: hsl(210, 10%, 75%); /* Slightly darker gray for input borders */
|
@@ -339,7 +341,7 @@ Answer:"""
|
|
339 |
|
340 |
/* Header Styling (title box) - distinct background */
|
341 |
.app-header-wrapper {
|
342 |
-
background: var(--background-header) !important; /*
|
343 |
border: 2px solid var(--border-card) !important; /* Consistent border with cards */
|
344 |
border-radius: 16px !important;
|
345 |
padding: 2.5rem 1.5rem !important;
|
@@ -357,8 +359,8 @@ Answer:"""
|
|
357 |
left: 0;
|
358 |
width: 100%;
|
359 |
height: 100%;
|
360 |
-
background: radial-gradient(circle at top left, rgba(
|
361 |
-
radial-gradient(circle at bottom right, rgba(
|
362 |
z-index: 0;
|
363 |
opacity: 0.8;
|
364 |
pointer-events: none;
|
@@ -367,7 +369,7 @@ Answer:"""
|
|
367 |
font-size: 4.5rem !important; /* Larger icon */
|
368 |
margin-bottom: 0.75rem !important;
|
369 |
display: block !important;
|
370 |
-
color: var(--
|
371 |
position: relative;
|
372 |
z-index: 1;
|
373 |
animation: float-icon 3s ease-in-out infinite alternate;
|
@@ -381,7 +383,7 @@ Answer:"""
|
|
381 |
font-family: 'Poppins', sans-serif !important;
|
382 |
font-size: 3rem !important;
|
383 |
font-weight: 800 !important; /* Bold */
|
384 |
-
color: var(--
|
385 |
margin: 0 0 0.75rem 0 !important;
|
386 |
line-height: 1.1 !important;
|
387 |
letter-spacing: -0.03em !important;
|
@@ -418,7 +420,7 @@ Answer:"""
|
|
418 |
}
|
419 |
.dashboard-card-section:hover {
|
420 |
box-shadow: var(--shadow-md) !important;
|
421 |
-
transform: translateY(-
|
422 |
}
|
423 |
|
424 |
/* Section Titles (e.g., "Welcome & Disclaimer") - now centered and bold */
|
@@ -426,11 +428,11 @@ Answer:"""
|
|
426 |
font-family: 'Poppins', sans-serif !important;
|
427 |
font-size: 1.7rem !important;
|
428 |
font-weight: 700 !important; /* Bold */
|
429 |
-
color: var(--
|
430 |
text-align: center !important; /* CENTERED */
|
431 |
margin: 0 0 1.25rem 0 !important;
|
432 |
padding-bottom: 0.75rem !important;
|
433 |
-
border-bottom: 2px solid var(--
|
434 |
display: block !important;
|
435 |
letter-spacing: -0.01em !important;
|
436 |
}
|
@@ -469,8 +471,8 @@ Answer:"""
|
|
469 |
.gradio-dropdown > div > input[type="text"]:focus,
|
470 |
.gradio-dropdown .primary-wrap.focused {
|
471 |
outline: none !important;
|
472 |
-
border-color: var(--border-focus) !important; /*
|
473 |
-
box-shadow: 0 0 0 4px rgba(
|
474 |
}
|
475 |
.gradio-textbox label,
|
476 |
.gradio-dropdown label {
|
@@ -513,7 +515,7 @@ Answer:"""
|
|
513 |
text-align: center !important;
|
514 |
}
|
515 |
.gr-button-primary {
|
516 |
-
background: var(--primary-color) !important; /*
|
517 |
color: white !important;
|
518 |
box-shadow: var(--shadow-sm) !important;
|
519 |
}
|
@@ -523,7 +525,7 @@ Answer:"""
|
|
523 |
transform: translateY(-2px) !important;
|
524 |
}
|
525 |
.gr-button-primary:active {
|
526 |
-
transform: translateY(1px) !important;
|
527 |
box-shadow: none !important;
|
528 |
}
|
529 |
.gr-button-secondary {
|
@@ -533,11 +535,11 @@ Answer:"""
|
|
533 |
}
|
534 |
.gr-button-secondary:hover {
|
535 |
background: hsl(210, 10%, 85%) !important; /* Darker gray on hover */
|
536 |
-
border-color: var(--primary-color) !important; /*
|
537 |
transform: translateY(-2px) !important;
|
538 |
}
|
539 |
.gr-button-secondary:active {
|
540 |
-
transform: translateY(1px) !important;
|
541 |
box-shadow: none !important;
|
542 |
}
|
543 |
|
@@ -571,7 +573,7 @@ Answer:"""
|
|
571 |
.response-header {
|
572 |
font-size: 1.3rem !important;
|
573 |
font-weight: 700 !important;
|
574 |
-
color: var(--
|
575 |
margin-bottom: 0.75rem !important;
|
576 |
display: flex !important;
|
577 |
align-items: center !important;
|
@@ -579,7 +581,7 @@ Answer:"""
|
|
579 |
}
|
580 |
.response-icon {
|
581 |
font-size: 1.5rem !important;
|
582 |
-
color: var(--
|
583 |
}
|
584 |
.divider {
|
585 |
border: none !important;
|
@@ -647,7 +649,7 @@ Answer:"""
|
|
647 |
.examples-section .gr-samples-table th {
|
648 |
background: var(--background-card) !important; /* White for example header */
|
649 |
font-weight: 700 !important;
|
650 |
-
color: var(--
|
651 |
}
|
652 |
.examples-section .gr-samples-table td {
|
653 |
background: var(--background-input-output) !important; /* Pure white for example rows */
|
@@ -658,7 +660,7 @@ Answer:"""
|
|
658 |
}
|
659 |
.examples-section .gr-samples-table tr:hover td {
|
660 |
background: hsl(0, 0%, 95%) !important; /* Slightly darker white on hover */
|
661 |
-
transform: translateX(
|
662 |
}
|
663 |
.gr-examples .gr-label,
|
664 |
.gr-examples .label-wrap,
|
@@ -683,14 +685,14 @@ Answer:"""
|
|
683 |
line-height: 1.6 !important;
|
684 |
}
|
685 |
.app-footer a {
|
686 |
-
color: var(--
|
687 |
text-decoration: none !important;
|
688 |
font-weight: 600 !important;
|
689 |
transition: text-decoration 0.2s ease, text-decoration-color 0.2s ease !important;
|
690 |
}
|
691 |
.app-footer a:hover {
|
692 |
text-decoration: underline !important;
|
693 |
-
text-decoration-color: var(--
|
694 |
}
|
695 |
|
696 |
/* Responsive Design */
|
|
|
291 |
/* Import legible fonts from Google Fonts */
|
292 |
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@600;700;800&display=swap');
|
293 |
|
294 |
+
/* Root variables for consistent theming */
|
295 |
:root {
|
296 |
+
--primary-color: hsl(28, 90%, 50%); /* Vibrant Orange for primary action/highlights */
|
297 |
+
--primary-hover: hsl(28, 90%, 45%);
|
298 |
+
--accent-orange: hsl(28, 90%, 55%); /* Slightly brighter orange for specific text */
|
299 |
+
--accent-blue: hsl(200, 70%, 35%); /* Deep Blue for main title/section headers */
|
300 |
+
--accent-blue-light: hsl(200, 70%, 90%); /* Light blue for header background tint */
|
301 |
|
302 |
+
--background-app: hsl(0, 0%, 98%); /* Very light, off-white for overall background */
|
303 |
+
--background-header-start: hsl(40, 90%, 95%); /* Light yellow for header gradient start */
|
304 |
+
--background-header-end: hsl(28, 90%, 95%); /* Light orange for header gradient end */
|
305 |
--background-card: hsl(0, 0%, 100%); /* Pure white for content cards */
|
306 |
--background-input-output: hsl(0, 0%, 100%); /* Pure white for input/output elements */
|
307 |
|
308 |
+
--text-dark: hsl(210, 20%, 20%); /* Dark charcoal for primary text */
|
309 |
--text-light: hsl(210, 10%, 30%); /* Slightly lighter dark for general text on white cards */
|
310 |
+
--text-muted: hsl(210, 10%, 45%); /* Muted gray for secondary info/placeholders */
|
|
|
311 |
|
312 |
--border-card: hsl(210, 10%, 85%); /* Light gray border for cards */
|
313 |
--border-input: hsl(210, 10%, 75%); /* Slightly darker gray for input borders */
|
|
|
341 |
|
342 |
/* Header Styling (title box) - distinct background */
|
343 |
.app-header-wrapper {
|
344 |
+
background: linear-gradient(135deg, var(--background-header-start) 0%, var(--background-header-end) 100%) !important; /* Gradient from light yellow to light orange */
|
345 |
border: 2px solid var(--border-card) !important; /* Consistent border with cards */
|
346 |
border-radius: 16px !important;
|
347 |
padding: 2.5rem 1.5rem !important;
|
|
|
359 |
left: 0;
|
360 |
width: 100%;
|
361 |
height: 100%;
|
362 |
+
background: radial-gradient(circle at top left, rgba(255,165,0,0.05) 0%, transparent 40%),
|
363 |
+
radial-gradient(circle at bottom right, rgba(255,165,0,0.05) 0%, transparent 40%);
|
364 |
z-index: 0;
|
365 |
opacity: 0.8;
|
366 |
pointer-events: none;
|
|
|
369 |
font-size: 4.5rem !important; /* Larger icon */
|
370 |
margin-bottom: 0.75rem !important;
|
371 |
display: block !important;
|
372 |
+
color: var(--accent-blue) !important; /* Deep blue for icon */
|
373 |
position: relative;
|
374 |
z-index: 1;
|
375 |
animation: float-icon 3s ease-in-out infinite alternate;
|
|
|
383 |
font-family: 'Poppins', sans-serif !important;
|
384 |
font-size: 3rem !important;
|
385 |
font-weight: 800 !important; /* Bold */
|
386 |
+
color: var(--accent-blue) !important; /* Deep blue for title */
|
387 |
margin: 0 0 0.75rem 0 !important;
|
388 |
line-height: 1.1 !important;
|
389 |
letter-spacing: -0.03em !important;
|
|
|
420 |
}
|
421 |
.dashboard-card-section:hover {
|
422 |
box-shadow: var(--shadow-md) !important;
|
423 |
+
transform: translateY(-5px) !important; /* More pronounced lift */
|
424 |
}
|
425 |
|
426 |
/* Section Titles (e.g., "Welcome & Disclaimer") - now centered and bold */
|
|
|
428 |
font-family: 'Poppins', sans-serif !important;
|
429 |
font-size: 1.7rem !important;
|
430 |
font-weight: 700 !important; /* Bold */
|
431 |
+
color: var(--accent-blue) !important; /* Deep blue for titles */
|
432 |
text-align: center !important; /* CENTERED */
|
433 |
margin: 0 0 1.25rem 0 !important;
|
434 |
padding-bottom: 0.75rem !important;
|
435 |
+
border-bottom: 2px solid var(--accent-blue) !important; /* Consistent blue line */
|
436 |
display: block !important;
|
437 |
letter-spacing: -0.01em !important;
|
438 |
}
|
|
|
471 |
.gradio-dropdown > div > input[type="text"]:focus,
|
472 |
.gradio-dropdown .primary-wrap.focused {
|
473 |
outline: none !important;
|
474 |
+
border-color: var(--border-focus) !important; /* Orange border on focus */
|
475 |
+
box-shadow: 0 0 0 4px rgba(255, 165, 0, 0.2) !important; /* Orange glow on focus */
|
476 |
}
|
477 |
.gradio-textbox label,
|
478 |
.gradio-dropdown label {
|
|
|
515 |
text-align: center !important;
|
516 |
}
|
517 |
.gr-button-primary {
|
518 |
+
background: var(--primary-color) !important; /* Orange button */
|
519 |
color: white !important;
|
520 |
box-shadow: var(--shadow-sm) !important;
|
521 |
}
|
|
|
525 |
transform: translateY(-2px) !important;
|
526 |
}
|
527 |
.gr-button-primary:active {
|
528 |
+
transform: translateY(1px) !important; /* Press effect */
|
529 |
box-shadow: none !important;
|
530 |
}
|
531 |
.gr-button-secondary {
|
|
|
535 |
}
|
536 |
.gr-button-secondary:hover {
|
537 |
background: hsl(210, 10%, 85%) !important; /* Darker gray on hover */
|
538 |
+
border-color: var(--primary-color) !important; /* Orange border on hover */
|
539 |
transform: translateY(-2px) !important;
|
540 |
}
|
541 |
.gr-button-secondary:active {
|
542 |
+
transform: translateY(1px) !important; /* Press effect */
|
543 |
box-shadow: none !important;
|
544 |
}
|
545 |
|
|
|
573 |
.response-header {
|
574 |
font-size: 1.3rem !important;
|
575 |
font-weight: 700 !important;
|
576 |
+
color: var(--accent-blue) !important; /* Blue for response header */
|
577 |
margin-bottom: 0.75rem !important;
|
578 |
display: flex !important;
|
579 |
align-items: center !important;
|
|
|
581 |
}
|
582 |
.response-icon {
|
583 |
font-size: 1.5rem !important;
|
584 |
+
color: var(--accent-blue) !important;
|
585 |
}
|
586 |
.divider {
|
587 |
border: none !important;
|
|
|
649 |
.examples-section .gr-samples-table th {
|
650 |
background: var(--background-card) !important; /* White for example header */
|
651 |
font-weight: 700 !important;
|
652 |
+
color: var(--accent-blue) !important; /* Blue for header text */
|
653 |
}
|
654 |
.examples-section .gr-samples-table td {
|
655 |
background: var(--background-input-output) !important; /* Pure white for example rows */
|
|
|
660 |
}
|
661 |
.examples-section .gr-samples-table tr:hover td {
|
662 |
background: hsl(0, 0%, 95%) !important; /* Slightly darker white on hover */
|
663 |
+
transform: translateX(8px); /* More pronounced slide */
|
664 |
}
|
665 |
.gr-examples .gr-label,
|
666 |
.gr-examples .label-wrap,
|
|
|
685 |
line-height: 1.6 !important;
|
686 |
}
|
687 |
.app-footer a {
|
688 |
+
color: var(--primary-color) !important; /* ORANGE highlight for links (same as submit button) */
|
689 |
text-decoration: none !important;
|
690 |
font-weight: 600 !important;
|
691 |
transition: text-decoration 0.2s ease, text-decoration-color 0.2s ease !important;
|
692 |
}
|
693 |
.app-footer a:hover {
|
694 |
text-decoration: underline !important;
|
695 |
+
text-decoration-color: var(--primary-color) !important; /* Orange underline on hover */
|
696 |
}
|
697 |
|
698 |
/* Responsive Design */
|