Files
Atharv1705 5703fbb27f 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
2026-11-03 14:07:35 +05:30

322 lines
13 KiB
CSS

/* ============================================================
base.css — BookKeepPro Design System · "Ledger"
Ink, brass and parchment — a bookkeeping identity built on
the working materials of the trade: ruled paper, tabular
figures, and the quiet authority of a well-kept ledger.
============================================================ */
/* ── Brand Tokens ─────────────────────────────────────────── */
:root {
/* core palette */
--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(--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: #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;
--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;
--radius-md: 14px;
--radius-lg: 22px;
--radius-pill: 999px;
--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);
--ruled: repeating-linear-gradient(
to bottom,
transparent 0,
transparent 27px,
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: 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; }
}
body {
font-family: var(--font-body);
background: var(--bg);
color: var(--ink);
min-height: 100vh;
-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
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(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);
font-size: 11.5px;
font-weight: 500;
letter-spacing: 0.14em;
text-transform: uppercase;
color: var(--brass-dark);
display: inline-flex;
align-items: center;
gap: 8px;
}
.eyebrow::before { content: ''; width: 18px; height: 1px; background: var(--brass); display: inline-block; }
/* ── Card ────────────────────────────────────────────────── */
.card {
background: var(--card);
border-radius: var(--radius-md);
box-shadow: var(--shadow-sm);
border: 1px solid var(--border);
padding: clamp(20px, 4vw, 32px);
transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-flat { background: var(--card); border-radius: var(--radius-md); border: 1px solid var(--border); padding: clamp(16px, 3vw, 24px); }
/* ── Buttons ─────────────────────────────────────────────── */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
padding: 11px 24px;
font-family: var(--font-body);
font-size: 14px;
font-weight: 600;
border: none;
border-radius: var(--radius-sm);
cursor: pointer;
transition: transform 0.12s ease, background var(--transition), box-shadow var(--transition), border-color var(--transition);
white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.98); }
.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(29, 78, 216, 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;
color: var(--ink);
border: 1.5px solid var(--ink);
}
.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: var(--border); }
.btn-danger { background: var(--error); color: #fff; }
.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; }
.btn-icon { padding: 9px; border-radius: var(--radius-sm); }
/* ── Form Inputs ─────────────────────────────────────────── */
.input, .select-input {
width: 100%;
padding: 12px 16px;
border: 1.5px solid var(--border);
border-radius: var(--radius-sm);
font-family: var(--font-body);
font-size: 14px;
color: var(--ink);
background: #fff;
transition: border-color var(--transition), box-shadow var(--transition);
}
.input:focus, .select-input:focus {
outline: none;
border-color: var(--brass);
box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}
.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; }
.password-wrap { position: relative; }
.password-wrap .input { padding-right: 56px; }
.password-toggle {
position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
background: none; border: none; color: var(--brass); font-weight: 600; font-size: 13px; cursor: pointer;
}
/* ── Badges ──────────────────────────────────────────────── */
.badge {
display: inline-flex; align-items: center; gap: 4px;
padding: 3px 10px; border-radius: var(--radius-xs);
font-size: 11px; font-weight: 700; letter-spacing: 0.3px;
white-space: nowrap;
font-family: var(--font-mono);
}
.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: #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(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; }
/* ── App Layout Scaffold ─────────────────────────────────── */
.app-body {
display: flex;
flex-direction: column;
min-height: 100vh;
}
.page-main {
flex: 1;
width: min(100%, 1100px);
margin: clamp(24px, 4vw, 40px) auto;
padding: 0 clamp(16px, 3vw, 24px);
}
.page-main-wide {
flex: 1;
width: min(100%, 1300px);
margin: clamp(24px, 4vw, 40px) auto;
padding: 0 clamp(16px, 3vw, 24px);
}
/* ── Animations ──────────────────────────────────────────── */
@keyframes fadeIn { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }
@keyframes slideUp { from { opacity:0; transform:translateY(14px); } to { opacity:1; transform:none; } }
.fade-in { animation: fadeIn 0.35s ease both; }
.slide-up { animation: slideUp 0.4s ease both; }
/* ── Skeleton loading ────────────────────────────────────── */
@keyframes shimmer {
from { background-position: -600px 0; }
to { background-position: 600px 0; }
}
.skeleton {
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);
}
/* ── Utility ─────────────────────────────────────────────── */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.flex-gap-sm { gap: 8px; }
.flex-gap-md { gap: 16px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.font-600 { font-weight: 600; }
/* Focus visibility */
:focus-visible {
outline: 2px solid var(--brass);
outline-offset: 2px;
}
/* Button + input micro-interactions */
.btn:active { transform: scale(0.97); }
.input:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
outline: none;
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;
}
/* AI Summary — analyzing spinner */
@keyframes spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
@media (max-width: 640px) {
.btn:not(.btn-icon):not(.toast-close), .btn-sm:not(.btn-icon), .select-input, .input-field {
min-height: 44px;
}
.chatbot-fab {
bottom: 80px; /* move it up so it doesn't cover footer/bottom content on mobile */
}
}