diff --git a/frontend/index.html b/frontend/index.html index 9045e75..b5e16fc 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -2,16 +2,22 @@ - + - - BookKeepPro — Bookkeeping, Payroll & Tax Services + + ABC CPA — Tax Advisory, International Tax & Fractional CFO + + + + + +
diff --git a/frontend/package.json b/frontend/package.json index a8d63aa..bb6cd2c 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -7,7 +7,8 @@ "dev": "vite", "build": "vite build", "lint": "oxlint", - "preview": "vite preview" + "preview": "vite preview", + "serve": "vite build && vite preview" }, "dependencies": { "axios": "^1.18.1", diff --git a/frontend/public/css/animations.css b/frontend/public/css/animations.css index ebf4c3d..362d7e3 100644 --- a/frontend/public/css/animations.css +++ b/frontend/public/css/animations.css @@ -10,8 +10,8 @@ .btn:active { transform: translateY(1px) scale(0.97); } @keyframes pulse-brass { - 0%, 100% { box-shadow: 0 0 0 0 rgba(176,128,61,0.35); } - 50% { box-shadow: 0 0 0 5px rgba(176,128,61,0); } + 0%, 100% { box-shadow: 0 0 0 0 rgba(29, 78, 216, 0.35); } + 50% { box-shadow: 0 0 0 5px rgba(29, 78, 216, 0); } } .pulse { animation: pulse-brass 2s infinite; } @@ -25,14 +25,14 @@ .stagger > *:nth-child(5) { animation-delay: 0.24s; } .stagger > *:nth-child(6) { animation-delay: 0.30s; } -input[type=checkbox] { accent-color: var(--emerald); width: 16px; height: 16px; cursor: pointer; } +input[type=checkbox] { accent-color: var(--brass); width: 16px; height: 16px; cursor: pointer; } /* Ledger-rule underline — the signature link treatment: a brass rule draws itself in, like a line struck under a checked entry */ .fancy-link { position: relative; text-decoration: none; - color: var(--emerald); + color: var(--brass); } .fancy-link::after { content: ''; diff --git a/frontend/public/css/artha-motion.css b/frontend/public/css/artha-motion.css new file mode 100644 index 0000000..ad3344d --- /dev/null +++ b/frontend/public/css/artha-motion.css @@ -0,0 +1,329 @@ +/* ============================================================ + artha-motion.css · motion layer for the ABC CPA "Ledger" UI + Load AFTER dynamic.css in index.html: + + + Motion language: calm, precise, "a ledger line being drawn". + - one easing curve (expo-out), 200-700ms, no bounce + - gold rule draws under / over things that matter + - only transform + opacity are animated + Palette (matches base.css): + ink #0A2540 · blue #1D4ED8 · emerald #047857 · page #F6F9FC + ============================================================ */ + +/* ---------- 1. Fix colour drift (dynamic.css still uses the OLD palette) ---------- */ +:root { + --ink-rgb: 10, 37, 64; + --green-rgb: 29, 78, 216; + --gold-rgb: 245, 184, 61; + --brass-rgb: 245, 184, 61; + /* brass token override */ + --emerald-rgb: 4, 120, 87; + /* emerald token override */ + --ease-out: cubic-bezier(0.16, 1, 0.3, 1); + + /* shadows tinted with ink */ + --shadow-xs: 0 1px 2px 0 rgba(var(--ink-rgb), 0.06); + --shadow-sm: 0 4px 10px -2px rgba(var(--ink-rgb), 0.10); + --shadow-md: 0 12px 28px -8px rgba(var(--ink-rgb), 0.16); + --shadow-lg: 0 24px 56px -12px rgba(var(--ink-rgb), 0.22); + --shadow-glow: 0 0 0 6px rgba(29, 78, 216, 0.16); +} + +::selection { + background: rgba(29, 78, 216, 0.20); + color: #0A2540; +} + +.scroll-progress { + background: linear-gradient(90deg, #1D4ED8, #14B8A6); +} + +/* ---------- 2. Shared keyframes ---------- */ +@keyframes arthaRise { + from { + opacity: 0; + transform: translateY(18px); + } +} + +@keyframes arthaPop { + from { + opacity: 0; + transform: scale(0.85); + } +} + +@keyframes arthaRule { + to { + background-size: 100% 2px; + } +} + +@keyframes arthaDrift { + from { + transform: translate3d(-3%, -2%, 0) scale(1); + } + + to { + transform: translate3d(3%, 2%, 0) scale(1.1); + } +} + +/* ---------- 3. Navbar: shadow + gold hairline on scroll, gold underline on links ---------- */ +.artha-navbar { + transition: box-shadow 0.3s, border-color 0.3s, background-color 0.3s; +} + +html[data-scrolled] .artha-navbar { + box-shadow: 0 10px 30px -18px rgba(var(--ink-rgb), 0.45); + border-bottom-color: rgba(29, 78, 216, 0.35); +} + +.artha-nav-links>a { + position: relative; +} + +.artha-nav-links>a::after { + content: ''; + position: absolute; + left: 0; + right: 0; + bottom: -6px; + height: 1.5px; + background: #1D4ED8; + transform: scaleX(0); + transform-origin: left; + transition: transform 0.35s var(--ease-out); +} + +.artha-nav-links>a:hover::after { + transform: scaleX(1); +} + +/* ---------- 4. Hero: staged entrance, gold rule under the italic word, ambient light ---------- */ +.artha-hero { + position: relative; + isolation: isolate; +} + +.artha-hero::before { + content: ''; + position: absolute; + inset: 0; + z-index: -1; + pointer-events: none; + background: + radial-gradient(50% 55% at 12% 25%, rgba(20, 184, 166, 0.14), transparent 70%), + radial-gradient(45% 60% at 90% 85%, rgba(29, 78, 216, 0.16), transparent 70%); + animation: arthaDrift 22s ease-in-out infinite alternate; +} + +.artha-hero-left>* { + animation: arthaRise 0.9s var(--ease-out) backwards; +} + +.artha-hero-left> :nth-child(1) { + animation-delay: 0.05s; +} + +.artha-hero-left> :nth-child(2) { + animation-delay: 0.15s; +} + +.artha-hero-left> :nth-child(3) { + animation-delay: 0.28s; +} + +.artha-hero-left> :nth-child(4) { + animation-delay: 0.40s; +} + +.artha-hero-left> :nth-child(n+5) { + animation-delay: 0.52s; +} + +.artha-hero-right { + animation: arthaRise 1.1s 0.3s var(--ease-out) backwards; +} + +.artha-hero-title em { + font-style: italic; + background: var(--gradient-brand); + -webkit-background-clip: text; + -webkit-text-fill-color: transparent; + background-clip: text; + font-weight: 600; +} + +/* ---------- 5. Cards: lift + gold top-edge rule that draws on hover ---------- */ +:is(.artha-portal-card, .artha-vault-card, .artha-ticker-card, .artha-trust-item, .artha-firm-stat-pill) { + position: relative; +} + +:is(.artha-portal-card, .artha-vault-card, .artha-ticker-card)::after { + content: ''; + position: absolute; + left: 18px; + right: 18px; + top: -1px; + height: 2px; + border-radius: 2px; + background: linear-gradient(90deg, #1D4ED8, #14B8A6); + transform: scaleX(0); + transform-origin: left; + pointer-events: none; + transition: transform 0.5s var(--ease-out); +} + +:is(.artha-portal-card, .artha-vault-card, .artha-ticker-card):hover::after { + transform: scaleX(1); +} + +:is(.artha-vault-card, .artha-ticker-card) { + transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s; +} + +:is(.artha-vault-card, .artha-ticker-card):hover { + transform: translateY(-4px); + box-shadow: var(--shadow-md); +} + +.artha-portal-card:hover { + transform: translateY(-2px); +} + +/* pointer spotlight (needs the one-line SPOT change in motion.js) */ +:is(.artha-portal-card, .artha-vault-card, .artha-ticker-card):hover { + background-image: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(29, 78, 216, 0.08), transparent 62%); +} + +/* ---------- 6. Buttons: gold sheen on primary, soft press ---------- */ +.artha-pill-btn { + position: relative; + overflow: hidden; + transition: transform 0.2s var(--ease-out), box-shadow 0.25s, background-color 0.25s, color 0.25s, border-color 0.25s; +} + +.artha-pill-btn:not(:disabled):hover { + transform: translateY(-1px); +} + +.artha-pill-btn:not(:disabled):active { + transform: translateY(1px) scale(0.97); +} + +.artha-pill-primary::before { + content: ''; + position: absolute; + inset: 0; + pointer-events: none; + background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%); + transform: translateX(-130%); + transition: transform 0.8s var(--ease-out); +} + +.artha-pill-primary:not(:disabled):hover::before { + transform: translateX(130%); +} + +/* ---------- 7. Status pills pop in (once) ---------- */ +.artha-status-pill { + animation: arthaPop 0.45s var(--ease-out) backwards; +} + +/* ---------- 8. Grids: children rise in as they scroll into view ---------- */ +:is(.artha-vault-grid, .artha-ticker-cards, .artha-trust-inner, .artha-firm-stats-row, .artha-calc-option-grid)>* { + animation: arthaRise 0.7s var(--ease-out) backwards; +} + +:is(.artha-vault-grid, .artha-ticker-cards, .artha-trust-inner, .artha-firm-stats-row, .artha-calc-option-grid)> :nth-child(2) { + animation-delay: 0.08s; +} + +:is(.artha-vault-grid, .artha-ticker-cards, .artha-trust-inner, .artha-firm-stats-row, .artha-calc-option-grid)> :nth-child(3) { + animation-delay: 0.16s; +} + +:is(.artha-vault-grid, .artha-ticker-cards, .artha-trust-inner, .artha-firm-stats-row, .artha-calc-option-grid)> :nth-child(4) { + animation-delay: 0.24s; +} + +:is(.artha-vault-grid, .artha-ticker-cards, .artha-trust-inner, .artha-firm-stats-row, .artha-calc-option-grid)> :nth-child(n+5) { + animation-delay: 0.30s; +} + +/* Where supported, tie the rise to scroll position instead of page load, so + below-the-fold grids animate when the visitor actually reaches them. + fill-mode stays `backwards` so hover transforms still work afterwards. */ +@supports (animation-timeline: view()) { + :is(.artha-vault-grid, .artha-ticker-cards, .artha-trust-inner, .artha-firm-stats-row, .artha-calc-option-grid)>* { + animation-timing-function: linear; + animation-delay: 0s; + animation-timeline: view(); + animation-range: entry 0% entry 55%; + } +} + +/* principle rows: number tints gold, row nudges right */ +.artha-principle-row { + transition: padding-left 0.35s var(--ease-out); +} + +.artha-principle-row:hover { + padding-left: 8px; +} + +.artha-principle-row:hover .artha-principle-num { + color: #1D4ED8; +} + +.artha-principle-num { + transition: color 0.3s; +} + +/* ---------- 9. Upload dropzone (add class `is-dragover` from JS on dragenter / dragover) ---------- */ +.artha-dropzone { + transition: border-color 0.25s, background-color 0.25s, transform 0.3s var(--ease-out), box-shadow 0.3s; +} + +.artha-dropzone:hover .material-symbols-outlined { + transform: translateY(-3px); +} + +.artha-dropzone .material-symbols-outlined { + transition: transform 0.3s var(--ease-out); + display: inline-block; +} + +.artha-dropzone.is-dragover { + border-style: solid; + border-color: #1D4ED8; + background-color: rgba(29, 78, 216, 0.08); + transform: scale(1.012); + box-shadow: var(--shadow-glow); +} + +/* ---------- 10. Reduced motion ---------- */ +@media (prefers-reduced-motion: reduce) { + .artha-hero::before { + animation: none; + } + + :is(.artha-vault-grid, .artha-ticker-cards, .artha-trust-inner, .artha-firm-stats-row, .artha-calc-option-grid)>* { + animation: none; + } +} + +@media (max-width: 768px) { + .artha-hero::before { + animation: none; + } +} + +@media (hover: none) { + :is(.artha-portal-card, .artha-vault-card, .artha-ticker-card):hover { + background-image: none; + transform: none; + } +} \ No newline at end of file diff --git a/frontend/public/css/base.css b/frontend/public/css/base.css index 35dce73..016c6d4 100644 --- a/frontend/public/css/base.css +++ b/frontend/public/css/base.css @@ -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; } diff --git a/frontend/public/css/chatbot.css b/frontend/public/css/chatbot.css index 9d43784..82f17ee 100644 --- a/frontend/public/css/chatbot.css +++ b/frontend/public/css/chatbot.css @@ -9,19 +9,22 @@ width: 56px; height: 56px; border-radius: 50%; - background: var(--ink); - color: #fff; - border: 1px solid rgba(255, 255, 255, 0.14); + background: var(--gradient-ai); + color: #FFFFFF; + border: 1px solid rgba(255, 255, 255, 0.25); cursor: pointer; - box-shadow: var(--shadow-lg); + box-shadow: 0 10px 28px -8px rgba(109, 40, 217, 0.55); display: flex; align-items: center; justify-content: center; font-size: 26px; z-index: 9998; - transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, background 0.3s ease; + transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease; +} +.chatbot-fab:hover { + transform: scale(1.07); + box-shadow: 0 12px 32px -6px rgba(109, 40, 217, 0.65); } -.chatbot-fab:hover { transform: scale(1.07); background: var(--emerald-dark); } .chatbot-fab:active { transform: scale(0.96); } .chatbot-fab .fab-icon { transition: transform 0.3s ease; } .chatbot-fab.open .fab-icon { transform: rotate(90deg); } @@ -31,29 +34,38 @@ position: absolute; inset: -4px; border-radius: 50%; - border: 1.5px solid var(--brass); + border: 1.5px solid var(--violet-bright, #8B5CF6); opacity: 0; - animation: chatPulse 2.5s ease-out infinite; + animation: chatPulse 6s cubic-bezier(0.16, 1, 0.3, 1) infinite; } .chatbot-fab.open::before { animation: none; opacity: 0; } @keyframes chatPulse { - 0% { transform: scale(1); opacity: 0.45; } - 100% { transform: scale(1.4); opacity: 0; } + 0% { transform: scale(1); opacity: 0.5; } + 20% { transform: scale(1.35); opacity: 0; } + 100% { transform: scale(1.35); opacity: 0; } } .chatbot-fab .notif-dot { position: absolute; top: 2px; right: 2px; - width: 13px; height: 13px; + width: 12px; height: 12px; border-radius: 50%; - background: var(--brass); - border: 2px solid var(--ink); - animation: dotBounce 1.5s ease infinite; + background: #F5B83D; + border: 2px solid #0A2540; } .chatbot-fab.open .notif-dot { display: none; } -@keyframes dotBounce { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } } +@keyframes chatbotWindowOpen { + from { + opacity: 0; + transform: scale(0.96); + } + to { + opacity: 1; + transform: scale(1); + } +} .chatbot-window { position: fixed; @@ -61,25 +73,39 @@ right: 24px; width: 380px; max-height: 520px; - border-radius: var(--radius-lg); + border-radius: var(--radius-lg, 16px); background: #FFFFFF; - border: 1px solid var(--border); - box-shadow: var(--shadow-lg); + border: 1px solid var(--border, #E2E8F0); + box-shadow: 0 12px 36px -8px rgba(10, 37, 64, 0.16); display: flex; flex-direction: column; z-index: 9999; overflow: hidden; opacity: 0; - transform: translateY(16px) scale(0.97); + transform: scale(0.96); + transform-origin: bottom right; pointer-events: none; - transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1); } -.chatbot-window.visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; } +.chatbot-window.visible { + opacity: 1; + transform: scale(1); + transform-origin: bottom right; + pointer-events: auto; + animation: chatbotWindowOpen 250ms cubic-bezier(0.16, 1, 0.3, 1) forwards; +} + +@media (prefers-reduced-motion: reduce) { + .chatbot-window.visible { + animation: none !important; + } + .chatbot-fab::before { + animation: none !important; + } +} .chatbot-header { - background: var(--ink); - background-image: var(--ruled); - color: #fff; + background: var(--ink, #0A2540); + color: #FFFFFF; padding: 16px 18px; display: flex; align-items: center; @@ -88,14 +114,14 @@ } .chatbot-header .bot-avatar { width: 36px; height: 36px; border-radius: 50%; - background: var(--brass); + background: var(--gradient-ai); display: flex; align-items: center; justify-content: center; - font-size: 18px; flex-shrink: 0; color: #fff; + font-size: 18px; flex-shrink: 0; color: #FFFFFF; } -.chatbot-header .bot-info h4 { font-size: 14px; font-weight: 600; margin: 0; color: #fff; font-family: var(--font-body); } -.chatbot-header .bot-info span { font-size: 11px; opacity: 0.75; } +.chatbot-header .bot-info h4 { font-size: 14px; font-weight: 600; margin: 0; color: #FFFFFF; font-family: var(--font-body); } +.chatbot-header .bot-info span { font-size: 11px; opacity: 0.8; color: #C4B5FD; } .chatbot-header .close-chat { - margin-left: auto; background: rgba(255,255,255,0.12); border: none; color: #fff; + margin-left: auto; background: rgba(255,255,255,0.12); border: none; color: #FFFFFF; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; font-size: 15px; display: flex; align-items: center; justify-content: center; transition: background 0.2s; } @@ -104,78 +130,80 @@ .chatbot-messages { flex: 1; overflow-y: auto; padding: 22px 18px; display: flex; flex-direction: column; gap: 12px; - background: var(--paper); + background: #F6F9FC; min-height: 200px; max-height: 380px; scroll-behavior: smooth; } .chatbot-welcome-text { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 8px; padding: 10px; - background: var(--emerald-light); - border-radius: var(--radius-sm); - border: 1px solid rgba(31,93,70,0.15); + background: #F5F3FF; + border-radius: var(--radius-sm, 10px); + border: 1px solid rgba(109, 40, 217, 0.16); } -.chatbot-welcome-text p { font-size: 13px; font-weight: 500; color: var(--ink); margin: 0; } -.chatbot-welcome-text .sparkle { font-size: 17px; color: var(--brass); } +.chatbot-welcome-text p { font-size: 13px; font-weight: 500; color: var(--ink, #0A2540); margin: 0; } +.chatbot-welcome-text .sparkle { font-size: 17px; color: var(--violet, #6D28D9); } .chatbot-messages::-webkit-scrollbar { width: 5px; } .chatbot-messages::-webkit-scrollbar-track { background: transparent; } -.chatbot-messages::-webkit-scrollbar-thumb { background: #d8d0b6; border-radius: 10px; } +.chatbot-messages::-webkit-scrollbar-thumb { background: var(--border, #E2E8F0); border-radius: 10px; } .chat-msg { max-width: 85%; padding: 10px 14px; border-radius: 13px; - font-size: 13px; line-height: 1.5; animation: msgSlideIn 0.3s ease; word-wrap: break-word; + font-size: 13px; line-height: 1.5; animation: msgSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1); word-wrap: break-word; } -@keyframes msgSlideIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } } +@keyframes msgSlideIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } } .chat-msg.bot { - background: #fff; color: var(--ink); border: 1px solid var(--border); + background: #FFFFFF; color: var(--ink, #0A2540); border: 1px solid var(--border, #E2E8F0); + border-left: 2px solid var(--violet, #6D28D9); border-bottom-left-radius: 4px; align-self: flex-start; box-shadow: var(--shadow-xs); } .chat-msg.user { - background: var(--emerald); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; + background: #1D4ED8; color: #FFFFFF; border-bottom-right-radius: 4px; align-self: flex-end; } .typing-indicator { display: flex; gap: 4px; padding: 12px 16px; align-self: flex-start; } -.typing-indicator span { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); opacity: 0.4; animation: typingDot 1.2s ease-in-out infinite; } +.typing-indicator span { width: 7px; height: 7px; border-radius: 50%; background: var(--violet, #6D28D9); opacity: 0.4; animation: typingDot 1.2s ease-in-out infinite; } .typing-indicator span:nth-child(2) { animation-delay: 0.15s; } .typing-indicator span:nth-child(3) { animation-delay: 0.3s; } @keyframes typingDot { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-6px); opacity: 1; } } .quick-replies { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; } + .quick-reply-btn { - background: #fff; border: 1.5px solid var(--border); color: var(--ink); - padding: 11px 15px; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 500; - cursor: pointer; text-align: left; transition: all 0.25s cubic-bezier(0.4,0,0.2,1); + background: #fff; border: 1.5px solid var(--border, #E2E8F0); color: var(--ink, #0A2540); + padding: 11px 15px; border-radius: var(--radius-sm, 10px); font-size: 13.5px; font-weight: 500; + cursor: pointer; text-align: left; transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1); font-family: inherit; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-xs); } -.quick-reply-btn:hover { background: var(--emerald-light); border-color: var(--emerald); color: var(--emerald-dark); transform: translateY(-1px); } +.quick-reply-btn:hover { background: #F5F3FF; border-color: rgba(109, 40, 217, 0.4); color: var(--violet, #6D28D9); transform: translateY(-1px); } .quick-reply-btn .qr-icon { font-size: 16px; flex-shrink: 0; } -.doc-status-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xs); padding: 10px 12px; margin-top: 6px; font-size: 12px; } -.doc-status-card .doc-name { font-weight: 600; color: var(--ink); margin-bottom: 4px; font-size: 13px; } -.doc-status-card .doc-year { color: var(--muted); font-size: 11px; } -.doc-status-card .doc-badge { display: inline-block; padding: 2px 8px; border-radius: var(--radius-xs); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; font-family: var(--font-mono); } -.doc-badge.pending { background: var(--warn-bg); color: var(--brass-dark); } -.doc-badge.approved { background: var(--success-bg); color: var(--success); } -.doc-badge.rejected { background: var(--error-bg); color: var(--error); } -.doc-status-card .doc-note { margin-top: 4px; color: var(--muted); font-style: italic; font-size: 11px; } +.doc-status-card { background: #fff; border: 1px solid var(--border, #E2E8F0); border-radius: var(--radius-xs, 6px); padding: 10px 12px; margin-top: 6px; font-size: 12px; } +.doc-status-card .doc-name { font-weight: 600; color: var(--ink, #0A2540); margin-bottom: 4px; font-size: 13px; } +.doc-status-card .doc-year { color: var(--muted, #425466); font-size: 11px; } +.doc-status-card .doc-badge { display: inline-block; padding: 2px 8px; border-radius: var(--radius-xs, 6px); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; font-family: var(--font-mono); } +.doc-badge.pending { background: #FFF8E6; color: #92600A; } +.doc-badge.approved { background: #ECFDF5; color: #047857; } +.doc-badge.rejected { background: #FEF2F2; color: #DC2626; } +.doc-status-card .doc-note { margin-top: 4px; color: var(--muted, #425466); font-style: italic; font-size: 11px; } .status-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; } -.summary-item { text-align: center; padding: 8px 4px; border-radius: var(--radius-xs); background: var(--paper); } +.summary-item { text-align: center; padding: 8px 4px; border-radius: var(--radius-xs, 6px); background: #F6F9FC; } .summary-item .count { font-family: var(--font-mono); font-size: 19px; font-weight: 600; display: block; } -.summary-item .label { font-size: 10px; text-transform: uppercase; color: var(--muted); letter-spacing: 0.5px; } -.summary-item.pending .count { color: var(--brass-dark); } -.summary-item.approved .count { color: var(--success); } -.summary-item.rejected .count { color: var(--error); } +.summary-item .label { font-size: 10px; text-transform: uppercase; color: var(--muted, #425466); letter-spacing: 0.5px; } +.summary-item.pending .count { color: #92600A; } +.summary-item.approved .count { color: #047857; } +.summary-item.rejected .count { color: #DC2626; } .faq-question { - background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xs); + background: #fff; border: 1px solid var(--border, #E2E8F0); border-radius: var(--radius-xs, 6px); padding: 9px 12px; font-size: 12.5px; cursor: pointer; transition: all 0.2s ease; - text-align: left; color: var(--ink); width: 100%; font-family: inherit; display: block; margin-top: 4px; + text-align: left; color: var(--ink, #0A2540); width: 100%; font-family: inherit; display: block; margin-top: 4px; } -.faq-question:hover { border-color: var(--emerald); color: var(--emerald); background: var(--emerald-light); } +.faq-question:hover { border-color: #1D4ED8; color: #1D4ED8; background: #EFF6FF; } .back-btn { - background: none; border: none; color: var(--emerald); cursor: pointer; font-size: 12px; + background: none; border: none; color: #1D4ED8; cursor: pointer; font-size: 12px; padding: 4px 0; font-family: inherit; font-weight: 500; margin-top: 6px; display: inline-flex; align-items: center; gap: 4px; } diff --git a/frontend/public/css/components.css b/frontend/public/css/components.css index 7761f41..4a6d3e4 100644 --- a/frontend/public/css/components.css +++ b/frontend/public/css/components.css @@ -38,32 +38,52 @@ .app-footer img { height: 28px; } .app-footer small { color: var(--muted); font-size: 12px; } -/* ── Auth Layout — Split Card ────────────────────────────── */ +/* ── Auth Layout — Artha Split Editorial ────────────────────────────── */ .auth-shell { min-height: 100vh; display: flex; align-items: stretch; - background: #fff; + background: var(--paper); } .auth-brand { width: 42%; - min-width: 280px; + min-width: 320px; position: relative; - background: #17211D; - background-image: var(--ruled), linear-gradient(155deg, #17211D 0%, var(--emerald-dark) 130%); + background: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 40px; color: #fff; - gap: 22px; + gap: 24px; overflow: hidden; + border-right: 1px solid rgba(255, 255, 255, 0.08); +} +.auth-brand::before { + content: ''; + position: absolute; + top: -80px; + left: -80px; + width: 240px; + height: 240px; + background: radial-gradient(circle, rgba(29, 78, 216, 0.45) 0%, transparent 70%); + border-radius: 50%; + pointer-events: none; } .auth-brand .brand-logo { height: 48px; opacity: 0.95; } -.auth-brand h2 { font-family: var(--font-display); color: #fff; font-size: clamp(20px,2.5vw,27px); text-align: center; margin: 0; font-weight: 500; } -.auth-brand p { color: rgba(255,255,255,0.68); font-size: 14px; text-align: center; line-height: 1.8; margin: 0; max-width: 320px; } -.auth-brand .brand-divider { width: 40px; height: 2px; background: var(--brass); border-radius: 2px; } +.auth-brand .auth-brand-logo-img { + width: 58px; + height: 58px; + border-radius: 12px; + object-fit: cover; + box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); + border: 1px solid rgba(255, 255, 255, 0.2); + display: block; +} +.auth-brand h2 { font-family: var(--font-display, 'Playfair Display', serif); color: #fff; font-size: clamp(22px,2.6vw,30px); text-align: center; margin: 0; font-weight: 600; } +.auth-brand p { color: rgba(255,255,255,0.72); font-size: 14.5px; text-align: center; line-height: 1.7; margin: 0; max-width: 340px; } +.auth-brand .brand-divider { width: 44px; height: 3px; background: var(--brass); border-radius: 2px; } .auth-form-side { flex: 1; @@ -71,13 +91,27 @@ align-items: center; justify-content: center; padding: clamp(32px, 5vw, 64px) clamp(24px, 6vw, 80px); - background: #fff; + background: var(--paper); overflow-y: auto; } -.auth-box { width: 100%; max-width: 420px; } -.auth-box h1 { font-size: clamp(21px,2.5vw,27px); margin-bottom: 6px; } -.auth-box .auth-subtitle { color: var(--muted); font-size: 14px; margin-bottom: 32px; } -.auth-links { margin-top: 20px; font-size: 13px; color: var(--muted); text-align: center; line-height: 2; } +.auth-box { + width: 100%; + max-width: 440px; + background: #FFFFFF; + border: 1px solid var(--border); + border-radius: 24px; + padding: clamp(32px, 4vw, 44px); + box-shadow: 0 10px 32px -4px rgba(10, 37, 64, 0.05); +} +.auth-box h1 { + font-family: var(--font-display, 'Playfair Display', serif); + font-size: clamp(24px,2.6vw,30px); + color: var(--ink); + font-weight: 600; + margin-bottom: 6px; +} +.auth-box .auth-subtitle { color: var(--muted); font-size: 14px; margin-bottom: 28px; } +.auth-links { margin-top: 24px; font-size: 13.5px; color: var(--muted); text-align: center; line-height: 2; } @@ -94,6 +128,7 @@ } .auth-brand p, .auth-brand .brand-divider { display: none; } .auth-brand .brand-logo { height: 30px; } + .auth-brand .auth-brand-logo-img { width: 36px; height: 36px; border-radius: 8px; } .auth-brand h2 { font-size: 15px; margin: 0; } .auth-form-side { padding: 28px 20px; } } @@ -184,7 +219,7 @@ transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); position: relative; } -.user-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #cfc7ad; } +.user-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(29, 78, 216, 0.3); } .click-layer { position: absolute; inset: 0; z-index: 0; } .user-top { display: flex; align-items: center; gap: 14px; min-width: 0; } .user-avatar { @@ -225,7 +260,7 @@ transition: border-color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition); margin-bottom: 10px; } -.doc-row:hover { border-color: #cfc7ad; background: #fff; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(23,33,29,0.06); } +.doc-row:hover { border-color: var(--brass); background: #fff; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(10,37,64,0.06); } .doc-row-left { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; } .doc-row-name { font-weight: 600; font-size: 13px; color: var(--ink); word-break: break-word; } .doc-row-type { font-size: 12px; color: var(--muted); } @@ -233,7 +268,7 @@ /* ── Drop Zone ───────────────────────────────────────────── */ .drop-zone { - border: 2px dashed #cfc7ad; + border: 2px dashed var(--border); border-radius: var(--radius-md); padding: 36px 24px; text-align: center; @@ -242,9 +277,9 @@ cursor: pointer; } .drop-zone:hover, .drop-zone.drag-over { - border-color: var(--emerald); - background: var(--emerald-light); - color: var(--emerald); + border-color: var(--brass); + background: var(--brass-light); + color: var(--brass); } .drop-zone .drop-icon { font-size: 34px; margin-bottom: 10px; } .drop-zone .drop-title { font-weight: 600; font-size: 15px; color: var(--ink); } @@ -262,7 +297,7 @@ transition: border-color var(--transition), box-shadow var(--transition); max-width: 360px; } -.search-bar:focus-within { border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(31,93,70,0.10); } +.search-bar:focus-within { border-color: var(--brass); box-shadow: 0 0 0 3px rgba(29,78,216,0.10); } .search-bar input { border: none; outline: none; font-family: inherit; font-size: 14px; width: 100%; background: transparent; } .search-bar .search-icon { color: var(--muted); font-size: 16px; flex-shrink: 0; } @@ -320,15 +355,15 @@ gap: 16px; padding: 16px 20px; border-radius: var(--radius-md); - background: var(--emerald-light); - border: 1px solid rgba(31,93,70,0.2); + background: var(--brass-light); + border: 1px solid rgba(29, 78, 216, 0.2); margin-bottom: 24px; } -.engagement-banner .banner-icon { font-size: 26px; flex-shrink: 0; color: var(--emerald); } +.engagement-banner .banner-icon { font-size: 26px; flex-shrink: 0; color: var(--brass); } .engagement-banner .banner-text { flex: 1; } .engagement-banner .banner-text strong { display: block; font-size: 14px; color: var(--ink); } .engagement-banner .banner-text span { font-size: 13px; color: var(--muted); } -.engagement-banner.acknowledged { background: var(--success-bg); border-color: rgba(31,93,70,0.25); } +.engagement-banner.acknowledged { background: var(--success-bg); border-color: rgba(4, 120, 87, 0.25); } /* ── Empty State ─────────────────────────────────────────── */ .empty-state { @@ -365,15 +400,15 @@ /* ── JS-extracted components (upload/review) ─────────────── */ .doc-row-wrapper { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; } -.btn-approve { background: var(--success-bg); color: var(--success); border: 1px solid rgba(31,93,70,0.3); border-radius: var(--radius-sm); } -.btn-reject { background: var(--error-bg); color: var(--error); border: 1px solid rgba(166,58,58,0.3); border-radius: var(--radius-sm); } +.btn-approve { background: var(--success-bg); color: var(--success); border: 1px solid rgba(4, 120, 87, 0.3); border-radius: var(--radius-sm); } +.btn-reject { background: var(--error-bg); color: var(--error); border: 1px solid rgba(220, 38, 38, 0.3); border-radius: var(--radius-sm); } .reject-box { display: none; margin-top: 10px; } .reject-textarea { width: 100%; padding: 10px; border-radius: var(--radius-sm); border: 1.5px solid var(--border); font-family: inherit; font-size: 13px; resize: vertical; } .admin-doc-actions { display: flex; gap: 8px; flex-shrink: 0; } .admin-docs-table { width: 100%; border-collapse: collapse; font-size: 13px; } -.admin-docs-td { padding: 10px 12px; color: #3E463F; } +.admin-docs-td { padding: 10px 12px; color: var(--muted); } .admin-docs-th { padding: 10px 12px; color: var(--muted); font-weight: 600; text-align: left; border-bottom: 2px solid var(--border); } -.btn-download-pill { background: var(--emerald); color: #fff; border: none; border-radius: var(--radius-sm); font-weight: 500; } +.btn-download-pill { background: var(--brass); color: #fff; border: none; border-radius: var(--radius-sm); font-weight: 500; } .btn-download-pill:hover { opacity: 0.9; } .btn-upload-pill { background: var(--brass); color: #fff; border: none; border-radius: var(--radius-sm); font-weight: 500; cursor: pointer; padding: 8px 16px; display: inline-flex; align-items: center; gap: 8px; } .btn-upload-pill:hover { opacity: 0.9; } @@ -745,8 +780,49 @@ min-width: 0; /* prevents flex child from overflowing */ } .doc-review-sidebar { - flex: 0 0 240px; /* fixed 240px sidebar, doesn't shrink */ - width: 240px; + flex: 0 0 290px; + width: 290px; + min-width: 260px; +} +.doc-review-sidebar .timeline-sidebar-card { + background: #FFFFFF; + border: 1px solid var(--border); + border-radius: 16px; + padding: 20px; + box-shadow: 0 4px 16px rgba(10, 37, 64, 0.04); + display: flex; + flex-direction: column; + gap: 14px; +} +.doc-review-sidebar .timeline-control { + display: flex; + align-items: center; + justify-content: space-between; + width: 100%; + padding: 8px 14px; + background: var(--paper); + border: 1px solid var(--border); + border-radius: 12px; +} +.doc-review-sidebar .timeline-control .tl-btn { + width: 32px; + height: 32px; + border-radius: 8px; + border: 1px solid var(--border); + background: #FFFFFF; + color: var(--ink); + font-size: 16px; + font-weight: 700; + display: flex; + align-items: center; + justify-content: center; + cursor: pointer; + transition: all 0.18s ease; +} +.doc-review-sidebar .timeline-control .tl-btn:hover { + background: var(--brass); + color: #FFFFFF; + border-color: var(--brass); } @media (max-width: 768px) { @@ -759,9 +835,7 @@ order: -1; /* show Filing Timeline ABOVE the doc list on mobile */ } .doc-review-sidebar .card-flat { - flex-direction: row !important; - align-items: center; - flex-wrap: wrap; + flex-direction: column; gap: 12px; } .doc-review-sidebar h3 { @@ -769,11 +843,11 @@ margin-bottom: 0 !important; } .doc-review-sidebar .timeline-control { - flex: 1; + width: 100%; } - .doc-review-sidebar .btn { - flex: 1; - min-width: 180px; + .doc-review-sidebar .btn, + .doc-review-sidebar .artha-pill-btn { + width: 100%; } } @@ -845,17 +919,50 @@ .doc-count-chip { display: inline-flex; align-items: center; - gap: 4px; + gap: 6px; font-size: 12px; font-family: var(--font-mono); background: var(--paper); border: 1px solid var(--border); - border-radius: var(--radius-xs); - padding: 3px 8px; + border-radius: 9999px; + padding: 4px 10px; white-space: nowrap; } - +/* ── Admin User Detail Bar ────────────────────────────── */ +.aud-user-bar { + background: #FFFFFF !important; + border: 1px solid var(--border) !important; + border-radius: 20px !important; + padding: clamp(20px, 3vw, 28px) !important; + box-shadow: 0 4px 20px -2px rgba(10, 37, 64, 0.04) !important; +} +.aud-bar-inner { + display: flex; + align-items: flex-start; + justify-content: space-between; + gap: 24px; + flex-wrap: wrap; +} +.aud-bar-left { + display: flex; + align-items: flex-start; + gap: 16px; + min-width: 280px; + flex: 1; +} +.aud-bar-actions { + display: flex; + align-items: center; + gap: 10px; + flex-wrap: wrap; + justify-content: flex-end; +} +.aud-year-picker { + display: flex; + align-items: center; + gap: 6px; +} /* StatusChip */ .status-chip-container { @@ -869,3 +976,4 @@ color: var(--error); font-style: italic; } + diff --git a/frontend/public/css/dashboard.css b/frontend/public/css/dashboard.css new file mode 100644 index 0000000..b42f518 --- /dev/null +++ b/frontend/public/css/dashboard.css @@ -0,0 +1,1258 @@ +/* ============================================================ + dashboard.css — Modern US Fintech UI (Stripe / Mercury / Ramp) + Bookkeepro Dashboard System 2026 + ============================================================ */ + +/* ── 1. Shared Foundation Classes ─────────────────────────── */ + +.dash-card { + background: #FFFFFF; + border: 1px solid var(--border, #E2E8F0); + border-radius: 18px; + box-shadow: 0 4px 10px -2px rgba(10, 37, 64, 0.05); + transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), + box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), + border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1); + position: relative; + overflow: hidden; +} + +@media (hover: hover) { + .dash-card:hover { + transform: translateY(-3px); + box-shadow: 0 10px 24px -4px rgba(10, 37, 64, 0.10); + border-color: rgba(29, 78, 216, 0.28); + } +} + +/* Icon tile: 36-40px, rounded-12 */ +.dash-chip { + width: 38px; + height: 38px; + border-radius: 12px; + display: inline-flex; + align-items: center; + justify-content: center; + font-size: 20px; + flex-shrink: 0; + transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); +} + +/* Brand Logo in Dashboard Header */ +.dash-brand-logo-img, +.artha-brand-logo-img { + width: 36px; + height: 36px; + border-radius: 10px; + object-fit: cover; + flex-shrink: 0; + box-shadow: 0 2px 8px rgba(10, 37, 64, 0.22); + border: 1px solid rgba(255, 255, 255, 0.15); + transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1); +} +.artha-brand-wrap:hover .dash-brand-logo-img, +.artha-brand-wrap:hover .artha-brand-logo-img { + transform: scale(1.05); +} + +.dash-chip--blue { background: #EFF6FF; color: #1D4ED8; } +.dash-chip--green { background: #ECFDF5; color: #047857; } +.dash-chip--amber { background: #FFF8E6; color: #92600A; } +.dash-chip--teal { background: rgba(20, 184, 166, 0.12); color: #0D9488; } +.dash-chip--violet { background: #F5F3FF; color: #6D28D9; } +.dash-chip--slate { background: #F1F5F9; color: #425466; } +.dash-chip--red { background: #FEF2F2; color: #B91C1C; } + +/* Status pill with 6px leading dot */ +.dash-pill { + display: inline-flex; + align-items: center; + gap: 6px; + padding: 3px 10px; + border-radius: 999px; + font-size: 11px; + font-weight: 700; + font-family: var(--font-mono, monospace); + letter-spacing: 0.04em; + text-transform: uppercase; + white-space: nowrap; +} + +.dash-pill::before { + content: ''; + width: 6px; + height: 6px; + border-radius: 50%; + display: inline-block; + flex-shrink: 0; +} + +.dash-pill--approved { + background: #ECFDF5; + color: #047857; + border: 1px solid rgba(4, 120, 87, 0.22); +} +.dash-pill--approved::before { background: #047857; } + +.dash-pill--pending { + background: #FFF8E6; + color: #92600A; + border: 1px solid rgba(245, 184, 61, 0.35); +} +.dash-pill--pending::before { background: #F5B83D; } + +.dash-pill--rejected { + background: #FEF2F2; + color: #B91C1C; + border: 1px solid rgba(185, 28, 28, 0.22); +} +.dash-pill--rejected::before { background: #DC2626; } + +.dash-pill--info, +.dash-pill--uploaded { + background: #EFF6FF; + color: #1D4ED8; + border: 1px solid rgba(29, 78, 216, 0.20); +} +.dash-pill--info::before, +.dash-pill--uploaded::before { background: #1D4ED8; } + +.dash-pill--ai { + background: #F5F3FF; + color: #6D28D9; + border: 1px solid rgba(109, 40, 217, 0.22); +} +.dash-pill--ai::before { background: #6D28D9; } + +/* Entrance staggered rise animation */ +@keyframes dashRise { + from { + opacity: 0; + transform: translateY(16px); + } + to { + opacity: 1; + transform: translateY(0); + } +} + +.dash-rise { + animation: dashRise 600ms cubic-bezier(0.16, 1, 0.3, 1) backwards; + animation-delay: calc(min(var(--i, 0), 8) * 60ms); +} + +/* Skeleton loader */ +@keyframes dashSkeleton { + 0% { background-position: -200% 0; } + 100% { background-position: 200% 0; } +} + +.dash-skeleton { + background: linear-gradient(90deg, #E2E8F0 0%, #F1F5F9 50%, #E2E8F0 100%); + background-size: 200% 100%; + animation: dashSkeleton 1.4s linear infinite; + border-radius: var(--radius-xs, 6px); +} + +/* Accessible focus ring */ +.dash-focusable:focus-visible { + outline: none; + box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.35); + outline-offset: 2px; +} + +/* ── 2. Shell & Subnav ────────────────────────────────────── */ + +/* Top header glass blur */ +.dash-header { + background: rgba(255, 255, 255, 0.90) !important; + backdrop-filter: blur(10px); + -webkit-backdrop-filter: blur(10px); + border-bottom: 1px solid var(--border, #E2E8F0); + transition: box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1); +} + +html[data-scrolled="true"] .dash-header, +body.scrolled .dash-header { + box-shadow: 0 4px 16px -2px rgba(10, 37, 64, 0.08); +} + +/* Sub-nav segmented pill group */ +.dash-subnav-group { + display: inline-flex; + align-items: center; + background: #EEF3F9; + border-radius: 999px; + padding: 4px; + gap: 2px; +} + +.dash-subnav-link { + display: inline-flex; + align-items: center; + gap: 7px; + padding: 6px 14px; + border-radius: 999px; + font-size: 13px; + font-weight: 500; + color: #425466; + text-decoration: none; + transition: background 0.25s cubic-bezier(0.16, 1, 0.3, 1), + color 0.25s cubic-bezier(0.16, 1, 0.3, 1); + white-space: nowrap; +} + +.dash-subnav-link:hover { + background: #FFFFFF; + color: var(--ink, #0A2540); +} + +.dash-subnav-link.active { + background: #0A2540; + color: #FFFFFF !important; + font-weight: 600; +} + +.dash-subnav-link.active::before { + content: ''; + width: 6px; + height: 6px; + border-radius: 50%; + background: #3B82F6; + display: inline-block; + flex-shrink: 0; +} + +/* Subtle ping ring on notification badge */ +@keyframes dashBadgePing { + 0% { transform: scale(1); opacity: 0.7; } + 100% { transform: scale(1.6); opacity: 0; } +} + +.dash-alert-badge { + position: absolute; + top: 8px; + right: 8px; + width: 8px; + height: 8px; + border-radius: 50%; + background: #DC2626; +} + +.dash-alert-badge::after { + content: ''; + position: absolute; + inset: 0; + border-radius: 50%; + background: #DC2626; + animation: dashBadgePing 2s cubic-bezier(0.16, 1, 0.3, 1) infinite; +} + +/* Page wrapper wash */ +.dash-page-wash { + background-color: #F6F9FC; + background-image: radial-gradient(60% 40% at 50% 0%, rgba(29, 78, 216, 0.06), transparent 70%); + background-repeat: no-repeat; + min-height: calc(100vh - 60px); +} + +/* ── 3. Hero Section (.dash-hero) ─────────────────────────── */ + +@keyframes dashDrift { + 0% { transform: translate(0, 0) scale(1); } + 50% { transform: translate(-20px, 15px) scale(1.08); } + 100% { transform: translate(15px, -15px) scale(0.95); } +} + +.dash-hero { + position: relative; + background: #0A2540; + border-radius: 22px; + padding: clamp(22px, 3.5vw, 36px); + overflow: hidden; + isolation: isolate; + color: #FFFFFF; + display: flex; + justify-content: space-between; + align-items: center; + gap: 28px; + flex-wrap: wrap; + box-shadow: 0 10px 30px -6px rgba(10, 37, 64, 0.20); +} + +.dash-hero::before, +.dash-hero::after { + content: ''; + position: absolute; + border-radius: 50%; + pointer-events: none; + filter: blur(55px); + z-index: -1; + opacity: 0.8; +} + +.dash-hero::before { + width: 320px; + height: 320px; + top: -80px; + left: 20%; + background: radial-gradient(circle, rgba(59, 130, 246, 0.35) 0%, rgba(139, 92, 246, 0.28) 70%, transparent 100%); + animation: dashDrift 26s cubic-bezier(0.16, 1, 0.3, 1) infinite alternate; +} + +.dash-hero::after { + width: 280px; + height: 280px; + bottom: -60px; + right: 15%; + background: radial-gradient(circle, rgba(20, 184, 166, 0.22) 0%, rgba(29, 78, 216, 0.25) 70%, transparent 100%); + animation: dashDrift 28s cubic-bezier(0.16, 1, 0.3, 1) infinite alternate-reverse; +} + +@media (max-width: 768px) { + .dash-hero::before, + .dash-hero::after { + display: none; + } +} + +.dash-hero-eyebrow { + display: inline-flex; + align-items: center; + gap: 7px; + padding: 4px 12px; + border-radius: 999px; + background: rgba(255, 255, 255, 0.08); + border: 1px solid rgba(255, 255, 255, 0.16); + backdrop-filter: blur(8px); + -webkit-backdrop-filter: blur(8px); + color: #C4B5FD; + font-size: 11px; + font-weight: 600; + text-transform: uppercase; + letter-spacing: 0.08em; + font-family: var(--font-mono, monospace); + margin-bottom: 12px; +} + +.dash-hero-title { + font-family: var(--font-display, 'Playfair Display', serif); + font-size: clamp(22px, 2.8vw, 32px); + font-weight: 600; + color: #FFFFFF; + margin: 0 0 10px 0; + line-height: 1.2; +} + +.dash-hero-desc, +.dash-hero-sub { + color: #C9D6E8; + font-size: 13.5px; + line-height: 1.55; + max-width: 580px; + margin: 0; +} + +.dash-hero-badges { + display: flex; + flex-wrap: wrap; + gap: 8px; + margin-top: 18px; +} + +.dash-hero-badge, +.dash-glass-pill { + display: inline-flex; + align-items: center; + gap: 6px; + padding: 5px 12px; + border-radius: 999px; + background: rgba(255, 255, 255, 0.08); + border: 1px solid rgba(255, 255, 255, 0.14); + color: #E2E8F0; + font-size: 12px; + font-weight: 500; + backdrop-filter: blur(6px); + -webkit-backdrop-filter: blur(6px); +} + +.dash-glass-pill .material-symbols-outlined { + font-size: 15px; + color: #38BDF8; +} + +/* Progress ring on hero right */ +.dash-progress-ring-wrap { + display: flex; + flex-direction: column; + align-items: center; + text-align: center; + flex-shrink: 0; +} + +.dash-progress-ring-svg { + width: 96px; + height: 96px; + transform: rotate(-90deg); +} + +.dash-progress-ring-track { + stroke: rgba(255, 255, 255, 0.14); +} + +.dash-progress-ring-bar { + stroke-linecap: round; + transition: stroke-dashoffset 1.2s cubic-bezier(0.16, 1, 0.3, 1); +} + +.dash-progress-caption { + font-size: 11.5px; + color: #C9D6E8; + margin-top: 8px; + font-weight: 500; +} + +/* ── 4. KPI Strip (.dash-kpis) ────────────────────────────── */ + +.dash-kpis { + display: grid; + grid-template-columns: repeat(4, 1fr); + gap: 16px; + margin-top: 24px; +} + +@media (max-width: 992px) { + .dash-kpis { + grid-template-columns: repeat(2, 1fr); + } +} + +@media (max-width: 480px) { + .dash-kpis { + grid-template-columns: 1fr; + } +} + +.dash-kpi-card { + padding: 18px 20px; + display: flex; + flex-direction: column; + gap: 12px; + position: relative; +} + +@keyframes dashScaleX { + from { transform: scaleX(0); } + to { transform: scaleX(1); } +} + +.dash-kpi-bar { + position: absolute; + top: 0; + left: 0; + right: 0; + height: 3px; + transform-origin: left; + animation: dashScaleX 700ms cubic-bezier(0.16, 1, 0.3, 1) forwards; +} + +.dash-kpi-bar--blue { background: #1D4ED8; } +.dash-kpi-bar--amber { background: #F5B83D; } +.dash-kpi-bar--green { background: #047857; } +.dash-kpi-bar--teal { background: #14B8A6; } +.dash-kpi-bar--slate { background: #425466; } +.dash-kpi-bar--red { background: #DC2626; } +.dash-kpi-bar--violet { background: #6D28D9; } + +.dash-kpi-top { + display: flex; + align-items: center; + justify-content: space-between; +} + +.dash-kpi-label { + font-size: 12px; + font-weight: 600; + text-transform: uppercase; + letter-spacing: 0.06em; + color: #425466; +} + +.dash-kpi-value { + font-family: var(--font-mono, monospace); + font-size: 30px; + font-weight: 600; + color: var(--ink, #0A2540); + line-height: 1; + font-variant-numeric: tabular-nums; + display: flex; + align-items: baseline; + gap: 6px; +} + +/* Pulsing dot for pending items */ +@keyframes dashPulse { + 0%, 100% { transform: scale(1); opacity: 1; } + 50% { transform: scale(1.35); opacity: 0.6; } +} + +.dash-pulse-dot { + width: 8px; + height: 8px; + border-radius: 50%; + background: #F5B83D; + display: inline-block; + animation: dashPulse 2s cubic-bezier(0.16, 1, 0.3, 1) infinite; +} + +.dash-pulse-dot--amber { background: #F5B83D; } +.dash-pulse-dot--teal { background: #14B8A6; } + +@media (hover: hover) { + .dash-kpi-card--blue:hover { box-shadow: 0 12px 28px -10px rgba(29, 78, 216, 0.35); } + .dash-kpi-card--amber:hover { box-shadow: 0 12px 28px -10px rgba(245, 184, 61, 0.35); } + .dash-kpi-card--teal:hover { box-shadow: 0 12px 28px -10px rgba(20, 184, 166, 0.35); } + .dash-kpi-card--slate:hover { box-shadow: 0 12px 28px -10px rgba(66, 84, 102, 0.35); } +} + +.dash-kpi-card--active { + border-color: rgba(29, 78, 216, 0.45); + box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.18), 0 6px 16px -2px rgba(10, 37, 64, 0.08); +} + +.dash-hero-ai-btn { + background: var(--gradient-ai); + color: #FFFFFF; + border: 1px solid rgba(255, 255, 255, 0.22); + border-radius: 9999px; + padding: 8px 18px; + font-size: 13px; + font-weight: 600; + cursor: pointer; + position: relative; + overflow: hidden; + display: inline-flex; + align-items: center; + gap: 8px; + transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), + box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1); +} + +.dash-hero-ai-btn::after { + content: ''; + position: absolute; + top: 0; + left: -100%; + width: 50%; + height: 100%; + background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent); + transform: skewX(-20deg); + transition: none; +} + +@media (hover: hover) { + .dash-hero-ai-btn:hover { + transform: translateY(-1px); + box-shadow: 0 8px 20px -4px rgba(109, 40, 217, 0.5); + } + .dash-hero-ai-btn:hover::after { + left: 200%; + transition: left 0.75s ease; + } +} + +.dash-row-card { + background: #FFFFFF; + border: 1px solid var(--border, #E2E8F0); + border-radius: 14px; + padding: 16px 20px; + display: flex; + align-items: center; + justify-content: space-between; + gap: 16px; + transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), + box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), + border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1); +} + +@media (hover: hover) { + .dash-row-card:hover { + transform: translateY(-2px); + box-shadow: 0 8px 20px -4px rgba(10, 37, 64, 0.08); + border-color: rgba(29, 78, 216, 0.28); + } +} + + +/* ── 5. Deadlines & Alert Banner (.dash-alert) ────────────── */ + +.dash-alert { + background: #FFFFFF; + border: 1px solid var(--border, #E2E8F0); + border-left: 4px solid #F5B83D; + border-radius: 14px; + padding: 16px 20px; + display: flex; + align-items: center; + justify-content: space-between; + gap: 16px; + box-shadow: 0 2px 8px -1px rgba(10, 37, 64, 0.04); +} + +.dash-alert--overdue { + border-left-color: #DC2626; +} + +.dash-alert-left { + display: flex; + align-items: center; + gap: 14px; +} + +/* ── 6. Practice Vault Cards ──────────────────────────────── */ + +.dash-vault-grid { + display: grid; + grid-template-columns: repeat(2, 1fr); + gap: 20px; + margin-top: 24px; +} + +@media (max-width: 768px) { + .dash-vault-grid { + grid-template-columns: 1fr; + } +} + +.dash-vault-card { + padding: 26px 24px; + display: flex; + flex-direction: column; + justify-content: space-between; + gap: 20px; + position: relative; +} + +.dash-vault-card::after { + content: ''; + position: absolute; + top: 0; + left: 0; + right: 0; + height: 3px; + background: var(--gradient-brand); + transform: scaleX(0); + transform-origin: left; + transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); +} + +.dash-vault-card--business::after { + background: var(--gradient-success); +} + +@media (hover: hover) { + .dash-vault-card:hover::after { + transform: scaleX(1); + } + .dash-vault-card:hover .dash-vault-tile { + transform: translateY(-2px); + } +} + +.dash-vault-tile { + width: 52px; + height: 52px; + border-radius: 14px; + display: flex; + align-items: center; + justify-content: center; + color: #FFFFFF; + box-shadow: 0 8px 18px -4px rgba(29, 78, 216, 0.30); + transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); +} + +.dash-vault-tile--brand { + background: var(--gradient-brand); +} + +.dash-vault-tile--success { + background: var(--gradient-success); + box-shadow: 0 8px 18px -4px rgba(4, 120, 87, 0.30); +} + +.dash-vault-list { + list-style: none; + padding: 0; + margin: 14px 0 0 0; + display: flex; + flex-direction: column; + gap: 8px; +} + +.dash-vault-list li { + display: flex; + align-items: center; + gap: 8px; + font-size: 13px; + color: #425466; +} + +.dash-vault-list .check-icon { + color: #047857; + font-size: 16px; +} + +/* ── 7. AI Assistant Card (.dash-ai) ──────────────────────── */ + +.dash-ai { + background: linear-gradient(135deg, #F5F3FF 0%, #FFFFFF 100%); + border: 1px solid rgba(109, 40, 217, 0.16); + border-radius: 18px; + padding: 22px 24px; + display: flex; + align-items: center; + justify-content: space-between; + gap: 20px; + margin-top: 24px; + box-shadow: 0 6px 20px -4px rgba(109, 40, 217, 0.08); + flex-wrap: wrap; +} + +.dash-ai-left { + display: flex; + align-items: center; + gap: 16px; +} + +.dash-ai-btn { + background: var(--gradient-ai); + color: #FFFFFF; + border: none; + border-radius: var(--radius-sm, 10px); + padding: 10px 20px; + font-size: 13.5px; + font-weight: 600; + cursor: pointer; + display: inline-flex; + align-items: center; + gap: 8px; + box-shadow: 0 6px 16px -2px rgba(109, 40, 217, 0.35); + position: relative; + overflow: hidden; + transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), + box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1); +} + +.dash-ai-btn::after { + content: ''; + position: absolute; + top: 0; + left: -100%; + width: 50%; + height: 100%; + background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent); + transform: skewX(-20deg); + transition: none; +} + +@media (hover: hover) { + .dash-ai-btn:hover { + transform: translateY(-1px); + box-shadow: 0 10px 22px -4px rgba(109, 40, 217, 0.45); + } + .dash-ai-btn:hover::after { + left: 200%; + transition: left 0.75s ease; + } +} + +/* ── 8. Table Styling ─────────────────────────────────────── */ + +.dash-table-wrap { + width: 100%; + overflow-x: auto; + border-radius: 14px; + border: 1px solid var(--border, #E2E8F0); + background: #FFFFFF; + margin-top: 14px; +} + +.dash-table { + width: 100%; + border-collapse: separate; + border-spacing: 0; + text-align: left; +} + +.dash-table th { + position: sticky; + top: 0; + background: #F6F9FC; + padding: 12px 16px; + font-size: 11.5px; + font-weight: 700; + color: #425466; + text-transform: uppercase; + letter-spacing: 0.05em; + border-bottom: 1px solid var(--border, #E2E8F0); + font-family: var(--font-mono, monospace); + z-index: 1; +} + +.dash-table td { + padding: 14px 16px; + font-size: 13px; + color: var(--ink, #0A2540); + border-bottom: 1px solid rgba(10, 37, 64, 0.05); + vertical-align: middle; +} + +.dash-table tr:last-child td { + border-bottom: none; +} + +.dash-table tbody tr { + position: relative; + transition: background 0.2s cubic-bezier(0.16, 1, 0.3, 1); +} + +@media (hover: hover) { + .dash-table tbody tr:hover td { + background: #F6F9FC; + } +} + +.dash-table-action-btn { + width: 36px; + height: 36px; + border-radius: 8px; + border: 1px solid transparent; + background: transparent; + color: #425466; + display: inline-flex; + align-items: center; + justify-content: center; + cursor: pointer; + transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease; +} + +.dash-table-action-btn:hover { + background: #EEF3F9; + color: var(--ink, #0A2540); + border-color: var(--border, #E2E8F0); +} + +.dash-table-action-btn:focus-visible { + outline: none; + box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.35); +} + +/* Empty state float animation */ +@keyframes dashFloat { + 0%, 100% { transform: translateY(0); } + 50% { transform: translateY(-4px); } +} + +.dash-empty-state { + padding: 44px 20px; + text-align: center; + display: flex; + flex-direction: column; + align-items: center; + gap: 12px; +} + +.dash-empty-icon { + width: 64px; + height: 64px; + border-radius: 50%; + background: rgba(29, 78, 216, 0.10); + color: #1D4ED8; + display: flex; + align-items: center; + justify-content: center; + animation: dashFloat 5s cubic-bezier(0.16, 1, 0.3, 1) infinite; +} + +/* ── 9. Segmented Control Tabs (.dash-tabs) ───────────────── */ + +.dash-tabs { + display: inline-flex; + align-items: center; + background: #EEF3F9; + border-radius: 14px; + padding: 4px; + gap: 4px; + width: fit-content; +} + +.dash-tab-btn { + border: none; + background: transparent; + color: #425466; + padding: 8px 16px; + border-radius: 10px; + font-size: 13.5px; + font-weight: 500; + cursor: pointer; + transition: background 0.25s cubic-bezier(0.16, 1, 0.3, 1), + color 0.25s cubic-bezier(0.16, 1, 0.3, 1), + box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1); + display: inline-flex; + align-items: center; + gap: 7px; +} + +.dash-tab-btn:hover { + color: var(--ink, #0A2540); +} + +.dash-tab-btn.active { + background: #FFFFFF; + color: var(--ink, #0A2540); + font-weight: 600; + box-shadow: 0 2px 6px -1px rgba(10, 37, 64, 0.08); +} + +/* Tab Panel Switch Animation */ +@keyframes dashPanelIn { + from { + opacity: 0; + transform: translateY(8px); + } + to { + opacity: 1; + transform: translateY(0); + } +} + +.dash-tab-panel { + animation: dashPanelIn 250ms cubic-bezier(0.16, 1, 0.3, 1) forwards; +} + +/* ── 10. Toolbar & Filters (.dash-toolbar) ────────────────── */ + +.dash-toolbar { + background: #FFFFFF; + border: 1px solid var(--border, #E2E8F0); + border-radius: 14px; + padding: 12px 16px; + display: flex; + align-items: center; + gap: 12px; + flex-wrap: wrap; + box-shadow: 0 2px 6px -1px rgba(10, 37, 64, 0.03); +} + +.dash-input-wrap { + position: relative; + display: flex; + align-items: center; + flex: 1 1 240px; +} + +.dash-input-wrap .search-icon { + position: absolute; + left: 12px; + color: #64748B; + font-size: 18px; + pointer-events: none; +} + +.dash-input { + width: 100%; + height: 44px; + border-radius: 12px; + border: 1px solid var(--border, #E2E8F0); + background: #FFFFFF; + padding: 0 14px 0 38px; + font-size: 13.5px; + color: var(--ink, #0A2540); + transition: border-color 0.2s ease, box-shadow 0.2s ease; +} + +.dash-input:focus { + outline: none; + border-color: #1D4ED8; + box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.18); +} + +.dash-select { + height: 44px; + border-radius: 12px; + border: 1px solid var(--border, #E2E8F0); + background: #FFFFFF; + padding: 0 14px; + font-size: 13.5px; + color: var(--ink, #0A2540); + cursor: pointer; + transition: border-color 0.2s ease, box-shadow 0.2s ease; +} + +.dash-select:focus { + outline: none; + border-color: #1D4ED8; + box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.18); +} + +/* Glass select on hero */ +.dash-glass-select { + height: 38px; + border-radius: 10px; + background: rgba(255, 255, 255, 0.12); + border: 1px solid rgba(255, 255, 255, 0.22); + color: #FFFFFF; + padding: 0 12px; + font-size: 13px; + font-weight: 500; + backdrop-filter: blur(8px); + -webkit-backdrop-filter: blur(8px); + cursor: pointer; +} + +.dash-glass-select option { + background: #0A2540; + color: #FFFFFF; +} + +/* ── 11. Client Cards Grid ────────────────────────────────── */ + +.dash-clients-grid { + display: grid; + grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); + gap: 16px; + margin-top: 20px; +} + +.dash-client-card { + padding: 20px; + display: flex; + flex-direction: column; + justify-content: space-between; + gap: 14px; + position: relative; +} + +.dash-client-card::after { + content: ''; + position: absolute; + top: 0; + left: 0; + right: 0; + height: 2px; + background: var(--gradient-brand); + transform: scaleX(0); + transform-origin: left; + transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); +} + +@media (hover: hover) { + .dash-client-card:hover::after { + transform: scaleX(1); + } + .dash-client-card:hover .dash-arrow-link { + transform: translateX(4px); + } +} + +.dash-avatar { + width: 44px; + height: 44px; + border-radius: 50%; + display: flex; + align-items: center; + justify-content: center; + font-weight: 700; + font-size: 16px; + font-family: var(--font-display, 'Playfair Display', serif); + flex-shrink: 0; +} + +.dash-avatar--brand { background: var(--gradient-brand); color: #FFFFFF; } +.dash-avatar--success { background: var(--gradient-success); color: #FFFFFF; } +.dash-avatar--ai { background: var(--gradient-ai); color: #FFFFFF; } +.dash-avatar--warm { background: var(--gradient-warm); color: #0A2540; } + +.dash-client-footer { + border-top: 1px solid #E2E8F0; + padding-top: 12px; + display: flex; + align-items: center; + justify-content: space-between; + gap: 10px; + margin-top: auto; +} + +.dash-cpa-assign { + display: flex; + align-items: center; + gap: 6px; + min-width: 0; + flex: 1; +} + +.dash-cpa-badge { + display: flex; + align-items: center; + gap: 6px; + min-width: 0; + flex: 1; +} + +.dash-cpa-icon { + font-size: 16px; + flex-shrink: 0; +} + +.dash-cpa-label { + font-size: 12px; + font-weight: 500; + color: var(--ink, #0A2540); + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +.dash-cpa-select { + height: 30px; + padding: 0 24px 0 8px; + font-size: 11.5px; + font-weight: 500; + color: var(--ink, #0A2540); + background: #F6F9FC url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23425466' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 6px center; + border: 1px solid #E2E8F0; + border-radius: 8px; + cursor: pointer; + max-width: 175px; + width: 100%; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + appearance: none; + -webkit-appearance: none; + transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease; +} + +.dash-cpa-select:hover { + border-color: #CBD5E1; + background-color: #FFFFFF; +} + +.dash-cpa-select:focus { + outline: none; + border-color: #1D4ED8; + box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.15); +} + +.dash-open-btn { + display: inline-flex; + align-items: center; + gap: 5px; + padding: 5px 12px; + border-radius: 8px; + background: #EFF6FF; + border: 1px solid rgba(29, 78, 216, 0.16); + color: #1D4ED8; + font-size: 12px; + font-weight: 600; + white-space: nowrap; + flex-shrink: 0; + cursor: pointer; + text-decoration: none; + transition: background-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), + color 0.2s cubic-bezier(0.16, 1, 0.3, 1), + border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), + box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), + transform 0.2s cubic-bezier(0.16, 1, 0.3, 1); +} + +.dash-open-btn .dash-open-arrow { + font-size: 14px; + line-height: 1; + transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1); +} + +.dash-client-card:hover .dash-open-btn, +.dash-row-card:hover .dash-open-btn { + background: #1D4ED8; + color: #FFFFFF; + border-color: #1D4ED8; + box-shadow: 0 2px 6px -1px rgba(29, 78, 216, 0.35); + transform: translateY(-1px); +} + +.dash-client-card:hover .dash-open-btn .dash-open-arrow, +.dash-row-card:hover .dash-open-btn .dash-open-arrow { + transform: translateX(3px); +} + +.dash-arrow-link { + display: inline-flex; + align-items: center; + gap: 4px; + font-size: 12.5px; + font-weight: 600; + color: #1D4ED8; + white-space: nowrap; + flex-shrink: 0; + text-decoration: none; + transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1); +} + +/* ── 12. AI Daily Digest Drawer ───────────────────────────── */ + +.dash-digest-drawer { + border-left: 4px solid #6D28D9; + background: #FFFFFF; + margin-top: 18px; + display: grid; + grid-template-rows: 1fr; + transition: grid-template-rows 0.35s cubic-bezier(0.16, 1, 0.3, 1); +} + +.dash-digest-header { + background: #F5F3FF; + padding: 14px 18px; + display: flex; + align-items: center; + justify-content: space-between; + border-bottom: 1px solid rgba(109, 40, 217, 0.12); +} + +/* ── 13. Reduced Motion & Device Accommodations ────────────── */ + +@media (prefers-reduced-motion: reduce) { + *, + *::before, + *::after { + animation-duration: 0.01ms !important; + animation-iteration-count: 1 !important; + transition-duration: 0.01ms !important; + scroll-behavior: auto !important; + } + .dash-rise { + animation: none !important; + opacity: 1 !important; + transform: none !important; + } + .dash-skeleton, + .dash-pulse-dot, + .dash-empty-icon, + .dash-hero::before, + .dash-hero::after, + .dash-alert-badge::after { + animation: none !important; + } + .dash-card, + .dash-chip, + .dash-vault-tile, + .dash-subnav-link, + .dash-ai-btn, + .dash-hero-ai-btn, + .dash-arrow-link, + .dash-tab-btn { + transition: none !important; + transform: none !important; + } +} + diff --git a/frontend/public/css/dynamic.css b/frontend/public/css/dynamic.css index e24154a..eac9d71 100644 --- a/frontend/public/css/dynamic.css +++ b/frontend/public/css/dynamic.css @@ -1,6 +1,6 @@ -/* ============================================================ +/* ============================================================ dynamic.css — Ledger motion layer - Uses ONLY existing tokens (colours, Fraunces / IBM Plex fonts). + Uses ONLY existing tokens (colours, fonts). Concept: a brass rule is "struck under" a checked entry; numbers tick like a ledger counter. Load AFTER animations.css. Rules: animate transform/opacity only; entrance animations use @@ -10,31 +10,24 @@ :root { --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1); - --brass-rgb: 176, 128, 61; /* = original brass, for rgba() */ - --emerald-rgb: 31, 93, 70; + --brass-rgb: 29, 78, 216; + --emerald-rgb: 4, 120, 87; } /* ---------- Global polish ---------- */ ::selection { background: rgba(var(--brass-rgb), 0.28); color: var(--ink); } h1, h2, h3 { text-wrap: balance; } .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } -:focus-visible { outline: 2px solid var(--emerald); outline-offset: 3px; } +:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; } .btn:focus-visible, .tab-btn:focus-visible { outline-offset: 2px; } /* ---------- Scroll progress rule (width driven by --scroll, set in motion.js) ---------- */ .scroll-progress { position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 10000; - background: linear-gradient(90deg, var(--emerald), rgb(var(--brass-rgb))); + background: linear-gradient(90deg, #1D4ED8, #14B8A6); transform: scaleX(var(--scroll, 0)); transform-origin: 0 50%; pointer-events: none; } -/* ---------- Header / navbar respond to scroll ---------- */ -.navbar:not(.navbar-solid) { position: fixed; transition: background 0.35s, box-shadow 0.35s, border-color 0.35s; } -html[data-scrolled] .navbar:not(.navbar-solid) { - background: rgba(23, 33, 29, 0.92); - box-shadow: 0 10px 28px -14px rgba(23, 33, 29, 0.6); - border-bottom-color: rgba(var(--brass-rgb), 0.35); -} .app-header { transition: box-shadow 0.3s, background 0.3s; } html[data-scrolled] .app-header { box-shadow: var(--shadow-sm); } @@ -43,47 +36,22 @@ html[data-scrolled] .app-header { box-shadow: var(--shadow-sm); } @keyframes pageIn { from { opacity: 0; transform: translateY(10px); } } .page-enter { animation: pageIn 0.5s var(--ease-out) backwards; } -:is(.admin-stats, .users-grid, .services-grid, .return-cards, .stat-row) > * { - animation: rise 0.65s var(--ease-out) backwards; - animation-delay: var(--d, 0ms); -} -/* beat the older `fade-up` (fill-mode both) which froze the hover-lift transform */ -.fade-up, .service-card.fade-up, .user-card.fade-up { animation-name: rise; animation-duration: 0.65s; animation-timing-function: var(--ease-out); animation-fill-mode: backwards; } -:is(.admin-stats, .users-grid, .services-grid, .return-cards, .stat-row) > :nth-child(1) { --d: 40ms; } -:is(.admin-stats, .users-grid, .services-grid, .return-cards, .stat-row) > :nth-child(2) { --d: 110ms; } -:is(.admin-stats, .users-grid, .services-grid, .return-cards, .stat-row) > :nth-child(3) { --d: 180ms; } -:is(.admin-stats, .users-grid, .services-grid, .return-cards, .stat-row) > :nth-child(4) { --d: 250ms; } -:is(.admin-stats, .users-grid, .services-grid, .return-cards, .stat-row) > :nth-child(5) { --d: 320ms; } -:is(.admin-stats, .users-grid, .services-grid, .return-cards, .stat-row) > :nth-child(6) { --d: 380ms; } -:is(.admin-stats, .users-grid, .services-grid, .return-cards, .stat-row) > :nth-child(7) { --d: 430ms; } -:is(.admin-stats, .users-grid, .services-grid, .return-cards, .stat-row) > :nth-child(8) { --d: 480ms; } -:is(.admin-stats, .users-grid, .services-grid, .return-cards, .stat-row) > :nth-child(n+9) { --d: 520ms; } - /* ---------- Cards: lift + pointer spotlight (vars set in motion.js) ---------- */ -:is(.stat-card, .user-card, .service-card, .card) { position: relative; } -:is(.stat-card, .user-card, .service-card, .card):hover { +.card { position: relative; } +.card:hover { background-image: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--brass-rgb), 0.10), transparent 62%); } -.stat-icon { display: inline-flex; transition: transform 0.5s var(--ease-spring); } -.stat-card:hover .stat-icon { transform: translateY(-3px) rotate(-6deg) scale(1.08); } -.stat-card.active-filter { animation: rise 0.65s var(--ease-out) backwards, ringPulse 2.6s 1s ease-out infinite; animation-delay: var(--d, 0ms), 1s; } -@keyframes ringPulse { 0% { box-shadow: 0 0 0 0 rgba(var(--emerald-rgb), 0.28); } 70%, 100% { box-shadow: 0 0 0 10px rgba(var(--emerald-rgb), 0); } } -.user-avatar { transition: transform 0.4s var(--ease-spring), box-shadow 0.3s; } -.user-card:hover .user-avatar { transform: scale(1.1); box-shadow: 0 0 0 4px rgba(var(--brass-rgb), 0.22); } -.service-card img { transition: transform 0.9s var(--ease-out); } -.service-card:hover img { transform: scale(1.06); } /* ---------- Buttons: lift, brass sheen, press ---------- */ .btn { position: relative; overflow: hidden; transition: transform 0.18s var(--ease-out), box-shadow 0.25s, background-color 0.25s, color 0.25s, border-color 0.25s; } .btn:not(:disabled):hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); } .btn:not(:disabled):active { transform: translateY(1px) scale(0.97); box-shadow: none; } -.btn-primary::before, .login-btn::before { +.btn-primary::before { content: ''; position: absolute; inset: 0; pointer-events: none; - background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.26) 50%, transparent 70%); + background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%); transform: translateX(-130%); transition: transform 0.8s var(--ease-out); } -.btn-primary:not(:disabled):hover::before, .login-btn:hover::before { transform: translateX(130%); } -.login-btn { position: relative; overflow: hidden; } +.btn-primary:not(:disabled):hover::before { transform: translateX(130%); } /* ---------- Status chips: attention dot / stamp ---------- */ @keyframes pop { 0% { opacity: 0; transform: scale(0.6); } 100% { opacity: 1; transform: scale(1); } } @@ -97,7 +65,7 @@ html[data-scrolled] .app-header { box-shadow: var(--shadow-sm); } .status-chip-container .badge-green::before { content: '✓' / ''; font-weight: 700; display: inline-block; animation: stamp 0.55s 0.15s var(--ease-spring) backwards; } .status-chip-container .badge-red::before { content: '!' / ''; font-weight: 700; display: inline-block; animation: stamp 0.55s 0.15s var(--ease-spring) backwards; } -/* ---------- Tabs, inputs, toasts, skeletons ---------- */ +/* ---------- Tabs, inputs, toasts ---------- */ .tab-btn { border-radius: var(--radius-xs) var(--radius-xs) 0 0; } .tab-btn:hover { background: rgba(var(--brass-rgb), 0.08); color: var(--ink); } .tab-btn.active { background: linear-gradient(180deg, transparent, rgba(var(--brass-rgb), 0.07)); } @@ -106,58 +74,19 @@ input, select, textarea { transition: border-color 0.2s, box-shadow 0.25s; } input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 1px; border-color: rgb(var(--brass-rgb)); box-shadow: var(--shadow-glow); } @keyframes toastIn { from { opacity: 0; transform: translateX(28px) scale(0.96); } } .toast { animation: toastIn 0.5s var(--ease-spring) backwards; } -@keyframes shimmer { to { transform: translateX(100%); } } -.skeleton { position: relative; overflow: hidden; background: var(--border); border-radius: var(--radius-md); } -.skeleton::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent); animation: shimmer 1.4s infinite; } -.skeleton-card { height: 128px; } -/* ---------- Upload drop zone ---------- */ -@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } } -.drop-zone { transition: border-color 0.25s, background 0.25s, transform 0.3s var(--ease-spring), box-shadow 0.3s; } -.drop-zone:hover .material-symbols-outlined { animation: bob 1.3s ease-in-out infinite; } -.drop-zone.drag-over { border-style: solid; border-color: rgb(var(--brass-rgb)); background: rgba(var(--brass-rgb), 0.10); transform: scale(1.015); box-shadow: var(--shadow-glow); } -.drop-zone.drag-over .material-symbols-outlined { animation: bob 0.7s ease-in-out infinite; } - -/* ---------- Chatbot + banners ---------- */ +/* ---------- Chatbot ---------- */ @keyframes ring { 0% { transform: scale(1); opacity: 0.7; } 80%, 100% { transform: scale(1.6); opacity: 0; } } .chatbot-fab::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(var(--brass-rgb), 0.6); animation: ring 2.8s ease-out infinite; pointer-events: none; } .chatbot-fab.open::before { animation: none; opacity: 0; } .chatbot-fab:not(.open):hover { transform: scale(1.08) rotate(-4deg); } .chatbot-window { transform-origin: bottom right; transition: opacity 0.3s, transform 0.4s var(--ease-spring); } -@keyframes glowNudge { 0%, 100% { box-shadow: 0 0 0 0 rgba(var(--brass-rgb), 0); } 50% { box-shadow: 0 0 0 6px rgba(var(--brass-rgb), 0.18); } } -.engagement-banner:not(.acknowledged) { animation: glowNudge 3.2s 1s ease-in-out 3; } - -/* ---------- Marketing: hero + reveals ---------- */ -/* Ambient light: soft brass + emerald glows drift over the (static) photo. Gradients only — no image scaling, so it stays cheap. */ -.hero { isolation: isolate; } -.hero::after { - content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; - background: - radial-gradient(55% 50% at 18% 28%, rgba(var(--brass-rgb), 0.20), transparent 70%), - radial-gradient(50% 60% at 86% 82%, rgba(var(--emerald-rgb), 0.30), transparent 70%); - animation: drift 20s ease-in-out infinite alternate; -} -@keyframes drift { from { transform: translate3d(-4%, -3%, 0) scale(1); } to { transform: translate3d(4%, 3%, 0) scale(1.12); } } -@media (max-width: 768px) { .hero::after { animation: none; } } -.hero-eyebrow, .hero h1, .hero-sub, .hero-actions { animation: rise 1s var(--ease-out) backwards; } -.hero-eyebrow { animation-delay: 0.1s; } .hero h1 { animation-delay: 0.22s; } .hero-sub { animation-delay: 0.4s; } .hero-actions { animation-delay: 0.55s; } -.hero h1 em { background: linear-gradient(rgb(var(--brass-rgb)), rgb(var(--brass-rgb))) no-repeat 0 100% / 0 2px; padding-bottom: 0.08em; animation: drawRule 1.2s 1.1s var(--ease-out) forwards; } -@keyframes drawRule { to { background-size: 100% 2px; } } -.hero-stats { animation: rise 1.1s 0.7s var(--ease-out) backwards; } -.stat-block { transition: background 0.3s; } -.stat-block:hover { background: rgba(var(--brass-rgb), 0.08); } -.stat-figure { transition: color 0.3s, transform 0.4s var(--ease-spring); } -.stat-block:hover .stat-figure { color: var(--emerald); transform: scale(1.06); } /* Reveal: hidden ONLY when JS has opted in (html.motion) — never blank without JS / reduced motion */ .reveal { opacity: 1; transform: none; } html.motion .reveal:not(.in-view) { opacity: 0; transform: translateY(26px); } html.motion .reveal .eyebrow::before { transform: scaleX(0); transform-origin: left; transition: transform 0.9s 0.25s var(--ease-out); } html.motion .reveal.in-view .eyebrow::before { transform: scaleX(1); } -@supports (animation-timeline: view()) { - @keyframes parallaxY { from { transform: translateY(-18px) scale(1.04); } to { transform: translateY(18px) scale(1.04); } } - .about-media img { animation: parallaxY linear both; animation-timeline: view(); animation-range: cover 0% 100%; } -} /* Layout safety: long text inside a .badge (About page

) must wrap instead of forcing horizontal scroll */ .badge { max-width: 100%; } @@ -168,4 +97,4 @@ p.badge { white-space: normal; text-align: left; } *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } .scroll-progress { display: none; } } -@media (hover: none) { :is(.stat-card, .user-card, .service-card, .card):hover { background-image: none; } } +@media (hover: none) { .card:hover { background-image: none; } } diff --git a/frontend/public/css/marketing.css b/frontend/public/css/marketing.css index 6f1a3e0..e9aa6f6 100644 --- a/frontend/public/css/marketing.css +++ b/frontend/public/css/marketing.css @@ -11,7 +11,7 @@ body { background: var(--bg); overflow-x: hidden; } z-index: 100; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); - background: rgba(23, 33, 29, 0.28); + background: rgba(10, 37, 64, 0.28); border-bottom: 1px solid rgba(255,255,255,0.08); transition: background 0.3s ease; } @@ -28,18 +28,18 @@ body { background: var(--bg); overflow-x: hidden; } .nav-container { width: min(1200px, 96%); margin: auto; - padding: 18px 12px; + padding: 12px 12px; display: flex; align-items: center; justify-content: space-between; } -#logos { height: clamp(34px, 4.4vw, 44px); width: auto; object-fit: contain; } +#logos { height: clamp(28px, 3.2vw, 36px); width: auto; object-fit: contain; } -.nav-menu { display: flex; gap: 30px; align-items: center; } +.nav-menu { display: flex; gap: 24px; align-items: center; } .nav-menu a { text-decoration: none; color: #fff; - font-size: 14.5px; + font-size: 13.5px; font-weight: 500; position: relative; letter-spacing: 0.01em; @@ -48,7 +48,7 @@ body { background: var(--bg); overflow-x: hidden; } content: ''; position: absolute; width: 0; height: 1.5px; - bottom: -5px; left: 0; + bottom: -4px; left: 0; background-color: var(--brass); transition: width 0.25s ease; } @@ -56,17 +56,17 @@ body { background: var(--bg); overflow-x: hidden; } .nav-menu a:hover::after { width: 100%; } .login-btn { - padding: 10px 20px; - background: var(--brass-dark, #8F6528); + padding: 8px 18px; + background: var(--brass); color: #fff; border-radius: var(--radius-sm); border: none; font-weight: 600; - font-size: 13.5px; + font-size: 12.5px; cursor: pointer; transition: background var(--transition), transform 0.12s ease; } -.login-btn:hover { background: #7A5520; } +.login-btn:hover { background: var(--brass-dark); } .login-btn:active { transform: translateY(1px) scale(0.96); } .desktop-login { display: inline-block; } @@ -115,7 +115,7 @@ body { background: var(--bg); overflow-x: hidden; } align-items: center; color: #fff; background: - linear-gradient(180deg, rgba(15,20,17,0.55) 0%, rgba(15,20,17,0.78) 100%), + linear-gradient(180deg, rgba(10,37,64,0.65) 0%, rgba(10,37,64,0.85) 100%), url("/images/home-background.webp"); background-size: cover; background-position: center; @@ -139,7 +139,7 @@ body { background: var(--bg); overflow-x: hidden; } font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; - color: #E4C98A; + color: #F5B83D; display: inline-flex; align-items: center; gap: 10px; @@ -154,7 +154,7 @@ body { background: var(--bg); overflow-x: hidden; } max-width: 780px; letter-spacing: -0.01em; } -.hero h1 em { font-style: italic; color: #E4C98A; font-weight: 500; } +.hero h1 em { font-style: italic; color: var(--blue-bright, #3B82F6); font-weight: 500; } .hero p.hero-sub { font-size: clamp(16px, 1.6vw, 19px); color: rgba(255,255,255,0.78); @@ -256,7 +256,7 @@ body { background: var(--bg); overflow-x: hidden; } overflow: hidden; transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); } -.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #cfc7ad; } +.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(29, 78, 216, 0.3); } .service-card .service-media { height: 200px; overflow: hidden; } .service-card .service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; } .service-card:hover .service-media img { transform: scale(1.06); } @@ -275,6 +275,7 @@ body { background: var(--bg); overflow-x: hidden; } /* ================= CTA BAND ================= */ .cta-band { + position: relative; width: 100%; background: var(--ink); background-image: var(--ruled); @@ -283,6 +284,13 @@ body { background: var(--bg); overflow-x: hidden; } text-align: center; margin-top: 100px; } +.cta-band::before { + content: ''; + position: absolute; + top: 0; left: 0; right: 0; + height: 3px; + background: var(--gradient-brand); +} .cta-band h2 { color: #fff; font-weight: 500; } .cta-band p { color: rgba(255,255,255,0.7); max-width: 480px; margin: 14px auto 30px; } @@ -298,14 +306,14 @@ body { background: var(--bg); overflow-x: hidden; } justify-content: center; text-align: center; background: - linear-gradient(180deg, rgba(15,20,17,0.5) 0%, rgba(15,20,17,0.8) 100%), + linear-gradient(180deg, rgba(10,37,64,0.6) 0%, rgba(10,37,64,0.85) 100%), var(--hero-img, url("/images/home-background.webp")); background-size: cover; background-position: center; } .page-hero::before { content: ''; position: absolute; inset: 0; background-image: var(--ruled); opacity: 0.4; } .page-hero-inner { position: relative; z-index: 2; } -.page-hero .eyebrow { color: #E4C98A; justify-content: center; } +.page-hero .eyebrow { color: #F5B83D; justify-content: center; } .page-hero h1 { font-size: clamp(26px, 4.6vw, 44px); font-weight: 500; color: #fff !important; margin-top: 14px; } .page-hero p { color: rgba(255,255,255,0.78) !important; margin-top: 12px; max-width: 520px; margin-left: auto; margin-right: auto; } @@ -346,7 +354,7 @@ body { background: var(--bg); overflow-x: hidden; } .service-text h2 { font-size: clamp(19px, 2.6vw, 24px); margin-bottom: 14px; } .service-text p { line-height: 1.8; font-size: 15px; } .list-items { margin-top: 14px; } -.list-items li { margin-left: 24px; margin-bottom: 6px; color: #3E463F; } +.list-items li { margin-left: 24px; margin-bottom: 6px; color: #425466; } .service-img, .service-img-bl-3 { width: 380px; max-width: 100%; height: 270px; border-radius: var(--radius-md); object-fit: cover; flex-shrink: 0; } @media (max-width: 992px) { .service-block, .service-block.reverse { flex-direction: column; } @@ -390,7 +398,7 @@ body { background: var(--bg); overflow-x: hidden; } transition: border-color var(--transition), box-shadow var(--transition); } .contact-form input:focus, .contact-form textarea:focus { - outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(31,93,70,0.10); + outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(29, 78, 216,0.10); } .contact-form button { margin-top: 6px; } .email-box { display: flex; align-items: center; margin-top: 18px; gap: 10px; font-size: 14px; color: var(--muted); } @@ -418,7 +426,7 @@ body { background: var(--bg); overflow-x: hidden; } .footer-links, .mkt-footer-links { display: flex; flex-direction: column; gap: 10px; } .footer-links h3, .footer-contact h3, .mkt-footer-links h3 { - color: #E4C98A; margin-bottom: 6px; font-size: 12.5px; + color: #F5B83D; margin-bottom: 6px; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--font-mono); font-weight: 600; } .footer-links a, .mkt-footer-links a { color: rgba(255,255,255,0.75); font-size: 14.5px; font-weight: 400; transition: color var(--transition); } @@ -509,3 +517,1764 @@ body { background: var(--bg); overflow-x: hidden; } margin-top: 2px; } } + +/* ============================================================ + ARTHATAXES DESIGN SYSTEM & SIGNATURE ANIMATIONS + Reference: https://arthataxes.com/ + Color scheme: Warm Eggshell (#F6F9FC), Midnight Navy (#0A2540), + Forest/Sage Green (#1D4ED8), Fine Slate (#425466) + ============================================================ */ + +/* --- Pill Buttons --- */ +.artha-pill-btn { + display: inline-flex; + align-items: center; + justify-content: center; + gap: 8px; + border-radius: 9999px; + padding: 10px 22px; + font-family: var(--font-body, 'Inter', sans-serif); + font-size: 13.5px; + font-weight: 600; + cursor: pointer; + text-decoration: none; + transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1); + white-space: nowrap; +} +.artha-pill-primary { + background: #1D4ED8; + color: #FFFFFF !important; + border: 1px solid #1D4ED8; + box-shadow: 0 2px 8px rgba(29, 78, 216, 0.24); +} +.artha-pill-primary:hover { + background: #1E40AF; + border-color: #1E40AF; + transform: translateY(-2px); + box-shadow: 0 4px 14px rgba(29, 78, 216, 0.32); +} +.artha-pill-outline { + background: #FFFFFF; + color: #0A2540 !important; + border: 1px solid rgba(10, 37, 64, 0.18); + box-shadow: 0 1px 3px rgba(10, 37, 64, 0.04); +} +.artha-pill-outline:hover { + border-color: #0A2540; + background: #F6F9FC; + transform: translateY(-1px); +} +.artha-pill-dark { + background: #0A2540; + color: #FFFFFF !important; + border: 1px solid #0A2540; +} +.artha-pill-dark:hover { + background: var(--ink-soft); + transform: translateY(-1px); +} +.artha-phone-btn { + font-family: var(--font-mono, monospace); + font-size: 13px; + font-weight: 600; + letter-spacing: 0.02em; +} + +/* --- Artha Sticky Glass Navbar --- */ +.artha-navbar { + position: sticky; + top: 0; + left: 0; + width: 100%; + z-index: 999; + background: rgba(246, 249, 252, 0.94); + backdrop-filter: blur(14px); + -webkit-backdrop-filter: blur(14px); + border-bottom: 1px solid rgba(10, 37, 64, 0.08); + transition: box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease; +} +.artha-navbar-solid { + background: #F6F9FC !important; +} +.artha-nav-container { + width: min(1280px, 94%); + margin: 0 auto; + display: flex; + align-items: center; + justify-content: space-between; + padding: 14px 0; +} +.artha-brand-wrap { + display: flex; + align-items: center; + gap: 12px; + text-decoration: none; + color: inherit; +} +.artha-brand-mark { + width: 38px; + height: 38px; + border-radius: 9px; + background: #1D4ED8; + color: #FFFFFF; + display: flex; + align-items: center; + justify-content: center; + box-shadow: 0 2px 6px rgba(29, 78, 216, 0.28); +} +.artha-brand-logo-img { + width: 36px; + height: 36px; + border-radius: 9px; + object-fit: cover; + flex-shrink: 0; + box-shadow: 0 2px 8px rgba(10, 37, 64, 0.25); + transition: transform 0.2s ease; +} +.artha-brand-wrap:hover .artha-brand-logo-img { + transform: scale(1.05); +} +.artha-brand-mark-dark { + background: rgba(255, 255, 255, 0.12); + border: 1px solid rgba(255, 255, 255, 0.2); +} +.artha-brand-text { + display: flex; + flex-direction: column; +} +.artha-brand-title { + font-family: var(--font-display, 'Playfair Display', serif); + font-size: 18px; + font-weight: 600; + color: #0A2540; + line-height: 1.15; +} +.artha-brand-sub { + font-family: var(--font-body, 'Inter', sans-serif); + font-size: 11px; + color: #425466; + text-transform: uppercase; + letter-spacing: 0.06em; + font-weight: 500; +} +.artha-nav-links { + display: flex; + align-items: center; + gap: 28px; +} +.artha-nav-links a { + text-decoration: none; + color: #0A2540; + font-size: 14.5px; + font-weight: 500; + position: relative; + transition: color 0.2s ease; +} +.artha-nav-links a::after { + content: ''; + position: absolute; + bottom: -4px; + left: 0; + width: 0; + height: 2px; + background: #1D4ED8; + transition: width 0.22s ease; +} +.artha-nav-links a:hover { + color: #1D4ED8; +} +.artha-nav-links a:hover::after { + width: 100%; +} +.artha-mobile-actions { + display: none; +} +.artha-nav-actions { + display: flex; + align-items: center; + gap: 12px; +} +.artha-hamburger { + display: none; + background: none; + border: none; + cursor: pointer; + flex-direction: column; + gap: 5px; + padding: 6px; +} +.artha-hamburger span { + display: block; + width: 24px; + height: 2px; + background: #0A2540; + border-radius: 2px; + transition: all 0.25s ease; +} +.artha-hamburger.open span:nth-child(1) { + transform: translateY(7px) rotate(45deg); +} +.artha-hamburger.open span:nth-child(2) { + opacity: 0; +} +.artha-hamburger.open span:nth-child(3) { + transform: translateY(-7px) rotate(-45deg); +} + +@media (max-width: 980px) { + .artha-nav-links { + display: none; + position: absolute; + top: 100%; + left: 0; + width: 100%; + background: #F6F9FC; + border-bottom: 1px solid rgba(10, 37, 64, 0.12); + padding: 24px 20px; + flex-direction: column; + gap: 18px; + box-shadow: 0 12px 24px rgba(10, 37, 64, 0.08); + } + .artha-nav-links.active { + display: flex; + } + .artha-mobile-actions { + display: flex; + flex-direction: column; + width: 100%; + gap: 10px; + margin-top: 12px; + padding-top: 16px; + border-top: 1px solid rgba(10, 37, 64, 0.08); + } + .artha-mobile-actions .artha-pill-btn { + width: 100%; + justify-content: center; + } + .artha-nav-actions { + display: none; + } + .artha-hamburger { + display: flex; + } +} + +/* --- Artha Hero 2-Column Section --- */ +.artha-hero { + background: var(--paper, #F6F9FC); + padding: 30px 0 40px; + position: relative; + overflow: hidden; +} +.artha-hero-grid { + width: min(1280px, 94%); + margin: 0 auto; + display: grid; + grid-template-columns: 1.15fr 0.85fr; + gap: 40px; + align-items: center; +} +.artha-eyebrow-pill { + display: inline-flex; + align-items: center; + gap: 7px; + padding: 4px 12px; + border-radius: 9999px; + background: rgba(29, 78, 216, 0.09); + color: #1D4ED8; + font-family: var(--font-body, 'Inter', sans-serif); + font-size: 11px; + font-weight: 600; + text-transform: uppercase; + letter-spacing: 0.06em; + margin-bottom: 12px; +} +.artha-eyebrow-pill .dot { + width: 6px; + height: 6px; + border-radius: 50%; + background: var(--gradient-brand); +} +.artha-hero-title { + font-family: var(--font-display, 'Playfair Display', serif); + font-size: clamp(23px, 2.3vw, 33px); + font-weight: 600; + line-height: 1.2; + color: #0A2540; + letter-spacing: -0.015em; + margin-bottom: 14px; +} +.artha-hero-title em { + font-style: italic; + background: var(--gradient-brand); + -webkit-background-clip: text; + -webkit-text-fill-color: transparent; + background-clip: text; + font-weight: 600; +} +.artha-hero-desc { + font-size: 13.5px; + color: #425466; + line-height: 1.55; + max-width: 520px; + margin-bottom: 20px; +} +.artha-hero-actions { + display: flex; + align-items: center; + gap: 10px; + flex-wrap: wrap; + margin-bottom: 18px; +} +.artha-hero-contact-note { + display: flex; + align-items: center; + gap: 8px; + font-size: 12.5px; + color: #425466; +} +.artha-hero-contact-note a { + color: #0A2540; + font-weight: 600; + text-decoration: underline; + text-underline-offset: 3px; +} + +/* --- What We Do Interactive Ticker Card Stack --- */ +.artha-ticker-wrap { + background: #FFFFFF; + border: 1px solid rgba(10, 37, 64, 0.08); + border-radius: 18px; + padding: 20px; + box-shadow: 0 4px 20px -2px rgba(10, 37, 64, 0.04); +} +.artha-ticker-header { + display: flex; + justify-content: space-between; + align-items: center; + margin-bottom: 14px; + padding-bottom: 10px; + border-bottom: 1px solid rgba(10, 37, 64, 0.06); +} +.artha-ticker-tag { + font-family: var(--font-mono, monospace); + font-size: 10.5px; + font-weight: 600; + text-transform: uppercase; + letter-spacing: 0.12em; + color: #1D4ED8; +} +.artha-ticker-sub { + font-size: 11.5px; + color: #425466; +} +.artha-ticker-cards { + display: flex; + flex-direction: column; + gap: 8px; +} +.artha-ticker-card { + display: flex; + align-items: center; + justify-content: space-between; + padding: 11px 14px; + border-radius: 12px; + background: #F6F9FC; + border: 1px solid rgba(10, 37, 64, 0.06); + text-decoration: none; + color: inherit; + transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1); +} +.artha-ticker-card:hover { + transform: translateY(-2px); + background: #FFFFFF; + border-color: #1D4ED8; + box-shadow: 0 6px 16px -3px rgba(29, 78, 216, 0.1); +} +.artha-ticker-card-left { + display: flex; + align-items: center; + gap: 12px; +} +.artha-ticker-icon { + width: 34px; + height: 34px; + border-radius: 8px; + background: rgba(29, 78, 216, 0.09); + color: #1D4ED8; + display: flex; + align-items: center; + justify-content: center; + flex-shrink: 0; + transition: background 0.2s ease, color 0.2s ease; +} +.artha-ticker-icon span.material-symbols-outlined { + font-size: 18px; +} +.artha-ticker-card:hover .artha-ticker-icon { + background: #1D4ED8; + color: #FFFFFF; +} +.artha-ticker-title { + font-size: 13.5px; + font-weight: 600; + color: #0A2540; + margin-bottom: 2px; +} +.artha-ticker-desc { + font-size: 11.5px; + color: #425466; + line-height: 1.35; +} +.artha-ticker-arrow { + color: #8C9BA5; + font-size: 18px; + transition: transform 0.2s ease, color 0.2s ease; + margin-left: 10px; + flex-shrink: 0; +} +.artha-ticker-card:hover .artha-ticker-arrow { + transform: translateX(4px); + color: #1D4ED8; +} + +@media (max-width: 980px) { + .artha-hero-grid { + grid-template-columns: 1fr; + gap: 40px; + } +} + +/* --- Trust Ribbon --- */ +.artha-trust-strip { + background: rgba(255, 255, 255, 0.7); + border-top: 1px solid rgba(10, 37, 64, 0.07); + border-bottom: 1px solid rgba(10, 37, 64, 0.07); + padding: 14px 0; +} +.artha-trust-inner { + width: min(1280px, 94%); + margin: 0 auto; + display: flex; + align-items: center; + justify-content: space-around; + flex-wrap: wrap; + gap: 16px; +} +.artha-trust-item { + display: flex; + align-items: center; + gap: 8px; + font-size: 12.5px; + font-weight: 600; + color: #0A2540; +} +.artha-trust-icon { + width: 26px; + height: 26px; + border-radius: 50%; + background: #ECFDF5; + color: #047857; + display: flex; + align-items: center; + justify-content: center; + font-size: 15px; +} + +/* --- Philosophy Dark Split Section --- */ +.artha-philosophy-wrap { + width: min(1280px, 94%); + margin: 48px auto; +} +.artha-philosophy-card { + background: #0A2540; + border-radius: 22px; + padding: clamp(26px, 3vw, 42px); + color: #FFFFFF; + display: grid; + grid-template-columns: 1.15fr 0.85fr; + gap: 40px; + align-items: center; + box-shadow: 0 16px 36px -8px rgba(10, 37, 64, 0.3); + position: relative; + overflow: hidden; +} +.artha-philosophy-card::before { + content: ''; + position: absolute; + top: -120px; + right: -120px; + width: 320px; + height: 320px; + background: radial-gradient(circle, rgba(29, 78, 216, 0.4) 0%, transparent 70%); + border-radius: 50%; + pointer-events: none; +} +.artha-philosophy-tag { + font-family: var(--font-mono, monospace); + font-size: 10.5px; + letter-spacing: 0.12em; + text-transform: uppercase; + color: #3B82F6; + font-weight: 600; + margin-bottom: 14px; + display: block; +} +.artha-philosophy-quote { + font-family: var(--font-display, 'Playfair Display', serif); + font-size: clamp(18px, 1.9vw, 25px); + font-style: italic; + font-weight: 500; + line-height: 1.25; + color: #FFFFFF; + margin-bottom: 16px; +} +.artha-philosophy-desc { + font-size: 13.5px; + line-height: 1.6; + color: rgba(255, 255, 255, 0.78); + max-width: 520px; +} +.artha-principles-list { + display: flex; + flex-direction: column; + gap: 16px; +} +.artha-principle-row { + display: flex; + gap: 14px; + padding-bottom: 14px; + border-bottom: 1px solid rgba(255, 255, 255, 0.1); +} +.artha-principle-row:last-child { + border-bottom: none; + padding-bottom: 0; +} +.artha-principle-num { + font-family: var(--font-mono, monospace); + font-size: 14px; + font-weight: 600; + color: #3B82F6; + letter-spacing: 0.04em; + line-height: 1.2; +} +.artha-principle-body h4 { + font-size: 14px; + font-weight: 600; + color: #FFFFFF; + margin: 0 0 3px 0; +} +.artha-principle-body p { + font-size: 12.5px; + color: rgba(255, 255, 255, 0.68); + line-height: 1.45; + margin: 0; +} + +@media (max-width: 980px) { + .artha-philosophy-card { + grid-template-columns: 1fr; + gap: 36px; + padding: 36px 24px; + } +} + +/* --- Services Showcase --- */ +.artha-services-section { + width: min(1280px, 94%); + margin: 48px auto; +} +.artha-section-header { + text-align: center; + max-width: 620px; + margin: 0 auto 36px; +} +.artha-section-header h2 { + font-family: var(--font-display, 'Playfair Display', serif); + font-size: clamp(21px, 2.1vw, 28px); + font-weight: 600; + color: #0A2540; + line-height: 1.2; + margin-top: 8px; +} +.artha-section-header p { + font-size: 13.5px; + color: #425466; + line-height: 1.55; + margin-top: 8px; +} +.artha-services-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); + gap: 20px; +} +.artha-service-box { + background: #FFFFFF; + border: 1px solid rgba(10, 37, 64, 0.08); + border-radius: 18px; + padding: 22px 20px; + display: flex; + flex-direction: column; + justify-content: space-between; + transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1); + box-shadow: 0 4px 16px -2px rgba(10, 37, 64, 0.03); +} +.artha-service-box:hover { + transform: translateY(-4px); + border-color: rgba(29, 78, 216, 0.4); + box-shadow: 0 12px 28px -6px rgba(10, 37, 64, 0.08); +} +.artha-service-top { + margin-bottom: 18px; +} +.artha-service-icon-box { + width: 40px; + height: 40px; + border-radius: 10px; + background: rgba(29, 78, 216, 0.09); + color: #1D4ED8; + display: flex; + align-items: center; + justify-content: center; + margin-bottom: 16px; +} +.artha-service-box:hover .artha-service-icon-box { + background: #1D4ED8; + color: #FFFFFF; +} +.artha-service-pill-tag { + display: inline-block; + font-family: var(--font-mono, monospace); + font-size: 10.5px; + font-weight: 600; + text-transform: uppercase; + letter-spacing: 0.08em; + color: #1D4ED8; + background: rgba(29, 78, 216, 0.08); + padding: 3px 9px; + border-radius: 9999px; + margin-bottom: 10px; +} +.artha-service-box h3 { + font-size: 16.5px; + font-weight: 600; + color: #0A2540; + line-height: 1.3; + margin-bottom: 8px; +} +.artha-service-box p { + font-size: 13px; + color: #425466; + line-height: 1.55; +} +.artha-service-link { + display: inline-flex; + align-items: center; + gap: 6px; + font-size: 12.5px; + font-weight: 600; + color: #1D4ED8; + text-decoration: none; + transition: gap 0.2s ease; + margin-top: 10px; +} +.artha-service-box:hover .artha-service-link { + gap: 10px; +} + +/* --- Consultation Strategy Booking Block --- */ +.artha-booking-wrap { + width: min(1280px, 94%); + margin: 48px auto 56px; +} +.artha-booking-card { + position: relative; + overflow: hidden; + background: #FFFFFF; + border: 1px solid rgba(10, 37, 64, 0.09); + border-radius: 22px; + padding: clamp(24px, 2.8vw, 38px); + display: grid; + grid-template-columns: 1fr 1fr; + gap: 40px; + align-items: center; + box-shadow: 0 10px 30px -6px rgba(10, 37, 64, 0.05); +} +.artha-booking-card::before { + content: ''; + position: absolute; + top: 0; left: 0; right: 0; + height: 3px; + background: var(--gradient-brand); +} +.artha-booking-left h3 { + font-family: var(--font-display, 'Playfair Display', serif); + font-size: clamp(20px, 2.1vw, 27px); + font-weight: 600; + color: #0A2540; + line-height: 1.2; + margin-bottom: 12px; +} +.artha-booking-left p { + font-size: 13.5px; + color: #425466; + line-height: 1.6; + margin-bottom: 18px; +} +.artha-booking-checklist { + list-style: none; + padding: 0; + margin: 0 0 20px 0; + display: flex; + flex-direction: column; + gap: 9px; +} +.artha-booking-checklist li { + display: flex; + align-items: center; + gap: 10px; + font-size: 13px; + color: #0A2540; + font-weight: 500; +} +.artha-booking-checklist .check-icon { + width: 20px; + height: 20px; + border-radius: 50%; + background: #ECFDF5; + color: #047857; + display: flex; + align-items: center; + justify-content: center; + font-size: 13px; + flex-shrink: 0; +} +.artha-booking-right { + background: #F6F9FC; + border: 1px solid rgba(10, 37, 64, 0.08); + border-radius: 16px; + padding: 24px 20px; +} +.artha-booking-right h4 { + font-size: 15px; + font-weight: 600; + color: #0A2540; + margin-bottom: 4px; +} +.artha-booking-right p { + font-size: 12px; + color: #425466; + margin-bottom: 16px; +} +.artha-input-row { + display: grid; + grid-template-columns: 1fr 1fr; + gap: 12px; + margin-bottom: 12px; +} +.artha-form-input { + width: 100%; + padding: 12px 14px; + border-radius: 10px; + border: 1px solid rgba(10, 37, 64, 0.15); + background: #FFFFFF; + font-family: inherit; + font-size: 14px; + color: #0A2540; + outline: none; + transition: border-color 0.2s ease, box-shadow 0.2s ease; + margin-bottom: 12px; +} +.artha-form-input:focus { + border-color: #1D4ED8; + box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12); +} + +@media (max-width: 900px) { + .artha-booking-card { + grid-template-columns: 1fr; + gap: 36px; + padding: 30px 20px; + } +} + +/* --- Artha Midnight 4-Column Footer --- */ +.artha-footer { + background: #0A2540; + color: #FFFFFF; + padding-top: 64px; + border-top: 3px solid #1D4ED8; +} +.artha-footer-inner { + width: min(1280px, 94%); + margin: 0 auto; + display: grid; + grid-template-columns: 1.35fr 0.9fr 0.85fr 1fr; + gap: 44px; + padding-bottom: 54px; +} +.artha-footer-logo-row { + display: flex; + align-items: center; + gap: 12px; + margin-bottom: 16px; +} +.artha-footer-title { + font-family: var(--font-display, 'Playfair Display', serif); + font-size: 19px; + font-weight: 600; + color: #FFFFFF; + line-height: 1.15; +} +.artha-footer-subtitle { + font-size: 11px; + text-transform: uppercase; + letter-spacing: 0.08em; + color: #3B82F6; +} +.artha-footer-desc { + font-size: 13.5px; + color: rgba(255, 255, 255, 0.7); + line-height: 1.6; + margin-bottom: 20px; + max-width: 320px; +} +.artha-footer-contact-info p { + font-size: 12.5px; + color: rgba(255, 255, 255, 0.68); + margin-bottom: 6px; + line-height: 1.45; +} +.artha-footer-contact-info a { + color: #FFFFFF; + text-decoration: underline; + text-underline-offset: 2px; +} +.artha-footer-heading { + font-family: var(--font-mono, monospace); + font-size: 12px; + font-weight: 600; + text-transform: uppercase; + letter-spacing: 0.12em; + color: #3B82F6; + margin-bottom: 18px; +} +.artha-footer-links { + list-style: none; + padding: 0; + margin: 0; + display: flex; + flex-direction: column; + gap: 10px; +} +.artha-footer-links a { + color: rgba(255, 255, 255, 0.72); + text-decoration: none; + font-size: 13.5px; + transition: color 0.2s ease, transform 0.2s ease; + display: inline-block; +} +.artha-footer-links a:hover { + color: #FFFFFF; + transform: translateX(3px); +} +.artha-footer-action-col { + display: flex; + flex-direction: column; + gap: 20px; +} +.artha-footer-cta-btn { + width: 100%; +} +.artha-footer-hours { + background: rgba(255, 255, 255, 0.05); + border: 1px solid rgba(255, 255, 255, 0.1); + border-radius: 14px; + padding: 16px; +} +.artha-hours-phone { + font-family: var(--font-mono, monospace); + font-size: 15px; + font-weight: 600; + color: #FFFFFF; + margin-bottom: 2px; +} +.artha-hours-email { + font-size: 12.5px; + color: #3B82F6; + margin-bottom: 8px; +} +.artha-hours-timing { + font-size: 11.5px; + color: rgba(255, 255, 255, 0.55); +} +.artha-footer-bottom { + border-top: 1px solid rgba(255, 255, 255, 0.1); + padding: 20px 0; + background: rgba(0, 0, 0, 0.2); +} +.artha-footer-bottom-inner { + width: min(1280px, 94%); + margin: 0 auto; + display: flex; + align-items: center; + justify-content: space-between; + flex-wrap: wrap; + gap: 14px; + font-size: 12px; + color: rgba(255, 255, 255, 0.55); +} +.artha-footer-bottom-links { + display: flex; + align-items: center; + gap: 10px; + font-size: 12px; +} + +@media (max-width: 980px) { + .artha-footer-inner { + grid-template-columns: 1fr 1fr; + gap: 32px; + } +} +@media (max-width: 640px) { + .artha-footer-inner { + grid-template-columns: 1fr; + } + .artha-footer-bottom-inner { + flex-direction: column; + text-align: center; + } +} + +/* --- Editorial Image Containers & Firm Feature --- */ +.artha-service-img-wrap { + width: 100%; + height: 180px; + border-radius: 14px; + overflow: hidden; + margin-bottom: 18px; + position: relative; + background: #EEF3F9; +} +.artha-service-img-wrap img { + width: 100%; + height: 100%; + object-fit: cover; + transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); +} +.artha-service-img-wrap::after { + content: ''; + position: absolute; + inset: 0; + background: linear-gradient(135deg, rgba(10, 37, 64, 0.10) 0%, rgba(10, 37, 64, 0.20) 100%); + pointer-events: none; +} +.artha-service-box:hover .artha-service-img-wrap img { + transform: scale(1.06); +} + +.artha-firm-feature-wrap { + width: min(1280px, 94%); + margin: 48px auto; +} +.artha-firm-feature-card { + background: #FFFFFF; + border: 1px solid rgba(10, 37, 64, 0.08); + border-radius: 22px; + padding: clamp(24px, 2.8vw, 38px); + display: grid; + grid-template-columns: 1fr 1fr; + gap: 40px; + align-items: center; + box-shadow: 0 8px 24px -4px rgba(10, 37, 64, 0.04); +} +.artha-firm-img-container { + position: relative; + width: 100%; + height: clamp(260px, 30vw, 360px); + border-radius: 18px; + overflow: hidden; + box-shadow: 0 10px 24px -6px rgba(10, 37, 64, 0.1); +} +.artha-firm-img-container::after { + content: ''; + position: absolute; + inset: 0; + background: linear-gradient(135deg, rgba(10, 37, 64, 0.12) 0%, rgba(10, 37, 64, 0.22) 100%); + pointer-events: none; + z-index: 1; +} +.artha-firm-img { + width: 100%; + height: 100%; + object-fit: cover; + transition: transform 0.5s ease; +} +.artha-firm-img-container:hover .artha-firm-img { + transform: scale(1.04); +} +.artha-firm-img-badge { + position: absolute; + z-index: 2; + bottom: 14px; + left: 14px; + background: rgba(10, 37, 64, 0.88); + backdrop-filter: blur(8px); + color: #FFFFFF; + padding: 6px 14px; + border-radius: 9999px; + display: inline-flex; + align-items: center; + gap: 7px; + font-size: 12px; + font-weight: 600; + border: 1px solid rgba(255, 255, 255, 0.2); +} +.artha-firm-img-badge span.material-symbols-outlined { + color: #10B981; + font-size: 16px; +} +.artha-firm-content h2 { + font-family: var(--font-display, 'Playfair Display', serif); + font-size: clamp(20px, 2vw, 26px); + font-weight: 600; + color: #0A2540; + line-height: 1.2; + margin: 8px 0 12px; +} +.artha-firm-content p { + font-size: 13.5px; + color: #425466; + line-height: 1.6; + margin-bottom: 18px; +} +.artha-firm-stats-row { + display: grid; + grid-template-columns: repeat(3, 1fr); + gap: 12px; + margin-bottom: 18px; +} +.artha-firm-stat-pill { + background: #F6F9FC; + border: 1px solid rgba(10, 37, 64, 0.08); + border-radius: 12px; + padding: 10px 14px; + display: flex; + flex-direction: column; +} +.artha-firm-stat-pill strong { + font-family: var(--font-mono, monospace); + font-size: 20px; + color: #1D4ED8; + font-weight: 700; +} +.artha-firm-stat-pill span { + font-size: 11px; + color: #425466; + margin-top: 2px; +} + +@media (max-width: 900px) { + .artha-firm-feature-card { + grid-template-columns: 1fr; + gap: 36px; + } +} + +/* ============================================================ + ANIMATION KEYFRAMES & INTERACTIVE CPA MODULES + ============================================================ */ + +/* Top Alert Bar */ +.artha-top-alert { + background: #0A2540; + color: #FFFFFF; + border-bottom: 1px solid rgba(255, 255, 255, 0.08); + font-size: 12px; + padding: 8px 16px; + position: relative; + z-index: 1001; +} +.artha-top-alert-inner { + width: min(1280px, 94%); + margin: 0 auto; + display: flex; + align-items: center; + justify-content: center; + gap: 12px; + flex-wrap: wrap; + text-align: center; +} +.artha-alert-badge { + background: #1D4ED8; + color: #FFFFFF; + font-size: 10px; + font-weight: 700; + text-transform: uppercase; + letter-spacing: 0.12em; + padding: 3px 8px; + border-radius: 9999px; +} +.artha-top-alert-link { + color: #3B82F6; + text-decoration: underline; + text-underline-offset: 3px; + font-weight: 600; + transition: color 0.2s ease; +} +.artha-top-alert-link:hover { + color: #FFFFFF; +} + +/* Floating Animation */ +@keyframes float-gentle { + 0%, 100% { + transform: translateY(0); + } + 50% { + transform: translateY(-6px); + } +} +.artha-float { + animation: float-gentle 4s ease-in-out infinite; +} + +.artha-pill-primary { + position: relative; + overflow: hidden; +} + +/* --- Interactive Practice Tabs --- */ +.artha-tabs-wrapper { + width: min(1280px, 94%); + margin: 48px auto; +} +.artha-tabs-nav { + display: flex; + align-items: center; + justify-content: center; + gap: 8px; + flex-wrap: wrap; + margin-bottom: 24px; +} +.artha-tab-btn { + padding: 8px 18px; + border-radius: 9999px; + font-size: 12.5px; + font-weight: 600; + cursor: pointer; + border: 1px solid rgba(10, 37, 64, 0.12); + background: #FFFFFF; + color: #0A2540; + transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1); + display: inline-flex; + align-items: center; + gap: 7px; +} +.artha-tab-btn:hover { + border-color: #1D4ED8; + background: #F6F9FC; + transform: translateY(-1px); +} +.artha-tab-btn.active { + background: #0A2540; + color: #FFFFFF; + border-color: #0A2540; + box-shadow: 0 4px 14px rgba(10, 37, 64, 0.2); +} +.artha-tab-panel { + background: #FFFFFF; + border: 1px solid rgba(10, 37, 64, 0.08); + border-radius: 22px; + padding: clamp(24px, 2.8vw, 38px); + display: grid; + grid-template-columns: 1.15fr 0.85fr; + gap: 36px; + align-items: center; + box-shadow: 0 12px 32px -8px rgba(10, 37, 64, 0.05); + animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both; +} +.artha-tab-panel-img { + width: 100%; + height: clamp(240px, 26vw, 320px); + border-radius: 16px; + overflow: hidden; + box-shadow: 0 8px 20px rgba(10, 37, 64, 0.08); +} +.artha-tab-panel-img img { + width: 100%; + height: 100%; + object-fit: cover; + transition: transform 0.5s ease; +} +.artha-tab-panel-img:hover img { + transform: scale(1.04); +} + +@media (max-width: 900px) { + .artha-tab-panel { + grid-template-columns: 1fr; + gap: 28px; + } +} + +/* --- Interactive Tax Diagnostic & Savings Estimator --- */ +.artha-calc-wrapper { + width: min(1280px, 94%); + margin: 48px auto; +} +.artha-calc-card { + background: #0A2540; + color: #FFFFFF; + border-radius: 22px; + padding: clamp(26px, 3.2vw, 42px); + display: grid; + grid-template-columns: 1fr 1fr; + gap: 38px; + align-items: center; + position: relative; + overflow: hidden; + box-shadow: 0 20px 42px -10px rgba(10, 37, 64, 0.32); +} +.artha-calc-card::before { + content: ''; + position: absolute; + top: -100px; + right: -100px; + width: 320px; + height: 320px; + background: radial-gradient(circle, rgba(29, 78, 216, 0.45) 0%, transparent 70%); + border-radius: 50%; + pointer-events: none; +} +.artha-calc-option-grid { + display: grid; + grid-template-columns: 1fr 1fr; + gap: 8px; + margin-bottom: 14px; +} +.artha-calc-pill-opt { + padding: 7px 11px; + border-radius: 10px; + font-size: 12px; + font-weight: 500; + text-align: center; + cursor: pointer; + border: 1px solid rgba(255, 255, 255, 0.15); + background: rgba(255, 255, 255, 0.05); + color: rgba(255, 255, 255, 0.85); + transition: all 0.2s ease; +} +.artha-calc-pill-opt:hover { + background: rgba(255, 255, 255, 0.12); + color: #FFFFFF; +} +.artha-calc-pill-opt.active { + background: #1D4ED8; + border-color: #1D4ED8; + color: #FFFFFF; + font-weight: 600; + box-shadow: 0 2px 8px rgba(29, 78, 216, 0.4); +} +.artha-calc-results { + background: rgba(255, 255, 255, 0.05); + border: 1px solid rgba(255, 255, 255, 0.12); + border-radius: 18px; + padding: 24px 20px; + backdrop-filter: blur(8px); +} +.artha-calc-stat-figure { + font-family: var(--font-mono, monospace); + font-size: clamp(24px, 2.8vw, 34px); + font-weight: 700; + color: #10B981; + line-height: 1.1; + margin: 8px 0 4px; +} + +@media (max-width: 900px) { + .artha-calc-card { + grid-template-columns: 1fr; + gap: 36px; + } +} + +/* --- Interactive FAQ Accordion --- */ +.artha-faq-wrapper { + width: min(940px, 94%); + margin: 48px auto; +} +.artha-faq-list { + display: flex; + flex-direction: column; + gap: 12px; +} +.artha-faq-item { + background: #FFFFFF; + border: 1px solid rgba(10, 37, 64, 0.08); + border-radius: 14px; + overflow: hidden; + transition: all 0.25s ease; + box-shadow: 0 2px 8px rgba(10, 37, 64, 0.03); +} +.artha-faq-item.open { + border-color: #1D4ED8; + box-shadow: 0 6px 18px -4px rgba(29, 78, 216, 0.09); +} +.artha-faq-question { + padding: 16px 20px; + display: flex; + align-items: center; + justify-content: space-between; + cursor: pointer; + font-size: 14px; + font-weight: 600; + color: #0A2540; + user-select: none; +} +.artha-faq-chevron { + transition: transform 0.25s ease; + color: #425466; + font-size: 20px; +} +.artha-faq-item.open .artha-faq-chevron { + transform: rotate(180deg); + color: #1D4ED8; +} +.artha-faq-answer { + padding: 0 20px 16px; + font-size: 13px; + color: #425466; + line-height: 1.6; +} + +/* --- Verified Client Testimonials --- */ +.artha-testimonials-wrapper { + width: min(1280px, 94%); + margin: 48px auto; +} +.artha-testimonials-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); + gap: 20px; +} +.artha-testimonial-card { + background: #FFFFFF; + border: 1px solid rgba(10, 37, 64, 0.08); + border-radius: 18px; + padding: 22px 20px; + display: flex; + flex-direction: column; + justify-content: space-between; + box-shadow: 0 4px 14px -2px rgba(10, 37, 64, 0.03); + transition: all 0.28s ease; +} +.artha-testimonial-card:hover { + transform: translateY(-3px); + border-color: rgba(29, 78, 216, 0.3); + box-shadow: 0 12px 24px -6px rgba(10, 37, 64, 0.07); +} +.artha-stars { + color: #F5B83D; + font-size: 14px; + letter-spacing: 2px; + margin-bottom: 10px; +} +.artha-testimonial-quote { + font-size: 13px; + line-height: 1.6; + color: #0A2540; + font-style: italic; + margin-bottom: 16px; +} +.artha-testimonial-author { + display: flex; + align-items: center; + gap: 10px; +} +.artha-author-avatar { + width: 36px; + height: 36px; + border-radius: 50%; + background: rgba(29, 78, 216, 0.1); + color: #1D4ED8; + display: flex; + align-items: center; + justify-content: center; + font-weight: 700; + font-size: 13px; +} +.artha-author-info h5 { + font-size: 13.5px; + font-weight: 600; + color: #0A2540; + margin: 0; +} +.artha-author-info p { + font-size: 11.5px; + color: #425466; + margin: 2px 0 0; +} + +/* ============================================================ + ARTHA CPA PORTAL DESIGN SYSTEM (USER & ADMIN END) + ============================================================ */ + +/* --- Executive Portal Sub-Navigation --- */ +.artha-portal-subnav { + display: flex; + align-items: center; + gap: 8px; + overflow-x: auto; + scrollbar-width: none; + padding: 4px 0 8px; + border-top: 1px solid rgba(10, 37, 64, 0.06); + margin-top: 10px; +} +.artha-portal-subnav::-webkit-scrollbar { + display: none; +} +.artha-subnav-link { + display: inline-flex; + align-items: center; + gap: 7px; + padding: 8px 16px; + border-radius: 9999px; + font-size: 13px; + font-weight: 500; + color: #425466; + text-decoration: none; + transition: all 0.2s ease; + white-space: nowrap; +} +.artha-subnav-link:hover { + color: #0A2540; + background: rgba(10, 37, 64, 0.04); +} +.artha-subnav-link.active { + color: #1D4ED8; + background: rgba(29, 78, 216, 0.09); + font-weight: 600; +} + +/* --- Portal Hero Header --- */ +.artha-portal-hero { + background: #FFFFFF; + border: 1px solid rgba(10, 37, 64, 0.08); + border-radius: 18px; + padding: clamp(18px, 2.8vw, 28px); + margin-bottom: 20px; + box-shadow: 0 4px 18px -2px rgba(10, 37, 64, 0.03); + display: flex; + justify-content: space-between; + align-items: center; + flex-wrap: wrap; + gap: 16px; +} +.artha-portal-hero-left h1 { + font-family: var(--font-display, 'Playfair Display', serif); + font-size: clamp(21px, 2.2vw, 28px); + color: #0A2540; + margin: 4px 0 2px; + line-height: 1.2; +} +.artha-portal-hero-left p { + color: #425466; + font-size: 13.5px; + margin: 0; +} +.artha-portal-hero-badges { + display: flex; + gap: 8px; + flex-wrap: wrap; +} +.artha-portal-badge { + display: inline-flex; + align-items: center; + gap: 5px; + padding: 5px 12px; + border-radius: 9999px; + font-size: 11px; + font-weight: 600; + text-transform: uppercase; + letter-spacing: 0.06em; + background: #F6F9FC; + border: 1px solid rgba(10, 37, 64, 0.1); + color: #0A2540; +} +.artha-portal-badge.green { + background: #ECFDF5; + border-color: rgba(4, 120, 87, 0.2); + color: #047857; +} +.artha-portal-badge.gold { + background: #FFF8E6; + border-color: rgba(245, 184, 61, 0.3); + color: #92600A; +} + +/* --- Portal Cards --- */ +.artha-portal-card { + background: #FFFFFF; + border: 1px solid rgba(10, 37, 64, 0.08); + border-radius: 18px; + padding: clamp(18px, 2.6vw, 26px); + box-shadow: 0 4px 18px -2px rgba(10, 37, 64, 0.03); + transition: box-shadow 0.24s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.24s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.24s cubic-bezier(0.16, 1, 0.3, 1), transform 0.24s cubic-bezier(0.16, 1, 0.3, 1); + margin-bottom: 20px; +} +.artha-portal-card:hover { + border-color: rgba(29, 78, 216, 0.25); + box-shadow: 0 8px 24px -4px rgba(10, 37, 64, 0.06); +} +.artha-portal-card-header { + display: flex; + justify-content: space-between; + align-items: center; + margin-bottom: 16px; + padding-bottom: 12px; + border-bottom: 1px solid rgba(10, 37, 64, 0.07); + flex-wrap: wrap; + gap: 10px; +} +.artha-portal-card-title { + font-family: var(--font-display, 'Playfair Display', serif); + font-size: 17.5px; + color: #0A2540; + margin: 0; + display: flex; + align-items: center; + gap: 8px; +} + +/* --- Engagement Agreement Card --- */ +.artha-engagement-box { + border-left: 4px solid #1D4ED8; + background: #F6F9FC; + border-radius: 14px; + padding: 18px 20px; + display: flex; + align-items: center; + justify-content: space-between; + gap: 16px; + flex-wrap: wrap; + margin-top: 12px; + border-top: 1px solid rgba(10, 37, 64, 0.07); + border-right: 1px solid rgba(10, 37, 64, 0.07); + border-bottom: 1px solid rgba(10, 37, 64, 0.07); +} +.artha-engagement-check { + display: flex; + align-items: center; + gap: 12px; + cursor: pointer; + user-select: none; +} +.artha-engagement-check input[type="checkbox"] { + width: 18px; + height: 18px; + accent-color: #1D4ED8; + cursor: pointer; +} + +/* --- Practice Vault Action Hub Cards --- */ +.artha-vault-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); + gap: 18px; + margin-bottom: 22px; +} +.artha-vault-card { + background: #FFFFFF; + border: 1px solid rgba(10, 37, 64, 0.08); + border-radius: 16px; + padding: 22px; + box-shadow: 0 4px 16px -2px rgba(10, 37, 64, 0.04); + display: flex; + flex-direction: column; + justify-content: space-between; + transition: all 0.28s ease; +} +.artha-vault-card:hover { + transform: translateY(-3px); + border-color: #1D4ED8; + box-shadow: 0 10px 24px -6px rgba(29, 78, 216, 0.1); +} +.artha-vault-top { + margin-bottom: 16px; +} +.artha-vault-icon-row { + display: flex; + align-items: center; + justify-content: space-between; + margin-bottom: 12px; +} +.artha-vault-icon { + width: 38px; + height: 38px; + border-radius: 10px; + background: rgba(29, 78, 216, 0.09); + color: #1D4ED8; + display: flex; + align-items: center; + justify-content: center; +} +.artha-vault-title { + font-family: var(--font-display, 'Playfair Display', serif); + font-size: 18px; + font-weight: 600; + color: #0A2540; + margin: 0 0 6px; +} +.artha-vault-desc { + font-size: 13px; + color: #425466; + line-height: 1.55; + margin-bottom: 14px; +} +.artha-vault-bullets { + list-style: none; + padding: 0; + margin: 0 0 16px; + display: flex; + flex-direction: column; + gap: 6px; +} +.artha-vault-bullets li { + display: flex; + align-items: center; + gap: 8px; + font-size: 12.5px; + color: #0A2540; +} +.artha-vault-bullets li span.material-symbols-outlined { + color: #047857; + font-size: 15px; +} + +/* --- Executive Data Table --- */ +.artha-table-wrap { + width: 100%; + overflow-x: auto; + border: 1px solid rgba(10, 37, 64, 0.08); + border-radius: 14px; + background: #FFFFFF; +} +.artha-table { + width: 100%; + border-collapse: collapse; + text-align: left; +} +.artha-table th { + background: #F6F9FC; + color: #425466; + font-size: 11px; + font-weight: 700; + text-transform: uppercase; + letter-spacing: 0.08em; + padding: 11px 14px; + border-bottom: 1px solid rgba(10, 37, 64, 0.08); + white-space: nowrap; +} +.artha-table td { + padding: 13px 14px; + border-bottom: 1px solid rgba(10, 37, 64, 0.06); + font-size: 13px; + color: #0A2540; + vertical-align: middle; +} +.artha-table tr:last-child td { + border-bottom: none; +} +.artha-table tr:hover td { + background: #F6F9FC; +} + +/* --- Status Pills --- */ +.artha-status-pill { + display: inline-flex; + align-items: center; + gap: 5px; + padding: 4px 10px; + border-radius: 9999px; + font-size: 11.5px; + font-weight: 700; + letter-spacing: 0.04em; + text-transform: uppercase; +} +.artha-status-approved { + background: #ECFDF5; + color: #047857; + border: 1px solid rgba(4, 120, 87, 0.25); +} +.artha-status-pending { + background: #FFF8E6; + color: #92600A; + border: 1px solid rgba(245, 184, 61, 0.3); +} +.artha-status-sent, +.artha-status-uploaded { + background: #EFF6FF; + color: #1D4ED8; + border: 1px solid rgba(29, 78, 216, 0.2); +} +.artha-status-rejected { + background: #FEF2F2; + color: #DC2626; + border: 1px solid rgba(220, 38, 38, 0.25); +} + +/* --- Modern Stepper for Admin Review --- */ +.artha-stepper-wrap { + display: flex; + align-items: center; + justify-content: space-between; + gap: 8px; + overflow-x: auto; + scrollbar-width: none; + background: #F6F9FC; + border: 1px solid rgba(10, 37, 64, 0.08); + border-radius: 16px; + padding: 16px 20px; + margin-bottom: 24px; +} +.artha-step-node { + display: flex; + align-items: center; + gap: 8px; + cursor: pointer; + padding: 6px 12px; + border-radius: 9999px; + transition: all 0.2s ease; + white-space: nowrap; +} +.artha-step-node.active { + background: #1D4ED8; + color: #FFFFFF; +} +.artha-step-node.completed { + background: #ECFDF5; + color: #047857; +} +.artha-step-circle { + width: 22px; + height: 22px; + border-radius: 50%; + background: currentColor; + display: inline-flex; + align-items: center; + justify-content: center; + font-size: 11px; + font-weight: 700; +} +.artha-step-node.active .artha-step-circle { + background: #FFFFFF; + color: #1D4ED8; +} +.artha-step-divider { + flex: 1; + height: 2px; + background: rgba(10, 37, 64, 0.1); + min-width: 16px; +} diff --git a/frontend/public/favicon.png b/frontend/public/favicon.png new file mode 100644 index 0000000..b757305 Binary files /dev/null and b/frontend/public/favicon.png differ diff --git a/frontend/public/images/aiindia-logo.png b/frontend/public/images/aiindia-logo.png new file mode 100644 index 0000000..262a040 Binary files /dev/null and b/frontend/public/images/aiindia-logo.png differ diff --git a/frontend/public/images/bookkeeppro-logo.webp b/frontend/public/images/bookkeeppro-logo.webp index efab1fa..262a040 100644 Binary files a/frontend/public/images/bookkeeppro-logo.webp and b/frontend/public/images/bookkeeppro-logo.webp differ diff --git a/frontend/public/images/brand-logo-full.png b/frontend/public/images/brand-logo-full.png new file mode 100644 index 0000000..0b4a64e Binary files /dev/null and b/frontend/public/images/brand-logo-full.png differ diff --git a/frontend/public/images/brand-logo-full.webp b/frontend/public/images/brand-logo-full.webp new file mode 100644 index 0000000..77f96ea Binary files /dev/null and b/frontend/public/images/brand-logo-full.webp differ diff --git a/frontend/public/images/brand-logo-mark.png b/frontend/public/images/brand-logo-mark.png new file mode 100644 index 0000000..1817c92 Binary files /dev/null and b/frontend/public/images/brand-logo-mark.png differ diff --git a/frontend/public/images/brand-logo-mark.webp b/frontend/public/images/brand-logo-mark.webp new file mode 100644 index 0000000..de919f9 Binary files /dev/null and b/frontend/public/images/brand-logo-mark.webp differ diff --git a/frontend/public/images/logo.jpg b/frontend/public/images/logo.jpg new file mode 100644 index 0000000..262a040 Binary files /dev/null and b/frontend/public/images/logo.jpg differ diff --git a/frontend/public/images/logo.png b/frontend/public/images/logo.png new file mode 100644 index 0000000..262a040 Binary files /dev/null and b/frontend/public/images/logo.png differ diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index 89d6fd0..a6d8392 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -56,6 +56,7 @@ function AppRoutes() { }> } /> } /> + } /> } /> } /> } /> diff --git a/frontend/src/components/AdminChatbot.jsx b/frontend/src/components/AdminChatbot.jsx index 5a4bef5..6ab3276 100644 --- a/frontend/src/components/AdminChatbot.jsx +++ b/frontend/src/components/AdminChatbot.jsx @@ -186,7 +186,7 @@ export default function AdminChatbot() { } finally { setIsTyping(false); } - }, [messages, authFetch]); + }, [messages, authFetch, sessionId]); const handleSendMessage = (e) => { e.preventDefault(); if (inputText.trim()) sendMessage(inputText.trim()); }; const handleMenuAsk = (e) => { e.preventDefault(); if (menuInput.trim()) sendMessage(menuInput.trim(), []); }; @@ -278,7 +278,7 @@ export default function AdminChatbot() { {/* Bulk action confirmation card */} {pendingBulk && (

-
+
⚠️ Confirm bulk action
diff --git a/frontend/src/components/Chatbot.jsx b/frontend/src/components/Chatbot.jsx index 2e9a712..27dde76 100644 --- a/frontend/src/components/Chatbot.jsx +++ b/frontend/src/components/Chatbot.jsx @@ -7,7 +7,7 @@ const STORAGE_KEY = 'user_chat_session_id'; const FAQ_DATA = { "Account": [ { q: "How do I reset my password?", a: 'Go to the login page and click "Forgot Password". Enter your email and we\'ll send a reset link.' }, - { q: "How do I verify my email?", a: 'Check your inbox for a verification email from BookKeepPro. Click the link inside to verify.' }, + { q: "How do I verify my email?", a: 'Check your inbox for a verification email from ABC CPA. Click the link inside to verify.' }, { q: "How do I update my profile?", a: 'Go to your Profile page to update your name, phone number, or change your password.' }, ], "Documents": [ @@ -173,7 +173,7 @@ export default function Chatbot() { } finally { setIsTyping(false); } - }, [messages, authFetch]); + }, [messages, authFetch, sessionId]); const handleSendMessage = (e) => { e.preventDefault(); if (inputText.trim()) sendMessage(inputText.trim()); }; const handleMenuAsk = (e) => { e.preventDefault(); if (menuInput.trim()) sendMessage(menuInput.trim(), []); }; diff --git a/frontend/src/components/ConfirmModal.css b/frontend/src/components/ConfirmModal.css index 7bc9df6..def305e 100644 --- a/frontend/src/components/ConfirmModal.css +++ b/frontend/src/components/ConfirmModal.css @@ -4,78 +4,95 @@ left: 0; width: 100vw; height: 100vh; - background-color: rgba(0, 0, 0, 0.5); + background-color: rgba(10, 37, 64, 0.65); + backdrop-filter: blur(8px); + -webkit-backdrop-filter: blur(8px); display: flex; justify-content: center; align-items: center; z-index: 10000; - animation: fadeIn 0.2s ease-in-out; + animation: fadeIn 0.22s ease-in-out; } .confirm-modal-content { - background-color: #fff; - border-radius: 8px; - padding: 24px; - max-width: 400px; + background-color: #FFFFFF; + border-radius: 20px; + border: 1px solid var(--border, #E2E8F0); + padding: 28px; + max-width: 440px; width: 90%; - box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); - animation: slideUp 0.2s ease-in-out; + box-shadow: 0 16px 40px -8px rgba(10, 37, 64, 0.25); + animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1); } .confirm-modal-title { margin-top: 0; - margin-bottom: 12px; - font-size: 1.2rem; - color: #333; + margin-bottom: 10px; + font-family: var(--font-display, 'Playfair Display', serif); + font-size: 20px; + font-weight: 600; + color: var(--ink, #0A2540); } .confirm-modal-message { margin-bottom: 24px; - color: #555; - line-height: 1.5; + color: var(--muted, #425466); + font-size: 14px; + line-height: 1.6; } .confirm-modal-actions { display: flex; justify-content: flex-end; - gap: 12px; + gap: 10px; } .confirm-modal-cancel { - background-color: transparent; - border: 1px solid #ccc; - color: #555; - padding: 8px 16px; - border-radius: 4px; + background-color: var(--paper, #F6F9FC); + border: 1px solid var(--border, #E2E8F0); + color: var(--ink, #0A2540); + padding: 8px 18px; + border-radius: 9999px; cursor: pointer; - font-weight: 500; - transition: background-color 0.15s; + font-weight: 600; + font-size: 13px; + transition: all 0.2s ease; } .confirm-modal-cancel:hover { - background-color: #f5f5f5; + background-color: var(--header-bg, #EEF3F9); + border-color: var(--ink, #0A2540); } .confirm-modal-confirm { - padding: 8px 16px; - border-radius: 4px; + padding: 8px 20px; + border-radius: 9999px; border: none; cursor: pointer; - font-weight: 500; - color: #fff; - transition: opacity 0.15s; -} - -.confirm-modal-confirm:hover { - opacity: 0.9; + font-weight: 600; + font-size: 13px; + color: #FFFFFF; + transition: all 0.2s ease; } .confirm-modal-confirm.primary { - background-color: #007bff; + background-color: var(--brass, #1D4ED8); + box-shadow: 0 2px 8px rgba(29, 78, 216, 0.3); +} + +.confirm-modal-confirm.primary:hover { + background-color: var(--brass-dark, #1E40AF); + transform: translateY(-1px); } .confirm-modal-confirm.destructive { - background-color: #dc3545; + background-color: var(--error, #DC2626); + box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3); +} + +.confirm-modal-confirm.destructive:hover { + background-color: #B91C1C; + transform: translateY(-1px); } @keyframes fadeIn { @@ -84,6 +101,6 @@ } @keyframes slideUp { - from { opacity: 0; transform: translateY(10px); } + from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } } diff --git a/frontend/src/components/ExpandableSummaryBlock.jsx b/frontend/src/components/ExpandableSummaryBlock.jsx index 24e2da5..018a567 100644 --- a/frontend/src/components/ExpandableSummaryBlock.jsx +++ b/frontend/src/components/ExpandableSummaryBlock.jsx @@ -4,8 +4,8 @@ import ExpandableValue from './ExpandableValue'; const CONFIDENCE_STYLES = { high: { icon: '🟢', color: 'var(--success)', bg: 'var(--success-bg)' }, - medium: { icon: '🟡', color: 'var(--warn)', bg: 'var(--warn-bg)' }, - low: { icon: '🟠', color: '#d97706', bg: '#fff7ed' }, + medium: { icon: '🟡', color: 'var(--amber-text)', bg: 'var(--warn-bg)' }, + low: { icon: '🟠', color: '#92600A', bg: '#FFF8E6' }, unknown: { icon: '⚪', color: 'var(--muted)', bg: 'var(--paper)' }, }; diff --git a/frontend/src/components/Footer.jsx b/frontend/src/components/Footer.jsx index 7a86e11..eac9146 100644 --- a/frontend/src/components/Footer.jsx +++ b/frontend/src/components/Footer.jsx @@ -1,34 +1,88 @@ -import { Link } from 'react-router-dom'; +import { Link, useNavigate } from 'react-router-dom'; export default function Footer() { + const navigate = useNavigate(); + return ( -