Repository navigation
Expand file tree
/
Copy pathstyles.css
More file actions
175 lines (163 loc) · 13.7 KB
/
Copy pathstyles.css
File metadata and controls
175 lines (163 loc) · 13.7 KB
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
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');
:root {
color: #eaf5f0;
background: #061410;
font-family: 'DM Sans', sans-serif;
font-synthesis: none;
--ink: #eaf5f0;
--muted: #89a49a;
--line: rgba(156, 193, 178, 0.14);
--panel: rgba(12, 36, 29, 0.72);
--lime: #b8f23f;
--mint: #56d6a4;
--coral: #ff856f;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
body::before {
content: '';
position: fixed;
inset: 0;
pointer-events: none;
background:
radial-gradient(circle at 72% -10%, rgba(94, 190, 143, .18), transparent 31rem),
linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
background-size: auto, 48px 48px, 48px 48px;
}
.app-shell { position: relative; max-width: 1320px; margin: auto; padding: 0 44px; }
.topbar { height: 88px; display: flex; align-items: center; border-bottom: 1px solid var(--line); gap: 32px; }
.brand { color: var(--ink); display: flex; align-items: center; gap: 11px; text-decoration: none; font: 800 20px 'Manrope'; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: #07140f; background: var(--lime); }
.hero { min-height: 390px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.eyebrow { color: var(--lime); font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.hero h1 { font: 800 clamp(48px, 7.2vw, 94px)/.91 'Manrope'; letter-spacing: -.065em; margin: 15px 0 23px; }
.hero h1 em { color: var(--lime); font-style: normal; }
.hero p { color: var(--muted); font-size: 16px; line-height: 1.7; max-width: 520px; margin: 0; }
.month-picker { display: grid; gap: 10px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.month-picker .picker-trigger { min-width: 190px; padding: 14px 16px; border-radius: 12px; background: var(--panel); }
.month-picker .calendar-popover { right: 0; left: auto; }
.error-banner { padding: 12px 16px; border: 1px solid rgba(255,133,111,.35); background: rgba(255,133,111,.1); color: #ffc2b7; border-radius: 10px; margin-bottom: 18px; }
.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 17px; overflow: hidden; background: rgba(7, 27, 21, .75); }
.summary-card { padding: 27px 30px; display: grid; gap: 9px; position: relative; }
.summary-card + .summary-card { border-left: 1px solid var(--line); }
.summary-card span, .summary-card small { color: var(--muted); }
.summary-card span { font-size: 12px; font-weight: 700; }
.summary-card strong { font: 700 clamp(25px, 3.2vw, 38px) 'Manrope'; letter-spacing: -.035em; }
.summary-card small { font-size: 11px; }
.summary-card--income strong { color: var(--mint); }
.summary-card--expense strong { color: var(--coral); }
.analysis-panel { margin-top: 20px; overflow: hidden; }
.analysis-caption { color: var(--muted); font-size: 11px; }
.analysis-grid { display: grid; grid-template-columns: .8fr 1.2fr; }
.chart-card { min-width: 0; padding: 25px 27px 28px; }
.chart-card + .chart-card { border-left: 1px solid var(--line); }
.chart-heading h3 { margin: 0; font: 700 14px 'Manrope'; }
.chart-heading p { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.flow-chart { height: 205px; display: flex; align-items: flex-end; justify-content: center; gap: clamp(28px, 5vw, 68px); padding-top: 25px; }
.flow-column { height: 100%; min-width: 90px; display: grid; grid-template-rows: auto 1fr auto; justify-items: center; gap: 9px; }
.flow-column strong { font-size: 11px; }
.flow-column small { color: var(--muted); font-size: 10px; }
.flow-track { width: 54px; height: 100%; display: flex; align-items: flex-end; overflow: hidden; border-radius: 9px 9px 4px 4px; background: rgba(255,255,255,.035); }
.flow-fill { width: 100%; min-height: 3px; border-radius: 9px 9px 3px 3px; transition: height .35s ease; }
.flow-fill.income { background: linear-gradient(180deg, var(--mint), rgba(86,214,164,.35)); }
.flow-fill.expense { background: linear-gradient(180deg, var(--coral), rgba(255,133,111,.35)); }
.category-chart { display: grid; gap: 17px; margin-top: 27px; }
.category-row { display: grid; gap: 8px; }
.category-label { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.category-label strong { font-size: 11px; }
.category-label span { color: var(--muted); font-size: 10px; }
.category-track { height: 7px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.045); }
.category-track span { display: block; height: 100%; min-width: 3px; border-radius: inherit; background: linear-gradient(90deg, var(--lime), var(--mint)); transition: width .35s ease; }
.chart-empty { min-height: 164px; margin: 24px 0 0; padding: 42px 20px; display: grid; place-items: center; color: var(--muted); font-size: 11px; line-height: 1.6; text-align: center; border: 1px dashed var(--line); border-radius: 11px; }
.content-grid { display: grid; grid-template-columns: 1.35fr .8fr; gap: 20px; margin-top: 20px; align-items: start; }
.panel, .transaction-form { border: 1px solid var(--line); border-radius: 17px; background: var(--panel); backdrop-filter: blur(20px); }
.panel-heading, .form-heading { display: flex; align-items: center; justify-content: space-between; padding: 25px 27px; border-bottom: 1px solid var(--line); }
.panel h2, .transaction-form h2 { font: 700 19px 'Manrope'; margin: 7px 0 0; }
.count-badge { border: 1px solid var(--line); color: var(--muted); border-radius: 99px; min-width: 30px; height: 30px; display: grid; place-items: center; font-size: 11px; }
.transaction-list { padding: 5px 25px 12px; }
.transaction-item { display: grid; grid-template-columns: 42px 1fr auto 26px; align-items: center; gap: 13px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.transaction-item:last-child { border: 0; }
.transaction-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-weight: 700; }
.transaction-icon.income { color: var(--mint); background: rgba(86,214,164,.1); }
.transaction-icon.expense { color: var(--coral); background: rgba(255,133,111,.1); }
.transaction-copy { display: grid; gap: 4px; min-width: 0; }
.transaction-copy strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.transaction-copy span { color: var(--muted); font-size: 11px; }
.transaction-item > strong { font-size: 13px; }
.transaction-item > strong.income { color: var(--mint); }
.transaction-item > strong.expense { color: var(--coral); }
.delete-button { opacity: 0; cursor: pointer; background: none; color: var(--muted); border: 0; font-size: 20px; transition: .2s; }
.transaction-item:hover .delete-button { opacity: 1; }
.empty-state { color: var(--muted); margin: 0; padding: 50px 28px; text-align: center; }
.transaction-form { padding-bottom: 26px; }
.transaction-form .form-heading { padding: 23px 25px; }
.segmented { display: flex; gap: 2px; padding: 3px; background: rgba(2,12,9,.5); border: 1px solid var(--line); border-radius: 10px; }
.segmented button { background: transparent; border: 0; color: var(--muted); padding: 7px 10px; border-radius: 7px; font-size: 10px; cursor: pointer; transition: color .2s, background .2s, box-shadow .2s; }
.segmented button:hover { color: var(--ink); }
.segmented button:focus-visible { outline: 2px solid rgba(184,242,63,.55); outline-offset: 2px; }
.segmented button.active { background: #1b3a31; color: var(--ink); box-shadow: 0 1px 7px rgba(0,0,0,.2); }
.transaction-form > label, .form-row { margin: 18px 25px 0; }
.transaction-form label, .transaction-form .field-group { display: grid; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 600; }
.transaction-form input, .transaction-form select { width: 100%; min-height: 43px; color: var(--ink); color-scheme: dark; background: rgba(3,18,13,.6); border: 1px solid var(--line); border-radius: 9px; outline: none; padding: 12px 13px; transition: border-color .2s, background .2s, box-shadow .2s; }
.transaction-form input:hover, .transaction-form select:hover { background: rgba(7,27,20,.78); border-color: rgba(156,193,178,.28); }
.transaction-form input:focus, .transaction-form select:focus { border-color: rgba(184,242,63,.55); box-shadow: 0 0 0 3px rgba(184,242,63,.07); }
.select-control { position: relative; display: block; }
.select-control::after { content: ''; position: absolute; top: 50%; right: 16px; width: 6px; height: 6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; transition: border-color .2s; }
.select-control:focus-within::after { border-color: var(--lime); }
.select-control select { appearance: none; cursor: pointer; padding-right: 42px; }
.select-control option { color: var(--ink); background: #0c241d; }
.calendar-picker { position: relative; display: block; width: 100%; letter-spacing: normal; }
.picker-trigger { width: 100%; min-height: 43px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 13px; color: var(--ink); background: rgba(3,18,13,.6); border: 1px solid var(--line); border-radius: 9px; cursor: pointer; text-align: left; transition: border-color .2s, background .2s, box-shadow .2s; }
.picker-trigger:hover { background: rgba(7,27,20,.78); border-color: rgba(156,193,178,.28); }
.picker-trigger:focus-visible, .picker-trigger[aria-expanded='true'] { outline: none; border-color: rgba(184,242,63,.55); box-shadow: 0 0 0 3px rgba(184,242,63,.07); }
.picker-trigger i { color: var(--muted); font-style: normal; font-size: 15px; transform: translateY(-2px); }
.picker-trigger[aria-expanded='true'] i { color: var(--lime); transform: rotate(180deg) translateY(-1px); }
.calendar-popover { position: absolute; z-index: 50; top: calc(100% + 9px); left: 0; width: 304px; display: block; padding: 14px; color: var(--ink); background: #0b211a; border: 1px solid rgba(156,193,178,.22); border-radius: 14px; box-shadow: 0 22px 55px rgba(0,0,0,.45); backdrop-filter: blur(20px); }
.calendar-header { display: grid; grid-template-columns: 34px 1fr 34px; align-items: center; gap: 8px; margin-bottom: 13px; }
.calendar-header strong { text-align: center; font: 700 12px 'Manrope'; text-transform: capitalize; }
.calendar-header button, .month-grid button, .day-grid button, .calendar-current { color: var(--muted); background: transparent; border: 0; cursor: pointer; }
.calendar-header button { width: 34px; height: 34px; border-radius: 8px; font-size: 16px; }
.calendar-header button:hover, .month-grid button:hover, .day-grid button:hover { color: var(--ink); background: rgba(255,255,255,.06); }
.calendar-header button:focus-visible, .month-grid button:focus-visible, .day-grid button:focus-visible, .calendar-current:focus-visible { outline: 2px solid rgba(184,242,63,.6); outline-offset: 1px; }
.month-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.month-grid button { height: 39px; border-radius: 8px; font-size: 11px; }
.weekday-grid, .day-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.weekday-grid { margin-bottom: 5px; }
.weekday-grid small { color: #688479; font-size: 8px; font-weight: 700; text-align: center; text-transform: uppercase; }
.day-grid i { display: block; }
.day-grid button { aspect-ratio: 1; border-radius: 8px; font-size: 10px; }
.month-grid button.selected, .day-grid button.selected { color: #07140f; background: var(--lime); font-weight: 800; }
.day-grid button.today:not(.selected) { color: var(--lime); box-shadow: inset 0 0 0 1px rgba(184,242,63,.35); }
.calendar-current { width: 100%; margin-top: 11px; padding: 9px; color: var(--lime); border-top: 1px solid var(--line); font-size: 10px; font-weight: 700; }
.calendar-current:hover { color: #d7ff84; }
.form-row .field-group:last-child .calendar-popover { right: 0; left: auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.primary-button { margin: 22px 25px 0; width: calc(100% - 50px); cursor: pointer; border: 0; color: #0b1a13; font-weight: 800; background: var(--lime); border-radius: 10px; padding: 13px; box-shadow: 0 8px 25px rgba(184,242,63,.1); }
.primary-button:disabled { opacity: .55; cursor: wait; }
.insight-bar { margin: 20px 0 70px; padding: 20px 24px; display: flex; align-items: center; gap: 16px; border: 1px solid rgba(184,242,63,.2); border-radius: 15px; background: linear-gradient(90deg, rgba(184,242,63,.08), rgba(184,242,63,.01)); }
.insight-icon { width: 37px; height: 37px; display: grid; place-items: center; color: var(--lime); border: 1px solid rgba(184,242,63,.25); border-radius: 99px; }
.insight-bar div { display: grid; gap: 4px; }
.insight-bar strong { font-size: 13px; }
@media (max-width: 840px) {
.app-shell { padding: 0 20px; }
.hero { min-height: 350px; align-items: flex-start; flex-direction: column; justify-content: center; }
.month-picker { align-self: stretch; }
.month-picker .picker-trigger { width: 100%; }
.summary-grid, .analysis-grid, .content-grid { grid-template-columns: 1fr; }
.summary-card + .summary-card { border-left: 0; border-top: 1px solid var(--line); }
.chart-card + .chart-card { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
.hero h1 { font-size: 54px; }
.transaction-item { grid-template-columns: 38px 1fr auto; }
.delete-button { display: none; }
.form-row { grid-template-columns: 1fr; }
.form-row .field-group:last-child .calendar-popover { right: auto; left: 0; }
.calendar-popover { width: min(304px, calc(100vw - 66px)); }
.analysis-heading { align-items: flex-start; gap: 16px; }
.analysis-caption { max-width: 120px; text-align: right; }
}