feat: modernize UI/UX to 2026 US fintech standard, add violet AI accents, and strengthen security controls
- Modern 2026 US fintech visual redesign across User & Admin Dashboards, Marketing pages, Auth screens, and Layouts - Introduced violet accent (#6D28D9 / #8B5CF6) strictly dedicated to AI capabilities (AI Daily Briefing, AI Assistant, Chatbot FAB & Chat UI) - Motion system respecting prefers-reduced-motion and (hover: none) with GPU-accelerated transforms & opacities - High-resolution dark glass monogram logo mark with upward growth motif - Backend security enhancements: strict MIME-type sniffing validation, admin assignment scoping assertions, safe document deletion handling - Nginx strict Content-Security-Policy (CSP) headers and favicon routing
This commit is contained in:
@@ -1,6 +1,3 @@
|
||||
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,1,0');
|
||||
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');
|
||||
|
||||
/* ============================================================
|
||||
base.css — BookKeepPro Design System · "Ledger"
|
||||
Ink, brass and parchment — a bookkeeping identity built on
|
||||
@@ -11,42 +8,55 @@
|
||||
/* ── Brand Tokens ─────────────────────────────────────────── */
|
||||
:root {
|
||||
/* core palette */
|
||||
--ink: #17211D;
|
||||
--ink-soft: #2A362F;
|
||||
--brass: #8F6528;
|
||||
--brass-dark: #8F6528;
|
||||
--brass-light: rgba(176, 128, 61, 0.12);
|
||||
--emerald: #1F5D46;
|
||||
--emerald-dark: #163F30;
|
||||
--emerald-light:rgba(31, 93, 70, 0.10);
|
||||
--paper: #F5F2E9;
|
||||
--ink: #0A2540;
|
||||
--ink-soft: #14365F;
|
||||
--brass: #1D4ED8;
|
||||
--brass-dark: #1E40AF;
|
||||
--brass-light: rgba(29, 78, 216, 0.08);
|
||||
--emerald: #047857;
|
||||
--emerald-dark: #065F46;
|
||||
--emerald-light:rgba(4, 120, 87, 0.08);
|
||||
--paper: #F6F9FC;
|
||||
--paper-raised: #FFFFFF;
|
||||
|
||||
/* legacy variable names kept so every existing component re-skins automatically */
|
||||
--blue: var(--emerald);
|
||||
--blue-dark: var(--emerald-dark);
|
||||
--blue-light: var(--emerald-light);
|
||||
--orange: var(--brass);
|
||||
--orange-dark: var(--brass-dark);
|
||||
--orange-light: var(--brass-light);
|
||||
--header-bg: #EFEADA;
|
||||
--footer-bot: #EFEADA;
|
||||
--navy: var(--ink);
|
||||
--accent: #2C7A5B;
|
||||
--blue: var(--brass);
|
||||
--blue-dark: var(--brass-dark);
|
||||
--blue-light: var(--brass-light);
|
||||
--blue-bright: #3B82F6;
|
||||
--sky: #0EA5E9;
|
||||
--teal: #14B8A6;
|
||||
--amber-text: #92600A;
|
||||
--orange: #F5B83D;
|
||||
--orange-dark: #D99A1E;
|
||||
--orange-light: rgba(245, 184, 61, 0.12);
|
||||
--header-bg: #EEF3F9;
|
||||
--footer-bot: #EEF3F9;
|
||||
--navy: #0A2540;
|
||||
--accent: #1D4ED8;
|
||||
--bg: var(--paper);
|
||||
--card: var(--paper-raised);
|
||||
--muted: #6B7268;
|
||||
--border: #E3DDC9;
|
||||
--success: #1F5D46;
|
||||
--success-bg: rgba(31, 93, 70, 0.10);
|
||||
--error: #A63A3A;
|
||||
--error-bg: rgba(166, 58, 58, 0.10);
|
||||
--warn: #8F6528;
|
||||
--warn-bg: rgba(176, 128, 61, 0.12);
|
||||
--muted: #425466;
|
||||
--border: #E2E8F0;
|
||||
--success: #047857;
|
||||
--success-bg: #ECFDF5;
|
||||
--error: #DC2626;
|
||||
--error-bg: #FEF2F2;
|
||||
--warn: #F5B83D;
|
||||
--warn-bg: #FFF8E6;
|
||||
--violet: #6D28D9;
|
||||
--violet-bright:#8B5CF6;
|
||||
--violet-light: #F5F3FF;
|
||||
--violet-soft: #C4B5FD;
|
||||
|
||||
--font-display: 'Fraunces', 'Georgia', serif;
|
||||
--font-body: 'IBM Plex Sans', system-ui, sans-serif;
|
||||
--font-mono: 'IBM Plex Mono', ui-monospace, monospace;
|
||||
--gradient-brand: linear-gradient(135deg, #1D4ED8 0%, #0EA5E9 60%, #14B8A6 100%);
|
||||
--gradient-ai: linear-gradient(135deg, #6D28D9 0%, #1D4ED8 100%);
|
||||
--gradient-success: linear-gradient(135deg, #047857 0%, #14B8A6 100%);
|
||||
--gradient-warm: linear-gradient(135deg, #F5B83D 0%, #D99A1E 100%);
|
||||
|
||||
--font-display: 'Playfair Display', Georgia, serif;
|
||||
--font-body: 'Inter', system-ui, -apple-system, sans-serif;
|
||||
--font-mono: 'JetBrains Mono', ui-monospace, monospace;
|
||||
|
||||
--radius-xs: 6px;
|
||||
--radius-sm: 10px;
|
||||
@@ -54,11 +64,11 @@
|
||||
--radius-lg: 22px;
|
||||
--radius-pill: 999px;
|
||||
|
||||
--shadow-xs: 0 1px 2px 0 rgba(23, 33, 29, 0.06);
|
||||
--shadow-sm: 0 4px 10px -2px rgba(23, 33, 29, 0.10);
|
||||
--shadow-md: 0 12px 28px -8px rgba(23, 33, 29, 0.16);
|
||||
--shadow-lg: 0 24px 56px -12px rgba(23, 33, 29, 0.22);
|
||||
--shadow-glow: 0 0 0 6px rgba(176, 128, 61, 0.14);
|
||||
--shadow-xs: 0 1px 2px 0 rgba(10, 37, 64, 0.06);
|
||||
--shadow-sm: 0 4px 10px -2px rgba(10, 37, 64, 0.10);
|
||||
--shadow-md: 0 12px 28px -8px rgba(10, 37, 64, 0.16);
|
||||
--shadow-lg: 0 24px 56px -12px rgba(10, 37, 64, 0.22);
|
||||
--shadow-glow: 0 0 0 6px rgba(29, 78, 216, 0.14);
|
||||
|
||||
--transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
--glass-blur: blur(14px);
|
||||
@@ -67,14 +77,14 @@
|
||||
to bottom,
|
||||
transparent 0,
|
||||
transparent 27px,
|
||||
rgba(23, 33, 29, 0.05) 27px,
|
||||
rgba(23, 33, 29, 0.05) 28px
|
||||
rgba(10, 37, 64, 0.05) 27px,
|
||||
rgba(10, 37, 64, 0.05) 28px
|
||||
);
|
||||
}
|
||||
|
||||
/* ── Reset ───────────────────────────────────────────────── */
|
||||
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
html { font-size: 16px; scroll-behavior: smooth; }
|
||||
html { font-size: 14px; scroll-behavior: smooth; }
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
html { scroll-behavior: auto; }
|
||||
*, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
|
||||
@@ -87,18 +97,18 @@ body {
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
img { max-width: 100%; display: block; }
|
||||
a { color: var(--emerald); text-decoration: none; }
|
||||
a:hover { color: var(--emerald-dark); }
|
||||
a { color: var(--brass); text-decoration: none; }
|
||||
a:hover { color: var(--brass-dark); }
|
||||
.material-symbols-outlined { font-size: inherit; vertical-align: middle; line-height: 1; font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
|
||||
.tnum { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
|
||||
|
||||
/* ── Typography ──────────────────────────────────────────── */
|
||||
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); }
|
||||
h1 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
|
||||
h2 { font-size: clamp(19px, 2.6vw, 26px); font-weight: 600; line-height: 1.25; }
|
||||
h3 { font-size: clamp(16px, 2vw, 19px); font-weight: 600; }
|
||||
p { line-height: 1.7; color: #3E463F; }
|
||||
small, .text-sm { font-size: 13px; color: var(--muted); }
|
||||
h1 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; line-height: 1.18; letter-spacing: -0.015em; }
|
||||
h2 { font-size: clamp(18px, 1.8vw, 24px); font-weight: 600; line-height: 1.25; }
|
||||
h3 { font-size: clamp(15px, 1.3vw, 18px); font-weight: 600; }
|
||||
p { font-size: 13.5px; line-height: 1.6; color: var(--muted); }
|
||||
small, .text-sm { font-size: 12px; color: var(--muted); }
|
||||
.text-muted { color: var(--muted); }
|
||||
.eyebrow {
|
||||
font-family: var(--font-mono);
|
||||
@@ -145,10 +155,10 @@ small, .text-sm { font-size: 13px; color: var(--muted); }
|
||||
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
|
||||
|
||||
.btn-primary { background: var(--brass); color: #fff; }
|
||||
.btn-primary:hover:not(:disabled) { background: var(--brass-dark); box-shadow: 0 6px 18px rgba(176,128,61,0.32); }
|
||||
.btn-primary:hover:not(:disabled) { background: var(--brass-dark); box-shadow: 0 6px 18px rgba(29, 78, 216, 0.28); }
|
||||
|
||||
.btn-secondary { background: var(--emerald); color: #fff; }
|
||||
.btn-secondary:hover:not(:disabled) { background: var(--emerald-dark); box-shadow: 0 6px 18px rgba(31,93,70,0.28); }
|
||||
.btn-secondary { background: var(--header-bg); color: var(--ink); border: 1px solid var(--border); }
|
||||
.btn-secondary:hover:not(:disabled) { background: var(--border); box-shadow: 0 4px 12px rgba(10, 37, 64, 0.08); }
|
||||
|
||||
.btn-outline {
|
||||
background: transparent;
|
||||
@@ -158,10 +168,10 @@ small, .text-sm { font-size: 13px; color: var(--muted); }
|
||||
.btn-outline:hover:not(:disabled) { background: var(--ink); color: #fff; }
|
||||
|
||||
.btn-ghost { background: transparent; color: var(--muted); border: 1.5px solid var(--border); }
|
||||
.btn-ghost:hover:not(:disabled) { background: var(--paper); color: var(--ink); border-color: #cfc7ad; }
|
||||
.btn-ghost:hover:not(:disabled) { background: var(--paper); color: var(--ink); border-color: var(--border); }
|
||||
|
||||
.btn-danger { background: var(--error); color: #fff; }
|
||||
.btn-danger:hover:not(:disabled) { background: #8a2f2f; box-shadow: 0 6px 18px rgba(166,58,58,0.3); }
|
||||
.btn-danger:hover:not(:disabled) { background: #b91c1c; box-shadow: 0 6px 18px rgba(220, 38, 38, 0.3); }
|
||||
|
||||
.btn-sm { padding: 7px 16px; font-size: 13px; }
|
||||
.btn-xs { padding: 5px 12px; font-size: 12px; }
|
||||
@@ -181,10 +191,10 @@ small, .text-sm { font-size: 13px; color: var(--muted); }
|
||||
}
|
||||
.input:focus, .select-input:focus {
|
||||
outline: none;
|
||||
border-color: var(--emerald);
|
||||
box-shadow: 0 0 0 3px rgba(31,93,70,0.12);
|
||||
border-color: var(--brass);
|
||||
box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
|
||||
}
|
||||
.input::placeholder { color: #A8A190; }
|
||||
.input::placeholder { color: var(--muted); }
|
||||
.input[readonly] { background: var(--paper); color: var(--muted); cursor: default; }
|
||||
label.form-label { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-soft); margin-bottom: 6px; }
|
||||
.form-group { margin-bottom: 18px; }
|
||||
@@ -192,7 +202,7 @@ label.form-label { display: block; font-size: 12.5px; font-weight: 600; letter-s
|
||||
.password-wrap .input { padding-right: 56px; }
|
||||
.password-toggle {
|
||||
position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
|
||||
background: none; border: none; color: var(--emerald); font-weight: 600; font-size: 13px; cursor: pointer;
|
||||
background: none; border: none; color: var(--brass); font-weight: 600; font-size: 13px; cursor: pointer;
|
||||
}
|
||||
|
||||
/* ── Badges ──────────────────────────────────────────────── */
|
||||
@@ -203,17 +213,17 @@ label.form-label { display: block; font-size: 12.5px; font-weight: 600; letter-s
|
||||
white-space: nowrap;
|
||||
font-family: var(--font-mono);
|
||||
}
|
||||
.badge-blue { background: var(--emerald-light); color: var(--emerald); }
|
||||
.badge-orange { background: var(--brass-light); color: var(--brass-dark); border: 1px solid rgba(176,128,61,0.35); }
|
||||
.badge-blue { background: #EFF6FF; color: #1D4ED8; }
|
||||
.badge-orange { background: #FFF8E6; color: #92600A; border: 1px solid rgba(245, 184, 61, 0.35); }
|
||||
.badge-red { background: var(--error-bg); color: var(--error); }
|
||||
.badge-green { background: var(--success-bg); color: var(--success); }
|
||||
.badge-yellow { background: var(--warn-bg); color: var(--warn); border: 1px solid rgba(176,128,61,0.3); }
|
||||
.badge-yellow { background: #FFF8E6; color: #92600A; border: 1px solid rgba(245, 184, 61, 0.3); }
|
||||
.badge-muted { background: var(--paper); color: var(--muted); }
|
||||
|
||||
/* ── Status Pills (doc review) ───────────────────────────── */
|
||||
.pill-approved { background:var(--success-bg); color:var(--success); border:1px solid rgba(31,93,70,0.3); padding:2px 10px; border-radius:var(--radius-xs); font-size:11px; font-weight:700; font-family: var(--font-mono); }
|
||||
.pill-rejected { background:var(--error-bg); color:var(--error); border:1px solid rgba(166,58,58,0.3); padding:2px 10px; border-radius:var(--radius-xs); font-size:11px; font-weight:700; font-family: var(--font-mono); }
|
||||
.pill-pending { background:var(--warn-bg); color:var(--brass-dark); border:1px solid rgba(176,128,61,0.3); padding:2px 10px; border-radius:var(--radius-xs); font-size:11px; font-weight:700; font-family: var(--font-mono); }
|
||||
.pill-approved { background:var(--success-bg); color:var(--success); border:1px solid rgba(4, 120, 87, 0.25); padding:2px 10px; border-radius:var(--radius-xs); font-size:11px; font-weight:700; font-family: var(--font-mono); }
|
||||
.pill-rejected { background:var(--error-bg); color:var(--error); border:1px solid rgba(220, 38, 38, 0.25); padding:2px 10px; border-radius:var(--radius-xs); font-size:11px; font-weight:700; font-family: var(--font-mono); }
|
||||
.pill-pending { background:var(--warn-bg); color:var(--amber-text); border:1px solid rgba(245, 184, 61, 0.3); padding:2px 10px; border-radius:var(--radius-xs); font-size:11px; font-weight:700; font-family: var(--font-mono); }
|
||||
|
||||
/* ── Divider ─────────────────────────────────────────────── */
|
||||
.divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
|
||||
@@ -249,7 +259,7 @@ label.form-label { display: block; font-size: 12.5px; font-weight: 600; letter-s
|
||||
to { background-position: 600px 0; }
|
||||
}
|
||||
.skeleton {
|
||||
background: linear-gradient(90deg, #EDE8D9 25%, #F5F2E9 50%, #EDE8D9 75%);
|
||||
background: linear-gradient(90deg, #E2E8F0 25%, #EDF2F7 50%, #E2E8F0 75%);
|
||||
background-size: 600px 100%;
|
||||
animation: shimmer 1.4s infinite linear;
|
||||
border-radius: var(--radius-sm);
|
||||
@@ -277,7 +287,7 @@ label.form-label { display: block; font-size: 12.5px; font-weight: 600; letter-s
|
||||
|
||||
/* Focus visibility */
|
||||
:focus-visible {
|
||||
outline: 2px solid var(--emerald);
|
||||
outline: 2px solid var(--brass);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
@@ -289,8 +299,8 @@ input[type="email"]:focus,
|
||||
input[type="password"]:focus,
|
||||
textarea:focus {
|
||||
outline: none;
|
||||
border-color: var(--emerald) !important;
|
||||
box-shadow: 0 0 0 3px rgba(31,93,70,0.14) !important;
|
||||
border-color: var(--brass) !important;
|
||||
box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.14) !important;
|
||||
transition: border-color 0.2s ease, box-shadow 0.2s ease;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user