create-mohit-next 1.0.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +96 -65
- package/index.js +195 -195
- package/lib/features.js +358 -0
- package/lib/scaffold.js +471 -0
- package/package.json +10 -6
- package/templates/common/_editorconfig +12 -0
- package/templates/common/_gitattributes +5 -0
- package/templates/common/_github/dependabot.yml +14 -0
- package/templates/common/_github/workflows/ci.yml +66 -0
- package/templates/common/_husky/commit-msg +1 -0
- package/templates/common/_husky/pre-commit +1 -0
- package/templates/common/_nvmrc +1 -0
- package/{template → templates/common}/_prettierignore +4 -0
- package/templates/common/commitlint.config.mjs +10 -0
- package/templates/next/README.md +328 -0
- package/{template → templates/next}/_env.example +10 -1
- package/{template → templates/next}/_gitignore +8 -0
- package/templates/next/e2e/rbac.spec.ts +69 -0
- package/templates/next/e2e/server.mjs +35 -0
- package/{template → templates/next}/eslint.config.mjs +12 -0
- package/{template → templates/next}/next.config.ts +2 -0
- package/{template → templates/next}/package.json +18 -3
- package/templates/next/playwright.config.ts +30 -0
- package/templates/next/scripts/seed.ts +111 -0
- package/templates/next/src/app/(app)/admin/audit/page.tsx +99 -0
- package/templates/next/src/app/(app)/admin/page.tsx +92 -0
- package/{template → templates/next}/src/app/(app)/dashboard/page.tsx +22 -29
- package/{template → templates/next}/src/app/(app)/error.tsx +7 -7
- package/{template → templates/next}/src/app/(app)/layout.tsx +25 -2
- package/templates/next/src/app/(app)/reports/page.tsx +128 -0
- package/templates/next/src/app/(app)/settings/page.tsx +66 -0
- package/templates/next/src/app/(auth)/forgot-password/page.tsx +17 -0
- package/templates/next/src/app/(auth)/layout.tsx +18 -0
- package/{template → templates/next}/src/app/(auth)/register/page.tsx +2 -4
- package/templates/next/src/app/(auth)/reset-password/page.tsx +18 -0
- package/templates/next/src/app/api/account/password/route.ts +45 -0
- package/templates/next/src/app/api/account/route.ts +25 -0
- package/templates/next/src/app/api/account/sessions/route.ts +12 -0
- package/templates/next/src/app/api/admin/audit/route.ts +13 -0
- package/{template → templates/next}/src/app/api/admin/users/[id]/route.ts +25 -4
- package/templates/next/src/app/api/auth/forgot-password/route.ts +47 -0
- package/{template → templates/next}/src/app/api/auth/login/route.ts +19 -2
- package/{template → templates/next}/src/app/api/auth/me/route.ts +4 -2
- package/{template → templates/next}/src/app/api/auth/register/route.ts +38 -4
- package/templates/next/src/app/api/auth/resend-verification/route.ts +25 -0
- package/templates/next/src/app/api/auth/reset-password/route.ts +43 -0
- package/templates/next/src/app/api/auth/verify-email/route.ts +29 -0
- package/{template → templates/next}/src/app/forbidden/page.tsx +11 -13
- package/{template → templates/next}/src/app/layout.tsx +9 -6
- package/templates/next/src/app/not-found.tsx +20 -0
- package/templates/next/src/app/opengraph-image.tsx +49 -0
- package/templates/next/src/app/page.tsx +165 -0
- package/templates/next/src/app/robots.ts +15 -0
- package/templates/next/src/app/sitemap.ts +13 -0
- package/templates/next/src/app/verify-email/page.tsx +23 -0
- package/templates/next/src/components/admin/user-actions.tsx +124 -0
- package/templates/next/src/components/admin/users-data-table.tsx +221 -0
- package/templates/next/src/components/admin/users-table.tsx +67 -0
- package/{template → templates/next}/src/components/auth/auth-card.tsx +8 -8
- package/templates/next/src/components/auth/forgot-password-form.tsx +76 -0
- package/templates/next/src/components/auth/form-field.tsx +40 -0
- package/{template → templates/next}/src/components/auth/login-form.tsx +14 -9
- package/templates/next/src/components/auth/password-input.tsx +43 -0
- package/{template → templates/next}/src/components/auth/register-form.tsx +22 -19
- package/templates/next/src/components/auth/reset-password-form.tsx +80 -0
- package/{template → templates/next}/src/components/auth/session-refresher.tsx +1 -1
- package/templates/next/src/components/auth/verify-email-banner.tsx +43 -0
- package/templates/next/src/components/auth/verify-email-status.tsx +44 -0
- package/templates/next/src/components/layout/nav-links.tsx +37 -0
- package/templates/next/src/components/layout/navbar.tsx +27 -0
- package/templates/next/src/components/layout/page-header.tsx +21 -0
- package/templates/next/src/components/layout/sidebar.tsx +83 -0
- package/templates/next/src/components/layout/skeletons.tsx +57 -0
- package/templates/next/src/components/layout/user-menu.tsx +118 -0
- package/{template → templates/next}/src/components/logo.tsx +3 -6
- package/{template → templates/next}/src/components/reports/animated-bar.tsx +1 -5
- package/templates/next/src/components/reports/role-chart.tsx +61 -0
- package/templates/next/src/components/reports/signups-chart.tsx +64 -0
- package/templates/next/src/components/role-badge.tsx +11 -0
- package/templates/next/src/components/settings/password-form.tsx +80 -0
- package/templates/next/src/components/settings/profile-form.tsx +63 -0
- package/templates/next/src/components/settings/sessions-card.tsx +70 -0
- package/templates/next/src/components/theme-toggle.tsx +61 -0
- package/templates/next/src/config/rbac.test.ts +89 -0
- package/{template → templates/next}/src/config/rbac.ts +35 -5
- package/{template → templates/next}/src/lib/api.ts +40 -4
- package/templates/next/src/lib/audit.ts +66 -0
- package/{template → templates/next}/src/lib/auth.ts +10 -2
- package/{template → templates/next}/src/lib/dal.ts +8 -5
- package/templates/next/src/lib/email-templates.ts +55 -0
- package/templates/next/src/lib/email.ts +53 -0
- package/templates/next/src/lib/env.ts +90 -0
- package/templates/next/src/lib/password-strength.test.ts +20 -0
- package/templates/next/src/lib/password-strength.ts +24 -0
- package/templates/next/src/lib/rate-limit.test.ts +47 -0
- package/templates/next/src/lib/rate-limit.ts +70 -0
- package/templates/next/src/lib/redirect.test.ts +23 -0
- package/{template → templates/next}/src/lib/session.ts +5 -1
- package/templates/next/src/lib/theme.ts +32 -0
- package/templates/next/src/lib/tokens.ts +63 -0
- package/{template → templates/next}/src/lib/users.ts +49 -12
- package/templates/next/src/lib/validations/account.ts +20 -0
- package/templates/next/src/lib/validations/auth.test.ts +39 -0
- package/{template → templates/next}/src/lib/validations/auth.ts +24 -2
- package/templates/next/src/models/audit-log.ts +33 -0
- package/templates/next/src/models/auth-token.ts +26 -0
- package/{template → templates/next}/src/models/user.ts +5 -0
- package/{template → templates/next}/src/proxy.ts +1 -1
- package/templates/next/src/styles/app.css +1092 -0
- package/{template → templates/next}/src/types/user.ts +3 -0
- package/templates/next/vitest.config.mts +13 -0
- package/templates/styles/css.css +580 -0
- package/templates/styles/tailwind.css +140 -0
- package/templates/ui/css/components/alert-dialog.tsx +172 -0
- package/templates/ui/css/components/avatar.tsx +17 -0
- package/templates/ui/css/components/badge.tsx +18 -0
- package/templates/ui/css/components/button.tsx +41 -0
- package/templates/ui/css/components/card.tsx +33 -0
- package/templates/ui/css/components/dropdown-menu.tsx +230 -0
- package/templates/ui/css/components/input.tsx +7 -0
- package/templates/ui/css/components/label.tsx +7 -0
- package/templates/ui/css/components/native-select.tsx +23 -0
- package/templates/ui/css/components/skeleton.tsx +7 -0
- package/templates/ui/css/components/slot.tsx +30 -0
- package/templates/ui/css/components/table.tsx +31 -0
- package/templates/ui/css/utils.ts +16 -0
- package/templates/ui/shadcn/components/alert-dialog.tsx +199 -0
- package/templates/ui/shadcn/components/avatar.tsx +111 -0
- package/templates/ui/shadcn/components/dropdown-menu.tsx +268 -0
- package/templates/ui/shadcn/components/table.tsx +115 -0
- package/templates/ui/tailwind/components/alert-dialog.tsx +177 -0
- package/templates/ui/tailwind/components/avatar.tsx +36 -0
- package/templates/ui/tailwind/components/badge.tsx +29 -0
- package/templates/ui/tailwind/components/button.tsx +65 -0
- package/templates/ui/tailwind/components/card.tsx +70 -0
- package/templates/ui/tailwind/components/dropdown-menu.tsx +236 -0
- package/templates/ui/tailwind/components/input.tsx +17 -0
- package/templates/ui/tailwind/components/label.tsx +16 -0
- package/templates/ui/tailwind/components/native-select.tsx +32 -0
- package/templates/ui/tailwind/components/skeleton.tsx +13 -0
- package/templates/ui/tailwind/components/slot.tsx +34 -0
- package/templates/ui/tailwind/components/table.tsx +56 -0
- package/templates/ui/tailwind/utils.ts +1 -0
- package/templates/vite/Dockerfile +29 -0
- package/templates/vite/README.md +142 -0
- package/templates/vite/_dockerignore +14 -0
- package/templates/vite/_env.example +8 -0
- package/templates/vite/_gitignore +37 -0
- package/templates/vite/e2e/app.spec.ts +41 -0
- package/templates/vite/index.html +32 -0
- package/templates/vite/nginx.conf +26 -0
- package/templates/vite/package.json +61 -0
- package/templates/vite/playwright.config.ts +27 -0
- package/templates/vite/public/favicon.svg +1 -0
- package/templates/vite/src/App.test.tsx +28 -0
- package/templates/vite/src/App.tsx +26 -0
- package/templates/vite/src/components/home.tsx +121 -0
- package/templates/vite/src/components/layout/root-layout.tsx +18 -0
- package/templates/vite/src/components/layout/site-footer.tsx +10 -0
- package/templates/vite/src/components/layout/site-header.tsx +49 -0
- package/templates/vite/src/components/theme-toggle.tsx +90 -0
- package/templates/vite/src/env.ts +36 -0
- package/templates/vite/src/lib/theme.ts +26 -0
- package/templates/vite/src/main.tsx +13 -0
- package/templates/vite/src/pages/about.tsx +52 -0
- package/templates/vite/src/pages/not-found.tsx +33 -0
- package/templates/vite/src/router.ts +24 -0
- package/templates/vite/src/styles/app.css +281 -0
- package/templates/vite/src/test/setup.ts +21 -0
- package/templates/vite/tsconfig.app.json +31 -0
- package/templates/vite/tsconfig.json +7 -0
- package/templates/vite/tsconfig.node.json +23 -0
- package/templates/vite/vite.config.ts +30 -0
- package/template/README.md +0 -262
- package/template/_prettierrc +0 -9
- package/template/components.json +0 -25
- package/template/src/app/(app)/admin/page.tsx +0 -53
- package/template/src/app/(app)/reports/page.tsx +0 -109
- package/template/src/app/(auth)/layout.tsx +0 -22
- package/template/src/app/not-found.tsx +0 -18
- package/template/src/app/page.tsx +0 -187
- package/template/src/components/admin/users-table.tsx +0 -162
- package/template/src/components/auth/form-field.tsx +0 -32
- package/template/src/components/layout/logout-button.tsx +0 -34
- package/template/src/components/layout/navbar.tsx +0 -67
- package/template/src/components/layout/page-header.tsx +0 -21
- package/template/src/components/layout/skeletons.tsx +0 -35
- package/template/src/components/role-badge.tsx +0 -17
- package/template/src/components/theme-toggle.tsx +0 -25
- package/template/src/lib/env.ts +0 -36
- package/template/src/lib/theme.ts +0 -8
- /package/{template → templates/next}/AGENTS.md +0 -0
- /package/{template → templates/next}/Dockerfile +0 -0
- /package/{template → templates/next}/_dockerignore +0 -0
- /package/{template → templates/next}/docker-compose.yml +0 -0
- /package/{template → templates/next}/public/robots.txt +0 -0
- /package/{template → templates/next}/src/app/(app)/loading.tsx +0 -0
- /package/{template → templates/next}/src/app/(auth)/login/page.tsx +0 -0
- /package/{template → templates/next}/src/app/api/admin/users/route.ts +0 -0
- /package/{template → templates/next}/src/app/api/auth/logout/route.ts +0 -0
- /package/{template → templates/next}/src/app/api/health/route.ts +0 -0
- /package/{template → templates/next}/src/app/favicon.ico +0 -0
- /package/{template → templates/next}/src/components/auth/can.tsx +0 -0
- /package/{template → templates/next}/src/components/motion/fade-in.tsx +0 -0
- /package/{template → templates/next}/src/components/providers/user-provider.tsx +0 -0
- /package/{template → templates/next}/src/config/site.ts +0 -0
- /package/{template → templates/next}/src/lib/db.ts +0 -0
- /package/{template → templates/next}/src/lib/http.ts +0 -0
- /package/{template → templates/next}/src/lib/redirect.ts +0 -0
- /package/{template → templates/next}/src/lib/validations/user.ts +0 -0
- /package/{template → templates/next}/tsconfig.json +0 -0
- /package/{template/src/app/globals.css → templates/styles/shadcn.css} +0 -0
- /package/{template/src/components/ui → templates/ui/shadcn/components}/badge.tsx +0 -0
- /package/{template/src/components/ui → templates/ui/shadcn/components}/button.tsx +0 -0
- /package/{template/src/components/ui → templates/ui/shadcn/components}/card.tsx +0 -0
- /package/{template/src/components/ui → templates/ui/shadcn/components}/input.tsx +0 -0
- /package/{template/src/components/ui → templates/ui/shadcn/components}/label.tsx +0 -0
- /package/{template/src/components/ui → templates/ui/shadcn/components}/native-select.tsx +0 -0
- /package/{template/src/components/ui → templates/ui/shadcn/components}/skeleton.tsx +0 -0
- /package/{template/src/lib → templates/ui/shadcn}/utils.ts +0 -0
|
@@ -0,0 +1,1092 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* App layout & page styles.
|
|
3
|
+
*
|
|
4
|
+
* Plain CSS built on the theme tokens (--background, --border, --primary, ...)
|
|
5
|
+
* defined in src/app/globals.css, so it works the same whether the project uses
|
|
6
|
+
* Tailwind + shadcn/ui, Tailwind only, or no Tailwind at all. UI primitives
|
|
7
|
+
* (buttons, cards, inputs, ...) live in src/components/ui.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
:root {
|
|
11
|
+
--chart-primary: oklch(0.55 0.2 264);
|
|
12
|
+
--chart-role-user: oklch(0.7 0.02 264);
|
|
13
|
+
--chart-role-manager: oklch(0.62 0.16 230);
|
|
14
|
+
--chart-role-admin: oklch(0.55 0.22 295);
|
|
15
|
+
--success: oklch(0.6 0.15 155);
|
|
16
|
+
--page-width: 72rem;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.dark {
|
|
20
|
+
--chart-primary: oklch(0.7 0.16 264);
|
|
21
|
+
--chart-role-user: oklch(0.55 0.02 264);
|
|
22
|
+
--chart-role-manager: oklch(0.7 0.14 230);
|
|
23
|
+
--chart-role-admin: oklch(0.7 0.18 295);
|
|
24
|
+
--success: oklch(0.72 0.15 155);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
html {
|
|
28
|
+
font-family: var(--font-geist-sans, ui-sans-serif), system-ui, sans-serif;
|
|
29
|
+
-webkit-font-smoothing: antialiased;
|
|
30
|
+
-moz-osx-font-smoothing: grayscale;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
html,
|
|
34
|
+
body {
|
|
35
|
+
min-height: 100%;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
body {
|
|
39
|
+
display: flex;
|
|
40
|
+
flex-direction: column;
|
|
41
|
+
min-height: 100dvh;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/* ---------------------------------------------------------------------------
|
|
45
|
+
* Helpers
|
|
46
|
+
* ------------------------------------------------------------------------ */
|
|
47
|
+
|
|
48
|
+
.muted {
|
|
49
|
+
color: var(--muted-foreground);
|
|
50
|
+
}
|
|
51
|
+
.text-xs {
|
|
52
|
+
font-size: 0.75rem;
|
|
53
|
+
line-height: 1rem;
|
|
54
|
+
}
|
|
55
|
+
.text-sm {
|
|
56
|
+
font-size: 0.875rem;
|
|
57
|
+
line-height: 1.25rem;
|
|
58
|
+
}
|
|
59
|
+
.font-medium {
|
|
60
|
+
font-weight: 500;
|
|
61
|
+
}
|
|
62
|
+
.mono {
|
|
63
|
+
font-family: var(--font-geist-mono, ui-monospace), SFMono-Regular, Menlo, monospace;
|
|
64
|
+
}
|
|
65
|
+
.tabular {
|
|
66
|
+
font-variant-numeric: tabular-nums;
|
|
67
|
+
}
|
|
68
|
+
.nowrap {
|
|
69
|
+
white-space: nowrap;
|
|
70
|
+
}
|
|
71
|
+
.align-right {
|
|
72
|
+
text-align: right;
|
|
73
|
+
}
|
|
74
|
+
.full-width {
|
|
75
|
+
width: 100%;
|
|
76
|
+
}
|
|
77
|
+
.full-height {
|
|
78
|
+
height: 100%;
|
|
79
|
+
}
|
|
80
|
+
.sr-only {
|
|
81
|
+
position: absolute;
|
|
82
|
+
width: 1px;
|
|
83
|
+
height: 1px;
|
|
84
|
+
padding: 0;
|
|
85
|
+
margin: -1px;
|
|
86
|
+
overflow: hidden;
|
|
87
|
+
clip: rect(0, 0, 0, 0);
|
|
88
|
+
white-space: nowrap;
|
|
89
|
+
border-width: 0;
|
|
90
|
+
}
|
|
91
|
+
.code {
|
|
92
|
+
display: inline-block;
|
|
93
|
+
padding: 0.1rem 0.375rem;
|
|
94
|
+
border-radius: 0.375rem;
|
|
95
|
+
background: var(--muted);
|
|
96
|
+
font-family: var(--font-geist-mono, ui-monospace), SFMono-Regular, Menlo, monospace;
|
|
97
|
+
font-size: 0.8125rem;
|
|
98
|
+
}
|
|
99
|
+
.text-link {
|
|
100
|
+
font-weight: 500;
|
|
101
|
+
color: var(--foreground);
|
|
102
|
+
text-underline-offset: 4px;
|
|
103
|
+
}
|
|
104
|
+
.text-link:not(:hover) {
|
|
105
|
+
text-decoration: none;
|
|
106
|
+
}
|
|
107
|
+
.icon-success {
|
|
108
|
+
color: var(--success);
|
|
109
|
+
}
|
|
110
|
+
.spin {
|
|
111
|
+
animation: app-spin 1s linear infinite;
|
|
112
|
+
}
|
|
113
|
+
@keyframes app-spin {
|
|
114
|
+
to {
|
|
115
|
+
transform: rotate(360deg);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.stack,
|
|
120
|
+
.stack-sm,
|
|
121
|
+
.stack-lg {
|
|
122
|
+
display: flex;
|
|
123
|
+
flex-direction: column;
|
|
124
|
+
gap: 1rem;
|
|
125
|
+
}
|
|
126
|
+
.stack-sm {
|
|
127
|
+
gap: 0.375rem;
|
|
128
|
+
}
|
|
129
|
+
.stack-lg {
|
|
130
|
+
gap: 1.5rem;
|
|
131
|
+
}
|
|
132
|
+
.cluster {
|
|
133
|
+
display: flex;
|
|
134
|
+
flex-wrap: wrap;
|
|
135
|
+
align-items: center;
|
|
136
|
+
gap: 0.5rem;
|
|
137
|
+
}
|
|
138
|
+
.row-between {
|
|
139
|
+
display: flex;
|
|
140
|
+
align-items: center;
|
|
141
|
+
justify-content: space-between;
|
|
142
|
+
gap: 0.5rem;
|
|
143
|
+
}
|
|
144
|
+
.button-row {
|
|
145
|
+
display: flex;
|
|
146
|
+
flex-wrap: wrap;
|
|
147
|
+
gap: 0.5rem;
|
|
148
|
+
}
|
|
149
|
+
.button-row--center {
|
|
150
|
+
justify-content: center;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.cards-grid {
|
|
154
|
+
display: grid;
|
|
155
|
+
gap: 1rem;
|
|
156
|
+
padding: 0;
|
|
157
|
+
margin: 0;
|
|
158
|
+
list-style: none;
|
|
159
|
+
}
|
|
160
|
+
@media (min-width: 640px) {
|
|
161
|
+
.cards-grid--2,
|
|
162
|
+
.cards-grid--3,
|
|
163
|
+
.cards-grid--4 {
|
|
164
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
@media (min-width: 1024px) {
|
|
168
|
+
.cards-grid--3 {
|
|
169
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
170
|
+
}
|
|
171
|
+
.cards-grid--4 {
|
|
172
|
+
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
.section-gap {
|
|
176
|
+
margin-top: 1rem;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/* Theme toggle icon: swapped with CSS so server and client render the same markup. */
|
|
180
|
+
.dark .theme-icon-light,
|
|
181
|
+
:root:not(.dark) .theme-icon-dark {
|
|
182
|
+
display: none;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.menu-grow {
|
|
186
|
+
flex: 1;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/* ---------------------------------------------------------------------------
|
|
190
|
+
* Logo & headers
|
|
191
|
+
* ------------------------------------------------------------------------ */
|
|
192
|
+
|
|
193
|
+
.logo {
|
|
194
|
+
display: inline-flex;
|
|
195
|
+
align-items: center;
|
|
196
|
+
gap: 0.5rem;
|
|
197
|
+
font-weight: 600;
|
|
198
|
+
letter-spacing: -0.01em;
|
|
199
|
+
color: inherit;
|
|
200
|
+
text-decoration: none;
|
|
201
|
+
}
|
|
202
|
+
.logo-mark {
|
|
203
|
+
display: inline-flex;
|
|
204
|
+
align-items: center;
|
|
205
|
+
justify-content: center;
|
|
206
|
+
width: 1.75rem;
|
|
207
|
+
height: 1.75rem;
|
|
208
|
+
border-radius: 0.5rem;
|
|
209
|
+
background: var(--primary);
|
|
210
|
+
color: var(--primary-foreground);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.site-header {
|
|
214
|
+
display: flex;
|
|
215
|
+
align-items: center;
|
|
216
|
+
justify-content: space-between;
|
|
217
|
+
gap: 0.5rem;
|
|
218
|
+
width: 100%;
|
|
219
|
+
max-width: var(--page-width);
|
|
220
|
+
height: 3.5rem;
|
|
221
|
+
margin: 0 auto;
|
|
222
|
+
padding: 0 1rem;
|
|
223
|
+
}
|
|
224
|
+
.site-header-actions {
|
|
225
|
+
display: flex;
|
|
226
|
+
align-items: center;
|
|
227
|
+
gap: 0.5rem;
|
|
228
|
+
}
|
|
229
|
+
.site-footer {
|
|
230
|
+
display: flex;
|
|
231
|
+
justify-content: space-between;
|
|
232
|
+
gap: 1rem;
|
|
233
|
+
width: 100%;
|
|
234
|
+
max-width: var(--page-width);
|
|
235
|
+
margin: 0 auto;
|
|
236
|
+
padding: 1.5rem 1rem;
|
|
237
|
+
border-top: 1px solid var(--border);
|
|
238
|
+
font-size: 0.875rem;
|
|
239
|
+
color: var(--muted-foreground);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
/* ---------------------------------------------------------------------------
|
|
243
|
+
* Landing page
|
|
244
|
+
* ------------------------------------------------------------------------ */
|
|
245
|
+
|
|
246
|
+
.landing {
|
|
247
|
+
display: flex;
|
|
248
|
+
flex: 1;
|
|
249
|
+
flex-direction: column;
|
|
250
|
+
}
|
|
251
|
+
.hero {
|
|
252
|
+
display: flex;
|
|
253
|
+
flex-direction: column;
|
|
254
|
+
align-items: center;
|
|
255
|
+
gap: 1.5rem;
|
|
256
|
+
max-width: 48rem;
|
|
257
|
+
margin: 0 auto;
|
|
258
|
+
padding: 5rem 1rem 4rem;
|
|
259
|
+
text-align: center;
|
|
260
|
+
background: radial-gradient(ellipse at top, var(--muted), transparent 65%);
|
|
261
|
+
}
|
|
262
|
+
.hero-title {
|
|
263
|
+
margin: 0;
|
|
264
|
+
font-size: clamp(2.25rem, 6vw, 3.75rem);
|
|
265
|
+
font-weight: 600;
|
|
266
|
+
line-height: 1.1;
|
|
267
|
+
letter-spacing: -0.02em;
|
|
268
|
+
text-wrap: balance;
|
|
269
|
+
}
|
|
270
|
+
.hero-lead {
|
|
271
|
+
max-width: 36rem;
|
|
272
|
+
margin: 0;
|
|
273
|
+
font-size: 1.125rem;
|
|
274
|
+
color: var(--muted-foreground);
|
|
275
|
+
text-wrap: pretty;
|
|
276
|
+
}
|
|
277
|
+
.section {
|
|
278
|
+
width: 100%;
|
|
279
|
+
max-width: var(--page-width);
|
|
280
|
+
margin: 0 auto;
|
|
281
|
+
padding: 0 1rem 5rem;
|
|
282
|
+
}
|
|
283
|
+
.section-band {
|
|
284
|
+
padding-top: 5rem;
|
|
285
|
+
border-top: 1px solid var(--border);
|
|
286
|
+
background: color-mix(in oklch, var(--muted) 35%, transparent);
|
|
287
|
+
}
|
|
288
|
+
.section-intro {
|
|
289
|
+
max-width: 42rem;
|
|
290
|
+
margin-bottom: 2.5rem;
|
|
291
|
+
}
|
|
292
|
+
.section-title {
|
|
293
|
+
margin: 0 0 0.5rem;
|
|
294
|
+
font-size: 1.5rem;
|
|
295
|
+
font-weight: 600;
|
|
296
|
+
letter-spacing: -0.01em;
|
|
297
|
+
}
|
|
298
|
+
.feature-icon {
|
|
299
|
+
display: inline-flex;
|
|
300
|
+
align-items: center;
|
|
301
|
+
justify-content: center;
|
|
302
|
+
width: 2.25rem;
|
|
303
|
+
height: 2.25rem;
|
|
304
|
+
margin-bottom: 0.5rem;
|
|
305
|
+
border-radius: 0.5rem;
|
|
306
|
+
background: var(--secondary);
|
|
307
|
+
}
|
|
308
|
+
.layer-card {
|
|
309
|
+
display: flex;
|
|
310
|
+
flex-direction: column;
|
|
311
|
+
align-items: flex-start;
|
|
312
|
+
gap: 0.25rem;
|
|
313
|
+
padding: 1.25rem;
|
|
314
|
+
border: 1px solid var(--border);
|
|
315
|
+
border-radius: calc(var(--radius) * 1.4);
|
|
316
|
+
background: var(--background);
|
|
317
|
+
}
|
|
318
|
+
.layer-title {
|
|
319
|
+
margin: 0;
|
|
320
|
+
font-weight: 500;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
/* ---------------------------------------------------------------------------
|
|
324
|
+
* Auth pages
|
|
325
|
+
* ------------------------------------------------------------------------ */
|
|
326
|
+
|
|
327
|
+
.auth-shell {
|
|
328
|
+
display: flex;
|
|
329
|
+
flex: 1;
|
|
330
|
+
flex-direction: column;
|
|
331
|
+
background: radial-gradient(ellipse at top, var(--muted), transparent 60%);
|
|
332
|
+
}
|
|
333
|
+
.auth-main {
|
|
334
|
+
display: flex;
|
|
335
|
+
flex: 1;
|
|
336
|
+
align-items: center;
|
|
337
|
+
justify-content: center;
|
|
338
|
+
padding: 2.5rem 1rem;
|
|
339
|
+
}
|
|
340
|
+
.auth-column {
|
|
341
|
+
width: 100%;
|
|
342
|
+
max-width: 24rem;
|
|
343
|
+
}
|
|
344
|
+
.auth-card-title {
|
|
345
|
+
font-size: 1.25rem;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
.form {
|
|
349
|
+
display: flex;
|
|
350
|
+
flex-direction: column;
|
|
351
|
+
gap: 1rem;
|
|
352
|
+
}
|
|
353
|
+
.form-footer {
|
|
354
|
+
margin: 0;
|
|
355
|
+
text-align: center;
|
|
356
|
+
font-size: 0.875rem;
|
|
357
|
+
color: var(--muted-foreground);
|
|
358
|
+
}
|
|
359
|
+
.field,
|
|
360
|
+
.field-group {
|
|
361
|
+
display: flex;
|
|
362
|
+
flex-direction: column;
|
|
363
|
+
gap: 0.5rem;
|
|
364
|
+
}
|
|
365
|
+
.field-label-row {
|
|
366
|
+
display: flex;
|
|
367
|
+
align-items: center;
|
|
368
|
+
justify-content: space-between;
|
|
369
|
+
gap: 0.5rem;
|
|
370
|
+
}
|
|
371
|
+
.field-error {
|
|
372
|
+
margin: 0;
|
|
373
|
+
font-size: 0.875rem;
|
|
374
|
+
color: var(--destructive);
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
.password-input {
|
|
378
|
+
position: relative;
|
|
379
|
+
}
|
|
380
|
+
.password-input .password-input-field {
|
|
381
|
+
padding-right: 2.5rem;
|
|
382
|
+
}
|
|
383
|
+
.password-toggle {
|
|
384
|
+
position: absolute;
|
|
385
|
+
top: 50%;
|
|
386
|
+
right: 0.25rem;
|
|
387
|
+
display: inline-flex;
|
|
388
|
+
align-items: center;
|
|
389
|
+
justify-content: center;
|
|
390
|
+
width: 1.75rem;
|
|
391
|
+
height: 1.75rem;
|
|
392
|
+
padding: 0;
|
|
393
|
+
border: 0;
|
|
394
|
+
border-radius: 0.375rem;
|
|
395
|
+
background: transparent;
|
|
396
|
+
color: var(--muted-foreground);
|
|
397
|
+
cursor: pointer;
|
|
398
|
+
transform: translateY(-50%);
|
|
399
|
+
}
|
|
400
|
+
.password-toggle:hover {
|
|
401
|
+
color: var(--foreground);
|
|
402
|
+
}
|
|
403
|
+
.password-toggle:focus-visible {
|
|
404
|
+
outline: 2px solid var(--ring);
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
.strength {
|
|
408
|
+
display: flex;
|
|
409
|
+
align-items: center;
|
|
410
|
+
gap: 0.75rem;
|
|
411
|
+
}
|
|
412
|
+
.strength-bars {
|
|
413
|
+
display: grid;
|
|
414
|
+
flex: 1;
|
|
415
|
+
grid-template-columns: repeat(4, 1fr);
|
|
416
|
+
gap: 0.25rem;
|
|
417
|
+
}
|
|
418
|
+
.strength-bar {
|
|
419
|
+
height: 0.25rem;
|
|
420
|
+
border-radius: 999px;
|
|
421
|
+
background: var(--muted);
|
|
422
|
+
transition: background-color 0.2s;
|
|
423
|
+
}
|
|
424
|
+
.strength[data-score="1"] .strength-bar--on {
|
|
425
|
+
background: var(--destructive);
|
|
426
|
+
}
|
|
427
|
+
.strength[data-score="2"] .strength-bar--on {
|
|
428
|
+
background: oklch(0.75 0.16 70);
|
|
429
|
+
}
|
|
430
|
+
.strength[data-score="3"] .strength-bar--on {
|
|
431
|
+
background: oklch(0.7 0.14 130);
|
|
432
|
+
}
|
|
433
|
+
.strength[data-score="4"] .strength-bar--on {
|
|
434
|
+
background: var(--success);
|
|
435
|
+
}
|
|
436
|
+
.strength-label {
|
|
437
|
+
font-size: 0.75rem;
|
|
438
|
+
color: var(--muted-foreground);
|
|
439
|
+
white-space: nowrap;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
.notice {
|
|
443
|
+
display: flex;
|
|
444
|
+
gap: 0.75rem;
|
|
445
|
+
padding: 1rem;
|
|
446
|
+
border: 1px solid var(--border);
|
|
447
|
+
border-radius: var(--radius);
|
|
448
|
+
background: color-mix(in oklch, var(--muted) 50%, transparent);
|
|
449
|
+
}
|
|
450
|
+
.notice--center {
|
|
451
|
+
flex-direction: column;
|
|
452
|
+
align-items: center;
|
|
453
|
+
text-align: center;
|
|
454
|
+
font-size: 0.875rem;
|
|
455
|
+
}
|
|
456
|
+
.notice p {
|
|
457
|
+
margin: 0;
|
|
458
|
+
}
|
|
459
|
+
.notice-title {
|
|
460
|
+
font-weight: 600;
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
/* ---------------------------------------------------------------------------
|
|
464
|
+
* Status pages (403, 404, verify email, errors)
|
|
465
|
+
* ------------------------------------------------------------------------ */
|
|
466
|
+
|
|
467
|
+
.status-page {
|
|
468
|
+
display: flex;
|
|
469
|
+
flex: 1;
|
|
470
|
+
flex-direction: column;
|
|
471
|
+
}
|
|
472
|
+
.status-page-main {
|
|
473
|
+
display: flex;
|
|
474
|
+
flex: 1;
|
|
475
|
+
align-items: center;
|
|
476
|
+
justify-content: center;
|
|
477
|
+
padding: 4rem 1rem;
|
|
478
|
+
}
|
|
479
|
+
.status-page-body {
|
|
480
|
+
display: flex;
|
|
481
|
+
flex-direction: column;
|
|
482
|
+
align-items: center;
|
|
483
|
+
gap: 1.25rem;
|
|
484
|
+
max-width: 28rem;
|
|
485
|
+
margin: 0 auto;
|
|
486
|
+
padding: 2rem 0;
|
|
487
|
+
text-align: center;
|
|
488
|
+
}
|
|
489
|
+
.status-page-body p {
|
|
490
|
+
margin: 0;
|
|
491
|
+
}
|
|
492
|
+
.status-icon {
|
|
493
|
+
display: flex;
|
|
494
|
+
align-items: center;
|
|
495
|
+
justify-content: center;
|
|
496
|
+
width: 3.5rem;
|
|
497
|
+
height: 3.5rem;
|
|
498
|
+
border-radius: 999px;
|
|
499
|
+
}
|
|
500
|
+
.status-icon--danger {
|
|
501
|
+
background: color-mix(in oklch, var(--destructive) 12%, transparent);
|
|
502
|
+
color: var(--destructive);
|
|
503
|
+
}
|
|
504
|
+
.status-icon--success {
|
|
505
|
+
background: color-mix(in oklch, var(--success) 15%, transparent);
|
|
506
|
+
color: var(--success);
|
|
507
|
+
}
|
|
508
|
+
.status-code {
|
|
509
|
+
font-family: var(--font-geist-mono, ui-monospace), monospace;
|
|
510
|
+
font-size: 0.875rem;
|
|
511
|
+
color: var(--muted-foreground);
|
|
512
|
+
}
|
|
513
|
+
.status-title {
|
|
514
|
+
margin: 0;
|
|
515
|
+
font-size: 1.5rem;
|
|
516
|
+
font-weight: 600;
|
|
517
|
+
letter-spacing: -0.01em;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
/* ---------------------------------------------------------------------------
|
|
521
|
+
* App shell: top navbar
|
|
522
|
+
* ------------------------------------------------------------------------ */
|
|
523
|
+
|
|
524
|
+
.app-header {
|
|
525
|
+
position: sticky;
|
|
526
|
+
top: 0;
|
|
527
|
+
z-index: 40;
|
|
528
|
+
border-bottom: 1px solid var(--border);
|
|
529
|
+
background: color-mix(in oklch, var(--background) 85%, transparent);
|
|
530
|
+
backdrop-filter: blur(8px);
|
|
531
|
+
}
|
|
532
|
+
.app-header-inner {
|
|
533
|
+
display: flex;
|
|
534
|
+
align-items: center;
|
|
535
|
+
gap: 1rem;
|
|
536
|
+
max-width: var(--page-width);
|
|
537
|
+
height: 3.5rem;
|
|
538
|
+
margin: 0 auto;
|
|
539
|
+
padding: 0 1rem;
|
|
540
|
+
}
|
|
541
|
+
.app-header-actions {
|
|
542
|
+
display: flex;
|
|
543
|
+
align-items: center;
|
|
544
|
+
gap: 0.25rem;
|
|
545
|
+
margin-left: auto;
|
|
546
|
+
}
|
|
547
|
+
.app-nav {
|
|
548
|
+
display: flex;
|
|
549
|
+
align-items: center;
|
|
550
|
+
gap: 0.25rem;
|
|
551
|
+
}
|
|
552
|
+
.app-nav--desktop {
|
|
553
|
+
display: none;
|
|
554
|
+
}
|
|
555
|
+
.app-nav--mobile {
|
|
556
|
+
overflow-x: auto;
|
|
557
|
+
padding: 0.5rem 1rem;
|
|
558
|
+
border-top: 1px solid var(--border);
|
|
559
|
+
scrollbar-width: none;
|
|
560
|
+
}
|
|
561
|
+
@media (min-width: 768px) {
|
|
562
|
+
.app-nav--desktop {
|
|
563
|
+
display: flex;
|
|
564
|
+
}
|
|
565
|
+
.app-nav--mobile {
|
|
566
|
+
display: none;
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
.nav-link {
|
|
570
|
+
display: inline-flex;
|
|
571
|
+
flex-shrink: 0;
|
|
572
|
+
align-items: center;
|
|
573
|
+
gap: 0.5rem;
|
|
574
|
+
padding: 0.375rem 0.75rem;
|
|
575
|
+
border-radius: 0.5rem;
|
|
576
|
+
font-size: 0.875rem;
|
|
577
|
+
font-weight: 500;
|
|
578
|
+
color: var(--muted-foreground);
|
|
579
|
+
text-decoration: none;
|
|
580
|
+
transition:
|
|
581
|
+
background-color 0.15s,
|
|
582
|
+
color 0.15s;
|
|
583
|
+
}
|
|
584
|
+
.nav-link:hover {
|
|
585
|
+
background: color-mix(in oklch, var(--secondary) 70%, transparent);
|
|
586
|
+
color: var(--foreground);
|
|
587
|
+
}
|
|
588
|
+
.nav-link[aria-current="page"] {
|
|
589
|
+
background: var(--secondary);
|
|
590
|
+
color: var(--foreground);
|
|
591
|
+
}
|
|
592
|
+
.app-main,
|
|
593
|
+
.page-container {
|
|
594
|
+
width: 100%;
|
|
595
|
+
max-width: var(--page-width);
|
|
596
|
+
margin: 0 auto;
|
|
597
|
+
}
|
|
598
|
+
.app-main {
|
|
599
|
+
flex: 1;
|
|
600
|
+
padding: 2rem 1rem;
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
/* ---------------------------------------------------------------------------
|
|
604
|
+
* App shell: sidebar
|
|
605
|
+
* ------------------------------------------------------------------------ */
|
|
606
|
+
|
|
607
|
+
.sidebar-layout {
|
|
608
|
+
display: flex;
|
|
609
|
+
flex: 1;
|
|
610
|
+
min-height: 100dvh;
|
|
611
|
+
}
|
|
612
|
+
.sidebar {
|
|
613
|
+
position: fixed;
|
|
614
|
+
inset: 0 auto 0 0;
|
|
615
|
+
z-index: 50;
|
|
616
|
+
display: flex;
|
|
617
|
+
flex-direction: column;
|
|
618
|
+
gap: 1rem;
|
|
619
|
+
width: 16rem;
|
|
620
|
+
padding: 0.75rem;
|
|
621
|
+
border-right: 1px solid var(--border);
|
|
622
|
+
background: var(--sidebar, var(--background));
|
|
623
|
+
color: var(--sidebar-foreground, var(--foreground));
|
|
624
|
+
transform: translateX(-100%);
|
|
625
|
+
transition: transform 0.2s ease;
|
|
626
|
+
}
|
|
627
|
+
.sidebar--open {
|
|
628
|
+
transform: none;
|
|
629
|
+
}
|
|
630
|
+
.sidebar-header {
|
|
631
|
+
display: flex;
|
|
632
|
+
align-items: center;
|
|
633
|
+
justify-content: space-between;
|
|
634
|
+
height: 2.5rem;
|
|
635
|
+
padding: 0 0.25rem;
|
|
636
|
+
}
|
|
637
|
+
.sidebar-nav {
|
|
638
|
+
display: flex;
|
|
639
|
+
flex: 1;
|
|
640
|
+
flex-direction: column;
|
|
641
|
+
gap: 0.125rem;
|
|
642
|
+
}
|
|
643
|
+
.sidebar-nav .nav-link {
|
|
644
|
+
width: 100%;
|
|
645
|
+
}
|
|
646
|
+
.sidebar-section {
|
|
647
|
+
padding: 0.25rem 0.75rem;
|
|
648
|
+
font-size: 0.75rem;
|
|
649
|
+
font-weight: 500;
|
|
650
|
+
color: var(--muted-foreground);
|
|
651
|
+
}
|
|
652
|
+
.sidebar-footer {
|
|
653
|
+
padding-top: 0.75rem;
|
|
654
|
+
border-top: 1px solid var(--border);
|
|
655
|
+
}
|
|
656
|
+
/* The Tailwind-only / plain-CSS menus wrap their trigger in a positioned element. */
|
|
657
|
+
.sidebar-footer > [data-slot="dropdown-menu"] {
|
|
658
|
+
display: flex;
|
|
659
|
+
width: 100%;
|
|
660
|
+
}
|
|
661
|
+
.sidebar-backdrop {
|
|
662
|
+
position: fixed;
|
|
663
|
+
inset: 0;
|
|
664
|
+
z-index: 45;
|
|
665
|
+
background: rgb(0 0 0 / 0.4);
|
|
666
|
+
}
|
|
667
|
+
.sidebar-main {
|
|
668
|
+
display: flex;
|
|
669
|
+
flex: 1;
|
|
670
|
+
flex-direction: column;
|
|
671
|
+
min-width: 0;
|
|
672
|
+
}
|
|
673
|
+
.sidebar-topbar {
|
|
674
|
+
position: sticky;
|
|
675
|
+
top: 0;
|
|
676
|
+
z-index: 30;
|
|
677
|
+
display: flex;
|
|
678
|
+
align-items: center;
|
|
679
|
+
gap: 0.5rem;
|
|
680
|
+
height: 3.5rem;
|
|
681
|
+
padding: 0 1rem;
|
|
682
|
+
border-bottom: 1px solid var(--border);
|
|
683
|
+
background: color-mix(in oklch, var(--background) 85%, transparent);
|
|
684
|
+
backdrop-filter: blur(8px);
|
|
685
|
+
}
|
|
686
|
+
.sidebar-topbar-actions {
|
|
687
|
+
margin-left: auto;
|
|
688
|
+
}
|
|
689
|
+
.sidebar-content {
|
|
690
|
+
flex: 1;
|
|
691
|
+
padding: 2rem 1rem;
|
|
692
|
+
}
|
|
693
|
+
@media (min-width: 768px) {
|
|
694
|
+
.sidebar {
|
|
695
|
+
position: sticky;
|
|
696
|
+
top: 0;
|
|
697
|
+
height: 100dvh;
|
|
698
|
+
transform: none;
|
|
699
|
+
}
|
|
700
|
+
.sidebar-close,
|
|
701
|
+
.sidebar-open,
|
|
702
|
+
.sidebar-backdrop {
|
|
703
|
+
display: none;
|
|
704
|
+
}
|
|
705
|
+
.sidebar-content {
|
|
706
|
+
padding: 2rem;
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
.user-menu-trigger {
|
|
711
|
+
padding: 0.25rem;
|
|
712
|
+
}
|
|
713
|
+
.user-menu-trigger--wide {
|
|
714
|
+
justify-content: flex-start;
|
|
715
|
+
width: 100%;
|
|
716
|
+
height: auto;
|
|
717
|
+
padding: 0.375rem 0.5rem;
|
|
718
|
+
text-align: left;
|
|
719
|
+
}
|
|
720
|
+
.user-menu-name {
|
|
721
|
+
display: flex;
|
|
722
|
+
flex: 1;
|
|
723
|
+
flex-direction: column;
|
|
724
|
+
min-width: 0;
|
|
725
|
+
line-height: 1.2;
|
|
726
|
+
}
|
|
727
|
+
.user-menu-name > span {
|
|
728
|
+
overflow: hidden;
|
|
729
|
+
text-overflow: ellipsis;
|
|
730
|
+
white-space: nowrap;
|
|
731
|
+
}
|
|
732
|
+
.user-menu-content {
|
|
733
|
+
min-width: 14rem;
|
|
734
|
+
}
|
|
735
|
+
.user-menu-label {
|
|
736
|
+
display: flex;
|
|
737
|
+
flex-direction: column;
|
|
738
|
+
align-items: flex-start;
|
|
739
|
+
gap: 0.25rem;
|
|
740
|
+
font-weight: 400;
|
|
741
|
+
}
|
|
742
|
+
.user-menu-label-name {
|
|
743
|
+
font-weight: 600;
|
|
744
|
+
color: var(--foreground);
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
/* ---------------------------------------------------------------------------
|
|
748
|
+
* Pages
|
|
749
|
+
* ------------------------------------------------------------------------ */
|
|
750
|
+
|
|
751
|
+
.page-header {
|
|
752
|
+
display: flex;
|
|
753
|
+
flex-direction: column;
|
|
754
|
+
gap: 1rem;
|
|
755
|
+
margin-bottom: 2rem;
|
|
756
|
+
}
|
|
757
|
+
@media (min-width: 640px) {
|
|
758
|
+
.page-header {
|
|
759
|
+
flex-direction: row;
|
|
760
|
+
align-items: flex-end;
|
|
761
|
+
justify-content: space-between;
|
|
762
|
+
}
|
|
763
|
+
}
|
|
764
|
+
.page-header-text {
|
|
765
|
+
display: flex;
|
|
766
|
+
flex-direction: column;
|
|
767
|
+
gap: 0.25rem;
|
|
768
|
+
}
|
|
769
|
+
.page-header-text p {
|
|
770
|
+
margin: 0;
|
|
771
|
+
}
|
|
772
|
+
.page-title {
|
|
773
|
+
margin: 0;
|
|
774
|
+
font-size: 1.5rem;
|
|
775
|
+
font-weight: 600;
|
|
776
|
+
letter-spacing: -0.01em;
|
|
777
|
+
}
|
|
778
|
+
.page-header-actions {
|
|
779
|
+
display: flex;
|
|
780
|
+
flex-wrap: wrap;
|
|
781
|
+
align-items: center;
|
|
782
|
+
gap: 0.5rem;
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
.banner {
|
|
786
|
+
display: flex;
|
|
787
|
+
flex-wrap: wrap;
|
|
788
|
+
align-items: center;
|
|
789
|
+
gap: 0.75rem;
|
|
790
|
+
margin-bottom: 1.5rem;
|
|
791
|
+
padding: 0.75rem 1rem;
|
|
792
|
+
border: 1px solid color-mix(in oklch, oklch(0.75 0.16 70) 50%, transparent);
|
|
793
|
+
border-radius: var(--radius);
|
|
794
|
+
background: color-mix(in oklch, oklch(0.75 0.16 70) 12%, transparent);
|
|
795
|
+
font-size: 0.875rem;
|
|
796
|
+
}
|
|
797
|
+
.banner-text {
|
|
798
|
+
flex: 1;
|
|
799
|
+
min-width: 12rem;
|
|
800
|
+
margin: 0;
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
.role-badge--manager {
|
|
804
|
+
border-color: color-mix(in oklch, var(--chart-role-manager) 40%, transparent);
|
|
805
|
+
background: color-mix(in oklch, var(--chart-role-manager) 12%, transparent);
|
|
806
|
+
color: var(--chart-role-manager);
|
|
807
|
+
}
|
|
808
|
+
.role-badge--admin {
|
|
809
|
+
border-color: color-mix(in oklch, var(--chart-role-admin) 40%, transparent);
|
|
810
|
+
background: color-mix(in oklch, var(--chart-role-admin) 12%, transparent);
|
|
811
|
+
color: var(--chart-role-admin);
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
/* Dashboard */
|
|
815
|
+
.dashboard-grid {
|
|
816
|
+
display: grid;
|
|
817
|
+
gap: 1rem;
|
|
818
|
+
}
|
|
819
|
+
@media (min-width: 1024px) {
|
|
820
|
+
.dashboard-grid {
|
|
821
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
822
|
+
}
|
|
823
|
+
.dashboard-span-2 {
|
|
824
|
+
grid-column: span 2;
|
|
825
|
+
}
|
|
826
|
+
}
|
|
827
|
+
.role-heading {
|
|
828
|
+
display: flex;
|
|
829
|
+
align-items: center;
|
|
830
|
+
gap: 0.5rem;
|
|
831
|
+
font-size: 1.5rem;
|
|
832
|
+
}
|
|
833
|
+
.role-ladder {
|
|
834
|
+
display: flex;
|
|
835
|
+
gap: 0.375rem;
|
|
836
|
+
padding: 0;
|
|
837
|
+
margin: 0;
|
|
838
|
+
list-style: none;
|
|
839
|
+
font-size: 0.75rem;
|
|
840
|
+
color: var(--muted-foreground);
|
|
841
|
+
}
|
|
842
|
+
.role-ladder li {
|
|
843
|
+
display: flex;
|
|
844
|
+
gap: 0.375rem;
|
|
845
|
+
}
|
|
846
|
+
.role-ladder-current {
|
|
847
|
+
font-weight: 600;
|
|
848
|
+
color: var(--foreground);
|
|
849
|
+
}
|
|
850
|
+
.permission-list {
|
|
851
|
+
display: grid;
|
|
852
|
+
gap: 0.5rem;
|
|
853
|
+
padding: 0;
|
|
854
|
+
margin: 0;
|
|
855
|
+
list-style: none;
|
|
856
|
+
}
|
|
857
|
+
@media (min-width: 640px) {
|
|
858
|
+
.permission-list {
|
|
859
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
860
|
+
}
|
|
861
|
+
}
|
|
862
|
+
.permission-item {
|
|
863
|
+
display: flex;
|
|
864
|
+
align-items: center;
|
|
865
|
+
gap: 0.75rem;
|
|
866
|
+
padding: 0.5rem 0.75rem;
|
|
867
|
+
border: 1px solid var(--border);
|
|
868
|
+
border-radius: calc(var(--radius) * 0.8);
|
|
869
|
+
}
|
|
870
|
+
.permission-item--denied {
|
|
871
|
+
opacity: 0.5;
|
|
872
|
+
}
|
|
873
|
+
.permission-text {
|
|
874
|
+
min-width: 0;
|
|
875
|
+
}
|
|
876
|
+
.permission-text p {
|
|
877
|
+
margin: 0;
|
|
878
|
+
}
|
|
879
|
+
.link-card {
|
|
880
|
+
color: inherit;
|
|
881
|
+
text-decoration: none;
|
|
882
|
+
}
|
|
883
|
+
.link-card > * {
|
|
884
|
+
transition: background-color 0.15s;
|
|
885
|
+
}
|
|
886
|
+
.link-card:hover > * {
|
|
887
|
+
background: color-mix(in oklch, var(--muted) 50%, var(--card));
|
|
888
|
+
}
|
|
889
|
+
.link-card-title {
|
|
890
|
+
display: flex;
|
|
891
|
+
align-items: center;
|
|
892
|
+
justify-content: space-between;
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
/* Reports */
|
|
896
|
+
.stat-label {
|
|
897
|
+
display: flex;
|
|
898
|
+
align-items: center;
|
|
899
|
+
justify-content: space-between;
|
|
900
|
+
}
|
|
901
|
+
.stat-value {
|
|
902
|
+
font-size: 1.875rem;
|
|
903
|
+
font-variant-numeric: tabular-nums;
|
|
904
|
+
}
|
|
905
|
+
.bar-track {
|
|
906
|
+
height: 0.5rem;
|
|
907
|
+
overflow: hidden;
|
|
908
|
+
border-radius: 999px;
|
|
909
|
+
background: var(--muted);
|
|
910
|
+
}
|
|
911
|
+
.bar-fill {
|
|
912
|
+
height: 100%;
|
|
913
|
+
border-radius: 999px;
|
|
914
|
+
background: var(--chart-primary);
|
|
915
|
+
}
|
|
916
|
+
.bar-fill--vertical {
|
|
917
|
+
width: 100%;
|
|
918
|
+
min-height: 2px;
|
|
919
|
+
border-radius: 0.375rem;
|
|
920
|
+
}
|
|
921
|
+
.column-chart {
|
|
922
|
+
display: flex;
|
|
923
|
+
align-items: flex-end;
|
|
924
|
+
gap: 0.375rem;
|
|
925
|
+
height: 12rem;
|
|
926
|
+
}
|
|
927
|
+
.column-chart-item {
|
|
928
|
+
display: flex;
|
|
929
|
+
flex: 1;
|
|
930
|
+
flex-direction: column;
|
|
931
|
+
align-items: center;
|
|
932
|
+
justify-content: flex-end;
|
|
933
|
+
gap: 0.25rem;
|
|
934
|
+
height: 100%;
|
|
935
|
+
}
|
|
936
|
+
.column-chart-bar {
|
|
937
|
+
display: flex;
|
|
938
|
+
flex: 1;
|
|
939
|
+
align-items: flex-end;
|
|
940
|
+
width: 100%;
|
|
941
|
+
}
|
|
942
|
+
.chart {
|
|
943
|
+
width: 100%;
|
|
944
|
+
}
|
|
945
|
+
.chart--area {
|
|
946
|
+
height: 14rem;
|
|
947
|
+
}
|
|
948
|
+
.chart--donut {
|
|
949
|
+
width: 11rem;
|
|
950
|
+
height: 11rem;
|
|
951
|
+
flex-shrink: 0;
|
|
952
|
+
}
|
|
953
|
+
.chart-with-legend {
|
|
954
|
+
display: flex;
|
|
955
|
+
flex-wrap: wrap;
|
|
956
|
+
align-items: center;
|
|
957
|
+
justify-content: center;
|
|
958
|
+
gap: 1.5rem;
|
|
959
|
+
}
|
|
960
|
+
.chart-legend {
|
|
961
|
+
display: flex;
|
|
962
|
+
flex-direction: column;
|
|
963
|
+
gap: 0.5rem;
|
|
964
|
+
padding: 0;
|
|
965
|
+
margin: 0;
|
|
966
|
+
list-style: none;
|
|
967
|
+
font-size: 0.875rem;
|
|
968
|
+
}
|
|
969
|
+
.chart-legend li {
|
|
970
|
+
display: flex;
|
|
971
|
+
align-items: center;
|
|
972
|
+
gap: 0.5rem;
|
|
973
|
+
}
|
|
974
|
+
.chart-swatch {
|
|
975
|
+
width: 0.75rem;
|
|
976
|
+
height: 0.75rem;
|
|
977
|
+
border-radius: 0.25rem;
|
|
978
|
+
}
|
|
979
|
+
|
|
980
|
+
/* Admin tables */
|
|
981
|
+
.empty-state {
|
|
982
|
+
margin: 0;
|
|
983
|
+
padding: 2.5rem 0;
|
|
984
|
+
text-align: center;
|
|
985
|
+
font-size: 0.875rem;
|
|
986
|
+
color: var(--muted-foreground);
|
|
987
|
+
}
|
|
988
|
+
.table-toolbar {
|
|
989
|
+
display: flex;
|
|
990
|
+
flex-wrap: wrap;
|
|
991
|
+
gap: 0.5rem;
|
|
992
|
+
}
|
|
993
|
+
.search-input {
|
|
994
|
+
position: relative;
|
|
995
|
+
flex: 1;
|
|
996
|
+
min-width: 12rem;
|
|
997
|
+
}
|
|
998
|
+
.search-input-icon {
|
|
999
|
+
position: absolute;
|
|
1000
|
+
top: 50%;
|
|
1001
|
+
left: 0.625rem;
|
|
1002
|
+
color: var(--muted-foreground);
|
|
1003
|
+
transform: translateY(-50%);
|
|
1004
|
+
pointer-events: none;
|
|
1005
|
+
}
|
|
1006
|
+
.search-input input {
|
|
1007
|
+
padding-left: 2rem;
|
|
1008
|
+
}
|
|
1009
|
+
.sort-button {
|
|
1010
|
+
display: inline-flex;
|
|
1011
|
+
align-items: center;
|
|
1012
|
+
gap: 0.25rem;
|
|
1013
|
+
padding: 0;
|
|
1014
|
+
border: 0;
|
|
1015
|
+
background: none;
|
|
1016
|
+
color: inherit;
|
|
1017
|
+
font: inherit;
|
|
1018
|
+
cursor: pointer;
|
|
1019
|
+
}
|
|
1020
|
+
.table-pagination {
|
|
1021
|
+
display: flex;
|
|
1022
|
+
flex-wrap: wrap;
|
|
1023
|
+
align-items: center;
|
|
1024
|
+
justify-content: space-between;
|
|
1025
|
+
gap: 0.5rem;
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
/* Settings */
|
|
1029
|
+
.settings-grid {
|
|
1030
|
+
display: grid;
|
|
1031
|
+
gap: 1rem;
|
|
1032
|
+
max-width: 42rem;
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
/* Skeleton sizes */
|
|
1036
|
+
.skeleton-title {
|
|
1037
|
+
width: 14rem;
|
|
1038
|
+
height: 2rem;
|
|
1039
|
+
}
|
|
1040
|
+
.skeleton-line {
|
|
1041
|
+
width: 20rem;
|
|
1042
|
+
max-width: 100%;
|
|
1043
|
+
height: 1rem;
|
|
1044
|
+
}
|
|
1045
|
+
.skeleton-card {
|
|
1046
|
+
height: 8rem;
|
|
1047
|
+
}
|
|
1048
|
+
.skeleton-panel {
|
|
1049
|
+
height: 16rem;
|
|
1050
|
+
}
|
|
1051
|
+
.skeleton-logo {
|
|
1052
|
+
width: 8rem;
|
|
1053
|
+
height: 1.75rem;
|
|
1054
|
+
}
|
|
1055
|
+
.skeleton-nav {
|
|
1056
|
+
width: 100%;
|
|
1057
|
+
height: 2rem;
|
|
1058
|
+
}
|
|
1059
|
+
.skeleton-nav-row {
|
|
1060
|
+
width: 10rem;
|
|
1061
|
+
height: 1.75rem;
|
|
1062
|
+
margin-left: auto;
|
|
1063
|
+
}
|
|
1064
|
+
.skeleton-label {
|
|
1065
|
+
width: 5rem;
|
|
1066
|
+
height: 1rem;
|
|
1067
|
+
}
|
|
1068
|
+
.skeleton-input {
|
|
1069
|
+
width: 100%;
|
|
1070
|
+
height: 2rem;
|
|
1071
|
+
}
|
|
1072
|
+
.skeleton-button {
|
|
1073
|
+
width: 100%;
|
|
1074
|
+
height: 2.25rem;
|
|
1075
|
+
}
|
|
1076
|
+
.sidebar--skeleton {
|
|
1077
|
+
display: none;
|
|
1078
|
+
}
|
|
1079
|
+
@media (min-width: 768px) {
|
|
1080
|
+
.sidebar--skeleton {
|
|
1081
|
+
display: flex;
|
|
1082
|
+
}
|
|
1083
|
+
}
|
|
1084
|
+
|
|
1085
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1086
|
+
.spin {
|
|
1087
|
+
animation-duration: 3s;
|
|
1088
|
+
}
|
|
1089
|
+
.sidebar {
|
|
1090
|
+
transition: none;
|
|
1091
|
+
}
|
|
1092
|
+
}
|