Spaces:
Sleeping
Sleeping
| /* === Global Layout === */ | |
| .gradio-container { font-family: 'Inter', sans-serif; background:#0d1117 ; } | |
| [data-testid="block-container"] { max-width:1180px ; margin:auto ; } | |
| h2, h3, .gr-markdown { color:#f0f6fc ; font-weight:600 ; } | |
| /* === Page headers & footer === */ | |
| .page-title, | |
| .subtitle, | |
| .footer { | |
| width:100%; | |
| margin:0 auto 12px; | |
| text-align:center ; | |
| } | |
| .page-title .gr-markdown, | |
| .subtitle .gr-markdown, | |
| .footer .gr-markdown { | |
| text-align:center ; | |
| margin:0 auto; | |
| } | |
| .page-title .gr-markdown h1, | |
| .page-title .gr-markdown h2, | |
| .subtitle .gr-markdown p, | |
| .footer .gr-markdown p, | |
| .footer .gr-markdown small { | |
| text-align:center ; | |
| } | |
| .subtitle { margin-bottom:16px; color:#9ca3af ; } | |
| .subtitle .gr-markdown { color:#9ca3af ; font-weight:500 ; } | |
| .footer { margin-top:40px; margin-bottom:0; } | |
| /* === Tabs Navigation === */ | |
| #main_tabs { | |
| width:72%; | |
| margin:0 auto 24px; | |
| } | |
| #main_tabs [data-testid="tab-nav"] { | |
| display:flex; | |
| justify-content:center; | |
| gap:18px; | |
| padding:0 12px 6px; | |
| border-bottom:1px solid #2f3849; | |
| } | |
| #main_tabs [data-testid="tab-nav"] button { | |
| position:relative; | |
| padding:10px 6px; | |
| background:transparent; | |
| border:none; | |
| color:#9ca3af; | |
| font-weight:600; | |
| font-size:0.9rem; | |
| letter-spacing:0.02em; | |
| transition:color 0.2s ease; | |
| } | |
| #main_tabs [data-testid="tab-nav"] button::after { | |
| content:""; | |
| position:absolute; | |
| left:50%; | |
| bottom:-7px; | |
| width:0; | |
| height:2px; | |
| background:#f97316; | |
| transition:all 0.2s ease; | |
| transform:translateX(-50%); | |
| } | |
| #main_tabs [data-testid="tab-nav"] button:hover { | |
| color:#e5e7eb; | |
| } | |
| #main_tabs [data-testid="tab-nav"] button[aria-selected="true"] { | |
| color:#f97316; | |
| } | |
| #main_tabs [data-testid="tab-nav"] button[aria-selected="true"]::after { | |
| width:100%; | |
| } | |
| #main_tabs [data-testid="tab-nav"] button:focus-visible { | |
| outline:2px solid rgba(249,115,22,0.35); | |
| outline-offset:4px; | |
| border-radius:6px; | |
| } | |
| @media (max-width:1280px) { | |
| #main_tabs { width:80%; } | |
| } | |
| @media (max-width:1024px) { | |
| #main_tabs { width:90%; } | |
| } | |
| @media (max-width:768px) { | |
| #main_tabs { width:100%; } | |
| #main_tabs [data-testid="tab-nav"] { | |
| justify-content:flex-start; | |
| gap:14px; | |
| } | |
| } | |
| /* analysis output styling */ | |
| #analysis_output { | |
| display:block; | |
| width:100%; | |
| padding:0 16px; | |
| box-sizing:border-box; | |
| font-family:'Inter','Segoe UI',sans-serif; | |
| color:#f0f6fc; | |
| } | |
| #analysis_output .analysis-container { | |
| width:100%; | |
| max-width:1180px; | |
| margin:0 auto; | |
| padding:20px 24px; | |
| border-radius:10px; | |
| border:1px solid #1f2937; | |
| background-color:#0d1117; | |
| box-shadow:0 0 8px rgba(0,0,0,0.3); | |
| box-sizing:border-box; | |
| color:#f0f6fc; | |
| } | |
| @media (max-width: 768px) { | |
| #analysis_output .analysis-container { | |
| width:100%; | |
| } | |
| } | |
| #analysis_output .analysis-output { | |
| width:100%; | |
| margin:0 auto; | |
| font-size:15px; | |
| line-height:1.6; | |
| } | |
| #analysis_output .analysis-output .section { | |
| margin:32px 0; | |
| text-align:center; | |
| } | |
| #analysis_output .analysis-output .section:first-of-type { | |
| margin-top:8px; | |
| } | |
| #analysis_output .analysis-output .section:last-of-type { | |
| margin-bottom:8px; | |
| } | |
| #analysis_output .analysis-output .section h2 { | |
| color:#58a6ff; | |
| text-align:center; | |
| margin:28px 0 10px; | |
| font-size:1.15rem; | |
| font-weight:600; | |
| } | |
| #analysis_output .analysis-output .section h3 { | |
| color:#58a6ff; | |
| text-align:center; | |
| margin:24px 0 8px; | |
| font-size:1.05rem; | |
| font-weight:600; | |
| } | |
| #analysis_output h2, | |
| #analysis_output h3 { | |
| text-align:center; | |
| } | |
| #analysis_output .analysis-output .section:first-of-type h2 { | |
| margin-top:0; | |
| } | |
| #analysis_output .analysis-output .section-divider { | |
| width:60%; | |
| margin:22px auto; | |
| border-bottom:0.75px solid #30363d; | |
| } | |
| #analysis_output p, | |
| #analysis_output span, | |
| #analysis_output div { | |
| word-spacing:normal ; | |
| letter-spacing:normal ; | |
| white-space:normal ; | |
| } | |
| #analysis_output p, | |
| #analysis_output li { | |
| margin:12px 0; | |
| color:#9ca3af; | |
| text-align:center; | |
| line-height:1.6; | |
| text-wrap:balance; | |
| hyphens:auto; | |
| word-break:normal; | |
| } | |
| #analysis_output ul, | |
| #analysis_output ol { | |
| margin:8px 0 8px 20px; | |
| padding-left:4px; | |
| color:#9ca3af; | |
| } | |
| #analysis_output .analysis-line { | |
| margin:6px 0; | |
| width:100%; | |
| } | |
| #analysis_output .analysis-line + .analysis-line { | |
| margin-top:10px; | |
| } | |
| #analysis_output .analysis-line.metric + .analysis-line.metric { | |
| margin-top:6px; | |
| } | |
| #analysis_output .analysis-line.metric + .analysis-line:not(.metric) { | |
| margin-top:16px; | |
| } | |
| #analysis_output .analysis-line:not(.metric) + .analysis-line.metric { | |
| margin-top:18px; | |
| } | |
| #analysis_output .analysis-line.metric { | |
| display:block; | |
| } | |
| #analysis_output .analysis-line.bullet { | |
| position:relative; | |
| padding-left:18px; | |
| } | |
| #analysis_output .analysis-line.bullet::before { | |
| content:"•"; | |
| color:#58a6ff; | |
| position:absolute; | |
| left:0; | |
| top:0; | |
| } | |
| .metric-name { | |
| font-family:'JetBrains Mono','Fira Code','Source Code Pro',monospace; | |
| font-weight:600; | |
| color:#5eead4; | |
| display:inline ; | |
| } | |
| .metric-name[data-tooltip] { | |
| position:relative; | |
| cursor:help; | |
| } | |
| .metric-name[data-tooltip]::after { | |
| content:attr(data-tooltip); | |
| position:absolute; | |
| left:0; | |
| bottom:120%; | |
| background:#111827; | |
| border:1px solid #1f2937; | |
| padding:6px 8px; | |
| font-size:12px; | |
| line-height:1.35; | |
| color:#cbd5f5; | |
| border-radius:6px; | |
| white-space:nowrap; | |
| opacity:0; | |
| transform:translateY(6px); | |
| pointer-events:none; | |
| transition:opacity 0.15s ease, transform 0.15s ease; | |
| z-index:20; | |
| } | |
| .metric-name[data-tooltip]:hover::after { | |
| opacity:1; | |
| transform:translateY(0); | |
| } | |
| .metric-separator { | |
| color:#293548; | |
| margin:0 4px; | |
| } | |
| .metric-value { | |
| font-family:'JetBrains Mono','Fira Code','Source Code Pro',monospace; | |
| font-weight:500; | |
| color:#9ca3af; | |
| display:inline ; | |
| } | |
| .metric-number { | |
| font-family:'JetBrains Mono','Fira Code','Source Code Pro',monospace; | |
| font-weight:600; | |
| } | |
| .metric-number.positive { color:#4ade80; } | |
| .metric-number.negative { color:#f87171; } | |
| .metric-number.neutral { color:#9ca3af; } | |
| #analysis_output .analysis-keyword { | |
| color:#93c5fd; | |
| font-weight:600; | |
| } | |
| #analysis_output .analysis-status { | |
| color:#cbd5f5; | |
| font-size:15px; | |
| margin:0; | |
| text-align:center; | |
| } | |
| .analysis-caret { | |
| display:inline-block; | |
| width:2px; | |
| height:1.2em; | |
| margin-left:6px; | |
| background:#58a6ff; | |
| animation:analysisCaretBlink 1s steps(1) infinite; | |
| vertical-align:baseline; | |
| } | |
| @keyframes analysisCaretBlink { | |
| 0%, 49% { opacity:1; } | |
| 50%, 100% { opacity:0; } | |
| } | |
| @media (max-width: 860px) { | |
| #analysis_output { | |
| padding:0 12px; | |
| } | |
| #analysis_output .analysis-container { | |
| padding:18px 20px; | |
| border-radius:10px; | |
| } | |
| } | |
| /* buttons / slider */ | |
| .gr-button { | |
| border-radius:6px ; font-weight:600 ; height:52px ; | |
| background:linear-gradient(90deg,#4f46e5,#6366f1) ; border:none ; | |
| box-shadow:0 2px 4px rgba(0,0,0,.25); | |
| } | |
| .gr-slider { height:52px ; } | |
| .gr-slider input[type=range]::-webkit-slider-thumb { background:#6366f1 ; } | |
| /* tables */ | |
| .gr-dataframe table { width:100% ; color:#c9d1d9 ; background:#161b22 ; } | |
| .gr-dataframe th { background:#21262d ; color:#f0f6fc ; border-bottom:1px solid #30363d ; } | |
| .gr-dataframe td { border-top:1px solid #30363d ; padding:8px ; } | |
| #comparison_table table { table-layout:fixed; } | |
| #comparison_table table th:nth-child(1), | |
| #comparison_table table td:nth-child(1) { width:40% ; } | |
| #comparison_table table th:nth-child(2), | |
| #comparison_table table td:nth-child(2), | |
| #comparison_table table th:nth-child(3), | |
| #comparison_table table td:nth-child(3), | |
| #comparison_table table th:nth-child(4), | |
| #comparison_table table td:nth-child(4) { width:20% ; } | |