File size: 8,069 Bytes
239347e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
506bf08
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
"""
core/styles.py
All CSS for the Second Brain Gradio app.
"""

CSS = """
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Reset & base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body, .gradio-container {
    font-family: 'Sora', system-ui, sans-serif !important;
    background: #060a12 !important;
    color: #cbd5e1 !important;
}
.gradio-container { max-width: 1200px !important; margin: 0 auto !important; }
.main { padding: 16px !important; }

/* ── Auth card ─────────────────────────────────────────── */
#auth-card {
    max-width: 420px;
    margin: 48px auto 0;
    background: #0d1117;
    border: 1px solid #1e293b;
    border-radius: 20px;
    padding: 40px 36px 32px;
    box-shadow: 0 0 80px rgba(99,102,241,.1);
}
#brand-logo {
    font-size: 28px; font-weight: 700; text-align: center;
    background: linear-gradient(135deg, #a78bfa 0%, #60a5fa 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}
#brand-sub { text-align: center; color: #334155; font-size: 13px; margin-bottom: 28px; }

/* ── Top header ────────────────────────────────────────── */
#top-header {
    background: #0d1117;
    border: 1px solid #1e293b;
    border-radius: 14px;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
#top-header-brand {
    font-size: 18px; font-weight: 700;
    background: linear-gradient(135deg, #a78bfa, #60a5fa);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
#top-header-user { font-size: 12px; color: #334155; }

/* ── Stat cards ────────────────────────────────────────── */
.stat-card {
    background: #0d1117;
    border: 1px solid #1e293b;
    border-radius: 14px;
    padding: 18px 12px;
    text-align: center;
    min-height: 90px;
}
.stat-num   { font-size: 36px; font-weight: 700; line-height: 1; }
.stat-label { font-size: 10px; color: #334155; margin-top: 6px;
              text-transform: uppercase; letter-spacing: .8px; }

/* ── Panels ────────────────────────────────────────────── */
.panel {
    background: #0d1117;
    border: 1px solid #1e293b;
    border-radius: 14px;
    padding: 22px 20px;
    margin-top: 14px;
}
.sec-label {
    font-size: 10px; text-transform: uppercase; letter-spacing: 1.2px;
    color: #334155; font-weight: 600; margin-bottom: 16px;
}

/* ── Buttons ───────────────────────────────────────────── */
.btn-primary button {
    background: linear-gradient(135deg,#6366f1,#8b5cf6) !important;
    color: #fff !important; font-weight: 600 !important;
    border: none !important; border-radius: 10px !important;
    font-family: 'Sora', sans-serif !important;
    transition: opacity .15s !important;
}
.btn-primary button:hover { opacity: .85 !important; }

.btn-accent button {
    background: linear-gradient(135deg,#0ea5e9,#6366f1) !important;
    color: #fff !important; font-weight: 600 !important;
    border: none !important; border-radius: 10px !important;
    font-family: 'Sora', sans-serif !important;
}
.btn-secondary button {
    background: #161b27 !important; color: #64748b !important;
    border: 1px solid #1e293b !important; border-radius: 10px !important;
    font-family: 'Sora', sans-serif !important;
}
.btn-success button {
    background: #052e16 !important; color: #4ade80 !important;
    border: 1px solid #14532d !important; border-radius: 10px !important;
    font-family: 'Sora', sans-serif !important;
}
.btn-danger button {
    background: #1c0606 !important; color: #f87171 !important;
    border: 1px solid #450a0a !important; border-radius: 10px !important;
    font-family: 'Sora', sans-serif !important;
}

/* ── Inputs ────────────────────────────────────────────── */
input, textarea, select {
    background: #060a12 !important;
    border: 1px solid #1e293b !important;
    border-radius: 10px !important;
    color: #e2e8f0 !important;
    font-family: 'Sora', sans-serif !important;
}
input:focus, textarea:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 2px rgba(99,102,241,.18) !important;
}
label { color: #475569 !important; font-size: 12px !important; font-weight: 500 !important; }

/* ── Tabs ──────────────────────────────────────────────── */
.tab-nav button {
    color: #334155 !important; font-family: 'Sora', sans-serif !important;
    font-weight: 500 !important; background: transparent !important;
    border: none !important; border-bottom: 2px solid transparent !important;
    padding: 10px 18px !important; font-size: 13px !important;
}
.tab-nav button.selected {
    color: #a78bfa !important;
    border-bottom: 2px solid #a78bfa !important;
}

/* ── Dataframe ─────────────────────────────────────────── */
.dataframe thead th {
    background: #0d1117 !important; color: #334155 !important;
    font-size: 10px !important; text-transform: uppercase !important;
    letter-spacing: .6px !important; padding: 10px 12px !important;
    font-family: 'Sora', sans-serif !important; border: none !important;
}
.dataframe tbody td {
    background: #060a12 !important; color: #94a3b8 !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 12px !important; padding: 9px 12px !important;
    border-bottom: 1px solid #0d1117 !important;
}
.dataframe tbody tr:hover td { background: #0d1117 !important; }

/* ── Chatbot ───────────────────────────────────────────── */
.chatbot {
    background: #060a12 !important;
    border: 1px solid #1e293b !important;
    border-radius: 14px !important;
}

/* ── Schedule cards ────────────────────────────────────── */
.sched-card {
    background: #0d1117;
    border: 1px solid #1e293b;
    border-left: 3px solid #6366f1;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 8px;
}
.sched-time  { font-size: 11px; font-family: 'JetBrains Mono',monospace; color: #6366f1; font-weight: 600; }
.sched-title { font-size: 14px; font-weight: 600; color: #f1f5f9; margin: 2px 0 4px; }
.sched-meta  { font-size: 11px; color: #334155; }
.sched-why   { font-size: 11px; color: #475569; font-style: italic; margin-top: 3px; }

/* ── Life area chips ───────────────────────────────────── */
.chip {
    display: inline-block; padding: 4px 12px; border-radius: 20px;
    font-size: 12px; font-weight: 600; margin: 3px;
}

/* ── Status messages ───────────────────────────────────── */
.ok  { color: #4ade80; font-size: 13px; }
.err { color: #f87171; font-size: 13px; }
.inf { color: #60a5fa; font-size: 13px; }

/* ── Misc ──────────────────────────────────────────────── */
hr { border-color: #1e293b !important; margin: 16px 0 !important; }
.hidden { display: none !important; }
"""