Files
boc/iom/landvex-dashboard/styles.css
T
Bernt bae705aa97 ARCHITECTURE: NFC roadmap, edge AI, audit logging
- Add NFC ePassport roadmap (ICAO 9303, eIDAS)
- Add TensorFlow.js edge face detection (BlazeFace)
- Add structured audit logger (GDPR-compliant)
- Risk scoring support

Part of KYC Apple Native UX v1.1.0
2026-06-29 16:24:48 +00:00

591 lines
8.9 KiB
CSS

/**
* Landvex Dashboard Styles
* Light theme, mobile-first design
*/
/* Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Variables */
:root {
--primary: #0071e3;
--success: #34c759;
--warning: #ff9500;
--danger: #ff3b30;
--dark: #1d1d1f;
--gray: #86868b;
--light-gray: #f5f5f7;
--border: #d2d2d7;
--white: #ffffff;
--radius: 16px;
--shadow: 0 1px 3px rgba(0,0,0,0.1);
}
/* Base */
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: var(--light-gray);
color: var(--dark);
line-height: 1.5;
-webkit-font-smoothing: antialiased;
}
/* Header */
.header {
background: var(--white);
border-bottom: 1px solid var(--border);
padding: 16px 24px;
display: flex;
justify-content: space-between;
align-items: center;
position: sticky;
top: 0;
z-index: 100;
}
.logo {
font-size: 24px;
font-weight: 700;
color: var(--primary);
}
.nav {
display: flex;
gap: 24px;
}
.nav-link {
color: var(--dark);
text-decoration: none;
font-size: 14px;
font-weight: 500;
padding: 8px 12px;
border-radius: 8px;
transition: all 0.2s;
}
.nav-link:hover,
.nav-link.active {
color: var(--primary);
background: rgba(0,113,227,0.1);
}
.user {
display: flex;
align-items: center;
gap: 12px;
}
.user-avatar {
width: 32px;
height: 32px;
border-radius: 50%;
background: var(--primary);
color: var(--white);
display: flex;
align-items: center;
justify-content: center;
font-size: 14px;
font-weight: 600;
}
/* Main */
.main {
max-width: 1400px;
margin: 0 auto;
padding: 24px;
}
/* Stats Grid */
.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 16px;
margin-bottom: 24px;
}
.stat-card {
background: var(--white);
border-radius: var(--radius);
padding: 20px;
box-shadow: var(--shadow);
transition: transform 0.2s;
}
.stat-card:hover {
transform: translateY(-2px);
}
.stat-label {
font-size: 12px;
font-weight: 600;
color: var(--gray);
text-transform: uppercase;
letter-spacing: 0.5px;
margin-bottom: 8px;
}
.stat-value {
font-size: 32px;
font-weight: 700;
color: var(--dark);
margin-bottom: 4px;
}
.stat-change {
font-size: 13px;
font-weight: 500;
}
.stat-change.positive {
color: var(--success);
}
.stat-change.negative {
color: var(--danger);
}
/* Section */
.section {
background: var(--white);
border-radius: var(--radius);
padding: 20px;
margin-bottom: 24px;
box-shadow: var(--shadow);
}
.section-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 16px;
}
.section-title {
font-size: 20px;
font-weight: 700;
}
.section-actions {
display: flex;
gap: 8px;
}
/* Buttons */
.btn {
padding: 8px 16px;
border-radius: 8px;
border: none;
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s;
display: inline-flex;
align-items: center;
gap: 6px;
}
.btn:hover {
transform: translateY(-1px);
}
.btn-primary {
background: var(--primary);
color: var(--white);
}
.btn-primary:hover {
background: #0077ed;
}
.btn-secondary {
background: var(--light-gray);
color: var(--dark);
}
.btn-secondary:hover {
background: #e8e8ed;
}
.btn-success {
background: var(--success);
color: var(--white);
}
.btn-danger {
background: var(--danger);
color: var(--white);
}
/* Map */
.map-container {
height: 400px;
background: var(--light-gray);
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
position: relative;
overflow: hidden;
}
.map-placeholder {
text-align: center;
color: var(--gray);
}
.map-icon {
font-size: 48px;
margin-bottom: 8px;
}
/* RGI Panel */
.rgi-score {
display: flex;
align-items: center;
gap: 16px;
margin-bottom: 16px;
}
.rgi-value {
font-size: 48px;
font-weight: 700;
color: var(--dark);
}
.rgi-label {
font-size: 14px;
color: var(--gray);
}
.rgi-dimensions {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 12px;
}
.rgi-dimension {
background: var(--light-gray);
padding: 12px;
border-radius: 8px;
}
.rgi-dimension-name {
font-size: 12px;
font-weight: 600;
color: var(--gray);
margin-bottom: 4px;
}
.rgi-dimension-value {
font-size: 20px;
font-weight: 700;
}
/* RGI Chart */
.rgi-chart {
display: flex;
flex-direction: column;
gap: 12px;
}
.rgi-bar-container {
display: flex;
align-items: center;
gap: 12px;
}
.rgi-bar-label {
width: 120px;
font-size: 13px;
font-weight: 500;
color: var(--dark);
}
.rgi-bar-wrapper {
flex: 1;
height: 24px;
background: var(--light-gray);
border-radius: 12px;
overflow: hidden;
}
.rgi-bar {
height: 100%;
border-radius: 12px;
transition: width 0.5s ease;
}
.rgi-bar-value {
width: 40px;
text-align: right;
font-size: 14px;
font-weight: 600;
color: var(--dark);
}
/* Table */
.observations-table {
width: 100%;
border-collapse: collapse;
}
.observations-table th {
text-align: left;
padding: 12px;
font-size: 12px;
font-weight: 600;
color: var(--gray);
text-transform: uppercase;
letter-spacing: 0.5px;
border-bottom: 1px solid var(--border);
}
.observations-table td {
padding: 12px;
font-size: 14px;
border-bottom: 1px solid var(--light-gray);
cursor: pointer;
}
.observations-table tr:hover td {
background: var(--light-gray);
}
/* Badges */
.status-badge {
display: inline-block;
padding: 4px 8px;
border-radius: 4px;
font-size: 12px;
font-weight: 600;
}
.status-pending {
background: #fff3cd;
color: #856404;
}
.status-approved {
background: #d4edda;
color: #155724;
}
.status-rejected {
background: #f8d7da;
color: #721c24;
}
.condition-indicator {
display: inline-block;
width: 12px;
height: 12px;
border-radius: 50%;
margin-right: 8px;
}
.condition-1 { background: var(--success); }
.condition-2 { background: #99d98c; }
.condition-3 { background: var(--warning); }
.condition-4 { background: #f8961e; }
.condition-5 { background: var(--danger); }
/* Views */
.view {
display: none;
}
.view.active {
display: block;
}
/* Filters */
.filters {
display: flex;
gap: 8px;
margin-bottom: 16px;
flex-wrap: wrap;
}
.filter-btn {
padding: 6px 12px;
border-radius: 6px;
border: 1px solid var(--border);
background: var(--white);
font-size: 13px;
cursor: pointer;
transition: all 0.2s;
}
.filter-btn:hover,
.filter-btn.active {
background: var(--primary);
color: var(--white);
border-color: var(--primary);
}
/* Search */
.search-box {
width: 100%;
max-width: 400px;
padding: 10px 16px;
border-radius: 8px;
border: 1px solid var(--border);
font-size: 14px;
transition: all 0.2s;
}
.search-box:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(0,113,227,0.1);
}
/* Modal */
.modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0,0,0,0.5);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
}
.modal {
background: var(--white);
border-radius: var(--radius);
padding: 24px;
max-width: 600px;
width: 90%;
max-height: 80vh;
overflow-y: auto;
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 16px;
}
.modal-title {
font-size: 20px;
font-weight: 700;
}
.modal-close {
background: none;
border: none;
font-size: 24px;
cursor: pointer;
color: var(--gray);
}
/* Animations */
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
.fade-in {
animation: fadeIn 0.3s ease;
}
/* Responsive */
@media (max-width: 768px) {
.header {
padding: 12px 16px;
}
.nav {
display: none;
}
.main {
padding: 16px;
}
.stats-grid {
grid-template-columns: 1fr;
}
.map-container {
height: 300px;
}
.section-header {
flex-direction: column;
align-items: flex-start;
gap: 12px;
}
.observations-table {
font-size: 12px;
}
.observations-table th,
.observations-table td {
padding: 8px;
}
.rgi-dimensions {
grid-template-columns: 1fr;
}
}
/* Loading */
.loading {
display: flex;
align-items: center;
justify-content: center;
padding: 40px;
}
.spinner {
width: 40px;
height: 40px;
border: 3px solid var(--light-gray);
border-top-color: var(--primary);
border-radius: 50%;
animation: spin 0.8s linear infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
/* Toast notifications */
.toast {
position: fixed;
bottom: 24px;
right: 24px;
padding: 12px 20px;
border-radius: 8px;
color: var(--white);
font-size: 14px;
font-weight: 500;
z-index: 1001;
animation: slideIn 0.3s ease;
}
.toast-success {
background: var(--success);
}
.toast-error {
background: var(--danger);
}
@keyframes slideIn {
from { transform: translateX(100%); opacity: 0; }
to { transform: translateX(0); opacity: 1; }
}