diff --git a/Dockerfile b/Dockerfile index 48c6a13..3f2d042 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,6 +6,16 @@ ENV PYTHONDONTWRITEBYTECODE=1 \ WORKDIR /app +# Install Tesseract OCR + English + Hindi language data (Stage 2 of extraction pipeline) +# tesseract-ocr: ~50MB — CPU-only, no GPU needed +# tesseract-ocr-hin: Hindi language pack for bilingual Indian documents (Aadhaar, PAN, etc.) +RUN apt-get update && apt-get install -y --no-install-recommends \ + tesseract-ocr \ + tesseract-ocr-eng \ + tesseract-ocr-hin \ + libgl1 \ + && rm -rf /var/lib/apt/lists/* + COPY services/api/requirements.txt /tmp/requirements.txt RUN python - <<'PY' from pathlib import Path diff --git a/frontend/public/css/animations.css b/frontend/public/css/animations.css index 0f95826..ebf4c3d 100644 --- a/frontend/public/css/animations.css +++ b/frontend/public/css/animations.css @@ -1,91 +1,69 @@ /* ============================================================ - animations.css — Micro-interactions & transitions + animations.css — Micro-interactions & motion (Ledger system) ============================================================ */ -/* ── Page transition ─────────────────────────────────────── */ -.page-enter { - animation: fadeIn 0.3s ease both; -} +.page-enter { animation: fadeIn 0.35s ease both; } -/* ── Card hover lift ─────────────────────────────────────── */ -.lift { - transition: transform 0.2s ease, box-shadow 0.2s ease; -} -.lift:hover { - transform: translateY(-3px); - box-shadow: var(--shadow-md); -} +.lift { transition: transform 0.2s ease, box-shadow 0.2s ease; } +.lift:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); } -/* ── Button press feedback ───────────────────────────────── */ .btn:active { transform: translateY(1px) scale(0.97); } -/* ── Pulse (for pending badge) ───────────────────────────── */ -@keyframes pulse-orange { - 0%, 100% { box-shadow: 0 0 0 0 rgba(255,127,17,0.35); } - 50% { box-shadow: 0 0 0 5px rgba(255,127,17,0); } +@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); } } -.pulse { animation: pulse-orange 2s infinite; } +.pulse { animation: pulse-brass 2s infinite; } -/* ── Skeleton shimmer ────────────────────────────────────── */ -@keyframes shimmer { - from { background-position: -600px 0; } - to { background-position: 600px 0; } -} -.skeleton { - background: linear-gradient(90deg, #e8edf2 25%, #f4f6f9 50%, #e8edf2 75%); - background-size: 600px 100%; - animation: shimmer 1.4s infinite linear; - border-radius: var(--radius-sm); - color: transparent !important; -} +@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } } +.fade-up { animation: fadeUp 0.4s ease both; } -/* ── Slide in from right (toast) ─────────────────────────── */ -@keyframes toast-in { - from { opacity: 0; transform: translateX(20px); } - to { opacity: 1; transform: translateX(0); } -} - -/* ── Fade up (cards on load) ─────────────────────────────── */ -@keyframes fadeUp { - from { opacity: 0; transform: translateY(10px); } - to { opacity: 1; transform: translateY(0); } -} -.fade-up { animation: fadeUp 0.3s ease both; } - -/* ── Staggered children ──────────────────────────────────── */ .stagger > *:nth-child(1) { animation-delay: 0.00s; } -.stagger > *:nth-child(2) { animation-delay: 0.05s; } -.stagger > *:nth-child(3) { animation-delay: 0.10s; } -.stagger > *:nth-child(4) { animation-delay: 0.15s; } -.stagger > *:nth-child(5) { animation-delay: 0.20s; } -.stagger > *:nth-child(6) { animation-delay: 0.25s; } +.stagger > *:nth-child(2) { animation-delay: 0.06s; } +.stagger > *:nth-child(3) { animation-delay: 0.12s; } +.stagger > *:nth-child(4) { animation-delay: 0.18s; } +.stagger > *:nth-child(5) { animation-delay: 0.24s; } +.stagger > *:nth-child(6) { animation-delay: 0.30s; } -/* ── Checkbox animate ────────────────────────────────────── */ -input[type=checkbox] { - accent-color: var(--blue); - width: 16px; - height: 16px; - cursor: pointer; -} +input[type=checkbox] { accent-color: var(--emerald); width: 16px; height: 16px; cursor: pointer; } -/* ── Focus ring ──────────────────────────────────────────── */ -:focus-visible { - outline: 2px solid var(--blue); - outline-offset: 2px; -} - -/* ── Smooth link underline ───────────────────────────────── */ +/* 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(--blue); + color: var(--emerald); } .fancy-link::after { content: ''; position: absolute; - bottom: -1px; left: 0; + bottom: -2px; left: 0; width: 0; height: 1.5px; - background: var(--blue); - transition: width 0.2s ease; + background: var(--brass); + transition: width 0.25s cubic-bezier(0.4,0,0.2,1); } .fancy-link:hover::after { width: 100%; } + +/* Scroll reveal — sections rise into place as they enter view */ +.reveal { + opacity: 0; + transform: translateY(22px); + transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1); +} +.reveal.in-view { opacity: 1; transform: translateY(0); } +.reveal-delay-1.in-view { transition-delay: 0.08s; } +.reveal-delay-2.in-view { transition-delay: 0.16s; } +.reveal-delay-3.in-view { transition-delay: 0.24s; } + +/* Ruled counter tick — used behind hero stat figures */ +@keyframes tickIn { + from { opacity: 0; transform: translateY(6px); } + to { opacity: 1; transform: translateY(0); } +} +.tick-in { animation: tickIn 0.5s cubic-bezier(0.16,1,0.3,1) both; } + +/* Spin — used for AI Summary "Processing..." indicator */ +@keyframes spin { + from { transform: rotate(0deg); } + to { transform: rotate(360deg); } +} diff --git a/frontend/public/css/base.css b/frontend/public/css/base.css index 178c7ae..fd7d78d 100644 --- a/frontend/public/css/base.css +++ b/frontend/public/css/base.css @@ -1,68 +1,118 @@ -/* ============================================================ - base.css — BookKeepPro Design System - Shared by every page. Load first. - ============================================================ */ @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'); +@import "tailwindcss"; + +/* ============================================================ + base.css — BookKeepPro Design System · "Ledger" + Ink, brass and parchment — a bookkeeping identity built on + the working materials of the trade: ruled paper, tabular + figures, and the quiet authority of a well-kept ledger. + ============================================================ */ /* ── Brand Tokens ─────────────────────────────────────────── */ :root { - --blue: #0077C8; - --blue-dark: #005fa3; - --blue-light: #e9f5ff; - --orange: #FF7F11; - --orange-dark: #e56e0d; - --orange-light: #fff3e0; - --header-bg: #BEE2FA; - --footer-bot: #A9D9F8; - --navy: #0B2540; - --accent: #3AB4F2; - --bg: #f1f7fb; - --card: #ffffff; - --muted: #6b7a86; - --border: #e2eaf2; - --success: #2e7d32; - --success-bg: #e6f9ec; - --error: #c62828; - --error-bg: #fdecea; - --warn: #f57f17; - --warn-bg: #fff8e1; + /* core palette */ + --ink: #17211D; + --ink-soft: #2A362F; + --brass: #B0803D; + --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; + --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; + --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: #B0803D; + --warn-bg: rgba(176, 128, 61, 0.12); + + --font-display: 'Fraunces', 'Georgia', serif; + --font-body: 'IBM Plex Sans', system-ui, sans-serif; + --font-mono: 'IBM Plex Mono', ui-monospace, monospace; --radius-xs: 6px; --radius-sm: 10px; --radius-md: 14px; - --radius-lg: 20px; + --radius-lg: 22px; --radius-pill: 999px; - --shadow-xs: 0 1px 4px rgba(0,0,0,0.06); - --shadow-sm: 0 2px 10px rgba(0,0,0,0.07); - --shadow-md: 0 6px 24px rgba(0,0,0,0.09); - --shadow-lg: 0 16px 48px rgba(0,0,0,0.12); + --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); - --transition: 0.2s ease; + --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1); + --glass-blur: blur(14px); + + --ruled: repeating-linear-gradient( + to bottom, + transparent 0, + transparent 27px, + rgba(23, 33, 29, 0.05) 27px, + rgba(23, 33, 29, 0.05) 28px + ); } /* ── Reset ───────────────────────────────────────────────── */ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } html { font-size: 16px; scroll-behavior: smooth; } +@media (prefers-reduced-motion: reduce) { + html { scroll-behavior: auto; } + *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; } +} body { - font-family: "Poppins", system-ui, sans-serif; + font-family: var(--font-body); background: var(--bg); - color: #222; + color: var(--ink); min-height: 100vh; -webkit-font-smoothing: antialiased; } img { max-width: 100%; display: block; } -a { color: var(--blue); text-decoration: none; } -a:hover { color: var(--blue-dark); } +a { color: var(--emerald); text-decoration: none; } +a:hover { color: var(--emerald-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 { font-size: clamp(22px,3vw,30px); font-weight: 700; color: var(--navy); line-height: 1.25; } -h2 { font-size: clamp(18px,2.5vw,24px); font-weight: 600; color: var(--navy); line-height: 1.3; } -h3 { font-size: clamp(15px,2vw,18px); font-weight: 600; color: var(--navy); } -p { line-height: 1.7; color: #444; } +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); } .text-muted { color: var(--muted); } +.eyebrow { + font-family: var(--font-mono); + font-size: 11.5px; + font-weight: 500; + letter-spacing: 0.14em; + text-transform: uppercase; + color: var(--brass-dark); + display: inline-flex; + align-items: center; + gap: 8px; +} +.eyebrow::before { content: ''; width: 18px; height: 1px; background: var(--brass); display: inline-block; } /* ── Card ────────────────────────────────────────────────── */ .card { @@ -71,9 +121,9 @@ small, .text-sm { font-size: 13px; color: var(--muted); } box-shadow: var(--shadow-sm); border: 1px solid var(--border); padding: clamp(20px, 4vw, 32px); - transition: box-shadow var(--transition); + transition: box-shadow var(--transition), transform var(--transition); } -.card:hover { box-shadow: var(--shadow-md); } +.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); } .card-flat { background: var(--card); border-radius: var(--radius-md); border: 1px solid var(--border); padding: clamp(16px, 3vw, 24px); } /* ── Buttons ─────────────────────────────────────────────── */ @@ -82,30 +132,37 @@ small, .text-sm { font-size: 13px; color: var(--muted); } align-items: center; justify-content: center; gap: 6px; - padding: 11px 22px; - font-family: inherit; + padding: 11px 24px; + font-family: var(--font-body); font-size: 14px; font-weight: 600; border: none; - border-radius: var(--radius-pill); + border-radius: var(--radius-sm); cursor: pointer; - transition: background var(--transition), transform var(--transition), box-shadow var(--transition); + transition: transform 0.12s ease, background var(--transition), box-shadow var(--transition), border-color var(--transition); white-space: nowrap; } -.btn:active { transform: translateY(1px) scale(0.97); } -.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; } +.btn:active { transform: translateY(1px) scale(0.98); } +.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; } -.btn-primary { background: var(--orange); color: #fff; } -.btn-primary:hover:not(:disabled) { background: var(--orange-dark); box-shadow: 0 4px 12px rgba(255,127,17,0.3); } +.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-secondary { background: var(--blue); color: #fff; } -.btn-secondary:hover:not(:disabled) { background: var(--blue-dark); box-shadow: 0 4px 12px rgba(0,119,200,0.25); } +.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-ghost { background: transparent; color: var(--muted); border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 10px 18px; } -.btn-ghost:hover:not(:disabled) { background: var(--bg); color: var(--navy); border-color: #c0cfe0; } +.btn-outline { + background: transparent; + color: var(--ink); + border: 1.5px solid var(--ink); +} +.btn-outline:hover:not(:disabled) { background: var(--ink); color: #fff; } -.btn-danger { background: #ff4d4d; color: #fff; } -.btn-danger:hover:not(:disabled) { background: #e03c3c; box-shadow: 0 4px 12px rgba(255,77,77,0.3); } +.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-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-sm { padding: 7px 16px; font-size: 13px; } .btn-xs { padding: 5px 12px; font-size: 12px; } @@ -117,46 +174,47 @@ small, .text-sm { font-size: 13px; color: var(--muted); } padding: 12px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); - font-family: inherit; + font-family: var(--font-body); font-size: 14px; - color: #222; + color: var(--ink); background: #fff; transition: border-color var(--transition), box-shadow var(--transition); } .input:focus, .select-input:focus { outline: none; - border-color: var(--blue); - box-shadow: 0 0 0 3px rgba(0,119,200,0.10); + border-color: var(--emerald); + box-shadow: 0 0 0 3px rgba(31,93,70,0.12); } -.input::placeholder { color: #a8b5c2; } -.input[readonly] { background: #f8fafc; color: var(--muted); cursor: default; } -label.form-label { display: block; font-size: 13px; font-weight: 500; color: #444; margin-bottom: 6px; } +.input::placeholder { color: #A8A190; } +.input[readonly] { background: var(--paper); color: var(--muted); cursor: default; } +label.form-label { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-soft); margin-bottom: 6px; } .form-group { margin-bottom: 18px; } .password-wrap { position: relative; } .password-wrap .input { padding-right: 56px; } .password-toggle { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); - background: none; border: none; color: var(--blue); font-weight: 600; font-size: 13px; cursor: pointer; + background: none; border: none; color: var(--emerald); font-weight: 600; font-size: 13px; cursor: pointer; } /* ── Badges ──────────────────────────────────────────────── */ .badge { display: inline-flex; align-items: center; gap: 4px; - padding: 3px 10px; border-radius: var(--radius-pill); + padding: 3px 10px; border-radius: var(--radius-xs); font-size: 11px; font-weight: 700; letter-spacing: 0.3px; white-space: nowrap; + font-family: var(--font-mono); } -.badge-blue { background: var(--blue-light); color: var(--blue); } -.badge-orange { background: var(--orange-light); color: #e65100; border: 1px solid #ffc89a; } -.badge-red { background: #fce4ec; color: var(--error); } +.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-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 #ffe082; } -.badge-muted { background: #f0f4f8; color: var(--muted); } +.badge-yellow { background: var(--warn-bg); color: var(--warn); border: 1px solid rgba(176,128,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 #a5d6a7; padding:2px 10px; border-radius:20px; font-size:11px; font-weight:700; } -.pill-rejected { background:var(--error-bg); color:var(--error); border:1px solid #ef9a9a; padding:2px 10px; border-radius:20px; font-size:11px; font-weight:700; } -.pill-pending { background:var(--warn-bg); color:var(--warn); border:1px solid #ffe082; padding:2px 10px; border-radius:20px; font-size:11px; font-weight:700; } +.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); } /* ── Divider ─────────────────────────────────────────────── */ .divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; } @@ -182,9 +240,9 @@ label.form-label { display: block; font-size: 13px; font-weight: 500; color: #44 /* ── Animations ──────────────────────────────────────────── */ @keyframes fadeIn { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } } -@keyframes slideUp { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:none; } } -.fade-in { animation: fadeIn 0.3s ease both; } -.slide-up { animation: slideUp 0.35s ease both; } +@keyframes slideUp { from { opacity:0; transform:translateY(14px); } to { opacity:1; transform:none; } } +.fade-in { animation: fadeIn 0.35s ease both; } +.slide-up { animation: slideUp 0.4s ease both; } /* ── Skeleton loading ────────────────────────────────────── */ @keyframes shimmer { @@ -192,7 +250,7 @@ label.form-label { display: block; font-size: 13px; font-weight: 500; color: #44 to { background-position: 600px 0; } } .skeleton { - background: linear-gradient(90deg, #e8edf2 25%, #f4f6f9 50%, #e8edf2 75%); + background: linear-gradient(90deg, #EDE8D9 25%, #F5F2E9 50%, #EDE8D9 75%); background-size: 600px 100%; animation: shimmer 1.4s infinite linear; border-radius: var(--radius-sm); @@ -218,65 +276,53 @@ label.form-label { display: block; font-size: 13px; font-weight: 500; color: #44 .text-center { text-align: center; } .font-600 { font-weight: 600; } - -/* --- UI/UX Polish --- */ - -/* Button Micro-animations */ -.btn { - transition: transform 0.1s ease, background 0.2s ease, box-shadow 0.2s ease; -} -.btn:active { - transform: scale(0.96); +/* Focus visibility */ +:focus-visible { + outline: 2px solid var(--emerald); + outline-offset: 2px; } -/* Focus States for Accessibility */ -.input:focus, -input[type="text"]:focus, -input[type="email"]:focus, -input[type="password"]:focus, +/* Button + input micro-interactions */ +.btn:active { transform: scale(0.97); } +.input:focus, +input[type="text"]:focus, +input[type="email"]:focus, +input[type="password"]:focus, textarea:focus { outline: none; - border-color: var(--blue) !important; - box-shadow: 0 0 0 3px rgba(0, 119, 200, 0.25) !important; + border-color: var(--emerald) !important; + box-shadow: 0 0 0 3px rgba(31,93,70,0.14) !important; transition: border-color 0.2s ease, box-shadow 0.2s ease; } -/* Document & Admin Card Lift Effects */ -.doc-card, .doc-row, .admin-docs-td { - transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; -} -.doc-row:hover { - transform: translateY(-2px); - box-shadow: 0 4px 12px rgba(0,0,0,0.05); - background: #fafafa; -} - -/* --- Dark Mode Overrides --- */ +/* ── Dark Mode Overrides ─────────────────────────────────── */ .dark-theme { - --bg: #0B1521; - --card: #152538; - --navy: #f1f7fb; - --muted: #a8b5c2; - --border: #2A3F54; - - --header-bg: #0F2B44; - --footer-bot: #06182B; - - --blue-light: #0d263b; - --orange-light: #2d1a0a; - - --success-bg: #0b2e13; - --error-bg: #420f0f; - --warn-bg: #3d2508; - - --shadow-xs: 0 1px 4px rgba(0,0,0,0.3); + --bg: #10160F; + --card: #1A2119; + --navy: #F2EFE4; + --ink: #F2EFE4; + --muted: #A6AC9F; + --border: #2B3529; + + --header-bg: #182018; + --footer-bot: #10160F; + + --blue-light: rgba(90, 168, 138, 0.16); + --orange-light: rgba(196, 150, 82, 0.16); + --emerald-light:rgba(90, 168, 138, 0.16); + --brass-light: rgba(196, 150, 82, 0.16); + + --success-bg: rgba(90, 168, 138, 0.14); + --error-bg: rgba(214, 110, 110, 0.14); + --warn-bg: rgba(196, 150, 82, 0.16); + + --shadow-xs: 0 1px 4px rgba(0,0,0,0.35); --shadow-sm: 0 2px 10px rgba(0,0,0,0.4); --shadow-md: 0 6px 24px rgba(0,0,0,0.5); --shadow-lg: 0 16px 48px rgba(0,0,0,0.6); } - -/* Ensure text on dark theme maps correctly if using base html/body color */ body.dark-theme { background-color: var(--bg); - color: var(--navy); + color: var(--ink); } +.dark-theme .input, .dark-theme .select-input { background: var(--card); color: var(--ink); border-color: var(--border); } diff --git a/frontend/public/css/chatbot.css b/frontend/public/css/chatbot.css index d839147..35fc412 100644 --- a/frontend/public/css/chatbot.css +++ b/frontend/public/css/chatbot.css @@ -1,102 +1,84 @@ /* ============================================================ - chatbot.css — BookKeepPro Chatbot Widget - Floating chat bubble + chat window + chatbot.css — BookKeepPro Chatbot Widget (Ledger system) ============================================================ */ -/* ── Chat Bubble (FAB) ──────────────────────────────────── */ .chatbot-fab { position: fixed; bottom: 24px; right: 24px; - width: 58px; - height: 58px; + width: 56px; + height: 56px; border-radius: 50%; - background: linear-gradient(135deg, var(--blue) 0%, var(--accent) 100%); + background: var(--ink); color: #fff; - border: none; + border: 1px solid rgba(255, 255, 255, 0.14); cursor: pointer; - box-shadow: 0 4px 20px rgba(0, 119, 200, 0.35); + box-shadow: var(--shadow-lg); display: flex; align-items: center; justify-content: center; - font-size: 28px; + font-size: 26px; z-index: 9998; - transition: transform 0.25s ease, box-shadow 0.25s ease; -} -.chatbot-fab:hover { - transform: scale(1.08); - box-shadow: 0 6px 28px rgba(0, 119, 200, 0.45); -} -.chatbot-fab:active { - transform: scale(0.96); + transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, background 0.3s ease; } +.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); } -/* Pulse ring animation */ .chatbot-fab::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; - border: 2px solid var(--blue); + border: 1.5px solid var(--brass); opacity: 0; animation: chatPulse 2.5s ease-out infinite; } .chatbot-fab.open::before { animation: none; opacity: 0; } @keyframes chatPulse { - 0% { transform: scale(1); opacity: 0.5; } + 0% { transform: scale(1); opacity: 0.45; } 100% { transform: scale(1.4); opacity: 0; } } -/* Notification dot */ .chatbot-fab .notif-dot { position: absolute; - top: 2px; - right: 2px; - width: 14px; - height: 14px; + top: 2px; right: 2px; + width: 13px; height: 13px; border-radius: 50%; - background: var(--orange); - border: 2px solid #fff; + background: var(--brass); + border: 2px solid var(--ink); animation: dotBounce 1.5s ease infinite; } .chatbot-fab.open .notif-dot { display: none; } -@keyframes dotBounce { - 0%, 100% { transform: scale(1); } - 50% { transform: scale(1.2); } -} +@keyframes dotBounce { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } } -/* ── Chat Window ────────────────────────────────────────── */ .chatbot-window { position: fixed; - bottom: 96px; + bottom: 92px; right: 24px; width: 380px; max-height: 520px; - border-radius: var(--radius-md); - background: var(--card); - box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15); + border-radius: var(--radius-lg); + background: #FFFFFF; + border: 1px solid var(--border); + box-shadow: var(--shadow-lg); display: flex; flex-direction: column; z-index: 9999; overflow: hidden; opacity: 0; - transform: translateY(20px) scale(0.95); + transform: translateY(16px) scale(0.97); pointer-events: none; - transition: opacity 0.3s ease, transform 0.3s ease; -} -.chatbot-window.visible { - opacity: 1; - transform: translateY(0) scale(1); - pointer-events: auto; + 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; } -/* ── Header ─────────────────────────────────────────────── */ .chatbot-header { - background: linear-gradient(135deg, var(--blue) 0%, #005fa3 100%); + background: var(--ink); + background-image: var(--ruled); color: #fff; padding: 16px 18px; display: flex; @@ -105,302 +87,112 @@ flex-shrink: 0; } .chatbot-header .bot-avatar { - width: 38px; - height: 38px; - border-radius: 50%; - background: rgba(255, 255, 255, 0.2); - display: flex; - align-items: center; - justify-content: center; - font-size: 20px; - flex-shrink: 0; -} -.chatbot-header .bot-info h4 { - font-size: 14px; - font-weight: 600; - margin: 0; - color: #fff; -} -.chatbot-header .bot-info span { - font-size: 11px; - opacity: 0.8; + width: 36px; height: 36px; border-radius: 50%; + background: var(--brass); + display: flex; align-items: center; justify-content: center; + font-size: 18px; flex-shrink: 0; color: #fff; } +.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 .close-chat { - margin-left: auto; - background: rgba(255, 255, 255, 0.15); - border: none; - color: #fff; - width: 30px; - height: 30px; - border-radius: 50%; - cursor: pointer; - font-size: 16px; - display: flex; - align-items: center; - justify-content: center; - transition: background 0.2s; -} -.chatbot-header .close-chat:hover { - background: rgba(255, 255, 255, 0.3); + margin-left: auto; background: rgba(255,255,255,0.12); border: none; color: #fff; + width: 28px; height: 28px; border-radius: 50%; cursor: pointer; font-size: 15px; + display: flex; align-items: center; justify-content: center; transition: background 0.2s; } +.chatbot-header .close-chat:hover { background: rgba(255,255,255,0.25); } -/* ── Messages Area ──────────────────────────────────────── */ .chatbot-messages { - flex: 1; - overflow-y: auto; - padding: 16px; - display: flex; - flex-direction: column; - gap: 10px; - background: #f8fbfe; - min-height: 200px; - max-height: 340px; + flex: 1; overflow-y: auto; padding: 22px 18px; + display: flex; flex-direction: column; gap: 12px; + background: var(--paper); + 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); +} +.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-messages::-webkit-scrollbar { width: 5px; } .chatbot-messages::-webkit-scrollbar-track { background: transparent; } -.chatbot-messages::-webkit-scrollbar-thumb { background: #c5d9ee; border-radius: 10px; } +.chatbot-messages::-webkit-scrollbar-thumb { background: #d8d0b6; border-radius: 10px; } -/* ── Message Bubbles ────────────────────────────────────── */ .chat-msg { - max-width: 85%; - padding: 10px 14px; - border-radius: 14px; - font-size: 13px; - line-height: 1.5; - animation: msgSlideIn 0.3s ease; - word-wrap: break-word; -} -@keyframes msgSlideIn { - from { opacity: 0; transform: translateY(8px); } - to { opacity: 1; transform: translateY(0); } + 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; } +@keyframes msgSlideIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } } .chat-msg.bot { - background: #fff; - color: #222; - border: 1px solid var(--border); - border-bottom-left-radius: 4px; - align-self: flex-start; - box-shadow: 0 1px 4px rgba(0,0,0,0.04); + background: #fff; color: var(--ink); border: 1px solid var(--border); + border-bottom-left-radius: 4px; align-self: flex-start; box-shadow: var(--shadow-xs); } .chat-msg.user { - background: linear-gradient(135deg, var(--blue), var(--accent)); - color: #fff; - border-bottom-right-radius: 4px; - align-self: flex-end; + background: var(--emerald); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; } -/* ── Typing Indicator ───────────────────────────────────── */ -.typing-indicator { - display: flex; - gap: 4px; - padding: 12px 16px; - align-self: flex-start; -} -.typing-indicator span { - width: 8px; - height: 8px; - border-radius: 50%; - background: var(--blue); - opacity: 0.4; - animation: typingDot 1.2s ease-in-out infinite; -} +.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: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; } } -@keyframes typingDot { - 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } - 30% { transform: translateY(-6px); opacity: 1; } -} - -/* ── Quick Reply Buttons ────────────────────────────────── */ -.quick-replies { - display: flex; - flex-direction: column; - gap: 8px; - margin-top: 6px; -} +.quick-replies { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; } .quick-reply-btn { - background: #fff; - border: 1.5px solid var(--blue); - color: var(--blue); - padding: 9px 14px; - border-radius: var(--radius-sm); - font-size: 13px; - font-weight: 500; - cursor: pointer; - text-align: left; - transition: all 0.2s ease; - font-family: inherit; - display: flex; - align-items: center; - gap: 8px; -} -.quick-reply-btn:hover { - background: var(--blue); - color: #fff; - transform: translateX(4px); - box-shadow: 0 2px 8px rgba(0, 119, 200, 0.2); -} -.quick-reply-btn .qr-icon { - font-size: 16px; - flex-shrink: 0; + 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); + 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 .qr-icon { font-size: 16px; flex-shrink: 0; } -/* ── Doc Status Cards ───────────────────────────────────── */ -.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(--navy); - 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-pill); - font-size: 11px; - font-weight: 600; - text-transform: uppercase; - letter-spacing: 0.3px; -} -.doc-badge.pending { background: var(--warn-bg); color: var(--warn); } +.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 .doc-note { - margin-top: 4px; - color: var(--muted); - font-style: italic; - font-size: 11px; -} - -/* ── Summary Banner ─────────────────────────────────────── */ -.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: #f1f7fb; -} -.summary-item .count { - font-size: 20px; - font-weight: 700; - display: block; -} -.summary-item .label { - font-size: 10px; - text-transform: uppercase; - color: var(--muted); - letter-spacing: 0.5px; -} -.summary-item.pending .count { color: var(--warn); } +.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 .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); } -/* ── FAQ List ───────────────────────────────────────────── */ .faq-question { - background: #fff; - border: 1px solid var(--border); - border-radius: var(--radius-xs); - padding: 9px 12px; - font-size: 12.5px; - cursor: pointer; - transition: all 0.2s ease; - text-align: left; - color: var(--navy); - width: 100%; - font-family: inherit; - display: block; - margin-top: 4px; -} -.faq-question:hover { - border-color: var(--blue); - color: var(--blue); - background: var(--blue-light); + background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xs); + 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; } +.faq-question:hover { border-color: var(--emerald); color: var(--emerald); background: var(--emerald-light); } -/* ── Back Button ────────────────────────────────────────── */ .back-btn { - background: none; - border: none; - color: var(--blue); - 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; + background: none; border: none; color: var(--emerald); 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; } .back-btn:hover { text-decoration: underline; } -/* ── Mobile Responsive ──────────────────────────────────── */ @media (max-width: 480px) { - .chatbot-window { - bottom: 0; - right: 0; - left: 0; - width: 100%; - max-height: 75vh; - border-radius: var(--radius-md) var(--radius-md) 0 0; - } - .chatbot-fab { - bottom: 16px; - right: 16px; - width: 52px; - height: 52px; - font-size: 24px; - } + .chatbot-window { bottom: 0; right: 0; left: 0; width: 100%; max-height: 75vh; border-radius: var(--radius-md) var(--radius-md) 0 0; } + .chatbot-fab { bottom: 16px; right: 16px; width: 50px; height: 50px; font-size: 22px; } } -/* ── Dark Mode Support ──────────────────────────────────── */ -[data-theme="dark"] .chatbot-window { background: #1a2332; } -[data-theme="dark"] .chatbot-messages { background: #0f1923; } -[data-theme="dark"] .chat-msg.bot { - background: #1e2d3d; - border-color: #2a3f54; - color: #d4dde6; -} -[data-theme="dark"] .quick-reply-btn { - background: #1e2d3d; - border-color: var(--blue); - color: var(--accent); -} -[data-theme="dark"] .quick-reply-btn:hover { - background: var(--blue); - color: #fff; -} -[data-theme="dark"] .doc-status-card { - background: #1e2d3d; - border-color: #2a3f54; -} -[data-theme="dark"] .doc-status-card .doc-name { color: #d4dde6; } -[data-theme="dark"] .faq-question { - background: #1e2d3d; - border-color: #2a3f54; - color: #d4dde6; -} -[data-theme="dark"] .faq-question:hover { - background: #253648; - border-color: var(--blue); -} -[data-theme="dark"] .summary-item { background: #1e2d3d; } +.dark-theme .chatbot-window { background: var(--card); } +.dark-theme .chatbot-messages { background: var(--bg); } +.dark-theme .chat-msg.bot { background: var(--card); border-color: var(--border); color: var(--navy); } +.dark-theme .quick-reply-btn { background: var(--card); border-color: var(--border); color: var(--navy); } +.dark-theme .quick-reply-btn:hover { background: var(--blue-light); border-color: var(--blue); } +.dark-theme .doc-status-card { background: var(--card); border-color: var(--border); } +.dark-theme .doc-status-card .doc-name { color: var(--navy); } +.dark-theme .faq-question { background: var(--card); border-color: var(--border); color: var(--navy); } +.dark-theme .faq-question:hover { background: var(--blue-light); border-color: var(--blue); } +.dark-theme .summary-item { background: var(--card); } diff --git a/frontend/public/css/components.css b/frontend/public/css/components.css index cbb80ae..50368ef 100644 --- a/frontend/public/css/components.css +++ b/frontend/public/css/components.css @@ -1,30 +1,32 @@ /* ============================================================ - components.css — Reusable UI components + components.css — Reusable UI components (Ledger system) Load after base.css ============================================================ */ -/* ── App Header ──────────────────────────────────────────── */ +/* ── App Header (dashboard/admin) ───────────────────────── */ .app-header { + position: sticky; + top: 0; + z-index: 200; background: var(--header-bg); + backdrop-filter: var(--glass-blur); + -webkit-backdrop-filter: var(--glass-blur); + border-bottom: 1px solid var(--border); padding: 0 clamp(16px, 4vw, 32px); - height: 62px; + height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 16px; - position: sticky; - top: 0; - z-index: 200; - box-shadow: 0 2px 12px rgba(0,80,140,0.10); } -.app-header .logo { height: 38px; cursor: pointer; transition: opacity var(--transition); } +.app-header .logo { height: 34px; cursor: pointer; transition: opacity var(--transition); } .app-header .logo:hover { opacity: 0.85; } -.app-header .header-actions { display: flex; gap: 10px; align-items: center; } +.header-actions { display: flex; align-items: center; gap: 10px; } /* ── App Footer ──────────────────────────────────────────── */ .app-footer { background: var(--header-bg); - border-top: 1px solid rgba(0,80,140,0.10); + border-top: 1px solid var(--border); padding: 18px clamp(16px, 4vw, 32px); display: flex; align-items: center; @@ -33,7 +35,7 @@ gap: 12px; margin-top: auto; } -.app-footer img { height: 30px; } +.app-footer img { height: 28px; } .app-footer small { color: var(--muted); font-size: 12px; } /* ── Auth Layout — Split Card ────────────────────────────── */ @@ -46,19 +48,22 @@ .auth-brand { width: 42%; min-width: 280px; - background: linear-gradient(145deg, var(--navy) 0%, var(--blue) 100%); + position: relative; + background: #17211D; + background-image: var(--ruled), linear-gradient(155deg, #17211D 0%, var(--emerald-dark) 130%); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 40px; color: #fff; - gap: 24px; + gap: 22px; + overflow: hidden; } -.auth-brand .brand-logo { height: 56px; } -.auth-brand h2 { color: #fff; font-size: clamp(20px,2.5vw,26px); text-align: center; margin: 0; } -.auth-brand p { color: rgba(255,255,255,0.75); font-size: 14px; text-align: center; line-height: 1.8; margin: 0; } -.auth-brand .brand-divider { width: 40px; height: 3px; background: var(--orange); border-radius: 2px; } +.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-form-side { flex: 1; @@ -70,11 +75,10 @@ overflow-y: auto; } .auth-box { width: 100%; max-width: 420px; } -.auth-box h1 { font-size: clamp(20px,2.5vw,26px); margin-bottom: 6px; } +.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; } -/* Dark Theme Overrides for Auth Pages */ body.dark-theme .auth-shell { background: var(--bg); } body.dark-theme .auth-form-side { background: var(--bg); } body.dark-theme .auth-box h1 { color: var(--navy); } @@ -89,13 +93,13 @@ body.dark-theme .auth-links a { color: var(--blue); } width: 100%; min-width: unset; min-height: unset; - padding: 24px 20px; + padding: 26px 20px; flex-direction: row; justify-content: center; gap: 16px; } .auth-brand p, .auth-brand .brand-divider { display: none; } - .auth-brand .brand-logo { height: 32px; } + .auth-brand .brand-logo { height: 30px; } .auth-brand h2 { font-size: 15px; margin: 0; } .auth-form-side { padding: 28px 20px; } } @@ -110,10 +114,10 @@ body.dark-theme .auth-links a { color: var(--blue); } margin-bottom: 28px; } .page-heading h1, .page-heading h2 { margin: 0; } -.page-heading .page-meta { font-size: 13px; color: var(--muted); margin-top: 4px; } +.page-heading .page-meta { font-size: 13px; color: var(--muted); margin-top: 4px; font-family: var(--font-mono); } /* ── Stat Cards Row ──────────────────────────────────────── */ -.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; } +.stat-row, .admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; } .stat-card { background: var(--card); border: 1px solid var(--border); @@ -125,12 +129,12 @@ body.dark-theme .auth-links a { color: var(--blue); } transition: box-shadow var(--transition), transform var(--transition); } .stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); } -.stat-card .stat-icon { font-size: 24px; margin-bottom: 4px; } -.stat-card .stat-value { font-size: 26px; font-weight: 700; color: var(--navy); line-height: 1; } -.stat-card .stat-label { font-size: 12px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.4px; } -.stat-card.accent-blue { border-left: 4px solid var(--blue); } -.stat-card.accent-orange{ border-left: 4px solid var(--orange); } -.stat-card.accent-green { border-left: 4px solid var(--success); } +.stat-card .stat-icon { font-size: 22px; margin-bottom: 4px; color: var(--muted); } +.stat-card .stat-value, .stat-card .stat-val { font-family: var(--font-mono); font-size: 27px; font-weight: 600; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; } +.stat-card .stat-label, .stat-card .stat-title { font-size: 11.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; } +.stat-card.accent-blue { border-left: 3px solid var(--emerald); } +.stat-card.accent-orange{ border-left: 3px solid var(--brass); } +.stat-card.accent-green { border-left: 3px solid var(--success); } /* ── Tab Bar ─────────────────────────────────────────────── */ .tab-bar { @@ -144,7 +148,7 @@ body.dark-theme .auth-links a { color: var(--blue); } .tab-bar::-webkit-scrollbar { display: none; } .tab-btn { padding: 12px 22px; - font-family: inherit; + font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--muted); @@ -157,8 +161,8 @@ body.dark-theme .auth-links a { color: var(--blue); } white-space: nowrap; flex-shrink: 0; } -.tab-btn:hover { color: var(--navy); } -.tab-btn.active { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; } +.tab-btn:hover { color: var(--ink); } +.tab-btn.active { color: var(--emerald); border-bottom-color: var(--brass); font-weight: 600; } .tab-panel { display: none; } .tab-panel.active{ display: block; animation: fadeIn 0.25s ease; } @@ -175,34 +179,34 @@ body.dark-theme .auth-links a { color: var(--blue); } 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: #c5d9ee; } +.user-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #cfc7ad; } .click-layer { position: absolute; inset: 0; z-index: 0; } .user-top { display: flex; align-items: center; gap: 14px; min-width: 0; } .user-avatar { - width: 46px; height: 46px; border-radius: 50%; - background: linear-gradient(135deg, var(--header-bg), var(--blue-light)); + width: 44px; height: 44px; border-radius: 50%; + background: var(--emerald); display: flex; align-items: center; justify-content: center; - font-weight: 700; font-size: 17px; color: var(--navy); - flex-shrink: 0; border: 2px solid rgba(0,119,200,0.15); + font-weight: 700; font-size: 16px; color: #fff; + flex-shrink: 0; font-family: var(--font-display); } .user-info { min-width: 0; flex: 1; } -.user-info .u-name { font-weight: 600; color: var(--navy); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } +.user-info .u-name { font-weight: 600; color: var(--ink); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .user-info .u-email { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; } .user-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; position: relative; z-index: 10; flex-wrap: wrap; } /* ── Role Controls ───────────────────────────────────────── */ .role-controls { display: flex; align-items: center; gap: 8px; position: relative; z-index: 10; } -.role-select { padding: 6px 10px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; font-family: inherit; cursor: pointer; background: #fff; flex: 1; transition: border-color var(--transition); } -.role-select:focus { outline: none; border-color: var(--blue); } -.role-save-btn { padding: 6px 14px; background: var(--blue); color: #fff; border: none; border-radius: var(--radius-sm); font-size: 12px; font-weight: 600; cursor: pointer; transition: background var(--transition); white-space: nowrap; } -.role-save-btn:hover { background: var(--blue-dark); } +.role-select { padding: 6px 10px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; font-family: var(--font-body); cursor: pointer; background: #fff; flex: 1; transition: border-color var(--transition); } +.role-select:focus { outline: none; border-color: var(--emerald); } +.role-save-btn { padding: 6px 14px; background: var(--emerald); color: #fff; border: none; border-radius: var(--radius-sm); font-size: 12px; font-weight: 600; cursor: pointer; transition: background var(--transition); white-space: nowrap; } +.role-save-btn:hover { background: var(--emerald-dark); } /* ── Info Card (User Detail) ─────────────────────────────── */ .info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; } @media (max-width: 640px) { .info-grid { grid-template-columns: 1fr; } } .info-item { display: flex; flex-direction: column; gap: 3px; } .info-item .info-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); font-weight: 600; } -.info-item .info-value { font-size: 15px; font-weight: 500; color: var(--navy); } +.info-item .info-value { font-size: 15px; font-weight: 500; color: var(--ink); } /* ── Document Row ────────────────────────────────────────── */ .doc-row { @@ -212,19 +216,19 @@ body.dark-theme .auth-links a { color: var(--blue); } padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); - background: #fafcff; - transition: border-color var(--transition), background var(--transition); + background: var(--paper); + transition: border-color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition); margin-bottom: 10px; } -.doc-row:hover { border-color: #c5d9ee; background: var(--blue-light); } +.doc-row:hover { border-color: #cfc7ad; background: #fff; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(23,33,29,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(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } +.doc-row-name { font-weight: 600; font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .doc-row-type { font-size: 12px; color: var(--muted); } .doc-row-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; } /* ── Drop Zone ───────────────────────────────────────────── */ .drop-zone { - border: 2px dashed #b8cfdf; + border: 2px dashed #cfc7ad; border-radius: var(--radius-md); padding: 36px 24px; text-align: center; @@ -233,12 +237,12 @@ body.dark-theme .auth-links a { color: var(--blue); } cursor: pointer; } .drop-zone:hover, .drop-zone.drag-over { - border-color: var(--blue); - background: var(--blue-light); - color: var(--blue); + border-color: var(--emerald); + background: var(--emerald-light); + color: var(--emerald); } -.drop-zone .drop-icon { font-size: 36px; margin-bottom: 10px; } -.drop-zone .drop-title { font-weight: 600; font-size: 15px; color: var(--navy); } +.drop-zone .drop-icon { font-size: 34px; margin-bottom: 10px; } +.drop-zone .drop-title { font-weight: 600; font-size: 15px; color: var(--ink); } .drop-zone .drop-hint { font-size: 13px; margin-top: 4px; } /* ── Search Bar ──────────────────────────────────────────── */ @@ -253,7 +257,7 @@ body.dark-theme .auth-links a { color: var(--blue); } transition: border-color var(--transition), box-shadow var(--transition); max-width: 360px; } -.search-bar:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,119,200,0.10); } +.search-bar:focus-within { border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(31,93,70,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; } @@ -262,7 +266,7 @@ body.dark-theme .auth-links a { color: var(--blue); } display: flex; align-items: center; gap: 12px; - background: var(--bg); + background: var(--paper); border-radius: var(--radius-sm); padding: 10px 16px; width: fit-content; @@ -278,32 +282,24 @@ body.dark-theme .auth-links a { color: var(--blue); } display: flex; align-items: center; justify-content: center; transition: border-color var(--transition), background var(--transition); } -.timeline-control .tl-btn:hover { border-color: var(--blue); background: var(--blue-light); color: var(--blue); } -.timeline-control .tl-value { font-size: 20px; font-weight: 700; color: var(--navy); min-width: 32px; text-align: center; } +.timeline-control .tl-btn:hover { border-color: var(--emerald); background: var(--emerald-light); color: var(--emerald); } +.timeline-control .tl-value { font-family: var(--font-mono); font-size: 20px; font-weight: 600; color: var(--ink); min-width: 32px; text-align: center; } .timeline-control .tl-label { font-size: 12px; color: var(--muted); } /* ── Approval Table ──────────────────────────────────────── */ .approval-table { width: 100%; border-collapse: collapse; } .approval-table th, .approval-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 13px; } -.approval-table th { background: #f5f8fb; font-weight: 600; color: var(--muted); text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; } +.approval-table th { background: var(--paper); font-weight: 600; color: var(--muted); text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.4px; } .approval-table tr:last-child td { border-bottom: none; } -.approval-table tr:hover td { background: #fafcff; } +.approval-table tr:hover td { background: var(--paper); } /* ── Toggle Switch (approve/reject) ─────────────────────── */ -.review-toggle { - display: flex; - gap: 6px; -} +.review-toggle { display: flex; gap: 6px; } .review-toggle label { - display: flex; - align-items: center; - gap: 5px; - padding: 5px 12px; - border-radius: var(--radius-pill); + display: flex; align-items: center; gap: 5px; + padding: 5px 12px; border-radius: var(--radius-pill); border: 1.5px solid var(--border); - font-size: 12px; - font-weight: 600; - cursor: pointer; + font-size: 12px; font-weight: 600; cursor: pointer; transition: all var(--transition); } .review-toggle input[type=checkbox] { display: none; } @@ -319,166 +315,543 @@ body.dark-theme .auth-links a { color: var(--blue); } gap: 16px; padding: 16px 20px; border-radius: var(--radius-md); - background: linear-gradient(90deg, #e3f2fd, #f0f9ff); - border: 1px solid #b3d9f5; + background: var(--emerald-light); + border: 1px solid rgba(31,93,70,0.2); margin-bottom: 24px; } -.engagement-banner .banner-icon { font-size: 28px; flex-shrink: 0; } +.engagement-banner .banner-icon { font-size: 26px; flex-shrink: 0; color: var(--emerald); } .engagement-banner .banner-text { flex: 1; } -.engagement-banner .banner-text strong { display: block; font-size: 14px; color: var(--navy); } +.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: #a5d6a7; } +.engagement-banner.acknowledged { background: var(--success-bg); border-color: rgba(31,93,70,0.25); } /* ── Empty State ─────────────────────────────────────────── */ .empty-state { padding: 48px 24px; text-align: center; color: var(--muted); + background: var(--paper); + border: 1px dashed var(--border); + border-radius: var(--radius-md); } -.empty-state .empty-icon { font-size: 42px; margin-bottom: 12px; opacity: 0.6; } -.empty-state .empty-title { font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 6px; } +.empty-state .empty-icon { font-size: 40px; margin-bottom: 12px; opacity: 0.5; color: var(--muted); } +.empty-state .empty-title { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 6px; } .empty-state .empty-hint { font-size: 13px; } -/* ── Marketing Navbar ────────────────────────────────────── */ -.mkt-navbar { - position: absolute; - top: 0; left: 0; - width: 100%; - z-index: 20; -} -.mkt-nav-inner { - width: min(1200px, 96%); - margin: auto; - padding: 18px 12px; - display: flex; - align-items: center; - justify-content: space-between; -} -.mkt-nav-logo { height: clamp(38px,5vw,54px); object-fit: contain; } -.mkt-nav-menu { display: flex; gap: 32px; align-items: center; } -.mkt-nav-menu a { color: #fff; font-size: 15px; font-weight: 500; text-decoration: none; transition: color var(--transition); } -.mkt-nav-menu a:hover { color: #FFD28C; } -.mkt-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; } -.mkt-hamburger span { width: 26px; height: 2.5px; background: #fff; border-radius: 2px; } +.table-responsive { overflow-x: auto; } +.admin-table { width: 100%; border-collapse: collapse; } +.admin-table th, .admin-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 13px; } +.admin-table th { background: var(--paper); font-weight: 600; color: var(--muted); text-transform: uppercase; font-size: 11.5px; letter-spacing: 0.5px; } +.admin-table tr:last-child td { border-bottom: none; } +.admin-table tr:hover td { background: var(--paper); } +/* ── Chatbot Footer ─────────────────────────────────────── */ +.chatbot-footer { + padding: 16px; + border-top: 1px solid var(--border); + background: var(--paper); + text-align: center; + font-size: 13px; + color: var(--muted); + border-radius: 0 0 var(--radius-md) var(--radius-md); +} + +.search-wrap { position: relative; display: flex; align-items: center; } + +/* ── 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); } +.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-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: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; } + +/* ── Dark theme overrides for the above ─────────────────── */ +body.dark-theme .app-header { background: var(--header-bg); border-color: var(--border); } +body.dark-theme .admin-table th { background: var(--card); } +body.dark-theme .chatbot-footer { background: var(--card); border-color: var(--border); } +body.dark-theme .doc-row, body.dark-theme .stat-card, body.dark-theme .user-card { background: var(--card); } +body.dark-theme .search-bar, body.dark-theme .role-select { background: var(--card); color: var(--navy); } +body.dark-theme .search-bar input { color: var(--navy); } + + +/* ============================================================ + RESPONSIVE IMPROVEMENTS — Multi-screen support + Breakpoints: 480px (xs), 640px (sm), 768px (md), 1024px (lg) + ============================================================ */ + +/* ── Admin Dashboard — users grid ───────────────────────── */ +.users-grid { + display: grid; + grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); + gap: 16px; + margin-top: 4px; +} +@media (max-width: 640px) { + .users-grid { + grid-template-columns: 1fr; + gap: 12px; + } +} + +/* ── Admin Stats — 4 cards on desktop, 2x2 on tablet, 1 col on mobile ── */ @media (max-width: 900px) { - .mkt-nav-menu { - display: none; - position: absolute; - top: 72px; left: 0; + .admin-stats { + grid-template-columns: repeat(2, 1fr); + } +} +@media (max-width: 480px) { + .admin-stats { + grid-template-columns: 1fr 1fr; + gap: 10px; + } + .stat-card { + padding: 14px 16px; + } + .stat-card .stat-value, + .stat-card .stat-val { + font-size: 22px; + } +} + +/* ── App Header — collapse actions on small screens ─────── */ +@media (max-width: 480px) { + .app-header { + padding: 0 14px; + height: 58px; + gap: 10px; + } + .app-header .logo { + height: 28px; + } + .header-actions { + gap: 6px; + } + .header-actions .btn { + padding: 6px 10px; + font-size: 12px; + } + .header-actions .btn-sm { + padding: 5px 8px; + font-size: 11px; + } +} + +/* ── Page Heading — stack on mobile ─────────────────────── */ +@media (max-width: 640px) { + .page-heading { + flex-direction: column; + align-items: flex-start; + gap: 10px; + margin-bottom: 20px; + } + .page-heading h1 { + font-size: clamp(20px, 5vw, 26px); + } +} + +/* ── Tab Bar — tighten padding on small screens ──────────── */ +@media (max-width: 640px) { + .tab-btn { + padding: 10px 14px; + font-size: 13px; + } +} +@media (max-width: 400px) { + .tab-btn { + padding: 8px 10px; + font-size: 12px; + } +} + +/* ── User Card bottom badges — wrap cleanly ─────────────── */ +.user-bottom { + flex-wrap: wrap; + gap: 6px; +} + +/* ── Document slots — reflow on mobile ──────────────────── */ +@media (max-width: 640px) { + .doc-slot { + flex-direction: column; + align-items: flex-start; + gap: 10px; + padding: 12px 14px; + } + .doc-slot-actions { width: 100%; - background: var(--navy); + display: flex; + flex-wrap: wrap; + gap: 8px; + } +} + +/* ── Admin Table — readable on small screens ─────────────── */ +@media (max-width: 768px) { + .admin-table th, + .admin-table td { + padding: 10px 10px; + font-size: 12px; + } +} +@media (max-width: 480px) { + .admin-table th, + .admin-table td { + padding: 8px 8px; + font-size: 11px; + } + /* Hide less-important columns on very small screens */ + .admin-table .col-hide-xs { + display: none; + } +} + +/* ── Card & Card-flat — reduce padding on mobile ────────── */ +@media (max-width: 480px) { + .card { + padding: 16px; + } + .card-flat { + padding: 14px; + } +} + +/* ── Page main widths — full bleed on small screens ──────── */ +@media (max-width: 640px) { + .page-main, + .page-main-wide { + padding: 0 12px; + margin-top: 20px; + margin-bottom: 20px; + } +} + +/* ── Admin User Detail — user info bar ──────────────────── */ +@media (max-width: 768px) { + /* the user info bar flex row */ + .card > div[style*="justify-content:space-between"] { + flex-direction: column; + align-items: flex-start !important; + } +} + +/* ── Upload pages — tax year selector row ────────────────── */ +@media (max-width: 640px) { + /* page-heading flex row with year selector */ + .page-heading > div:last-child { + align-self: flex-start; + } +} + +/* ── Timeline control — center on mobile ────────────────── */ +@media (max-width: 640px) { + .timeline-control { + width: 100%; + justify-content: center; + } +} + +/* ── Toast — full width on mobile ───────────────────────── */ +@media (max-width: 480px) { + .toast-container { + left: 12px; + right: 12px; + transform: none; + bottom: 16px; + } + .toast { + min-width: unset; + width: 100%; + } +} + +/* ── Chatbot FAB — smaller on mobile ────────────────────── */ +@media (max-width: 480px) { + .chatbot-fab { + width: 50px; + height: 50px; + bottom: 16px; + right: 16px; + font-size: 20px; + } + .chatbot-window { + width: calc(100vw - 24px); + right: 12px; + bottom: 76px; + } +} + +/* ── Auth shell — improve narrow portrait phones ────────── */ +@media (max-width: 400px) { + .auth-form-side { + padding: 20px 16px; + } + .auth-box { + max-width: 100%; + } +} + +/* ── Marketing Navbar — tighter on 768px tablets ────────── */ +@media (max-width: 768px) { + .nav-container { + padding: 14px 12px; + } +} + +/* ── Services / About page blocks — better mobile spacing ── */ +@media (max-width: 640px) { + .about-wrapper, + .services-wrapper { + margin: 48px auto; + gap: 28px; + } + .about-block, + .service-block { + padding: 18px; + } +} + +/* ── Contact page — full-width form on mobile ───────────── */ +@media (max-width: 640px) { + .contact-container { + flex-direction: column; + } + .contact-info, + .contact-form { + flex: 1 1 100%; + width: 100%; + } + .form-row { flex-direction: column; gap: 0; - padding: 8px 0 20px; } - .mkt-nav-menu a { padding: 12px 28px; width: 100%; } - .mkt-nav-menu.open { display: flex; } - .mkt-hamburger { display: flex; } } -/* ── Marketing Footer ────────────────────────────────────── */ -.mkt-footer { background: var(--header-bg); border-top: 4px solid var(--blue); margin-top: auto; } -.mkt-footer-top { - width: min(1200px, 92%); - margin: auto; - padding: 40px 0; - display: flex; - justify-content: space-between; - gap: 40px; - flex-wrap: wrap; +/* ── Footer — stack on mobile ───────────────────────────── */ +@media (max-width: 640px) { + .footer-top, + .mkt-footer-top { + flex-direction: column; + gap: 28px; + padding: 36px 0 28px; + } } -.mkt-footer-logo { width: clamp(120px,20vw,160px); } -.mkt-footer-links { display: flex; flex-direction: column; gap: 8px; } -.mkt-footer-links h4 { color: var(--blue); margin-bottom: 4px; font-size: 14px; } -.mkt-footer-links a { color: var(--navy); font-size: 14px; font-weight: 500; transition: color var(--transition); } -.mkt-footer-links a:hover { color: var(--blue); } -.mkt-footer-bottom { background: var(--footer-bot); text-align: center; padding: 12px; font-size: 13px; color: #555; } -/* --- JS Extracted Components --- */ +/* ── Expandable summary block (AI summaries) ─────────────── */ +@media (max-width: 640px) { + /* give AI summary blocks full width */ + div[style*="blue-light"] { + padding: 10px !important; + } +} -.doc-row-wrapper { +/* ── Global touch targets — ensure 44px min on mobile ───── */ +@media (max-width: 768px) { + .btn-sm { + min-height: 36px; + } + .tab-btn { + min-height: 42px; + } + select, + .select-input, + .input { + min-height: 42px; + } +} + + +/* ============================================================ + ADMIN USER DETAIL — Responsive layout classes + Replaces all inline flex styles that couldn't be overridden + ============================================================ */ + +/* ── User info bar ───────────────────────────────────────── */ +.aud-bar-inner { display: flex; align-items: center; justify-content: space-between; - gap: 12px; + flex-wrap: wrap; + gap: 16px; +} +.aud-bar-left { + display: flex; + align-items: center; + gap: 16px; + flex: 1; + min-width: 0; +} +.aud-bar-actions { + display: flex; + gap: 10px; + align-items: center; + flex-wrap: wrap; +} +.aud-year-picker { + display: flex; + flex-direction: column; + align-items: flex-end; + gap: 4px; + padding-left: 16px; + border-left: 1px solid var(--border); +} + +@media (max-width: 640px) { + .aud-bar-inner { + flex-direction: column; + align-items: flex-start; + } + .aud-bar-left { + width: 100%; + } + .aud-bar-actions { + width: 100%; + flex-wrap: wrap; + gap: 8px; + } + .aud-year-picker { + align-items: flex-start; + border-left: none; + border-top: 1px solid var(--border); + padding-left: 0; + padding-top: 10px; + width: 100%; + flex-direction: row; + align-items: center; + gap: 8px; + } + .aud-year-picker label { + white-space: nowrap; + } + .aud-year-picker select { + flex: 1; + } +} + +/* ── Doc review layout (main + sidebar) ─────────────────── */ +.doc-review-layout { + display: flex; + gap: 20px; + align-items: flex-start; +} +.doc-review-main { + flex: 2; + min-width: 0; /* prevents flex child from overflowing */ +} +.doc-review-sidebar { + flex: 0 0 240px; /* fixed 240px sidebar, doesn't shrink */ + width: 240px; +} + +@media (max-width: 768px) { + .doc-review-layout { + flex-direction: column; + } + .doc-review-sidebar { + flex: unset; + width: 100%; + 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; + gap: 12px; + } + .doc-review-sidebar h3 { + width: 100%; + margin-bottom: 0 !important; + } + .doc-review-sidebar .timeline-control { + flex: 1; + } + .doc-review-sidebar .btn { + flex: 1; + min-width: 180px; + } +} + +/* ── Individual doc review row ──────────────────────────── */ +.doc-review-row { + display: flex; + flex-direction: column; + gap: 8px; + padding: 14px 0; + border-bottom: 1px solid var(--border); +} +.doc-review-row:last-child { + border-bottom: none; +} +.doc-review-row-top { + display: flex; + align-items: flex-start; + gap: 16px; +} +.doc-review-info { + flex: 1; + min-width: 0; +} +.doc-review-actions { + display: flex; + align-items: center; + gap: 8px; + flex-shrink: 0; flex-wrap: wrap; } -.btn-approve { - background: var(--success-bg); - color: var(--success); - border: 1px solid #a5d6a7; - border-radius: var(--radius-pill); +@media (max-width: 520px) { + .doc-review-row-top { + flex-direction: column; + gap: 10px; + } + .doc-review-actions { + width: 100%; + justify-content: flex-start; + } + .doc-review-actions .btn { + flex: 1; + min-width: 70px; + justify-content: center; + } } -.btn-reject { - background: var(--error-bg); - color: var(--error); - border: 1px solid #ef9a9a; - border-radius: var(--radius-pill); -} - -.reject-box { - display: none; - margin-top: 10px; -} - -.reject-textarea { - width: 100%; - padding: 10px; +/* ── AI Summary block ────────────────────────────────────── */ +.ai-summary-block { + padding: 12px; + background-color: var(--blue-light); border-radius: var(--radius-sm); - border: 1.5px solid var(--border); - font-family: inherit; - font-size: 13px; - resize: vertical; + border: 1px solid var(--border); + width: 100%; + margin-top: 4px; } - -.admin-doc-actions { +.ai-summary-label { + font-size: 11px; + font-weight: 700; + color: var(--emerald); + margin-bottom: 8px; + text-transform: uppercase; + letter-spacing: 0.5px; display: flex; - gap: 8px; - flex-shrink: 0; + align-items: center; } -.admin-docs-table { - width: 100%; - border-collapse: collapse; - font-size: 13px; -} - -.admin-docs-td { - padding: 10px 12px; - color: #444; -} - -.admin-docs-th { - padding: 10px 12px; - color: #555; - font-weight: 500; - text-align: left; - border-bottom: 2px solid var(--border); -} - -/* -- Pill Buttons for Document Actions ----------------------- */ -.btn-download-pill { - background: var(--blue); - color: #fff; - border: none; - border-radius: var(--radius-sm); - font-weight: 500; -} -.btn-download-pill:hover { - opacity: 0.9; -} - -.btn-upload-pill { - background: var(--orange); - color: #fff; - border: none; - border-radius: var(--radius-sm); - font-weight: 500; - cursor: pointer; -} -.btn-upload-pill:hover { - opacity: 0.9; +/* ── Doc count chips — user info bar ────────────────────── */ +.doc-count-chip { + display: inline-flex; + align-items: center; + gap: 4px; + font-size: 12px; + font-family: var(--font-mono); + background: var(--paper); + border: 1px solid var(--border); + border-radius: var(--radius-xs); + padding: 3px 8px; + white-space: nowrap; } diff --git a/frontend/public/css/marketing.css b/frontend/public/css/marketing.css index 8679f39..934975e 100644 --- a/frontend/public/css/marketing.css +++ b/frontend/public/css/marketing.css @@ -1,1199 +1,463 @@ -*{ - - margin:0; - - padding:0; - - box-sizing:border-box; - - font-family:"Poppins",sans-serif; - -} - - - -body{ - - background:#f5f5f5; - - overflow-x:hidden; - -} - - - -img{max-width:100%;display:block} - - +/* ============================================================ + marketing.css — Public site (Ledger system) + ============================================================ */ +body { background: var(--bg); overflow-x: hidden; } /* ================= NAVBAR ================= */ - - - -.navbar{ - width:100%; - position:absolute; - top:0; - left:0; - z-index:20; - backdrop-filter: blur(8px); - -webkit-backdrop-filter: blur(8px); - background: rgba(11, 37, 64, 0.15); - border-bottom: 1px solid rgba(255, 255, 255, 0.08); +.navbar { + width: 100%; + position: absolute; + top: 0; left: 0; + z-index: 100; + backdrop-filter: blur(10px); + -webkit-backdrop-filter: blur(10px); + background: rgba(23, 33, 29, 0.28); + border-bottom: 1px solid rgba(255,255,255,0.08); transition: background 0.3s ease; } - - - -.nav-container{ - - width:min(1200px,96%); - - margin:auto; - - padding:18px 12px; - - display:flex; - - align-items:center; - - justify-content:space-between; - -} - - - -#logos{ - - height:clamp(42px,5vw,64px); - - object-fit:contain; - -} - - - -/* NAV MENU */ - - - -.nav-menu{ - - display:flex; - - gap:32px; - - align-items:center; - -} - - - -.nav-menu a{ - - text-decoration:none; - - color:white; - - font-size:15px; - - font-weight:500; - -} - - - -.nav-menu a:hover{color:#FFD28C} - - - -/* login buttons */ - - - -.login-btn{ - - padding:10px 14px; - - background:var(--orange); - - color:#fff; - - border-radius:25px; - - border:none; - - font-weight:600; - - cursor:pointer; - -} - - - -.login-btn:hover{background:var(--orange-dark)} - - - -.login-btn:active{ - - transform:translateY(1px) scale(.94); - - box-shadow:0 2px 6px rgba(0,0,0,.12); - -} - - - -/* desktop vs mobile login visibility */ - - - -.desktop-login{display:inline-block;} - -.mobile-login{display:none;} - - - -.hamburger{ - - display:none; - - flex-direction:column; - - gap:4px; - - cursor:pointer; - -} - - - -.hamburger span{ - - width:26px; - - height:3px; - - background:white; - - border-radius:2px; - -} - - - -/* ================= HERO ================= */ - - - -.hero{ - - width:100%; - - min-height:580px; - - height:clamp(420px,60vh,620px); - - background: - - linear-gradient(rgba(0,0,0,.45),rgba(0,0,0,.45)), - - url("../images/home-background.jpg"); - - background-size:cover; - - background-position:center; - -} - - - -/* ================= BOTTOM BLOCK ================= */ - - - -.bottom-block{ - - width:min(900px,92%); - - margin:-360px auto 300px; - - background:#fff; - - padding:18px; - - border-radius:12px; - - display:flex; - - gap:22px; - - align-items:center; - - box-shadow:0 3px 12px rgba(0,0,0,.15); - -} - - - -.block-img{ - - width:120px; - - height:120px; - - border-radius:12px; - - background:url("/images/small.webp") center/cover; - -} - - - -.block-text h1{ - - font-size:clamp(18px,3vw,26px); - - font-weight:700; - -} - - - -.block-text p{color:#555} - - - -/* ================= ABOUT ================= */ - - - -.about-section{ - - width:min(1200px,92%); - - margin:60px auto; - - display:flex; - - gap:32px; - -} - - - -.about-section h2{ - - font-size:clamp(22px,3vw,30px); - - font-weight:700; - -} - - - -.about-section .text p{ - - line-height:1.8; - - font-size:15px; - - color:#333; - -} - - - -.about-section .note{ - - margin-top:12px; - - color:var(--orange); - - font-style:italic; - -} - - - -.about-section img{ - - width:100%; - - height:300px; - - border-radius:10px; - - object-fit:cover; - -} - - - -/* ================= SERVICES ================= */ - - - -.services-section{ - - width:min(1200px,92%); - - margin:50px auto; - - margin-bottom: 30px; - -} - - - -.services-section h2{ - - font-size:26px; - - font-weight:700; - - margin-bottom:22px; - - margin-top: 90px; - -} - - - -.services-grid{ - - display:flex; - - gap:22px; - - flex-wrap:wrap; - - justify-content:space-between; - - margin-bottom: 90px; - -} - - - -.service-card{ - - flex:1; - - min-width:260px; - - background:var(--accent); - - padding:22px; - - border-radius:20px; - - color:#fff; - - text-align:center; - - box-shadow:0 4px 12px rgba(0,0,0,.15); - - transition:.25s; - -} - - - -.service-card:hover{transform:translateY(-4px)} - - - -/* .service-card img{ - - align-items: center; - - width:110px; - - height:110px; - - border-radius:50%; - - object-fit:cover; - -} */ - - - -.service-card img{ - - display: block; - - margin: 0 auto; - - width:110px; - - height:110px; - - border-radius:50%; - - object-fit:cover; - -} - - - - - -.service-card h3{ - - margin-top:12px; - - font-size:15px; - - font-weight:600; - -} - - - -.service-card button{ - - margin-top:12px; - - padding:10px 18px; - - background:var(--orange); - - border:none; - - border-radius:20px; - - color:#fff; - - cursor:pointer; - -} - - - -.service-card button:active{ - - transform:translateY(1px) scale(.94); - - box-shadow:0 2px 6px rgba(0,0,0,.12); - -} - - - -/* ================= FOOTER ================= */ - - - -.footer{ - - background:var(--header-bg); - - margin-top:60px; - - border-top:4px solid var(--blue); - -} - - - -.footer-top{ - - width:min(1200px,92%); - - margin:auto; - - display:flex; - - justify-content:space-between; - - gap:40px; - - padding:40px 0; - - flex-wrap:wrap; - -} - - - -.footer-logo{width:220px} - - - -.footer-links{ - - display:flex; - - flex-direction:column; - - gap:10px; - -} - - - -.footer-links a{ - - text-decoration:none; - - color:var(--navy); - - font-size:16px; - - font-weight:500; - -} - - - -.footer-bottom{ - - text-align:center; - - padding:15px 0; - - background:var(--footer-bot); - -} - - - -/* ======================================================= - - RESPONSIVE BREAKPOINTS - - ======================================================= */ - - - -@media (max-width:992px){ - - - - .about-section{flex-direction:column;} - - - - .bottom-block{ - - width:96%; - - flex-direction:column; - - text-align:center; - - margin-top:-300px; - - } - - - - /* mobile nav dropdown */ - - - - .nav-menu{ - - display:none; - - position:absolute; - - top:76px; - - left:0; - - width:100%; - - background:var(--navy); - - padding:20px 0; - - flex-direction:column; - - gap:18px; - - align-items:center; - - } - - - - .nav-menu.active{display:flex;} - - - - /* desktop login hidden */ - - .desktop-login{display:none;} - - - - /* mobile login visible */ - - .mobile-login{ - - display:block; - - margin-top:6px; - - padding:10px 18px; - - border-radius:20px; - - background:var(--orange); - - color:#fff; - - font-weight:600; - - width:140px; - - text-align:center; - - } - - - - .hamburger{display:flex;} - -} - - - -@media (max-width:576px){ - - - - .service-card{min-width:100%} - - - - .service-card h3{font-size:14px;} - - - - .bottom-block{margin-bottom:240px;} - -} - - - -/* --- Page Specific Styles --- */ - - - -.page-hero h1, body.dark-theme .page-hero h1 { - font-size:clamp(22px, 4vw, 38px); - font-weight:700; - color: #ffffff !important; -} - -.page-hero p, body.dark-theme .page-hero p { - color: #ffffff !important; -} - - - -.about-wrapper{ - - width:min(1200px, 92%); - - margin:70px auto; - - display:flex; - - flex-direction:column; - - gap:40px; - -} - - - -.page-hero{ - - width:100%; - - min-height:580px; - - height:clamp(420px,60vh,620px); - - color:white; - - display:flex; - - align-items:center; - - justify-content:center; - - text-align:center; - - - - background: - - linear-gradient(rgba(56,54,54,.55),rgba(0,0,0,.55)), - - url("../images/Services-background-image.webp"); - - - - background-size:cover; - - background-position:center; - -} - - - -.about-block{ - - display:flex; - - gap:28px; - - background:#fff; - - padding:clamp(18px, 3vw, 32px); - - border-radius:14px; - - box-shadow:0 6px 16px rgba(0,0,0,.08); - - align-items:center; - -} - - - -.about-img{ - - width:380px; - - max-width:100%; - - height:260px; - - border-radius:14px; - - object-fit:cover; - -} - - - -.reverse{ - - flex-direction:row-reverse; - -} - - - -.page-hero{ - - width:100%; - - min-height:580px; - - height:clamp(420px, 60vh, 620px); - - color:white; - - display:flex; - - align-items:center; - - justify-content:center; - - text-align:center; - - - - background: - - linear-gradient(rgba(0,0,0,.55),rgba(0,0,0,.55)), - - url("../images/About-us-background-image.webp"); - - - - background-size:cover; - - background-position:center; - -} - - - -.page-hero h1{ - - font-size:clamp(22px,4vw,34px); - - font-weight:700; - -} - -.services-wrapper { - - width:min(1200px,92%); - - margin:70px auto; - - display:flex; - - flex-direction:column; - - gap:50px; - -} - - - -.service-block { - - display:flex; - - align-items:center; - - gap:32px; - - background:#fff; - - padding:clamp(20px,3vw,35px); - - border-radius:15px; - - box-shadow:0 4px 12px rgba(0,0,0,.12); - -} - - - -.service-block.reverse { - - flex-direction:row-reverse; - -} - - - -.service-text h2 { - - font-size:clamp(18px,2.6vw,22px); - - font-weight:700; - - margin-bottom:10px; - - color:var(--navy); - -} - - - -.service-text p { - - line-height:1.8; - - font-size:15px; - - color:#333; - -} - - - -.list-items li { - - margin-left:28px; - - color:#333; - -} - - - -.service-img, - -.service-img-bl-3 { - - width:380px; - - max-width:100%; - - height:260px; - - border-radius:14px; - - object-fit:cover; - -} - - -@media (max-width: 992px) { - .service-block, - .service-block.reverse { - flex-direction: column; - } - - .service-img, - .service-img-bl-3 { - width: 100%; - height: 240px; - } -} - - -.contact-section { - - width:min(1200px,92%); - - margin:70px auto; - - border:2px solid rgb(131,124,124); - - border-radius:15px; - - padding-top: 20px; - - padding-bottom: 20px; - -} - - - -.contact-title { - - font-size:28px; - - font-weight:700; - - margin-bottom:30px; - - text-align:center; - -} - - - -.contact-container { - - display:flex; - - padding:20px; - - width:70%; - - gap:35px; - - margin:auto; - -} - - - -.contact-info { - - flex:1; - - display:flex; - - flex-direction:column; - - gap:25px; - -} - - - -.info-box { - - padding:20px; - - border-radius:15px; - - color:white; - -} - - - -.usa { - - background:var(--accent); - -} - - - -.ind { - - background:var(--orange); - -} - - - -.contact-form { - - flex:1.3; - - background:white; - - padding:50px; - - border-radius:15px; - - box-shadow:0 3px 10px rgba(0,0,0,.15); - -} - - - -.form-row { - - display:flex; - gap:15px; -} - -.contact-form input, -.contact-form textarea { - width:100%; - padding:12px 15px; - border-radius:10px; - border:1px solid #ddd; - margin-bottom:15px; - font-family: inherit; -} - -.phone-row { - display:flex; - gap:10px; - border:1px solid #ddd; - padding:10px; - border-radius:10px; -} - -.contact-form button { - margin-top:20px; - padding:10px 25px; - background:var(--accent); - color:#fff; - border-radius:20px; - border:none; -} - -.email-box { - display:flex; - align-items:center; - margin-top:20px; - gap:10px; - font-size:14px; - color:#333; -} - -.email-box img { - width:20px; -} - -.phone img { - width:16px; -} - -/* --- Solid Navbar Modifier (for pages without hero images) --- */ .navbar-solid { position: relative !important; - background: var(--footer-bot) !important; + background: var(--ink) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; border-bottom: none !important; } -.navbar-solid .nav-menu a { - color: var(--navy) !important; -} -.navbar-solid .hamburger span { - background: var(--navy) !important; -} +.navbar-solid .nav-menu a { color: rgba(255,255,255,0.88) !important; } +.navbar-solid .hamburger span { background: #fff !important; } -/* Micro-animations */ +.nav-container { + width: min(1200px, 96%); + margin: auto; + padding: 18px 12px; + display: flex; + align-items: center; + justify-content: space-between; +} +#logos { height: clamp(34px, 4.4vw, 44px); object-fit: contain; } + +.nav-menu { display: flex; gap: 30px; align-items: center; } .nav-menu a { + text-decoration: none; + color: #fff; + font-size: 14.5px; + font-weight: 500; position: relative; + letter-spacing: 0.01em; } .nav-menu a::after { content: ''; position: absolute; - width: 0; - height: 2px; - bottom: -4px; - left: 0; - background-color: currentColor; - transition: width 0.3s ease; + width: 0; height: 1.5px; + bottom: -5px; left: 0; + background-color: var(--brass); + transition: width 0.25s ease; } -.nav-menu a:hover::after { - width: 100%; +.nav-menu a:hover { color: #fff; } +.nav-menu a:hover::after { width: 100%; } + +.login-btn { + padding: 10px 20px; + background: var(--brass); + color: #fff; + border-radius: var(--radius-sm); + border: none; + font-weight: 600; + font-size: 13.5px; + cursor: pointer; + transition: background var(--transition), transform 0.12s ease; +} +.login-btn:hover { background: var(--brass-dark); } +.login-btn:active { transform: translateY(1px) scale(0.96); } + +.desktop-login { display: inline-block; } +.mobile-login { display: none; } + +.hamburger { display: none; flex-direction: column; gap: 4px; cursor: pointer; } +.hamburger span { width: 24px; height: 2px; background: white; border-radius: 2px; } + +.theme-toggle { color: #fff; } +.navbar-solid .theme-toggle { color: rgba(255,255,255,0.88); } + +@media (max-width: 900px) { + .nav-menu { + display: none; + position: absolute; + top: 70px; left: 0; + width: 100%; + background: var(--ink); + padding: 18px 0 24px; + flex-direction: column; + gap: 16px; + align-items: center; + } + .nav-menu.active { display: flex; } + .desktop-login { display: none; } + .mobile-login { + display: block; + margin-top: 4px; + padding: 10px 22px; + border-radius: var(--radius-sm); + background: var(--brass); + color: #fff; + font-weight: 600; + width: 150px; + text-align: center; + } + .hamburger { display: flex; } } -.service-block { +/* ================= HERO (Home) ================= */ +.hero { + position: relative; + width: 100%; + min-height: calc(100vh - 0px); + display: flex; + align-items: center; + color: #fff; + background: + linear-gradient(180deg, rgba(15,20,17,0.55) 0%, rgba(15,20,17,0.78) 100%), + url("/images/home-background.jpg"); + background-size: cover; + background-position: center; + overflow: hidden; +} +.hero::before { + content: ''; + position: absolute; inset: 0; + background-image: var(--ruled); + opacity: 0.5; + pointer-events: none; +} +.hero-inner { + position: relative; + z-index: 2; + width: min(1200px, 92%); + margin: 120px auto 0; +} +.hero-eyebrow { + font-family: var(--font-mono); + font-size: 12.5px; + letter-spacing: 0.16em; + text-transform: uppercase; + color: #E4C98A; + display: inline-flex; + align-items: center; + gap: 10px; + margin-bottom: 22px; +} +.hero-eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--brass); } +.hero h1 { + font-size: clamp(34px, 6vw, 68px); + font-weight: 500; + line-height: 1.06; + color: #fff; + max-width: 780px; + letter-spacing: -0.01em; +} +.hero h1 em { font-style: italic; color: #E4C98A; font-weight: 500; } +.hero p.hero-sub { + font-size: clamp(16px, 1.6vw, 19px); + color: rgba(255,255,255,0.78); + max-width: 560px; + margin-top: 22px; + line-height: 1.7; +} +.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; } + +/* Ledger stat strip beneath hero — the signature element */ +.hero-stats { + position: relative; + z-index: 2; + width: min(1000px, 92%); + margin: 70px auto 0; + display: grid; + grid-template-columns: repeat(3, 1fr); + background: rgba(245, 242, 233, 0.97); + border-radius: var(--radius-lg) var(--radius-lg) 0 0; + box-shadow: var(--shadow-lg); + overflow: hidden; +} +.stat-block { + padding: 30px 22px; + text-align: center; + border-right: 1px solid var(--border); +} +.stat-block:last-child { border-right: none; } +.stat-block .stat-figure { + font-family: var(--font-mono); + font-size: clamp(24px, 3vw, 34px); + font-weight: 600; + color: var(--ink); + font-variant-numeric: tabular-nums; +} +.stat-block .stat-caption { + font-size: 11.5px; + color: var(--muted); + text-transform: uppercase; + letter-spacing: 0.06em; + margin-top: 6px; +} +@media (max-width: 700px) { + .hero-stats { grid-template-columns: 1fr; border-radius: var(--radius-md); } + .stat-block { border-right: none; border-bottom: 1px solid var(--border); } + .stat-block:last-child { border-bottom: none; } +} + +/* ================= SECTION SCAFFOLD ================= */ +.section { width: min(1200px, 92%); margin: 100px auto; } +.section-head { max-width: 640px; margin-bottom: 44px; } +.section-head h2 { margin-top: 14px; } + +/* ================= ABOUT (excerpt on Home) ================= */ +.about-grid { + display: grid; + grid-template-columns: 1.05fr 0.95fr; + gap: 56px; + align-items: center; +} +.about-copy p { margin-bottom: 16px; font-size: 15.5px; } +.about-copy .note { + font-family: var(--font-display); + font-style: italic; + color: var(--brass-dark); + font-size: 16px; + margin-top: 8px; +} +.about-media { position: relative; } +.about-media img { + width: 100%; height: 380px; object-fit: cover; + border-radius: var(--radius-lg); + box-shadow: var(--shadow-lg); +} +.about-media::after { + content: ''; + position: absolute; + top: -16px; left: -16px; + width: 90px; height: 90px; + border: 2px solid var(--brass); + border-radius: var(--radius-md); + z-index: -1; +} +@media (max-width: 900px) { + .about-grid { grid-template-columns: 1fr; } + .about-media img { height: 280px; } +} + +/* ================= SERVICES ================= */ +.services-grid { + display: grid; + grid-template-columns: repeat(3, 1fr); + gap: 22px; +} +.service-card { + background: var(--card); + border: 1px solid var(--border); + border-radius: var(--radius-md); + 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 .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); } +.service-card .service-body { padding: 24px; } +.service-card .service-label { + font-family: var(--font-mono); + font-size: 11px; + letter-spacing: 0.08em; + text-transform: uppercase; + color: var(--brass-dark); + display: block; + margin-bottom: 10px; +} +.service-card h3 { margin-bottom: 18px; line-height: 1.35; } +@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr; } } + +/* ================= CTA BAND ================= */ +.cta-band { + width: 100%; + background: var(--ink); + background-image: var(--ruled); + color: #fff; + padding: 70px 24px; + text-align: center; + margin-top: 100px; +} +.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; } + +/* ================= INTERIOR PAGE HERO (About / Services / Contact) ================= */ +.page-hero { + width: 100%; + min-height: 340px; + height: clamp(320px, 42vh, 440px); + color: white; + position: relative; + display: flex; + align-items: center; + justify-content: center; + text-align: center; + background: + linear-gradient(180deg, rgba(15,20,17,0.5) 0%, rgba(15,20,17,0.8) 100%), + var(--hero-img, url("/images/home-background.jpg")); + 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 h1, body.dark-theme .page-hero h1 { font-size: clamp(26px, 4.6vw, 44px); font-weight: 500; color: #fff !important; margin-top: 14px; } +.page-hero p, body.dark-theme .page-hero p { color: rgba(255,255,255,0.78) !important; margin-top: 12px; max-width: 520px; margin-left: auto; margin-right: auto; } + +/* ================= ABOUT PAGE ================= */ +.about-wrapper { width: min(1200px, 92%); margin: 90px auto; display: flex; flex-direction: column; gap: 46px; } +.about-block { + display: flex; gap: 32px; + background: var(--card); + padding: clamp(20px, 3vw, 36px); + border-radius: var(--radius-lg); + border: 1px solid var(--border); + box-shadow: var(--shadow-sm); + align-items: center; transition: transform 0.3s ease, box-shadow 0.3s ease; } -.service-block:hover { - transform: translateY(-6px); - box-shadow: 0 10px 25px rgba(0,0,0,0.12); +.about-block:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); } +.about-block.reverse { flex-direction: row-reverse; } +.about-img { width: 380px; max-width: 100%; height: 270px; border-radius: var(--radius-md); object-fit: cover; } +@media (max-width: 900px) { + .about-block, .about-block.reverse { flex-direction: column; } + .about-img { width: 100%; height: 240px; } } -/* --- Dark Theme Overrides for Marketing Pages --- */ -body.dark-theme .bottom-block, +/* ================= SERVICES PAGE ================= */ +.services-wrapper { width: min(1200px, 92%); margin: 90px auto; display: flex; flex-direction: column; gap: 54px; } +.service-block { + display: flex; align-items: center; gap: 36px; + background: var(--card); + border: 1px solid var(--border); + padding: clamp(22px, 3vw, 38px); + border-radius: var(--radius-lg); + box-shadow: var(--shadow-sm); + transition: transform 0.3s ease, box-shadow 0.3s ease; +} +.service-block:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); } +.service-block.reverse { flex-direction: row-reverse; } +.service-text .eyebrow { margin-bottom: 12px; } +.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; } +.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; } + .service-img, .service-img-bl-3 { width: 100%; height: 240px; } +} + +/* ================= CONTACT PAGE ================= */ +.contact-section { width: min(1200px, 92%); margin: 90px auto; } +.contact-title { text-align: center; margin-bottom: 12px; } +.contact-sub { text-align: center; color: var(--muted); max-width: 480px; margin: 0 auto 50px; } +.contact-container { display: flex; flex-wrap: wrap; gap: 32px; width: 100%; max-width: 1020px; margin: 0 auto; justify-content: center; } +.contact-info { flex: 1 1 300px; display: flex; flex-direction: column; gap: 24px; } +.info-box { + padding: 28px; border-radius: var(--radius-lg); + color: #fff; box-shadow: var(--shadow-md); + position: relative; overflow: hidden; +} +.info-box::before { content: ''; position: absolute; inset: 0; background-image: var(--ruled); opacity: 0.25; } +.info-box > * { position: relative; z-index: 1; } +.info-box.usa { background: var(--emerald); } +.info-box.ind { background: var(--brass); } +.info-box h3 { color: #fff; font-size: 20px; margin-bottom: 12px; } +.info-box p { color: rgba(255,255,255,0.88); line-height: 1.6; margin-bottom: 14px; } +.info-box .phone { display: flex; align-items: center; gap: 10px; font-weight: 500; color: #fff; } + +.contact-form { + flex: 1.25 1 380px; + background: var(--card); + border: 1px solid var(--border); + padding: clamp(28px, 4vw, 46px); + border-radius: var(--radius-lg); + box-shadow: var(--shadow-sm); +} +.form-row { display: flex; gap: 14px; } +.contact-form input, .contact-form textarea { + width: 100%; padding: 12px 15px; + border-radius: var(--radius-sm); + border: 1.5px solid var(--border); + margin-bottom: 15px; + font-family: inherit; font-size: 14px; + 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); +} +.contact-form button { margin-top: 6px; } +.email-box { display: flex; align-items: center; margin-top: 18px; gap: 10px; font-size: 14px; color: var(--muted); } + +/* ================= FOOTER ================= */ +.footer, .mkt-footer { + background: var(--ink); + background-image: var(--ruled); + margin-top: 60px; + border-top: 2px solid var(--brass); + color: rgba(255,255,255,0.72); +} +.footer-top, .mkt-footer-top { + width: min(1200px, 92%); + margin: auto; + display: flex; + justify-content: space-between; + gap: 44px; + padding: 56px 0 40px; + flex-wrap: wrap; +} +.footer-left { flex: 1 1 260px; } +.footer-logo, .mkt-footer-logo { width: 190px; opacity: 0.9; margin-bottom: 14px; } +.footer-left p { color: rgba(255,255,255,0.6); font-size: 14px; max-width: 280px; } + +.footer-links, .mkt-footer-links { display: flex; flex-direction: column; gap: 10px; } +.footer-links h4, .footer-contact h4, .mkt-footer-links h4 { + color: #E4C98A; 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); } +.footer-links a:hover, .mkt-footer-links a:hover { color: #fff; } +.footer-contact { display: flex; flex-direction: column; gap: 10px; } +.footer-contact p { color: rgba(255,255,255,0.75); font-size: 14px; } + +.footer-bottom, .mkt-footer-bottom { + text-align: center; padding: 16px; + background: rgba(0,0,0,0.18); + font-size: 12.5px; color: rgba(255,255,255,0.5); + font-family: var(--font-mono); +} + +/* ================= RESPONSIVE ================= */ +@media (max-width: 992px) { + .section { margin: 70px auto; } + .hero-inner { margin-top: 100px; } +} +@media (max-width: 576px) { + .hero-stats { margin-top: 46px; } +} + +/* ================= DARK THEME ================= */ body.dark-theme .about-block, body.dark-theme .service-block, body.dark-theme .contact-form, -body.dark-theme .service-card { - background: var(--card); +body.dark-theme .service-card { background: var(--card); border-color: var(--border); } +body.dark-theme .hero-stats { background: rgba(26,33,25,0.97); } +body.dark-theme .stat-block { border-color: var(--border); } +body.dark-theme .stat-block .stat-figure, body.dark-theme .stat-block .stat-caption { color: var(--navy); } +body.dark-theme p, body.dark-theme .service-text p, body.dark-theme .list-items li, +body.dark-theme .about-copy p, body.dark-theme .footer-left p { color: var(--muted) !important; } +body.dark-theme .hero p.hero-sub { color: rgba(255,255,255,0.78) !important; } +body.dark-theme h1, body.dark-theme h2, body.dark-theme h3 { color: var(--navy) !important; } +body.dark-theme .contact-form input, body.dark-theme .contact-form textarea { + background: var(--bg); color: var(--navy); border-color: var(--border); } -/* Text colors */ -body.dark-theme .service-text p, -body.dark-theme .list-items li, -body.dark-theme .email-box, -body.dark-theme p, -body.dark-theme .block-text p, -body.dark-theme .about-section .text p, -body.dark-theme .about-text p, -body.dark-theme .footer-bottom, -body.dark-theme .footer-links a { - color: var(--muted) !important; +body.dark-theme .navbar-solid { background: var(--ink) !important; } +body.dark-theme .footer, body.dark-theme .mkt-footer, body.dark-theme .cta-band { + background: #182018 !important; } -/* Headers */ -body.dark-theme h1, -body.dark-theme h2, -body.dark-theme h3, -body.dark-theme h4, -body.dark-theme .block-text h1, -body.dark-theme .about-section h2, -body.dark-theme .services-section h2, -body.dark-theme .contact-title, -body.dark-theme .service-card h3 { - color: var(--navy) !important; -} -body.dark-theme .contact-form input, -body.dark-theme .contact-form textarea, -body.dark-theme .phone-row { - background: var(--bg); - color: var(--navy); - border-color: var(--border); -} -body.dark-theme .contact-section { - border-color: var(--border); -} -body.dark-theme .navbar-solid { - background: var(--card) !important; -} -@media (max-width:992px) { - body.dark-theme #navMenu, - body.dark-theme .nav-menu { - background-color: #262a34 !important; - } -} - diff --git a/frontend/src/components/AdminChatbot.jsx b/frontend/src/components/AdminChatbot.jsx index 4844610..3c09a02 100644 --- a/frontend/src/components/AdminChatbot.jsx +++ b/frontend/src/components/AdminChatbot.jsx @@ -6,77 +6,113 @@ const FAQ_DATA = { "Document Review": [ { q: "How do I review a document?", a: "From the Admin Dashboard, click on any user. You'll see their uploaded documents. Click Approve or Reject and leave a note if needed." }, { q: "What happens when I reject a document?", a: "The document's status changes to Rejected and the user is notified. They will see your review note and can upload a corrected version to replace it." }, - { q: "How do I upload admin documents for a user?", a: "Go to the user's detail page and scroll down to Admin Documents. You can upload tax returns, reports, and other finalized forms there. These will be visible to the user." } + { q: "How do I upload admin documents for a user?", a: "Go to the user's detail page and scroll down to Admin Documents. You can upload tax returns, reports, and other finalized forms there." } ], "User Management": [ - { q: "How do I see user details?", a: "Simply click on any user in the Admin Dashboard table. This will take you to their detailed view where you can see their info and all their documents." }, - { q: "Can I add another admin?", a: "Currently, Super Admins can only be created via the backend script `create_super_admin.py` for security reasons." } + { q: "How do I see user details?", a: "Click on any user in the Admin Dashboard table to open their detailed view — documents, audit trail, and filing timeline." }, + { q: "Can I add another admin?", a: "Super Admins can only be created via the backend script `create_super_admin.py` for security reasons." } ], "Notifications": [ - { q: "How are users notified?", a: "Users receive automated emails when they sign up, when their documents are ready for review, and when you approve or reject their documents." } + { q: "How are users notified?", a: "Users receive automated emails on signup, document submission, and when you approve or reject their documents." } ] }; const CATEGORY_ICONS = { "Document Review": "📑", "User Management": "👥", - "Notifications": "🔔" + "Notifications": "🔔", }; const formatMessage = (text) => { if (!text) return ''; - let html = text; - html = html.replace(/\*\*(.*?)\*\*/g, '$1'); - html = html.replace(/\*(.*?)\*/g, '$1'); - html = html.replace(/\[([^\]]+)\]\(([^)]+)\)/g, '$1'); - html = html.replace(/\n/g, '
'); - return html; + return text + .replace(/\*\*(.*?)\*\*/g, '$1') + .replace(/\*(.*?)\*/g, '$1') + .replace(/\[([^\]]+)\]\(([^)]+)\)/g, '$1') + .replace(/\n/g, '
'); }; export default function AdminChatbot() { const { user, authFetch } = useAuth(); const location = useLocation(); - const [isOpen, setIsOpen] = useState(false); - const [messages, setMessages] = useState([]); - const [view, setView] = useState('menu'); + const [isOpen, setIsOpen] = useState(false); + const [messages, setMessages] = useState([]); + const [view, setView] = useState('menu'); // menu | category | chat const [activeCategory, setActiveCategory] = useState(null); - const [inputText, setInputText] = useState(""); - const [isTyping, setIsTyping] = useState(false); + const [inputText, setInputText] = useState(""); + const [menuInput, setMenuInput] = useState(""); // free-text from menu + const [isTyping, setIsTyping] = useState(false); const chatEndRef = useRef(null); - // Close chatbot when navigating + useEffect(() => { setIsOpen(false); }, [location.pathname]); useEffect(() => { - setIsOpen(false); - }, [location.pathname]); - - useEffect(() => { - if (chatEndRef.current) { - chatEndRef.current.scrollIntoView({ behavior: 'smooth' }); - } + chatEndRef.current?.scrollIntoView({ behavior: 'smooth' }); }, [messages, view]); - const toggleChat = () => setIsOpen(!isOpen); + const toggleChat = () => setIsOpen(o => !o); + /* ── quick-action: system overview ── */ const handleAdminStatusCheck = async () => { - setMessages([...messages, { type: 'user', text: 'Give me a system overview.' }]); + setMessages(prev => [...prev, { type: 'user', text: 'Give me a system overview.' }]); setView('chat'); - try { const res = await authFetch('/api/chatbot/admin-status'); if (res.ok) { const data = await res.json(); setMessages(prev => [...prev, { type: 'bot', text: data.message }]); } else { - setMessages(prev => [...prev, { type: 'bot', text: 'Sorry, I could not fetch the system status right now.' }]); + setMessages(prev => [...prev, { type: 'bot', text: 'Could not fetch system status right now.' }]); } - } catch (err) { - setMessages(prev => [...prev, { type: 'bot', text: 'Network error occurred.' }]); + } catch { + setMessages(prev => [...prev, { type: 'bot', text: 'Network error.' }]); } }; - const selectCategory = (cat) => { - setActiveCategory(cat); - setView('category'); + /* ── send a message to /ask ── */ + const sendMessage = async (text, existingMessages) => { + const userMsg = { type: 'user', role: 'user', text }; + const allMessages = [...(existingMessages ?? messages), userMsg]; + setMessages(allMessages); + setInputText(""); + setMenuInput(""); + setView('chat'); + setIsTyping(true); + + try { + const res = await authFetch('/api/chatbot/ask', { + method: 'POST', + headers: { 'Content-Type': 'application/json' }, + body: JSON.stringify({ + messages: allMessages.map(m => ({ + role: m.role || (m.type === 'bot' ? 'assistant' : 'user'), + content: m.text, + reasoning_details: null, + })), + }), + }); + if (res.ok) { + const data = await res.json(); + setMessages(prev => [...prev, { type: 'bot', role: 'assistant', text: data.content || "Sorry, I couldn't understand that." }]); + } else { + setMessages(prev => [...prev, { type: 'bot', role: 'assistant', text: 'Having trouble connecting. Please try again.' }]); + } + } catch { + setMessages(prev => [...prev, { type: 'bot', role: 'assistant', text: 'Network error. Please try again.' }]); + } finally { + setIsTyping(false); + } + }; + + const handleSendMessage = async (e) => { + e.preventDefault(); + if (!inputText.trim()) return; + await sendMessage(inputText.trim()); + }; + + const handleMenuAsk = async (e) => { + e.preventDefault(); + if (!menuInput.trim()) return; + await sendMessage(menuInput.trim(), []); }; const askFaq = (faq) => { @@ -84,139 +120,128 @@ export default function AdminChatbot() { setView('chat'); }; - const resetToMenu = () => { - setView('menu'); - }; - - const handleSendMessage = async (e) => { - e.preventDefault(); - if (!inputText.trim()) return; - - const userMessage = { type: 'user', role: 'user', text: inputText.trim() }; - const currentMessages = [...messages, userMessage]; - setMessages(currentMessages); - setInputText(""); - setView('chat'); - setIsTyping(true); - - try { - // Convert messages to format expected by backend - const backendMessages = currentMessages.map(m => ({ - role: m.role || (m.type === 'bot' ? 'assistant' : 'user'), - content: m.text, - reasoning_details: m.reasoning_details || null - })); - - const res = await authFetch('/api/chatbot/ask', { - method: 'POST', - headers: { 'Content-Type': 'application/json' }, - body: JSON.stringify({ messages: backendMessages }) - }); - - if (res.ok) { - const data = await res.json(); - const contentText = data.content || "Sorry, I couldn't understand that."; - const reasoning = data.reasoning_details; - setMessages(prev => [...prev, { type: 'bot', role: 'assistant', text: contentText, reasoning_details: reasoning }]); - } else { - setMessages(prev => [...prev, { type: 'bot', role: 'assistant', text: 'Sorry, I am having trouble connecting to the server.' }]); - } - } catch (err) { - setMessages(prev => [...prev, { type: 'bot', role: 'assistant', text: 'Network error occurred. Please try again.' }]); - } finally { - setIsTyping(false); - } - }; - if (!user || (user.role !== 'admin' && user.role !== 'super_admin') || !location.pathname.startsWith('/admin')) { - return null; + return null; } return ( <> - {isOpen && (
-
+ {/* header */} +
🤖

Admin Assistant

- System Insights & Help + Live system insights
+ {/* messages area */}
+ + {/* ── MENU VIEW ── */} {view === 'menu' && ( <>
auto_awesome -

How can we help you today?

+

What do you need today?

- + + + + {Object.keys(FAQ_DATA).map(cat => ( - ))} )} + {/* ── CATEGORY VIEW ── */} {view === 'category' && ( <> - -

{activeCategory} Questions

+ +

{activeCategory}

{FAQ_DATA[activeCategory].map((faq, i) => ( - ))} )} + {/* ── CHAT VIEW ── */} {view === 'chat' && ( <> - {messages.map((msg, i) => ( -
))} {isTyping && (
- Admin Assistant is typing... + Admin Assistant is typing…
)}
)}
- + + {/* footer input — always shown in chat view */}
{view === 'chat' ? (
- setInputText(e.target.value)} - placeholder="Ask a question..." + onChange={e => setInputText(e.target.value)} + placeholder="Ask a question…" style={{ flex: 1, padding: '8px 12px', borderRadius: 'var(--radius-pill)', border: '1px solid var(--border)', background: 'var(--card)', color: 'var(--navy)' }} /> -
) : ( -

Admin tools & shortcuts

+

Admin tools & shortcuts

)}
diff --git a/frontend/src/components/Chatbot.jsx b/frontend/src/components/Chatbot.jsx index 5841c3e..05cf4ab 100644 --- a/frontend/src/components/Chatbot.jsx +++ b/frontend/src/components/Chatbot.jsx @@ -48,6 +48,7 @@ export default function Chatbot() { const [view, setView] = useState('menu'); // menu, category, chat const [activeCategory, setActiveCategory] = useState(null); const [inputText, setInputText] = useState(""); + const [menuInput, setMenuInput] = useState(""); // free-text from menu const [isTyping, setIsTyping] = useState(false); const chatEndRef = useRef(null); @@ -113,30 +114,51 @@ export default function Chatbot() { setIsTyping(true); try { - // Convert messages to format expected by backend const backendMessages = currentMessages.map(m => ({ role: m.role || (m.type === 'bot' ? 'assistant' : 'user'), content: m.text, - reasoning_details: m.reasoning_details || null + reasoning_details: null, })); - const res = await authFetch('/api/chatbot/ask', { method: 'POST', headers: { 'Content-Type': 'application/json' }, - body: JSON.stringify({ messages: backendMessages }) + body: JSON.stringify({ messages: backendMessages }), }); - if (res.ok) { const data = await res.json(); - // Extract content and optional reasoning details - const contentText = data.content || "Sorry, I couldn't understand that."; - const reasoning = data.reasoning_details; - setMessages(prev => [...prev, { type: 'bot', role: 'assistant', text: contentText, reasoning_details: reasoning }]); + setMessages(prev => [...prev, { type: 'bot', role: 'assistant', text: data.content || "Sorry, I couldn't understand that." }]); } else { - setMessages(prev => [...prev, { type: 'bot', role: 'assistant', text: 'Sorry, I am having trouble connecting to the server.' }]); + setMessages(prev => [...prev, { type: 'bot', role: 'assistant', text: 'Having trouble connecting. Please try again.' }]); } - } catch (err) { - setMessages(prev => [...prev, { type: 'bot', role: 'assistant', text: 'Network error occurred. Please try again.' }]); + } catch { + setMessages(prev => [...prev, { type: 'bot', role: 'assistant', text: 'Network error. Please try again.' }]); + } finally { + setIsTyping(false); + } + }; + + const handleMenuAsk = async (e) => { + e.preventDefault(); + if (!menuInput.trim()) return; + const userMessage = { type: 'user', role: 'user', text: menuInput.trim() }; + setMessages([userMessage]); + setMenuInput(""); + setView('chat'); + setIsTyping(true); + try { + const res = await authFetch('/api/chatbot/ask', { + method: 'POST', + headers: { 'Content-Type': 'application/json' }, + body: JSON.stringify({ messages: [{ role: 'user', content: userMessage.text, reasoning_details: null }] }), + }); + if (res.ok) { + const data = await res.json(); + setMessages(prev => [...prev, { type: 'bot', role: 'assistant', text: data.content || "Sorry, I couldn't understand that." }]); + } else { + setMessages(prev => [...prev, { type: 'bot', role: 'assistant', text: 'Having trouble connecting. Please try again.' }]); + } + } catch { + setMessages(prev => [...prev, { type: 'bot', role: 'assistant', text: 'Network error. Please try again.' }]); } finally { setIsTyping(false); } @@ -171,6 +193,21 @@ export default function Chatbot() { auto_awesome

How can we help you today?

+ + {/* free-text ask from menu */} +
+ setMenuInput(e.target.value)} + placeholder="Ask anything…" + style={{ flex: 1, padding: '8px 12px', borderRadius: 'var(--radius-pill)', border: '1px solid var(--border)', background: 'var(--card)', color: 'var(--navy)', fontSize: '13px' }} + /> + +
+ {user && ( diff --git a/frontend/src/components/ExpandableSummaryBlock.jsx b/frontend/src/components/ExpandableSummaryBlock.jsx new file mode 100644 index 0000000..719431d --- /dev/null +++ b/frontend/src/components/ExpandableSummaryBlock.jsx @@ -0,0 +1,63 @@ +import { useState } from 'react'; +import ExpandableValue from './ExpandableValue'; + +export default function ExpandableSummaryBlock({ extractedData }) { + const [expanded, setExpanded] = useState(false); + + const entries = Object.entries(extractedData); + if (entries.length === 0) { + return ( +
+ Blank form / No user data found. +
+ ); + } + + const showToggle = entries.length > 3; + const entriesToShow = expanded ? entries : entries.slice(0, 3); + + return ( +
+ {entriesToShow.map(([key, value]) => ( +
+ {/* Field label — uppercase, bold, navy */} +
+ {key} +
+ {/* Field value — bold navy */} +
+ +
+
+ ))} + + {showToggle && ( + + )} +
+ ); +} diff --git a/frontend/src/components/ExpandableValue.jsx b/frontend/src/components/ExpandableValue.jsx new file mode 100644 index 0000000..52f1e74 --- /dev/null +++ b/frontend/src/components/ExpandableValue.jsx @@ -0,0 +1,75 @@ +import { useState } from 'react'; + +export default function ExpandableValue({ value, isArray }) { + const [expanded, setExpanded] = useState(false); + + if (isArray) { + if (!value || value.length === 0) return —; + + const showToggle = value.length > 3; + const itemsToShow = expanded ? value : value.slice(0, 3); + + return ( +
+
    + {itemsToShow.map((item, idx) => ( +
  • {item}
  • + ))} +
+ {showToggle && ( + + )} +
+ ); + } + + const text = value !== null && value !== undefined ? String(value) : "—"; + const maxLength = 400; + const isLong = text.length > maxLength; + + if (!isLong) { + return {text}; + } + + return ( +
+ + {expanded ? text : `${text.slice(0, maxLength)}...`} + + +
+ ); +} diff --git a/frontend/src/components/Footer.jsx b/frontend/src/components/Footer.jsx index 1b0ecc4..23016c3 100644 --- a/frontend/src/components/Footer.jsx +++ b/frontend/src/components/Footer.jsx @@ -5,12 +5,12 @@ export default function Footer() {