feat: modernize UI/UX to 2026 US fintech standard, add violet AI accents, and strengthen security controls

- Modern 2026 US fintech visual redesign across User & Admin Dashboards, Marketing pages, Auth screens, and Layouts
- Introduced violet accent (#6D28D9 / #8B5CF6) strictly dedicated to AI capabilities (AI Daily Briefing, AI Assistant, Chatbot FAB & Chat UI)
- Motion system respecting prefers-reduced-motion and (hover: none) with GPU-accelerated transforms & opacities
- High-resolution dark glass monogram logo mark with upward growth motif
- Backend security enhancements: strict MIME-type sniffing validation, admin assignment scoping assertions, safe document deletion handling
- Nginx strict Content-Security-Policy (CSP) headers and favicon routing
This commit is contained in:
Atharv1705
2026-11-03 14:07:35 +05:30
parent b7c935df5a
commit 5703fbb27f
53 changed files with 8495 additions and 1813 deletions
+150 -42
View File
@@ -38,32 +38,52 @@
.app-footer img { height: 28px; }
.app-footer small { color: var(--muted); font-size: 12px; }
/* ── Auth Layout — Split Card ────────────────────────────── */
/* ── Auth Layout — Artha Split Editorial ────────────────────────────── */
.auth-shell {
min-height: 100vh;
display: flex;
align-items: stretch;
background: #fff;
background: var(--paper);
}
.auth-brand {
width: 42%;
min-width: 280px;
min-width: 320px;
position: relative;
background: #17211D;
background-image: var(--ruled), linear-gradient(155deg, #17211D 0%, var(--emerald-dark) 130%);
background: var(--ink);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 48px 40px;
color: #fff;
gap: 22px;
gap: 24px;
overflow: hidden;
border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.auth-brand::before {
content: '';
position: absolute;
top: -80px;
left: -80px;
width: 240px;
height: 240px;
background: radial-gradient(circle, rgba(29, 78, 216, 0.45) 0%, transparent 70%);
border-radius: 50%;
pointer-events: none;
}
.auth-brand .brand-logo { height: 48px; opacity: 0.95; }
.auth-brand h2 { font-family: var(--font-display); color: #fff; font-size: clamp(20px,2.5vw,27px); text-align: center; margin: 0; font-weight: 500; }
.auth-brand p { color: rgba(255,255,255,0.68); font-size: 14px; text-align: center; line-height: 1.8; margin: 0; max-width: 320px; }
.auth-brand .brand-divider { width: 40px; height: 2px; background: var(--brass); border-radius: 2px; }
.auth-brand .auth-brand-logo-img {
width: 58px;
height: 58px;
border-radius: 12px;
object-fit: cover;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
border: 1px solid rgba(255, 255, 255, 0.2);
display: block;
}
.auth-brand h2 { font-family: var(--font-display, 'Playfair Display', serif); color: #fff; font-size: clamp(22px,2.6vw,30px); text-align: center; margin: 0; font-weight: 600; }
.auth-brand p { color: rgba(255,255,255,0.72); font-size: 14.5px; text-align: center; line-height: 1.7; margin: 0; max-width: 340px; }
.auth-brand .brand-divider { width: 44px; height: 3px; background: var(--brass); border-radius: 2px; }
.auth-form-side {
flex: 1;
@@ -71,13 +91,27 @@
align-items: center;
justify-content: center;
padding: clamp(32px, 5vw, 64px) clamp(24px, 6vw, 80px);
background: #fff;
background: var(--paper);
overflow-y: auto;
}
.auth-box { width: 100%; max-width: 420px; }
.auth-box h1 { font-size: clamp(21px,2.5vw,27px); margin-bottom: 6px; }
.auth-box .auth-subtitle { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.auth-links { margin-top: 20px; font-size: 13px; color: var(--muted); text-align: center; line-height: 2; }
.auth-box {
width: 100%;
max-width: 440px;
background: #FFFFFF;
border: 1px solid var(--border);
border-radius: 24px;
padding: clamp(32px, 4vw, 44px);
box-shadow: 0 10px 32px -4px rgba(10, 37, 64, 0.05);
}
.auth-box h1 {
font-family: var(--font-display, 'Playfair Display', serif);
font-size: clamp(24px,2.6vw,30px);
color: var(--ink);
font-weight: 600;
margin-bottom: 6px;
}
.auth-box .auth-subtitle { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.auth-links { margin-top: 24px; font-size: 13.5px; color: var(--muted); text-align: center; line-height: 2; }
@@ -94,6 +128,7 @@
}
.auth-brand p, .auth-brand .brand-divider { display: none; }
.auth-brand .brand-logo { height: 30px; }
.auth-brand .auth-brand-logo-img { width: 36px; height: 36px; border-radius: 8px; }
.auth-brand h2 { font-size: 15px; margin: 0; }
.auth-form-side { padding: 28px 20px; }
}
@@ -184,7 +219,7 @@
transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
position: relative;
}
.user-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #cfc7ad; }
.user-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(29, 78, 216, 0.3); }
.click-layer { position: absolute; inset: 0; z-index: 0; }
.user-top { display: flex; align-items: center; gap: 14px; min-width: 0; }
.user-avatar {
@@ -225,7 +260,7 @@
transition: border-color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);
margin-bottom: 10px;
}
.doc-row:hover { border-color: #cfc7ad; background: #fff; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(23,33,29,0.06); }
.doc-row:hover { border-color: var(--brass); background: #fff; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(10,37,64,0.06); }
.doc-row-left { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.doc-row-name { font-weight: 600; font-size: 13px; color: var(--ink); word-break: break-word; }
.doc-row-type { font-size: 12px; color: var(--muted); }
@@ -233,7 +268,7 @@
/* ── Drop Zone ───────────────────────────────────────────── */
.drop-zone {
border: 2px dashed #cfc7ad;
border: 2px dashed var(--border);
border-radius: var(--radius-md);
padding: 36px 24px;
text-align: center;
@@ -242,9 +277,9 @@
cursor: pointer;
}
.drop-zone:hover, .drop-zone.drag-over {
border-color: var(--emerald);
background: var(--emerald-light);
color: var(--emerald);
border-color: var(--brass);
background: var(--brass-light);
color: var(--brass);
}
.drop-zone .drop-icon { font-size: 34px; margin-bottom: 10px; }
.drop-zone .drop-title { font-weight: 600; font-size: 15px; color: var(--ink); }
@@ -262,7 +297,7 @@
transition: border-color var(--transition), box-shadow var(--transition);
max-width: 360px;
}
.search-bar:focus-within { border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(31,93,70,0.10); }
.search-bar:focus-within { border-color: var(--brass); box-shadow: 0 0 0 3px rgba(29,78,216,0.10); }
.search-bar input { border: none; outline: none; font-family: inherit; font-size: 14px; width: 100%; background: transparent; }
.search-bar .search-icon { color: var(--muted); font-size: 16px; flex-shrink: 0; }
@@ -320,15 +355,15 @@
gap: 16px;
padding: 16px 20px;
border-radius: var(--radius-md);
background: var(--emerald-light);
border: 1px solid rgba(31,93,70,0.2);
background: var(--brass-light);
border: 1px solid rgba(29, 78, 216, 0.2);
margin-bottom: 24px;
}
.engagement-banner .banner-icon { font-size: 26px; flex-shrink: 0; color: var(--emerald); }
.engagement-banner .banner-icon { font-size: 26px; flex-shrink: 0; color: var(--brass); }
.engagement-banner .banner-text { flex: 1; }
.engagement-banner .banner-text strong { display: block; font-size: 14px; color: var(--ink); }
.engagement-banner .banner-text span { font-size: 13px; color: var(--muted); }
.engagement-banner.acknowledged { background: var(--success-bg); border-color: rgba(31,93,70,0.25); }
.engagement-banner.acknowledged { background: var(--success-bg); border-color: rgba(4, 120, 87, 0.25); }
/* ── Empty State ─────────────────────────────────────────── */
.empty-state {
@@ -365,15 +400,15 @@
/* ── JS-extracted components (upload/review) ─────────────── */
.doc-row-wrapper { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.btn-approve { background: var(--success-bg); color: var(--success); border: 1px solid rgba(31,93,70,0.3); border-radius: var(--radius-sm); }
.btn-reject { background: var(--error-bg); color: var(--error); border: 1px solid rgba(166,58,58,0.3); border-radius: var(--radius-sm); }
.btn-approve { background: var(--success-bg); color: var(--success); border: 1px solid rgba(4, 120, 87, 0.3); border-radius: var(--radius-sm); }
.btn-reject { background: var(--error-bg); color: var(--error); border: 1px solid rgba(220, 38, 38, 0.3); border-radius: var(--radius-sm); }
.reject-box { display: none; margin-top: 10px; }
.reject-textarea { width: 100%; padding: 10px; border-radius: var(--radius-sm); border: 1.5px solid var(--border); font-family: inherit; font-size: 13px; resize: vertical; }
.admin-doc-actions { display: flex; gap: 8px; flex-shrink: 0; }
.admin-docs-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-docs-td { padding: 10px 12px; color: #3E463F; }
.admin-docs-td { padding: 10px 12px; color: var(--muted); }
.admin-docs-th { padding: 10px 12px; color: var(--muted); font-weight: 600; text-align: left; border-bottom: 2px solid var(--border); }
.btn-download-pill { background: var(--emerald); color: #fff; border: none; border-radius: var(--radius-sm); font-weight: 500; }
.btn-download-pill { background: var(--brass); color: #fff; border: none; border-radius: var(--radius-sm); font-weight: 500; }
.btn-download-pill:hover { opacity: 0.9; }
.btn-upload-pill { background: var(--brass); color: #fff; border: none; border-radius: var(--radius-sm); font-weight: 500; cursor: pointer; padding: 8px 16px; display: inline-flex; align-items: center; gap: 8px; }
.btn-upload-pill:hover { opacity: 0.9; }
@@ -745,8 +780,49 @@
min-width: 0; /* prevents flex child from overflowing */
}
.doc-review-sidebar {
flex: 0 0 240px; /* fixed 240px sidebar, doesn't shrink */
width: 240px;
flex: 0 0 290px;
width: 290px;
min-width: 260px;
}
.doc-review-sidebar .timeline-sidebar-card {
background: #FFFFFF;
border: 1px solid var(--border);
border-radius: 16px;
padding: 20px;
box-shadow: 0 4px 16px rgba(10, 37, 64, 0.04);
display: flex;
flex-direction: column;
gap: 14px;
}
.doc-review-sidebar .timeline-control {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
padding: 8px 14px;
background: var(--paper);
border: 1px solid var(--border);
border-radius: 12px;
}
.doc-review-sidebar .timeline-control .tl-btn {
width: 32px;
height: 32px;
border-radius: 8px;
border: 1px solid var(--border);
background: #FFFFFF;
color: var(--ink);
font-size: 16px;
font-weight: 700;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.18s ease;
}
.doc-review-sidebar .timeline-control .tl-btn:hover {
background: var(--brass);
color: #FFFFFF;
border-color: var(--brass);
}
@media (max-width: 768px) {
@@ -759,9 +835,7 @@
order: -1; /* show Filing Timeline ABOVE the doc list on mobile */
}
.doc-review-sidebar .card-flat {
flex-direction: row !important;
align-items: center;
flex-wrap: wrap;
flex-direction: column;
gap: 12px;
}
.doc-review-sidebar h3 {
@@ -769,11 +843,11 @@
margin-bottom: 0 !important;
}
.doc-review-sidebar .timeline-control {
flex: 1;
width: 100%;
}
.doc-review-sidebar .btn {
flex: 1;
min-width: 180px;
.doc-review-sidebar .btn,
.doc-review-sidebar .artha-pill-btn {
width: 100%;
}
}
@@ -845,17 +919,50 @@
.doc-count-chip {
display: inline-flex;
align-items: center;
gap: 4px;
gap: 6px;
font-size: 12px;
font-family: var(--font-mono);
background: var(--paper);
border: 1px solid var(--border);
border-radius: var(--radius-xs);
padding: 3px 8px;
border-radius: 9999px;
padding: 4px 10px;
white-space: nowrap;
}
/* ── Admin User Detail Bar ────────────────────────────── */
.aud-user-bar {
background: #FFFFFF !important;
border: 1px solid var(--border) !important;
border-radius: 20px !important;
padding: clamp(20px, 3vw, 28px) !important;
box-shadow: 0 4px 20px -2px rgba(10, 37, 64, 0.04) !important;
}
.aud-bar-inner {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 24px;
flex-wrap: wrap;
}
.aud-bar-left {
display: flex;
align-items: flex-start;
gap: 16px;
min-width: 280px;
flex: 1;
}
.aud-bar-actions {
display: flex;
align-items: center;
gap: 10px;
flex-wrap: wrap;
justify-content: flex-end;
}
.aud-year-picker {
display: flex;
align-items: center;
gap: 6px;
}
/* StatusChip */
.status-chip-container {
@@ -869,3 +976,4 @@
color: var(--error);
font-style: italic;
}