File size: 4,050 Bytes
c12625f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
import streamlit as st


def apply_theme() -> None:
    st.markdown(
        """
        <style>
        :root {
            --mm-accent: #4f46e5;
            --mm-accent-soft: #e0e7ff;
            --mm-text: #0f172a;
            --mm-subtle: #475569;
            --mm-card-bg: #ffffff;
            --mm-card-border: #e2e8f0;
            --mm-hero-bg-1: #eef2ff;
            --mm-hero-bg-2: #e0f2fe;
            --mm-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
        }

        @media (prefers-color-scheme: dark) {
            :root {
                --mm-accent: #818cf8;
                --mm-accent-soft: rgba(129, 140, 248, 0.12);
                --mm-text: #e2e8f0;
                --mm-subtle: #94a3b8;
                --mm-card-bg: #0f172a;
                --mm-card-border: #334155;
                --mm-hero-bg-1: #1e293b;
                --mm-hero-bg-2: #0f172a;
                --mm-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
            }
        }

        .block-container {
            padding-top: 2rem;
            padding-bottom: 2rem;
        }
        .mm-hero {
            background: linear-gradient(135deg, var(--mm-hero-bg-1) 0%, var(--mm-hero-bg-2) 100%);
            border: 1px solid var(--mm-card-border);
            border-radius: 18px;
            padding: 1.2rem 1.25rem;
            margin-bottom: 1rem;
            box-shadow: var(--mm-shadow);
            transition: transform 160ms ease, box-shadow 160ms ease;
        }
        .mm-hero:hover {
            transform: translateY(-1px);
        }
        .mm-hero h1 {
            margin: 0 0 0.25rem 0;
            font-size: 2rem;
            color: var(--mm-text);
        }
        .mm-subtle {
            color: var(--mm-subtle);
            margin: 0;
        }
        .mm-card {
            background: var(--mm-card-bg);
            border: 1px solid var(--mm-card-border);
            border-radius: 14px;
            padding: 0.9rem 1rem;
            margin-bottom: 0.75rem;
            box-shadow: var(--mm-shadow);
            color: var(--mm-text);
            transition: transform 140ms ease, border-color 140ms ease;
        }
        .mm-card:hover {
            transform: translateY(-1px);
            border-color: var(--mm-accent);
        }
        .mm-section-title {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--mm-text);
            margin: 0.1rem 0 0.65rem 0;
            letter-spacing: 0.1px;
        }
        .mm-feature-title {
            font-size: 0.98rem;
            font-weight: 700;
            color: var(--mm-text);
            margin-bottom: 0.2rem;
        }
        .mm-feature-text {
            font-size: 0.88rem;
            color: var(--mm-subtle);
            line-height: 1.4;
        }
        .mm-kpi {
            background: var(--mm-card-bg);
            border: 1px solid var(--mm-card-border);
            border-radius: 14px;
            padding: 0.85rem 0.9rem;
            text-align: center;
            box-shadow: var(--mm-shadow);
            transition: transform 140ms ease, border-color 140ms ease;
        }
        .mm-kpi:hover {
            transform: translateY(-1px);
            border-color: var(--mm-accent);
        }
        .mm-kpi-title {
            color: var(--mm-subtle);
            font-size: 0.8rem;
            margin-bottom: 0.2rem;
        }
        .mm-kpi-value {
            font-size: 1.25rem;
            font-weight: 700;
            color: var(--mm-text);
        }
        .stButton > button,
        .stDownloadButton > button {
            border-radius: 10px;
            border: 1px solid var(--mm-card-border);
            transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
        }
        .stButton > button:hover,
        .stDownloadButton > button:hover {
            transform: translateY(-1px);
            border-color: var(--mm-accent);
            box-shadow: 0 0 0 0.18rem var(--mm-accent-soft);
        }
        </style>
        """,
        unsafe_allow_html=True,
    )