first commit
This commit is contained in:
+629
@@ -0,0 +1,629 @@
|
||||
/* ═══════════════════════════════════════════════════════════════════
|
||||
KSP MONITORING DASHBOARD — DESIGN SYSTEM (Shadcn-inspired)
|
||||
═══════════════════════════════════════════════════════════════════ */
|
||||
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
|
||||
|
||||
/* ─── CSS VARIABLES ─────────────────────────────────────────────── */
|
||||
:root {
|
||||
--bg: #09090b;
|
||||
--bg2: #0d0d10;
|
||||
--card: #18181b;
|
||||
--card-hover: #1e1e22;
|
||||
--sidebar: #111113;
|
||||
--border: #27272a;
|
||||
--border-mid: #3f3f46;
|
||||
--text-1: #fafafa;
|
||||
--text-2: #a1a1aa;
|
||||
--text-3: #71717a;
|
||||
--blue: #3b82f6;
|
||||
--blue-d: #2563eb;
|
||||
--blue-soft: rgba(59,130,246,0.12);
|
||||
--green: #22c55e;
|
||||
--green-soft: rgba(34,197,94,0.12);
|
||||
--amber: #f59e0b;
|
||||
--amber-soft: rgba(245,158,11,0.12);
|
||||
--red: #ef4444;
|
||||
--red-soft: rgba(239,68,68,0.12);
|
||||
--purple: #a855f7;
|
||||
--purple-soft: rgba(168,85,247,0.12);
|
||||
--orange: #f97316;
|
||||
--orange-soft: rgba(249,115,22,0.12);
|
||||
--r: 6px;
|
||||
--r-sm: 4px;
|
||||
--r-md: 8px;
|
||||
--r-lg: 12px;
|
||||
--r-xl: 16px;
|
||||
--sh: 0 4px 16px rgba(0,0,0,0.4);
|
||||
--sh-lg: 0 8px 32px rgba(0,0,0,0.5);
|
||||
--sidebar-w: 240px;
|
||||
--topbar-h: 60px;
|
||||
--ease: cubic-bezier(0.4,0,0.2,1);
|
||||
}
|
||||
|
||||
/* ─── LIGHT THEME VARIABLES ──────────────────────────────────────── */
|
||||
.light-theme {
|
||||
--bg: #fafafa;
|
||||
--bg2: #f4f4f5;
|
||||
--card: #ffffff;
|
||||
--card-hover: #f4f4f5;
|
||||
--sidebar: #f4f4f5;
|
||||
--border: #e4e4e7;
|
||||
--border-mid: #d4d4d8;
|
||||
--text-1: #09090b;
|
||||
--text-2: #27272a;
|
||||
--text-3: #71717a;
|
||||
--blue-soft: rgba(59,130,246,0.08);
|
||||
--green-soft: rgba(34,197,94,0.08);
|
||||
--amber-soft: rgba(245,158,11,0.08);
|
||||
--red-soft: rgba(239,68,68,0.08);
|
||||
--purple-soft: rgba(168,85,247,0.08);
|
||||
--orange-soft: rgba(249,115,22,0.08);
|
||||
--sh: 0 4px 16px rgba(0,0,0,0.05);
|
||||
--sh-lg: 0 8px 32px rgba(0,0,0,0.08);
|
||||
}
|
||||
|
||||
/* ─── RESET ─────────────────────────────────────────────────────── */
|
||||
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
html, body { height: 100%; font-family: 'Inter', system-ui, sans-serif; background: var(--bg); color: var(--text-1); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow: hidden; }
|
||||
body, .sidebar, .main-area, .topbar, .card, .kpi-card, .btn-secondary, .form-input, .form-select, .form-textarea, .search-bar, table, th, td, .prog-stat-card, .nav-item {
|
||||
transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
|
||||
}
|
||||
a { text-decoration: none; color: inherit; }
|
||||
button { font-family: inherit; cursor: pointer; }
|
||||
input, select, textarea { font-family: inherit; }
|
||||
ul, ol { list-style: none; }
|
||||
::-webkit-scrollbar { width: 4px; height: 4px; }
|
||||
::-webkit-scrollbar-track { background: transparent; }
|
||||
::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 99px; }
|
||||
|
||||
/* ─── APP LAYOUT ─────────────────────────────────────────────────── */
|
||||
.app-layout { display: flex; height: 100vh; overflow: hidden; }
|
||||
|
||||
/* ─── SIDEBAR ───────────────────────────────────────────────────── */
|
||||
.sidebar {
|
||||
width: var(--sidebar-w); min-width: var(--sidebar-w);
|
||||
background: var(--sidebar); border-right: 1px solid var(--border);
|
||||
display: flex; flex-direction: column; height: 100vh; overflow: hidden;
|
||||
position: relative; z-index: 10;
|
||||
}
|
||||
.sidebar-logo {
|
||||
padding: 18px 16px 14px; border-bottom: 1px solid var(--border);
|
||||
display: flex; align-items: center; gap: 10px;
|
||||
}
|
||||
.logo-icon {
|
||||
width: 34px; height: 34px; border-radius: var(--r-md);
|
||||
background: linear-gradient(135deg, #1d4ed8, #3b82f6);
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
font-size: 16px; flex-shrink: 0;
|
||||
box-shadow: 0 2px 8px rgba(59,130,246,0.4);
|
||||
}
|
||||
.logo-text { flex: 1; overflow: hidden; }
|
||||
.logo-title { font-size: 11px; font-weight: 700; color: var(--text-1); letter-spacing: 0.5px; line-height: 1.2; }
|
||||
.logo-sub { font-size: 10px; color: var(--text-3); margin-top: 1px; }
|
||||
|
||||
.sidebar-nav { flex: 1; padding: 12px 8px; overflow-y: auto; display: flex; flex-direction: column; gap: 1px; }
|
||||
.nav-section-label { font-size: 10px; font-weight: 600; color: var(--text-3); letter-spacing: 0.8px; text-transform: uppercase; padding: 8px 8px 4px; margin-top: 4px; }
|
||||
.nav-item {
|
||||
display: flex; align-items: center; gap: 10px;
|
||||
padding: 8px 10px; border-radius: var(--r); color: var(--text-2);
|
||||
font-size: 13px; font-weight: 500; cursor: pointer;
|
||||
transition: all 0.15s var(--ease); position: relative;
|
||||
border: 1px solid transparent;
|
||||
}
|
||||
.nav-item:hover { background: rgba(255,255,255,0.04); color: var(--text-1); }
|
||||
.nav-item.active {
|
||||
background: var(--blue-soft); color: var(--blue);
|
||||
border-color: rgba(59,130,246,0.2);
|
||||
}
|
||||
.nav-item-icon { font-size: 15px; width: 20px; text-align: center; flex-shrink: 0; }
|
||||
.nav-item-label { flex: 1; }
|
||||
.nav-badge {
|
||||
background: var(--red); color: #fff; font-size: 10px; font-weight: 700;
|
||||
padding: 1px 6px; border-radius: 99px; min-width: 18px; text-align: center;
|
||||
animation: pulse-badge 2s infinite;
|
||||
}
|
||||
@keyframes pulse-badge {
|
||||
0%, 100% { opacity: 1; } 50% { opacity: 0.7; }
|
||||
}
|
||||
|
||||
.sidebar-footer { padding: 12px 8px 16px; border-top: 1px solid var(--border); }
|
||||
.sidebar-user {
|
||||
display: flex; align-items: center; gap: 10px;
|
||||
padding: 8px 10px; border-radius: var(--r);
|
||||
cursor: pointer; transition: background 0.15s;
|
||||
}
|
||||
.sidebar-user:hover { background: rgba(255,255,255,0.04); }
|
||||
.user-avatar {
|
||||
width: 30px; height: 30px; border-radius: 50%;
|
||||
background: linear-gradient(135deg, #1e40af, #7c3aed);
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
font-size: 12px; font-weight: 700; color: #fff; flex-shrink: 0;
|
||||
}
|
||||
.user-info { flex: 1; overflow: hidden; }
|
||||
.user-name { font-size: 12px; font-weight: 600; color: var(--text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
.user-role { font-size: 10px; color: var(--text-3); }
|
||||
|
||||
/* ─── MAIN AREA ─────────────────────────────────────────────────── */
|
||||
.main-area { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
|
||||
|
||||
/* ─── TOPBAR ────────────────────────────────────────────────────── */
|
||||
.topbar {
|
||||
height: var(--topbar-h); min-height: var(--topbar-h);
|
||||
background: var(--bg2); border-bottom: 1px solid var(--border);
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
padding: 0 24px; gap: 16px;
|
||||
}
|
||||
.topbar-left { display: flex; align-items: center; gap: 12px; }
|
||||
.page-title { font-size: 15px; font-weight: 600; color: var(--text-1); }
|
||||
.page-subtitle { font-size: 12px; color: var(--text-3); margin-top: 1px; }
|
||||
.topbar-right { display: flex; align-items: center; gap: 8px; }
|
||||
|
||||
.clock-widget { text-align: right; }
|
||||
.clock-time { font-size: 13px; font-weight: 700; color: var(--text-1); font-variant-numeric: tabular-nums; letter-spacing: 0.5px; }
|
||||
.clock-date { font-size: 10px; color: var(--text-3); }
|
||||
|
||||
.live-pill {
|
||||
display: flex; align-items: center; gap: 6px;
|
||||
background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.2);
|
||||
padding: 4px 10px; border-radius: 99px;
|
||||
}
|
||||
.live-dot {
|
||||
width: 6px; height: 6px; border-radius: 50%; background: var(--green);
|
||||
box-shadow: 0 0 6px var(--green); animation: blink 1.5s ease-in-out infinite;
|
||||
}
|
||||
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
|
||||
.live-text { font-size: 10px; font-weight: 700; color: var(--green); letter-spacing: 0.6px; }
|
||||
|
||||
.notif-btn {
|
||||
position: relative; width: 36px; height: 36px; border-radius: var(--r);
|
||||
background: transparent; border: 1px solid var(--border); color: var(--text-2);
|
||||
display: flex; align-items: center; justify-content: center; font-size: 16px;
|
||||
transition: all 0.15s;
|
||||
}
|
||||
.notif-btn:hover { background: rgba(255,255,255,0.04); border-color: var(--border-mid); color: var(--text-1); }
|
||||
.notif-dot {
|
||||
position: absolute; top: 6px; right: 6px; width: 8px; height: 8px;
|
||||
background: var(--red); border-radius: 50%; border: 1.5px solid var(--bg2);
|
||||
}
|
||||
|
||||
/* ─── PAGE CONTENT ──────────────────────────────────────────────── */
|
||||
.page-content { flex: 1; overflow: hidden; position: relative; }
|
||||
.page-view { height: 100%; display: none; overflow: hidden; }
|
||||
.page-view.active { display: flex; flex-direction: column; }
|
||||
|
||||
/* ─── SCROLLABLE CONTAINERS ─────────────────────────────────────── */
|
||||
.scroll-area { flex: 1; overflow-y: auto; padding: 20px 24px; }
|
||||
|
||||
/* ─── SECTION HEADER ────────────────────────────────────────────── */
|
||||
.section-header {
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
margin-bottom: 16px; gap: 12px;
|
||||
}
|
||||
.section-title { font-size: 15px; font-weight: 600; color: var(--text-1); }
|
||||
.section-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
|
||||
|
||||
/* ─── CARDS ─────────────────────────────────────────────────────── */
|
||||
.card {
|
||||
background: var(--card); border: 1px solid var(--border);
|
||||
border-radius: var(--r-md); transition: border-color 0.15s;
|
||||
}
|
||||
.card:hover { border-color: var(--border-mid); }
|
||||
.card-p { padding: 16px; }
|
||||
.card-p-sm { padding: 12px; }
|
||||
|
||||
/* ─── KPI CARDS ─────────────────────────────────────────────────── */
|
||||
.kpi-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 20px; }
|
||||
.kpi-card {
|
||||
background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md);
|
||||
padding: 16px; cursor: pointer; transition: all 0.2s var(--ease); position: relative; overflow: hidden;
|
||||
}
|
||||
.kpi-card::before {
|
||||
content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
|
||||
background: var(--kpi-color, var(--blue)); opacity: 0.6;
|
||||
}
|
||||
.kpi-card:hover { border-color: var(--border-mid); background: var(--card-hover); transform: translateY(-1px); box-shadow: var(--sh); }
|
||||
.kpi-card.active { border-color: var(--kpi-color, var(--blue)); background: var(--card-hover); }
|
||||
.kpi-label { font-size: 11px; font-weight: 500; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 8px; }
|
||||
.kpi-value { font-size: 24px; font-weight: 800; color: var(--text-1); line-height: 1; margin-bottom: 6px; letter-spacing: -0.5px; }
|
||||
.kpi-value.red { color: var(--red); }
|
||||
.kpi-sub { font-size: 11px; color: var(--text-3); display: flex; align-items: center; gap: 4px; }
|
||||
.kpi-sub.up { color: var(--green); }
|
||||
.kpi-sub.down { color: var(--red); }
|
||||
.kpi-sub.warn { color: var(--amber); }
|
||||
.kpi-icon { position: absolute; top: 14px; right: 14px; font-size: 20px; opacity: 0.15; }
|
||||
|
||||
/* ─── PROGRAM BADGES ────────────────────────────────────────────── */
|
||||
.badge {
|
||||
display: inline-flex; align-items: center; gap: 4px;
|
||||
padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 600;
|
||||
border: 1px solid transparent; white-space: nowrap;
|
||||
}
|
||||
.badge-green { background: var(--green-soft); color: var(--green); border-color: rgba(34,197,94,0.2); }
|
||||
.badge-blue { background: var(--blue-soft); color: var(--blue); border-color: rgba(59,130,246,0.2); }
|
||||
.badge-amber { background: var(--amber-soft); color: var(--amber); border-color: rgba(245,158,11,0.2); }
|
||||
.badge-purple { background: var(--purple-soft); color: var(--purple); border-color: rgba(168,85,247,0.2); }
|
||||
.badge-orange { background: var(--orange-soft); color: var(--orange); border-color: rgba(249,115,22,0.2); }
|
||||
.badge-red { background: var(--red-soft); color: var(--red); border-color: rgba(239,68,68,0.2); }
|
||||
.badge-zinc { background: rgba(113,113,122,0.1); color: var(--text-2); border-color: var(--border); }
|
||||
|
||||
/* ─── SEVERITY + STATUS BADGES ──────────────────────────────────── */
|
||||
.sev-critical { background: var(--red-soft); color: var(--red); border: 1px solid rgba(239,68,68,0.25); padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 600; }
|
||||
.sev-high { background: var(--orange-soft); color: var(--orange); border: 1px solid rgba(249,115,22,0.25); padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 600; }
|
||||
.sev-medium { background: var(--amber-soft); color: var(--amber); border: 1px solid rgba(245,158,11,0.25); padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 600; }
|
||||
.sev-low { background: var(--green-soft); color: var(--green); border: 1px solid rgba(34,197,94,0.25); padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 600; }
|
||||
|
||||
.stat-open { background: var(--red-soft); color: var(--red); border: 1px solid rgba(239,68,68,0.2); padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 600; }
|
||||
.stat-in_progress { background: var(--blue-soft); color: var(--blue); border: 1px solid rgba(59,130,246,0.2); padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 600; }
|
||||
.stat-resolved { background: var(--green-soft); color: var(--green); border: 1px solid rgba(34,197,94,0.2); padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 600; }
|
||||
.stat-closed { background: rgba(113,113,122,0.1); color: var(--text-3); border: 1px solid var(--border); padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 600; }
|
||||
|
||||
/* ─── BUTTONS ───────────────────────────────────────────────────── */
|
||||
.btn {
|
||||
display: inline-flex; align-items: center; justify-content: center; gap: 6px;
|
||||
padding: 7px 14px; border-radius: var(--r); font-size: 13px; font-weight: 500;
|
||||
border: 1px solid transparent; cursor: pointer; transition: all 0.15s var(--ease);
|
||||
white-space: nowrap; user-select: none;
|
||||
}
|
||||
.btn-primary { background: var(--blue); color: #fff; }
|
||||
.btn-primary:hover { background: var(--blue-d); }
|
||||
.btn-secondary { background: rgba(255,255,255,0.05); color: var(--text-2); border-color: var(--border); }
|
||||
.btn-secondary:hover { background: rgba(255,255,255,0.08); border-color: var(--border-mid); color: var(--text-1); }
|
||||
.btn-destructive { background: var(--red-soft); color: var(--red); border-color: rgba(239,68,68,0.3); }
|
||||
.btn-destructive:hover { background: rgba(239,68,68,0.2); }
|
||||
.btn-success { background: var(--green-soft); color: var(--green); border-color: rgba(34,197,94,0.3); }
|
||||
.btn-success:hover { background: rgba(34,197,94,0.2); }
|
||||
.btn-sm { padding: 4px 10px; font-size: 12px; }
|
||||
.btn-xs { padding: 2px 8px; font-size: 11px; border-radius: var(--r-sm); }
|
||||
.btn-icon { padding: 7px; width: 34px; height: 34px; }
|
||||
|
||||
/* ─── FORMS ─────────────────────────────────────────────────────── */
|
||||
.form-group { display: flex; flex-direction: column; gap: 6px; }
|
||||
.form-label { font-size: 12px; font-weight: 500; color: var(--text-2); }
|
||||
.form-input, .form-select, .form-textarea {
|
||||
background: var(--bg); border: 1px solid var(--border); border-radius: var(--r);
|
||||
color: var(--text-1); font-size: 13px; padding: 8px 12px; font-family: inherit;
|
||||
transition: border-color 0.15s; outline: none; width: 100%;
|
||||
}
|
||||
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(59,130,246,0.12); }
|
||||
.form-input::placeholder { color: var(--text-3); }
|
||||
.form-select option { background: #1a1a1e; }
|
||||
.form-textarea { resize: vertical; min-height: 80px; }
|
||||
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
|
||||
|
||||
/* ─── SEARCH BAR ────────────────────────────────────────────────── */
|
||||
.search-bar {
|
||||
display: flex; align-items: center; gap: 8px;
|
||||
background: var(--bg); border: 1px solid var(--border); border-radius: var(--r);
|
||||
padding: 0 12px; transition: border-color 0.15s;
|
||||
}
|
||||
.search-bar:focus-within { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue-soft); }
|
||||
.search-bar svg { color: var(--text-3); flex-shrink: 0; }
|
||||
.search-bar input { flex: 1; background: transparent; border: none; outline: none; color: var(--text-1); font-size: 13px; padding: 8px 0; font-family: inherit; }
|
||||
.search-bar input::placeholder { color: var(--text-3); }
|
||||
|
||||
/* ─── FILTERS ROW ───────────────────────────────────────────────── */
|
||||
.filters-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
|
||||
.filter-pill {
|
||||
padding: 5px 12px; border-radius: 99px; font-size: 12px; font-weight: 500;
|
||||
border: 1px solid var(--border); background: transparent; color: var(--text-2);
|
||||
cursor: pointer; transition: all 0.15s; white-space: nowrap;
|
||||
}
|
||||
.filter-pill:hover { border-color: var(--border-mid); color: var(--text-1); }
|
||||
.filter-pill.active { background: var(--blue-soft); border-color: rgba(59,130,246,0.35); color: var(--blue); }
|
||||
.filter-sep { width: 1px; height: 20px; background: var(--border); margin: 0 4px; }
|
||||
|
||||
/* ─── TABLE ─────────────────────────────────────────────────────── */
|
||||
.table-wrap { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--border); }
|
||||
table { width: 100%; border-collapse: collapse; }
|
||||
thead th { background: rgba(255,255,255,0.02); border-bottom: 1px solid var(--border); padding: 10px 14px; text-align: left; font-size: 11px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }
|
||||
tbody tr { border-bottom: 1px solid var(--border); transition: background 0.1s; }
|
||||
tbody tr:last-child { border-bottom: none; }
|
||||
tbody tr:hover { background: rgba(255,255,255,0.025); }
|
||||
tbody td { padding: 12px 14px; font-size: 13px; color: var(--text-1); vertical-align: middle; }
|
||||
.td-muted { color: var(--text-3); font-size: 12px; }
|
||||
|
||||
/* ─── PROGRESS BAR ──────────────────────────────────────────────── */
|
||||
.progress-bar { height: 4px; background: var(--border); border-radius: 99px; overflow: hidden; }
|
||||
.progress-fill { height: 100%; border-radius: 99px; transition: width 0.6s var(--ease); }
|
||||
.progress-lg { height: 6px; }
|
||||
.progress-sm { height: 3px; }
|
||||
|
||||
/* ─── DASHBOARD MAP LAYOUT ──────────────────────────────────────── */
|
||||
.dash-body { display: flex; gap: 16px; flex: 1; min-height: 0; padding: 0 24px 20px; }
|
||||
.dash-map-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
|
||||
.dash-side-col { width: 320px; min-width: 320px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }
|
||||
#map { flex: 1; border-radius: var(--r-lg); min-height: 300px; border: 1px solid var(--border); overflow: hidden; }
|
||||
.map-wrapper { flex: 1; position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); }
|
||||
#leaflet-map { width: 100%; height: 100%; }
|
||||
.map-controls {
|
||||
position: absolute; top: 12px; left: 12px; z-index: 400;
|
||||
display: flex; gap: 6px; flex-wrap: wrap; max-width: calc(100% - 24px);
|
||||
}
|
||||
.map-btn {
|
||||
padding: 5px 10px; border-radius: var(--r); font-size: 11px; font-weight: 600;
|
||||
background: rgba(9,9,11,0.85); color: var(--text-2); border: 1px solid var(--border);
|
||||
backdrop-filter: blur(8px); cursor: pointer; transition: all 0.15s; white-space: nowrap;
|
||||
}
|
||||
.map-btn:hover { border-color: var(--border-mid); color: var(--text-1); }
|
||||
.map-btn.active { background: var(--blue-soft); border-color: rgba(59,130,246,0.4); color: var(--blue); }
|
||||
.map-legend {
|
||||
position: absolute; bottom: 12px; left: 12px; z-index: 400;
|
||||
background: rgba(9,9,11,0.88); border: 1px solid var(--border);
|
||||
border-radius: var(--r-md); padding: 10px 12px; backdrop-filter: blur(8px);
|
||||
}
|
||||
.map-legend-title { font-size: 10px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
|
||||
.legend-row { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-2); margin-bottom: 4px; }
|
||||
.legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
|
||||
|
||||
/* ─── ALERT ITEMS ───────────────────────────────────────────────── */
|
||||
.alert-item {
|
||||
padding: 12px; border-radius: var(--r); border-left: 3px solid var(--border);
|
||||
background: rgba(255,255,255,0.02); margin-bottom: 8px; cursor: pointer;
|
||||
transition: all 0.15s;
|
||||
}
|
||||
.alert-item:hover { background: rgba(255,255,255,0.04); }
|
||||
.alert-item.critical { border-left-color: var(--red); }
|
||||
.alert-item.high { border-left-color: var(--orange); }
|
||||
.alert-item.medium { border-left-color: var(--amber); }
|
||||
.alert-item.low { border-left-color: var(--green); }
|
||||
.alert-title { font-size: 12px; font-weight: 600; color: var(--text-1); margin-bottom: 4px; line-height: 1.4; }
|
||||
.alert-meta { font-size: 11px; color: var(--text-3); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
|
||||
|
||||
/* ─── ISSUE KANBAN ──────────────────────────────────────────────── */
|
||||
.issues-layout { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
|
||||
.issues-filters { padding: 16px 24px 12px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--bg2); }
|
||||
.issues-body { flex: 1; overflow: hidden; }
|
||||
.kanban-view { display: flex; height: 100%; gap: 0; overflow-x: auto; }
|
||||
.kanban-col { flex: 1; min-width: 280px; max-width: 400px; display: flex; flex-direction: column; border-right: 1px solid var(--border); overflow: hidden; }
|
||||
.kanban-col:last-child { border-right: none; }
|
||||
.kanban-col-header { padding: 14px 16px 12px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,0.01); flex-shrink: 0; }
|
||||
.kanban-col-title { font-size: 13px; font-weight: 600; color: var(--text-1); display: flex; align-items: center; gap: 8px; }
|
||||
.col-count { font-size: 11px; color: var(--text-3); background: var(--border); padding: 1px 7px; border-radius: 99px; font-weight: 600; }
|
||||
.kanban-cards { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
|
||||
|
||||
.issue-card {
|
||||
background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md);
|
||||
padding: 12px; cursor: pointer; transition: all 0.15s var(--ease);
|
||||
border-top: 2px solid transparent;
|
||||
}
|
||||
.issue-card:hover { border-color: var(--border-mid); background: var(--card-hover); transform: translateY(-1px); box-shadow: var(--sh); }
|
||||
.issue-card.critical-card { border-top-color: var(--red); }
|
||||
.issue-card.high-card { border-top-color: var(--orange); }
|
||||
.issue-card.medium-card { border-top-color: var(--amber); }
|
||||
.issue-card.low-card { border-top-color: var(--green); }
|
||||
.ic-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
|
||||
.ic-id { font-size: 10px; color: var(--text-3); font-family: monospace; font-weight: 600; }
|
||||
.ic-title { font-size: 12px; font-weight: 600; color: var(--text-1); line-height: 1.4; margin-bottom: 6px; }
|
||||
.ic-desc { font-size: 11px; color: var(--text-3); line-height: 1.5; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
|
||||
.ic-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px; }
|
||||
.ic-meta { font-size: 10px; color: var(--text-3); }
|
||||
.ic-assignee { font-size: 10px; color: var(--text-3); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
|
||||
/* ─── LIST VIEW ─────────────────────────────────────────────────── */
|
||||
.list-view { padding: 0 24px 20px; overflow-y: auto; height: 100%; }
|
||||
|
||||
/* ─── MODAL ─────────────────────────────────────────────────────── */
|
||||
.modal-overlay {
|
||||
position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
|
||||
z-index: 1000; display: flex; align-items: center; justify-content: center;
|
||||
opacity: 0; pointer-events: none; transition: opacity 0.2s;
|
||||
}
|
||||
.modal-overlay.open { opacity: 1; pointer-events: all; }
|
||||
.modal-box {
|
||||
background: var(--card); border: 1px solid var(--border-mid); border-radius: var(--r-xl);
|
||||
width: 600px; max-width: 95vw; max-height: 90vh; display: flex; flex-direction: column;
|
||||
box-shadow: var(--sh-lg); transform: scale(0.97) translateY(8px); transition: transform 0.2s;
|
||||
}
|
||||
.modal-overlay.open .modal-box { transform: scale(1) translateY(0); }
|
||||
.modal-header { padding: 18px 20px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-shrink: 0; }
|
||||
.modal-title { font-size: 15px; font-weight: 700; color: var(--text-1); line-height: 1.4; }
|
||||
.modal-close { width: 28px; height: 28px; border-radius: var(--r); background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--text-2); display: flex; align-items: center; justify-content: center; font-size: 16px; cursor: pointer; flex-shrink: 0; transition: all 0.15s; }
|
||||
.modal-close:hover { background: rgba(255,255,255,0.08); color: var(--text-1); }
|
||||
.modal-body { flex: 1; overflow-y: auto; padding: 18px 20px; }
|
||||
.modal-footer { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-shrink: 0; }
|
||||
|
||||
/* ─── WIDE MODAL ────────────────────────────────────────────────── */
|
||||
.modal-box.wide { width: 760px; }
|
||||
|
||||
/* ─── TIMELINE ──────────────────────────────────────────────────── */
|
||||
.timeline { display: flex; flex-direction: column; gap: 0; }
|
||||
.tl-item { display: flex; gap: 12px; position: relative; padding-bottom: 16px; }
|
||||
.tl-item:last-child { padding-bottom: 0; }
|
||||
.tl-item:last-child .tl-line { display: none; }
|
||||
.tl-dot-wrap { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
|
||||
.tl-dot { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; border: 2px solid var(--border); background: var(--card); flex-shrink: 0; }
|
||||
.tl-dot.created { background: rgba(239,68,68,0.15); border-color: var(--red); }
|
||||
.tl-dot.assigned { background: rgba(59,130,246,0.15); border-color: var(--blue); }
|
||||
.tl-dot.verified { background: rgba(245,158,11,0.15); border-color: var(--amber); }
|
||||
.tl-dot.survey { background: rgba(168,85,247,0.15); border-color: var(--purple); }
|
||||
.tl-dot.escalated { background: rgba(249,115,22,0.15); border-color: var(--orange); }
|
||||
.tl-dot.resolved { background: rgba(34,197,94,0.15); border-color: var(--green); }
|
||||
.tl-line { flex: 1; width: 1px; background: var(--border); margin: 4px 0; min-height: 12px; }
|
||||
.tl-content { flex: 1; padding-top: 4px; }
|
||||
.tl-action { font-size: 12px; color: var(--text-1); font-weight: 500; line-height: 1.4; }
|
||||
.tl-meta { font-size: 11px; color: var(--text-3); margin-top: 3px; display: flex; gap: 6px; }
|
||||
|
||||
/* ─── ESCALATION PIPELINE ───────────────────────────────────────── */
|
||||
.esc-pipeline { display: flex; align-items: center; gap: 0; margin-bottom: 20px; overflow-x: auto; padding-bottom: 4px; }
|
||||
.esc-step {
|
||||
flex: 1; min-width: 140px; text-align: center; position: relative;
|
||||
padding: 14px 12px; background: var(--card); border: 1px solid var(--border);
|
||||
border-right: none; first-child { border-radius: var(--r-md) 0 0 var(--r-md); }
|
||||
}
|
||||
.esc-step:first-child { border-radius: var(--r-md) 0 0 var(--r-md); }
|
||||
.esc-step:last-child { border-radius: 0 var(--r-md) var(--r-md) 0; border-right: 1px solid var(--border); }
|
||||
.esc-step.active { background: var(--blue-soft); border-color: rgba(59,130,246,0.3); }
|
||||
.esc-step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--border); color: var(--text-2); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; }
|
||||
.esc-step.active .esc-step-num { background: var(--blue); color: #fff; }
|
||||
.esc-step-label { font-size: 11px; font-weight: 600; color: var(--text-2); }
|
||||
.esc-step.active .esc-step-label { color: var(--blue); }
|
||||
|
||||
/* ─── SURVEY CARD ───────────────────────────────────────────────── */
|
||||
.survey-card {
|
||||
background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md);
|
||||
padding: 16px; margin-bottom: 10px; cursor: pointer; transition: all 0.15s;
|
||||
}
|
||||
.survey-card:hover { border-color: var(--border-mid); background: var(--card-hover); }
|
||||
.sc-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
|
||||
.sc-id { font-size: 10px; color: var(--text-3); font-family: monospace; font-weight: 600; }
|
||||
.sc-officer { font-size: 13px; font-weight: 600; color: var(--text-1); }
|
||||
.sc-jabatan { font-size: 11px; color: var(--text-3); }
|
||||
.sc-temuan { font-size: 12px; color: var(--text-2); line-height: 1.5; margin: 8px 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
|
||||
.sc-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
|
||||
.sc-meta { font-size: 11px; color: var(--text-3); display: flex; align-items: center; gap: 8px; }
|
||||
|
||||
/* ─── SURVEY STATUS BADGE ───────────────────────────────────────── */
|
||||
.status-draft { background: rgba(113,113,122,0.1); color: var(--text-3); border: 1px solid var(--border); padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 600; }
|
||||
.status-submitted { background: var(--blue-soft); color: var(--blue); border: 1px solid rgba(59,130,246,0.2); padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 600; }
|
||||
.status-verified { background: var(--green-soft); color: var(--green); border: 1px solid rgba(34,197,94,0.2); padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 600; }
|
||||
|
||||
/* ─── PROGRAM PAGE ──────────────────────────────────────────────── */
|
||||
.program-tabs { display: flex; gap: 4px; padding: 16px 24px 0; background: var(--bg2); border-bottom: 1px solid var(--border); overflow-x: auto; }
|
||||
.prog-tab {
|
||||
display: flex; align-items: center; gap: 6px;
|
||||
padding: 8px 14px; border-radius: var(--r) var(--r) 0 0;
|
||||
font-size: 13px; font-weight: 500; color: var(--text-2);
|
||||
cursor: pointer; transition: all 0.15s; border: 1px solid transparent;
|
||||
border-bottom: none; white-space: nowrap; margin-bottom: -1px;
|
||||
background: transparent;
|
||||
}
|
||||
.prog-tab:hover { color: var(--text-1); background: rgba(255,255,255,0.03); }
|
||||
.prog-tab.active { background: var(--card); border-color: var(--border); border-bottom-color: var(--card); color: var(--text-1); }
|
||||
.prog-body { flex: 1; overflow: hidden; display: none; }
|
||||
.prog-body.active { display: flex; flex-direction: column; }
|
||||
.prog-scroll { flex: 1; overflow-y: auto; padding: 20px 24px; }
|
||||
|
||||
/* ─── STAT PAIR ─────────────────────────────────────────────────── */
|
||||
.stat-pair { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
|
||||
.stat-pair:last-child { border-bottom: none; }
|
||||
.stat-key { font-size: 12px; color: var(--text-3); }
|
||||
.stat-val { font-size: 12px; color: var(--text-1); font-weight: 500; text-align: right; }
|
||||
|
||||
/* ─── EMPTY STATE ───────────────────────────────────────────────── */
|
||||
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 24px; text-align: center; }
|
||||
.empty-icon { font-size: 40px; margin-bottom: 12px; opacity: 0.4; }
|
||||
.empty-title { font-size: 14px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
|
||||
.empty-desc { font-size: 12px; color: var(--text-3); max-width: 280px; line-height: 1.6; }
|
||||
|
||||
/* ─── CHART CONTAINER ───────────────────────────────────────────── */
|
||||
.chart-wrap { position: relative; height: 180px; }
|
||||
|
||||
/* ─── DIVIDER ───────────────────────────────────────────────────── */
|
||||
.divider { height: 1px; background: var(--border); margin: 14px 0; }
|
||||
|
||||
/* ─── TOOLTIP ───────────────────────────────────────────────────── */
|
||||
.custom-tooltip .leaflet-tooltip {
|
||||
background: var(--card) !important; border: 1px solid var(--border) !important;
|
||||
border-radius: var(--r-md) !important; color: var(--text-1) !important;
|
||||
font-family: 'Inter', sans-serif !important; font-size: 11px !important;
|
||||
padding: 8px 12px !important; backdrop-filter: blur(8px) !important; box-shadow: var(--sh) !important;
|
||||
}
|
||||
.tt-title { font-size: 12px; font-weight: 700; color: var(--text-1); margin-bottom: 4px; }
|
||||
.tt-sub { font-size: 10px; color: var(--text-3); margin-bottom: 6px; }
|
||||
.tt-row { display: flex; justify-content: space-between; gap: 16px; font-size: 11px; color: var(--text-2); padding: 2px 0; }
|
||||
.tt-val { color: var(--text-1); font-weight: 600; }
|
||||
|
||||
/* ─── NOTIFICATION DROPDOWN ─────────────────────────────────────── */
|
||||
.notif-dropdown {
|
||||
position: absolute; top: calc(100% + 8px); right: 0; width: 320px; z-index: 100;
|
||||
background: var(--card); border: 1px solid var(--border-mid); border-radius: var(--r-lg);
|
||||
box-shadow: var(--sh-lg); overflow: hidden;
|
||||
}
|
||||
.notif-header { padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 12px; font-weight: 600; color: var(--text-1); }
|
||||
.notif-item { padding: 10px 14px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background 0.1s; display: flex; gap: 10px; }
|
||||
.notif-item:last-child { border-bottom: none; }
|
||||
.notif-item:hover { background: rgba(255,255,255,0.03); }
|
||||
.notif-item.unread { background: rgba(59,130,246,0.04); }
|
||||
.notif-dot-indicator { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; }
|
||||
.notif-msg { font-size: 12px; color: var(--text-2); line-height: 1.4; flex: 1; }
|
||||
.notif-time { font-size: 10px; color: var(--text-3); margin-top: 3px; }
|
||||
|
||||
/* ─── TOPBAR ACTIONS ────────────────────────────────────────────── */
|
||||
.topbar-actions-area { position: relative; }
|
||||
|
||||
/* ─── PROGRAM STAT GRID ─────────────────────────────────────────── */
|
||||
.prog-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
|
||||
.prog-stat-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px; }
|
||||
.prog-stat-val { font-size: 20px; font-weight: 800; color: var(--text-1); letter-spacing: -0.5px; margin-bottom: 4px; }
|
||||
.prog-stat-lbl { font-size: 11px; color: var(--text-3); }
|
||||
|
||||
/* ─── TOAST NOTIFICATION ────────────────────────────────────────── */
|
||||
.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 2000; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
|
||||
.toast {
|
||||
display: flex; align-items: flex-start; gap: 10px;
|
||||
background: var(--card); border: 1px solid var(--border-mid); border-radius: var(--r-md);
|
||||
padding: 12px 14px; box-shadow: var(--sh-lg); max-width: 340px;
|
||||
pointer-events: all; transform: translateX(110%); transition: transform 0.3s var(--ease);
|
||||
}
|
||||
.toast.show { transform: translateX(0); }
|
||||
.toast-icon { font-size: 16px; flex-shrink: 0; }
|
||||
.toast-body { flex: 1; }
|
||||
.toast-title { font-size: 13px; font-weight: 600; color: var(--text-1); }
|
||||
.toast-msg { font-size: 12px; color: var(--text-3); margin-top: 2px; }
|
||||
|
||||
/* ─── LEAFLET OVERRIDES ─────────────────────────────────────────── */
|
||||
.leaflet-container { background: var(--bg) !important; }
|
||||
.leaflet-control-zoom { border: 1px solid var(--border) !important; border-radius: var(--r-md) !important; overflow: hidden; }
|
||||
.leaflet-control-zoom a { background: rgba(9,9,11,0.9) !important; color: var(--text-2) !important; border-color: var(--border) !important; }
|
||||
.leaflet-control-zoom a:hover { background: var(--card) !important; color: var(--text-1) !important; }
|
||||
.leaflet-bar a:first-child { border-radius: var(--r-md) var(--r-md) 0 0 !important; }
|
||||
.leaflet-bar a:last-child { border-radius: 0 0 var(--r-md) var(--r-md) !important; }
|
||||
|
||||
/* ─── MARKER PULSE ──────────────────────────────────────────────── */
|
||||
.marker-pulse { position: relative; }
|
||||
.marker-pulse::after {
|
||||
content: ''; position: absolute; inset: -3px; border-radius: 50%;
|
||||
border: 2px solid currentColor; opacity: 0; animation: pulse-ring 2s ease-out infinite;
|
||||
}
|
||||
@keyframes pulse-ring { 0% { inset: -3px; opacity: 0.5; } 100% { inset: -10px; opacity: 0; } }
|
||||
|
||||
/* ─── PROGRAM PROGRESS ──────────────────────────────────────────── */
|
||||
.prog-overview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 20px; }
|
||||
.prog-overview-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px; transition: all 0.15s; cursor: pointer; }
|
||||
.prog-overview-card:hover { border-color: var(--border-mid); transform: translateY(-1px); box-shadow: var(--sh); }
|
||||
.poc-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
|
||||
.poc-icon { font-size: 20px; }
|
||||
.poc-name { font-size: 13px; font-weight: 600; color: var(--text-1); }
|
||||
.poc-ministry { font-size: 10px; color: var(--text-3); margin-top: 1px; }
|
||||
.poc-progress { margin-bottom: 8px; }
|
||||
.poc-pct { font-size: 20px; font-weight: 800; color: var(--text-1); letter-spacing: -0.5px; }
|
||||
.poc-target { font-size: 11px; color: var(--text-3); margin-bottom: 6px; }
|
||||
.poc-footer { display: flex; align-items: center; justify-content: space-between; }
|
||||
.poc-budget { font-size: 11px; color: var(--text-2); }
|
||||
.poc-issues { font-size: 11px; color: var(--red); font-weight: 600; }
|
||||
|
||||
/* ─── UTILITY ───────────────────────────────────────────────────── */
|
||||
.flex { display: flex; }
|
||||
.flex-col { flex-direction: column; }
|
||||
.items-center { align-items: center; }
|
||||
.justify-between { justify-content: space-between; }
|
||||
.gap-2 { gap: 8px; }
|
||||
.gap-3 { gap: 12px; }
|
||||
.gap-4 { gap: 16px; }
|
||||
.mb-2 { margin-bottom: 8px; }
|
||||
.mb-3 { margin-bottom: 12px; }
|
||||
.mb-4 { margin-bottom: 16px; }
|
||||
.mt-2 { margin-top: 8px; }
|
||||
.mt-3 { margin-top: 12px; }
|
||||
.mt-4 { margin-top: 16px; }
|
||||
.text-sm { font-size: 12px; }
|
||||
.text-xs { font-size: 11px; }
|
||||
.font-bold { font-weight: 700; }
|
||||
.font-semibold { font-weight: 600; }
|
||||
.text-muted { color: var(--text-3); }
|
||||
.text-secondary { color: var(--text-2); }
|
||||
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.w-full { width: 100%; }
|
||||
.hidden { display: none !important; }
|
||||
|
||||
/* ─── ANIMATIONS ────────────────────────────────────────────────── */
|
||||
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
|
||||
@keyframes slideIn { from { transform: translateX(-10px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
|
||||
.fade-in { animation: fadeIn 0.25s var(--ease) forwards; }
|
||||
.slide-in { animation: slideIn 0.2s var(--ease) forwards; }
|
||||
|
||||
/* ─── VIEW TOGGLE ───────────────────────────────────────────────── */
|
||||
.view-toggle { display: flex; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
|
||||
.view-btn { padding: 5px 12px; font-size: 12px; font-weight: 500; color: var(--text-2); background: transparent; border: none; cursor: pointer; transition: all 0.15s; }
|
||||
.view-btn.active { background: var(--blue-soft); color: var(--blue); }
|
||||
.view-btn:hover:not(.active) { color: var(--text-1); background: rgba(255,255,255,0.04); }
|
||||
Reference in New Issue
Block a user