Initial commit
This commit is contained in:
@@ -0,0 +1,91 @@
|
||||
/* ============================================================
|
||||
animations.css — Micro-interactions & transitions
|
||||
============================================================ */
|
||||
|
||||
/* ── Page transition ─────────────────────────────────────── */
|
||||
.page-enter {
|
||||
animation: fadeIn 0.3s 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);
|
||||
}
|
||||
|
||||
/* ── 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); }
|
||||
}
|
||||
.pulse { animation: pulse-orange 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;
|
||||
}
|
||||
|
||||
/* ── 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; }
|
||||
|
||||
/* ── Checkbox animate ────────────────────────────────────── */
|
||||
input[type=checkbox] {
|
||||
accent-color: var(--blue);
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* ── Focus ring ──────────────────────────────────────────── */
|
||||
:focus-visible {
|
||||
outline: 2px solid var(--blue);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
/* ── Smooth link underline ───────────────────────────────── */
|
||||
.fancy-link {
|
||||
position: relative;
|
||||
text-decoration: none;
|
||||
color: var(--blue);
|
||||
}
|
||||
.fancy-link::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: -1px; left: 0;
|
||||
width: 0; height: 1.5px;
|
||||
background: var(--blue);
|
||||
transition: width 0.2s ease;
|
||||
}
|
||||
.fancy-link:hover::after { width: 100%; }
|
||||
@@ -0,0 +1,282 @@
|
||||
/* ============================================================
|
||||
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');
|
||||
|
||||
/* ── 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;
|
||||
|
||||
--radius-xs: 6px;
|
||||
--radius-sm: 10px;
|
||||
--radius-md: 14px;
|
||||
--radius-lg: 20px;
|
||||
--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);
|
||||
|
||||
--transition: 0.2s ease;
|
||||
}
|
||||
|
||||
/* ── Reset ───────────────────────────────────────────────── */
|
||||
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
html { font-size: 16px; scroll-behavior: smooth; }
|
||||
body {
|
||||
font-family: "Poppins", system-ui, sans-serif;
|
||||
background: var(--bg);
|
||||
color: #222;
|
||||
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); }
|
||||
.material-symbols-outlined { font-size: inherit; vertical-align: middle; line-height: 1; font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
|
||||
|
||||
/* ── 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; }
|
||||
small, .text-sm { font-size: 13px; color: var(--muted); }
|
||||
.text-muted { color: var(--muted); }
|
||||
|
||||
/* ── Card ────────────────────────────────────────────────── */
|
||||
.card {
|
||||
background: var(--card);
|
||||
border-radius: var(--radius-md);
|
||||
box-shadow: var(--shadow-sm);
|
||||
border: 1px solid var(--border);
|
||||
padding: clamp(20px, 4vw, 32px);
|
||||
transition: box-shadow var(--transition);
|
||||
}
|
||||
.card:hover { box-shadow: var(--shadow-md); }
|
||||
.card-flat { background: var(--card); border-radius: var(--radius-md); border: 1px solid var(--border); padding: clamp(16px, 3vw, 24px); }
|
||||
|
||||
/* ── Buttons ─────────────────────────────────────────────── */
|
||||
.btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 6px;
|
||||
padding: 11px 22px;
|
||||
font-family: inherit;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
border: none;
|
||||
border-radius: var(--radius-pill);
|
||||
cursor: pointer;
|
||||
transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
|
||||
white-space: nowrap;
|
||||
}
|
||||
.btn:active { transform: translateY(1px) scale(0.97); }
|
||||
.btn:disabled { opacity: 0.55; 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-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-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-danger { background: #ff4d4d; color: #fff; }
|
||||
.btn-danger:hover:not(:disabled) { background: #e03c3c; box-shadow: 0 4px 12px rgba(255,77,77,0.3); }
|
||||
|
||||
.btn-sm { padding: 7px 16px; font-size: 13px; }
|
||||
.btn-xs { padding: 5px 12px; font-size: 12px; }
|
||||
.btn-icon { padding: 9px; border-radius: var(--radius-sm); }
|
||||
|
||||
/* ── Form Inputs ─────────────────────────────────────────── */
|
||||
.input, .select-input {
|
||||
width: 100%;
|
||||
padding: 12px 16px;
|
||||
border: 1.5px solid var(--border);
|
||||
border-radius: var(--radius-sm);
|
||||
font-family: inherit;
|
||||
font-size: 14px;
|
||||
color: #222;
|
||||
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);
|
||||
}
|
||||
.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; }
|
||||
.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;
|
||||
}
|
||||
|
||||
/* ── Badges ──────────────────────────────────────────────── */
|
||||
.badge {
|
||||
display: inline-flex; align-items: center; gap: 4px;
|
||||
padding: 3px 10px; border-radius: var(--radius-pill);
|
||||
font-size: 11px; font-weight: 700; letter-spacing: 0.3px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.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-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); }
|
||||
|
||||
/* ── 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; }
|
||||
|
||||
/* ── Divider ─────────────────────────────────────────────── */
|
||||
.divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
|
||||
|
||||
/* ── App Layout Scaffold ─────────────────────────────────── */
|
||||
.app-body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 100vh;
|
||||
}
|
||||
.page-main {
|
||||
flex: 1;
|
||||
width: min(100%, 1100px);
|
||||
margin: clamp(24px, 4vw, 40px) auto;
|
||||
padding: 0 clamp(16px, 3vw, 24px);
|
||||
}
|
||||
.page-main-wide {
|
||||
flex: 1;
|
||||
width: min(100%, 1300px);
|
||||
margin: clamp(24px, 4vw, 40px) auto;
|
||||
padding: 0 clamp(16px, 3vw, 24px);
|
||||
}
|
||||
|
||||
/* ── Animations ──────────────────────────────────────────── */
|
||||
@keyframes fadeIn { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }
|
||||
@keyframes slideUp { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:none; } }
|
||||
.fade-in { animation: fadeIn 0.3s ease both; }
|
||||
.slide-up { animation: slideUp 0.35s ease both; }
|
||||
|
||||
/* ── Skeleton loading ────────────────────────────────────── */
|
||||
@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);
|
||||
}
|
||||
|
||||
/* ── Utility ─────────────────────────────────────────────── */
|
||||
.flex { display: flex; }
|
||||
.flex-center { display: flex; align-items: center; justify-content: center; }
|
||||
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
|
||||
.flex-gap-sm { gap: 8px; }
|
||||
.flex-gap-md { gap: 16px; }
|
||||
.gap-8 { gap: 8px; }
|
||||
.gap-12 { gap: 12px; }
|
||||
.gap-16 { gap: 16px; }
|
||||
.gap-24 { gap: 24px; }
|
||||
.mt-8 { margin-top: 8px; }
|
||||
.mt-16 { margin-top: 16px; }
|
||||
.mt-24 { margin-top: 24px; }
|
||||
.mb-8 { margin-bottom: 8px; }
|
||||
.mb-16 { margin-bottom: 16px; }
|
||||
.mb-24 { margin-bottom: 24px; }
|
||||
.w-full { width: 100%; }
|
||||
.text-center { text-align: center; }
|
||||
.font-600 { font-weight: 600; }
|
||||
|
||||
|
||||
/* --- 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 States for Accessibility */
|
||||
.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;
|
||||
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-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);
|
||||
--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);
|
||||
}
|
||||
@@ -0,0 +1,484 @@
|
||||
/* ============================================================
|
||||
components.css — Reusable UI components
|
||||
Load after base.css
|
||||
============================================================ */
|
||||
|
||||
/* ── App Header ──────────────────────────────────────────── */
|
||||
.app-header {
|
||||
background: var(--header-bg);
|
||||
padding: 0 clamp(16px, 4vw, 32px);
|
||||
height: 62px;
|
||||
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:hover { opacity: 0.85; }
|
||||
.app-header .header-actions { display: flex; gap: 10px; align-items: center; }
|
||||
|
||||
/* ── App Footer ──────────────────────────────────────────── */
|
||||
.app-footer {
|
||||
background: var(--header-bg);
|
||||
border-top: 1px solid rgba(0,80,140,0.10);
|
||||
padding: 18px clamp(16px, 4vw, 32px);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
flex-wrap: wrap;
|
||||
gap: 12px;
|
||||
margin-top: auto;
|
||||
}
|
||||
.app-footer img { height: 30px; }
|
||||
.app-footer small { color: var(--muted); font-size: 12px; }
|
||||
|
||||
/* ── Auth Layout — Split Card ────────────────────────────── */
|
||||
.auth-shell {
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
align-items: stretch;
|
||||
background: #fff;
|
||||
}
|
||||
.auth-brand {
|
||||
width: 42%;
|
||||
min-width: 280px;
|
||||
background: linear-gradient(145deg, var(--navy) 0%, var(--blue) 100%);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 48px 40px;
|
||||
color: #fff;
|
||||
gap: 24px;
|
||||
}
|
||||
.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-form-side {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: clamp(32px, 5vw, 64px) clamp(24px, 6vw, 80px);
|
||||
background: #fff;
|
||||
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 .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); }
|
||||
body.dark-theme .auth-box .auth-subtitle { color: var(--muted); }
|
||||
body.dark-theme .auth-box .form-label { color: var(--muted); }
|
||||
body.dark-theme .auth-box .input { background: var(--card); color: var(--navy); border-color: var(--border); }
|
||||
body.dark-theme .auth-links a { color: var(--blue); }
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.auth-shell { flex-direction: column; }
|
||||
.auth-brand {
|
||||
width: 100%;
|
||||
min-width: unset;
|
||||
min-height: unset;
|
||||
padding: 24px 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 h2 { font-size: 15px; margin: 0; }
|
||||
.auth-form-side { padding: 28px 20px; }
|
||||
}
|
||||
|
||||
/* ── Page Header Row ─────────────────────────────────────── */
|
||||
.page-heading {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
justify-content: space-between;
|
||||
flex-wrap: wrap;
|
||||
gap: 16px;
|
||||
margin-bottom: 28px;
|
||||
}
|
||||
.page-heading h1, .page-heading h2 { margin: 0; }
|
||||
.page-heading .page-meta { font-size: 13px; color: var(--muted); margin-top: 4px; }
|
||||
|
||||
/* ── Stat Cards Row ──────────────────────────────────────── */
|
||||
.stat-row { 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);
|
||||
border-radius: var(--radius-md);
|
||||
padding: 20px 22px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
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); }
|
||||
|
||||
/* ── Tab Bar ─────────────────────────────────────────────── */
|
||||
.tab-bar {
|
||||
display: flex;
|
||||
gap: 0;
|
||||
border-bottom: 2px solid var(--border);
|
||||
margin-bottom: 24px;
|
||||
overflow-x: auto;
|
||||
scrollbar-width: none;
|
||||
}
|
||||
.tab-bar::-webkit-scrollbar { display: none; }
|
||||
.tab-btn {
|
||||
padding: 12px 22px;
|
||||
font-family: inherit;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
color: var(--muted);
|
||||
background: none;
|
||||
border: none;
|
||||
border-bottom: 3px solid transparent;
|
||||
margin-bottom: -2px;
|
||||
cursor: pointer;
|
||||
transition: color var(--transition), border-color var(--transition);
|
||||
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-panel { display: none; }
|
||||
.tab-panel.active{ display: block; animation: fadeIn 0.25s ease; }
|
||||
|
||||
/* ── User Card (Admin Dashboard) ─────────────────────────── */
|
||||
.user-card {
|
||||
background: var(--card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-md);
|
||||
padding: 18px 20px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 14px;
|
||||
cursor: pointer;
|
||||
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; }
|
||||
.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));
|
||||
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);
|
||||
}
|
||||
.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-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); }
|
||||
|
||||
/* ── 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); }
|
||||
|
||||
/* ── Document Row ────────────────────────────────────────── */
|
||||
.doc-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
padding: 14px 16px;
|
||||
border-radius: var(--radius-sm);
|
||||
border: 1px solid var(--border);
|
||||
background: #fafcff;
|
||||
transition: border-color var(--transition), background var(--transition);
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.doc-row:hover { border-color: #c5d9ee; background: var(--blue-light); }
|
||||
.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-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-radius: var(--radius-md);
|
||||
padding: 36px 24px;
|
||||
text-align: center;
|
||||
color: var(--muted);
|
||||
transition: border-color var(--transition), background var(--transition);
|
||||
cursor: pointer;
|
||||
}
|
||||
.drop-zone:hover, .drop-zone.drag-over {
|
||||
border-color: var(--blue);
|
||||
background: var(--blue-light);
|
||||
color: var(--blue);
|
||||
}
|
||||
.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-hint { font-size: 13px; margin-top: 4px; }
|
||||
|
||||
/* ── Search Bar ──────────────────────────────────────────── */
|
||||
.search-bar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
background: #fff;
|
||||
border: 1.5px solid var(--border);
|
||||
border-radius: var(--radius-pill);
|
||||
padding: 9px 18px;
|
||||
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 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; }
|
||||
|
||||
/* ── Timeline Stepper ────────────────────────────────────── */
|
||||
.timeline-control {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
background: var(--bg);
|
||||
border-radius: var(--radius-sm);
|
||||
padding: 10px 16px;
|
||||
width: fit-content;
|
||||
}
|
||||
.timeline-control .tl-btn {
|
||||
width: 32px; height: 32px;
|
||||
border-radius: 50%;
|
||||
border: 1.5px solid var(--border);
|
||||
background: #fff;
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
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-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 tr:last-child td { border-bottom: none; }
|
||||
.approval-table tr:hover td { background: #fafcff; }
|
||||
|
||||
/* ── Toggle Switch (approve/reject) ─────────────────────── */
|
||||
.review-toggle {
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
}
|
||||
.review-toggle label {
|
||||
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;
|
||||
transition: all var(--transition);
|
||||
}
|
||||
.review-toggle input[type=checkbox] { display: none; }
|
||||
.review-toggle .approve-lbl { color: var(--success); }
|
||||
.review-toggle .approve-lbl:has(input:checked),
|
||||
.review-toggle input.approve:checked + label { background: var(--success-bg); border-color: var(--success); }
|
||||
.review-toggle .reject-lbl { color: var(--error); }
|
||||
|
||||
/* ── Engagement Banner ───────────────────────────────────── */
|
||||
.engagement-banner {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
padding: 16px 20px;
|
||||
border-radius: var(--radius-md);
|
||||
background: linear-gradient(90deg, #e3f2fd, #f0f9ff);
|
||||
border: 1px solid #b3d9f5;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
.engagement-banner .banner-icon { font-size: 28px; flex-shrink: 0; }
|
||||
.engagement-banner .banner-text { flex: 1; }
|
||||
.engagement-banner .banner-text strong { display: block; font-size: 14px; color: var(--navy); }
|
||||
.engagement-banner .banner-text span { font-size: 13px; color: var(--muted); }
|
||||
.engagement-banner.acknowledged { background: var(--success-bg); border-color: #a5d6a7; }
|
||||
|
||||
/* ── Empty State ─────────────────────────────────────────── */
|
||||
.empty-state {
|
||||
padding: 48px 24px;
|
||||
text-align: center;
|
||||
color: var(--muted);
|
||||
}
|
||||
.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-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; }
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.mkt-nav-menu {
|
||||
display: none;
|
||||
position: absolute;
|
||||
top: 72px; left: 0;
|
||||
width: 100%;
|
||||
background: var(--navy);
|
||||
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;
|
||||
}
|
||||
.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 --- */
|
||||
|
||||
.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 #a5d6a7;
|
||||
border-radius: var(--radius-pill);
|
||||
}
|
||||
|
||||
.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;
|
||||
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: #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;
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user