Spaces:
Running
Running
File size: 25,846 Bytes
8643122 25b3b03 8643122 25b3b03 8643122 25b3b03 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 | /* CortexLab Futuristic Theme - Glassmorphism + Neon */
/* === GLOBAL === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');
:root {
--bg-primary: #050510;
--bg-secondary: rgba(15, 15, 35, 0.7);
--bg-glass: rgba(20, 20, 50, 0.4);
--border-glass: rgba(100, 100, 255, 0.15);
--accent-purple: #7C3AED;
--accent-blue: #3B82F6;
--accent-cyan: #06B6D4;
--accent-pink: #EC4899;
--accent-green: #10B981;
--text-primary: #F1F5F9;
--text-secondary: #94A3B8;
--glow-purple: 0 0 20px rgba(124, 58, 237, 0.3);
--glow-blue: 0 0 20px rgba(59, 130, 246, 0.3);
--glow-cyan: 0 0 15px rgba(6, 182, 212, 0.2);
}
/* === HIDE STREAMLIT BRANDING (but keep the sidebar toggle reachable) === */
#MainMenu, footer {
visibility: hidden;
}
div[data-testid="stToolbar"] {
display: none;
}
div[data-testid="stDecoration"] {
display: none;
}
/* Streamlit's top header contains the sidebar toggle hamburger; we
* keep it visible but flatten the background so it doesn't conflict
* with our custom tr-header. */
header[data-testid="stHeader"] {
background: transparent !important;
height: auto;
}
header[data-testid="stHeader"]::before { display: none; }
button[data-testid="stSidebarCollapsedControl"],
button[data-testid="stSidebarToggle"],
button[data-testid="stBaseButton-headerNoPadding"] {
color: var(--text-primary) !important;
opacity: 0.9;
}
/* === BASE === */
.stApp {
background: var(--bg-primary);
background-image:
radial-gradient(ellipse at 20% 50%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
radial-gradient(ellipse at 80% 20%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
radial-gradient(ellipse at 50% 80%, rgba(6, 182, 212, 0.04) 0%, transparent 50%);
color: var(--text-primary);
font-family: 'Inter', sans-serif;
}
/* === SIDEBAR === */
section[data-testid="stSidebar"] {
background: linear-gradient(180deg, rgba(10, 10, 30, 0.95) 0%, rgba(5, 5, 20, 0.98) 100%);
border-right: 1px solid var(--border-glass);
}
section[data-testid="stSidebar"] .stMarkdown h1,
section[data-testid="stSidebar"] .stMarkdown h2,
section[data-testid="stSidebar"] .stMarkdown h3 {
color: var(--accent-cyan);
font-weight: 600;
letter-spacing: -0.02em;
}
/* === GLASSMORPHISM CONTAINERS === */
div[data-testid="stVerticalBlock"] > div[data-testid="stVerticalBlockBorderWrapper"] {
background: var(--bg-glass);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid var(--border-glass);
border-radius: 16px;
padding: 1.5rem;
box-shadow: var(--glow-purple);
}
/* Expanders */
div[data-testid="stExpander"] {
background: var(--bg-glass);
backdrop-filter: blur(10px);
border: 1px solid var(--border-glass);
border-radius: 12px;
}
div[data-testid="stExpander"] summary {
color: var(--text-primary);
font-weight: 500;
}
/* === METRICS === */
div[data-testid="stMetric"] {
background: var(--bg-glass);
backdrop-filter: blur(10px);
border: 1px solid var(--border-glass);
border-radius: 12px;
padding: 1rem 1.2rem;
box-shadow: var(--glow-blue);
transition: all 0.3s ease;
}
div[data-testid="stMetric"]:hover {
border-color: var(--accent-cyan);
box-shadow: var(--glow-cyan), 0 4px 20px rgba(6, 182, 212, 0.1);
transform: translateY(-2px);
}
div[data-testid="stMetric"] label {
color: var(--text-secondary);
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.08em;
}
div[data-testid="stMetric"] div[data-testid="stMetricValue"] {
color: var(--accent-cyan);
font-weight: 700;
font-size: 1.8rem;
}
div[data-testid="stMetric"] div[data-testid="stMetricDelta"] {
color: var(--accent-green);
}
/* === HEADINGS === */
.stMarkdown h1 {
background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
font-weight: 700;
font-size: 2.5rem;
letter-spacing: -0.03em;
}
.stMarkdown h2 {
color: var(--text-primary);
font-weight: 600;
font-size: 1.4rem;
letter-spacing: -0.02em;
border-bottom: 1px solid var(--border-glass);
padding-bottom: 0.5rem;
}
.stMarkdown h3 {
color: var(--accent-blue);
font-weight: 600;
}
/* === BUTTONS === */
.stButton > button {
background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
color: white;
border: none;
border-radius: 10px;
padding: 0.6rem 1.5rem;
font-weight: 600;
letter-spacing: 0.02em;
transition: all 0.3s ease;
box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}
.stButton > button:hover {
box-shadow: 0 6px 25px rgba(124, 58, 237, 0.5);
transform: translateY(-2px);
}
/* === PAGE LINKS === */
a[data-testid="stPageLink-NavLink"] {
background: var(--bg-glass);
backdrop-filter: blur(8px);
border: 1px solid var(--border-glass);
border-radius: 12px;
padding: 0.8rem 1rem;
transition: all 0.3s ease;
}
a[data-testid="stPageLink-NavLink"]:hover {
border-color: var(--accent-purple);
box-shadow: var(--glow-purple);
transform: translateX(4px);
}
/* === DATAFRAMES === */
div[data-testid="stDataFrame"] {
border-radius: 12px;
overflow: hidden;
border: 1px solid var(--border-glass);
}
div[data-testid="stDataFrame"] table {
background: var(--bg-secondary);
}
/* === SELECT / INPUT === */
div[data-testid="stSelectbox"],
div[data-testid="stMultiSelect"],
div[data-testid="stNumberInput"],
div[data-testid="stSlider"] {
color: var(--text-primary);
}
div[data-baseweb="select"] {
background: var(--bg-glass);
border-color: var(--border-glass);
border-radius: 8px;
}
/* === DIVIDER === */
hr {
border-color: var(--border-glass);
opacity: 0.5;
}
/* === TABS === */
div[data-baseweb="tab-list"] {
gap: 0.5rem;
}
button[data-baseweb="tab"] {
background: var(--bg-glass);
border: 1px solid var(--border-glass);
border-radius: 8px;
color: var(--text-secondary);
transition: all 0.3s ease;
}
button[data-baseweb="tab"]:hover,
button[data-baseweb="tab"][aria-selected="true"] {
background: rgba(124, 58, 237, 0.2);
border-color: var(--accent-purple);
color: var(--text-primary);
}
/* === CAPTIONS === */
.stCaption, .stMarkdown small, figcaption {
color: var(--text-secondary);
font-size: 0.8rem;
}
/* === PLOTLY CHARTS === */
div[data-testid="stPlotlyChart"] {
border-radius: 12px;
overflow: hidden;
border: 1px solid var(--border-glass);
box-shadow: var(--glow-blue);
}
/* === SCROLLBAR === */
::-webkit-scrollbar {
width: 6px;
}
::-webkit-scrollbar-track {
background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
background: var(--accent-purple);
border-radius: 3px;
}
/* === ANIMATED GLOW BORDER FOR MAIN CONTENT === */
@keyframes borderGlow {
0%, 100% { border-color: rgba(124, 58, 237, 0.2); }
50% { border-color: rgba(6, 182, 212, 0.3); }
}
div[data-testid="stVerticalBlock"] > div:first-child {
animation: borderGlow 4s ease infinite;
}
/* === WARNING/INFO/SUCCESS === */
div[data-testid="stAlert"] {
background: var(--bg-glass);
backdrop-filter: blur(8px);
border-radius: 10px;
}
/* === SPINNER === */
div[data-testid="stSpinner"] {
color: var(--accent-cyan);
}
/* === DOWNLOAD BUTTON === */
.stDownloadButton > button {
background: transparent;
border: 1px solid var(--accent-cyan);
color: var(--accent-cyan);
border-radius: 8px;
}
.stDownloadButton > button:hover {
background: rgba(6, 182, 212, 0.1);
box-shadow: var(--glow-cyan);
}
/* === CODE BLOCKS === */
code {
font-family: 'JetBrains Mono', monospace;
background: rgba(30, 30, 60, 0.6);
border: 1px solid var(--border-glass);
border-radius: 4px;
color: var(--accent-cyan);
}
/* === TRIBE-STYLE HEADER + HERO ====================================== */
.tr-header {
display: grid;
grid-template-columns: 1fr auto 1fr;
align-items: center;
padding: 1.2rem 1.5rem;
margin: -1rem -1rem 1.5rem -1rem;
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
background: linear-gradient(180deg,
rgba(5, 5, 16, 0.92) 0%,
rgba(5, 5, 16, 0.65) 100%);
backdrop-filter: blur(14px);
}
.tr-header-left { display: flex; flex-direction: column; line-height: 1; }
.tr-header-title {
font-size: 1.05rem;
font-weight: 700;
color: var(--text-primary);
letter-spacing: -0.01em;
}
.tr-header-subtitle {
font-size: 0.72rem;
color: var(--text-secondary);
margin-top: 0.2rem;
font-weight: 400;
}
.tr-header-center {
text-align: center;
color: var(--text-secondary);
font-size: 0.85rem;
font-weight: 500;
letter-spacing: 0.02em;
opacity: 0.85;
}
.tr-header-right {
text-align: right;
display: flex;
justify-content: flex-end;
gap: 1.5rem;
}
.tr-nav-link {
color: var(--text-primary);
font-size: 0.85rem;
font-weight: 500;
text-decoration: none;
opacity: 0.75;
transition: opacity 0.2s ease;
}
.tr-nav-link:hover { opacity: 1; }
.tr-arrow {
display: inline-block;
transform: rotate(0deg);
margin-left: 0.15rem;
font-size: 0.75rem;
opacity: 0.6;
}
/* === Architecture explainer card ==================================== */
.tr-arch {
padding: 0.5rem 0.5rem 1rem 0;
}
.tr-arch-title {
font-size: 1.9rem;
font-weight: 700;
color: var(--text-primary);
letter-spacing: -0.02em;
margin: 0.5rem 0 1rem 0;
line-height: 1.2;
}
.tr-arch-intro {
color: var(--text-secondary);
font-size: 0.95rem;
margin: 0 0 1.5rem 0;
line-height: 1.55;
}
.tr-step-list {
list-style: none;
padding: 0;
margin: 0;
}
.tr-step {
display: flex;
gap: 1rem;
margin-bottom: 1.3rem;
align-items: flex-start;
}
.tr-step-num {
flex-shrink: 0;
width: 1.6rem;
height: 1.6rem;
border-radius: 50%;
background: rgba(255, 255, 255, 0.08);
border: 1px solid rgba(255, 255, 255, 0.18);
display: flex;
align-items: center;
justify-content: center;
font-size: 0.78rem;
color: var(--text-secondary);
margin-top: 0.1rem;
font-feature-settings: "tnum";
}
.tr-step-body { flex: 1; }
.tr-step-title {
color: var(--text-primary);
font-size: 0.95rem;
font-weight: 600;
display: block;
margin-bottom: 0.25rem;
}
.tr-step-text {
color: var(--text-secondary);
font-size: 0.85rem;
line-height: 1.55;
margin: 0;
}
.tr-step-text u {
text-decoration: none;
border-bottom: 1px dotted rgba(124, 58, 237, 0.6);
color: #C4B5FD;
}
/* === Pipeline diagram =============================================== */
.tr-pipeline {
display: flex;
align-items: center;
gap: 0.5rem;
margin: 1.5rem 0 0 0;
padding: 1rem;
background: rgba(15, 15, 35, 0.4);
border: 1px solid rgba(255, 255, 255, 0.06);
border-radius: 14px;
flex-wrap: wrap;
}
.tr-pipe-rows {
display: flex;
flex-direction: column;
gap: 0.5rem;
flex: 1;
min-width: 240px;
}
.tr-pipe-row {
display: flex;
align-items: center;
gap: 0.6rem;
}
.tr-pipe-source {
flex: 1;
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(255, 255, 255, 0.10);
border-radius: 8px;
padding: 0.4rem 0.7rem;
color: var(--text-primary);
font-size: 0.8rem;
display: flex;
align-items: center;
gap: 0.5rem;
}
.tr-pipe-icon {
color: var(--text-secondary);
font-size: 0.8rem;
width: 1rem;
text-align: center;
}
.tr-pipe-icon-lg {
font-size: 1.4rem;
color: var(--text-primary);
line-height: 1;
margin-bottom: 0.3rem;
}
.tr-pipe-arrow {
color: var(--text-secondary);
font-size: 0.85rem;
opacity: 0.5;
}
.tr-pipe-arrow-h { font-size: 1rem; }
.tr-pipe-model {
background: rgba(124, 58, 237, 0.10);
border: 1px solid rgba(124, 58, 237, 0.25);
color: #DDD6FE;
border-radius: 8px;
padding: 0.4rem 0.7rem;
font-size: 0.78rem;
font-weight: 500;
min-width: 100px;
text-align: center;
}
.tr-pipe-fuse {
background: rgba(59, 130, 246, 0.10);
border: 1px solid rgba(59, 130, 246, 0.25);
border-radius: 10px;
padding: 0.7rem 0.6rem;
color: #BFDBFE;
text-align: center;
min-width: 80px;
}
.tr-pipe-label {
font-size: 0.72rem;
line-height: 1.2;
color: var(--text-secondary);
}
/* === Demo panel (right column wrapper) ============================== */
.tr-demo-card {
background: rgba(15, 15, 35, 0.55);
backdrop-filter: blur(12px);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 18px;
padding: 1rem 1rem 0.5rem 1rem;
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4),
0 0 0 1px rgba(124, 58, 237, 0.05);
}
.tr-demo-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 0.6rem;
padding: 0.2rem 0.4rem 0.6rem 0.4rem;
border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.tr-demo-title {
color: var(--text-secondary);
font-size: 0.78rem;
text-transform: uppercase;
letter-spacing: 0.08em;
font-weight: 600;
}
.tr-demo-cbar {
display: flex;
align-items: center;
gap: 0.4rem;
position: relative;
}
.tr-demo-cbar-label {
font-size: 0.7rem;
color: var(--text-secondary);
font-weight: 500;
}
.tr-demo-cbar-grad {
width: 80px;
height: 6px;
border-radius: 3px;
background: linear-gradient(90deg, #1F2937 0%, #DC2626 35%, #F97316 65%, #FCD34D 100%);
box-shadow: 0 0 8px rgba(252, 211, 77, 0.25);
}
.tr-demo-cbar-caption {
position: absolute;
bottom: -1.1rem;
left: 0;
right: 0;
text-align: center;
font-size: 0.65rem;
color: var(--text-secondary);
text-transform: uppercase;
letter-spacing: 0.08em;
}
/* === Segmented controls (True / Compare / Predicted etc) ============ */
/* Restyle st.radio horizontal as a pill group. */
.tr-segmented div[role="radiogroup"] {
display: inline-flex;
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 10px;
padding: 0.2rem;
gap: 0;
}
.tr-segmented div[role="radiogroup"] label {
margin: 0 !important;
padding: 0.4rem 1rem !important;
border-radius: 7px;
cursor: pointer;
color: var(--text-secondary) !important;
font-size: 0.82rem !important;
transition: all 0.2s ease;
background: transparent !important;
}
.tr-segmented div[role="radiogroup"] label:has(input:checked) {
background: rgba(255, 255, 255, 0.10) !important;
color: var(--text-primary) !important;
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}
/* sr-only: hide visually but keep input in layout so BaseWeb onChange fires */
.tr-segmented div[role="radiogroup"] input {
position: absolute !important;
opacity: 0 !important;
width: 1px !important;
height: 1px !important;
margin: -1px !important;
padding: 0 !important;
overflow: hidden !important;
clip: rect(0, 0, 0, 0) !important;
border: 0 !important;
}
/* Hide the BaseWeb visual radio dot, but keep it click-targetable */
.tr-segmented div[role="radiogroup"] label > div:first-child {
width: 0 !important;
height: 0 !important;
overflow: hidden !important;
opacity: 0 !important;
margin: 0 !important;
padding: 0 !important;
border: 0 !important;
}
.tr-segmented div[role="radiogroup"] label > div:last-child p { margin: 0 !important; }
/* Tab strip: thin underline on the active tab */
.stTabs [data-baseweb="tab-list"] {
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
gap: 1.5rem;
}
.stTabs [data-baseweb="tab"] {
padding: 0.5rem 0;
color: var(--text-secondary);
font-size: 0.85rem;
background: transparent !important;
}
.stTabs [data-baseweb="tab"][aria-selected="true"] {
color: var(--text-primary);
border-bottom: 2px solid var(--accent-purple);
}
/* === TRIBE-style footer ============================================== */
.tr-foot {
margin: 4rem -1rem 0 -1rem;
padding: 3rem 2rem 1.5rem 2rem;
border-top: 1px solid rgba(255, 255, 255, 0.06);
background: linear-gradient(180deg,
rgba(0, 0, 0, 0) 0%,
rgba(255, 255, 255, 0.015) 100%);
}
.tr-foot-grid {
display: grid;
grid-template-columns: 1.4fr 1fr 1fr 1fr;
gap: 2.5rem;
max-width: 1200px;
margin: 0 auto;
}
.tr-foot-brand-logo {
display: flex;
gap: 0.4rem;
margin-bottom: 0.7rem;
}
.tr-foot-dot {
width: 0.6rem;
height: 0.6rem;
border-radius: 50%;
display: inline-block;
}
.tr-foot-dot-a { background: var(--accent-purple); box-shadow: 0 0 8px var(--accent-purple); }
.tr-foot-dot-b { background: var(--accent-blue); box-shadow: 0 0 8px var(--accent-blue); }
.tr-foot-dot-c { background: var(--accent-cyan); box-shadow: 0 0 8px var(--accent-cyan); }
.tr-foot-brand-title {
font-size: 1.15rem;
font-weight: 700;
color: var(--text-primary);
letter-spacing: -0.01em;
margin-bottom: 0.25rem;
}
.tr-foot-brand-tagline {
color: var(--text-secondary);
font-size: 0.85rem;
line-height: 1.5;
margin-bottom: 1rem;
max-width: 18rem;
}
.tr-foot-built {
font-size: 0.78rem;
color: var(--text-secondary);
opacity: 0.8;
}
.tr-foot-built a {
color: var(--accent-purple);
text-decoration: none;
}
.tr-foot-col-title {
color: var(--text-primary);
font-size: 0.78rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.1em;
margin-bottom: 0.9rem;
}
.tr-foot-list {
list-style: none;
padding: 0;
margin: 0;
display: flex;
flex-direction: column;
gap: 0.55rem;
}
.tr-foot-link {
color: var(--text-secondary);
text-decoration: none;
font-size: 0.85rem;
transition: color 0.2s ease;
}
.tr-foot-link:hover {
color: var(--text-primary);
}
.tr-foot-rule {
margin: 2.5rem auto 1rem auto;
max-width: 1200px;
border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.tr-foot-legal {
max-width: 1200px;
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
color: var(--text-secondary);
font-size: 0.72rem;
opacity: 0.7;
}
.tr-foot-legal-right {
display: flex;
gap: 0.6rem;
align-items: center;
}
.tr-foot-legal-right a {
color: var(--text-secondary);
text-decoration: none;
}
.tr-foot-legal-right a:hover { color: var(--text-primary); }
/* === Feature card grid (Analysis tools) ============================== */
.cl-feature-card {
--card-accent: #7C3AED;
background: rgba(15, 15, 35, 0.55);
backdrop-filter: blur(10px);
border: 1px solid color-mix(in srgb, var(--card-accent) 25%, transparent);
border-radius: 14px;
padding: 1.3rem 1.4rem 1.1rem 1.4rem;
transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
display: flex;
flex-direction: column;
min-height: 220px; /* uniform across the grid */
text-decoration: none;
}
.cl-feature-card:hover {
border-color: color-mix(in srgb, var(--card-accent) 70%, transparent);
box-shadow: 0 6px 24px color-mix(in srgb, var(--card-accent) 18%, transparent);
transform: translateY(-2px);
}
.cl-feature-icon {
font-size: 1.5rem;
margin-bottom: 0.6rem;
line-height: 1;
}
.cl-feature-title {
color: var(--card-accent);
font-size: 1.0rem;
font-weight: 600;
margin-bottom: 0.45rem;
letter-spacing: -0.005em;
}
.cl-feature-desc {
color: var(--text-secondary);
font-size: 0.83rem;
line-height: 1.55;
flex: 1; /* push CTA to the bottom of the card */
margin-bottom: 0.9rem;
}
.cl-feature-cta {
display: flex;
align-items: center;
justify-content: space-between;
color: var(--text-primary);
font-size: 0.82rem;
font-weight: 500;
border-top: 1px solid rgba(255, 255, 255, 0.06);
padding-top: 0.75rem;
margin-top: auto;
transition: color 0.2s ease;
}
.cl-feature-arrow {
transition: transform 0.2s ease;
color: var(--card-accent);
font-weight: 600;
}
.cl-feature-card:hover .cl-feature-arrow {
transform: translateX(4px);
}
.cl-feature-link {
display: flex;
cursor: pointer;
color: inherit;
}
.cl-feature-link:visited { color: inherit; }
/* === Sidebar pre-hide (kill the initial flicker) ===================== */
/* Streamlit's collapsed sidebar still flashes briefly on first paint
* before its inline width animation finishes. Force the collapsed
* state at CSS level so users don't see the flash. The hamburger
* toggle stays clickable to expand it on demand. */
section[data-testid="stSidebar"][aria-expanded="false"] {
transform: translateX(-100%);
transition: transform 0.25s ease, width 0.25s ease;
visibility: hidden;
}
section[data-testid="stSidebar"][aria-expanded="true"] {
transform: translateX(0);
visibility: visible;
}
/* === Feature card refinements: anchor + spans + SVG icons =========== */
.cl-feature-card,
.cl-feature-card:visited,
.cl-feature-card:hover,
.cl-feature-card:focus {
text-decoration: none !important;
color: inherit;
}
.cl-feature-card span {
display: block;
text-decoration: none !important;
}
.cl-feature-card .cl-feature-cta-label,
.cl-feature-card .cl-feature-arrow {
display: inline-flex;
align-items: center;
}
/* Inline SVG icon block at the top of each card. */
.cl-feature-icon {
width: 2.0rem;
height: 2.0rem;
margin-bottom: 0.7rem;
color: var(--card-accent);
line-height: 1;
}
.cl-feature-icon svg {
width: 100%;
height: 100%;
display: block;
}
/* Arrow at bottom-right of the CTA strip; tints with the card accent. */
.cl-feature-arrow svg {
width: 1.05rem;
height: 1.05rem;
display: block;
}
.cl-feature-cta {
display: flex !important; /* override the .cl-feature-card span block rule */
align-items: center;
justify-content: space-between;
}
/* === Stat card (glow_card) and section header — variable-driven ===== */
.cl-stat-card {
--card-accent: #06B6D4;
background: var(--bg-glass);
backdrop-filter: blur(10px);
border: 1px solid color-mix(in srgb, var(--card-accent) 25%, var(--border-glass));
border-radius: 14px;
padding: 1.2rem 1rem;
text-align: center;
transition: border-color 0.2s ease, box-shadow 0.2s ease;
box-shadow: 0 0 22px color-mix(in srgb, var(--card-accent) 12%, transparent);
}
.cl-stat-card:hover {
border-color: color-mix(in srgb, var(--card-accent) 50%, var(--border-glass));
box-shadow: 0 0 32px color-mix(in srgb, var(--card-accent) 20%, transparent);
}
.cl-stat-label {
color: var(--text-secondary);
font-size: 0.72rem;
text-transform: uppercase;
letter-spacing: 0.1em;
margin-bottom: 0.4rem;
font-weight: 600;
}
.cl-stat-value {
color: var(--card-accent);
font-size: 2.0rem;
font-weight: 700;
letter-spacing: -0.02em;
line-height: 1.1;
}
.cl-stat-sub {
color: var(--text-secondary);
font-size: 0.74rem;
margin-top: 0.25rem;
opacity: 0.8;
}
.cl-section {
margin: 1.5rem 0 1rem 0;
}
.cl-section-title {
color: var(--text-primary);
font-size: 1.25rem;
font-weight: 600;
letter-spacing: -0.01em;
margin: 0 0 0.3rem 0;
padding-bottom: 0.4rem;
border-bottom: 1px solid var(--border-glass);
}
.cl-section-desc {
color: var(--text-secondary);
font-size: 0.85rem;
margin: 0;
}
/* The original .cl-feature-card relied on a hardcoded dark background.
* Switch it to the theme variable so the white overlay can re-skin it. */
.cl-feature-card {
background: var(--bg-glass);
}
/* === Theme toggle switch (sliding pill, sun/moon, in the header) ==== */
.tr-header-right {
display: flex;
align-items: center;
gap: 1.2rem;
justify-content: flex-end;
}
.tr-toggle {
text-decoration: none !important;
display: inline-flex;
align-items: center;
line-height: 1;
color: var(--text-primary);
}
.tr-toggle-track {
position: relative;
display: inline-flex;
align-items: center;
justify-content: space-between;
width: 3.4rem;
height: 1.6rem;
padding: 0 0.35rem;
background: rgba(255, 255, 255, 0.06);
border: 1px solid rgba(255, 255, 255, 0.14);
border-radius: 999px;
transition: background 0.25s ease, border-color 0.25s ease;
box-sizing: border-box;
}
.tr-toggle-track:hover {
border-color: rgba(255, 255, 255, 0.28);
}
.tr-toggle-side {
width: 0.95rem;
height: 0.95rem;
color: var(--text-secondary);
opacity: 0.55;
transition: opacity 0.2s ease, color 0.2s ease;
z-index: 0;
pointer-events: none;
}
.tr-toggle-icon {
width: 100%;
height: 100%;
display: block;
}
/* Active side glows; inactive side fades out */
.tr-toggle-track.off .tr-toggle-left {
opacity: 1;
color: #E2E8F0;
}
.tr-toggle-track.on .tr-toggle-right {
opacity: 1;
color: #FBBF24;
}
.tr-toggle-knob {
position: absolute;
top: 50%;
width: 1.25rem;
height: 1.25rem;
border-radius: 50%;
background: linear-gradient(180deg, #F8FAFC 0%, #CBD5E1 100%);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
transform: translateY(-50%) translateX(0);
transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
z-index: 1;
pointer-events: none;
}
.tr-toggle-track.off .tr-toggle-knob {
transform: translateY(-50%) translateX(0);
left: 0.18rem;
}
.tr-toggle-track.on .tr-toggle-knob {
transform: translateY(-50%) translateX(1.78rem);
left: 0.18rem;
}
|