Add fitur Dashboard Analisis Penerima Bantuan
This commit is contained in:
@@ -2004,4 +2004,343 @@ body {
|
||||
.logout-link:hover {
|
||||
background: rgba(239, 68, 68, 0.1);
|
||||
color: #f87171;
|
||||
}
|
||||
|
||||
/* ==========================================
|
||||
POPUP CLOSE BUTTON OVERRIDES
|
||||
========================================== */
|
||||
.leaflet-popup-close-button {
|
||||
position: absolute !important;
|
||||
top: 12px !important;
|
||||
right: 12px !important;
|
||||
width: 20px !important;
|
||||
height: 20px !important;
|
||||
line-height: 20px !important;
|
||||
text-align: center !important;
|
||||
color: rgba(255, 255, 255, 0.75) !important;
|
||||
background: rgba(255, 255, 255, 0.15) !important;
|
||||
border-radius: 50% !important;
|
||||
font-size: 12px !important;
|
||||
font-weight: normal !important;
|
||||
z-index: 1000 !important;
|
||||
transition: all 0.2s ease !important;
|
||||
display: flex !important;
|
||||
align-items: center !important;
|
||||
justify-content: center !important;
|
||||
padding: 0 !important;
|
||||
text-decoration: none !important;
|
||||
}
|
||||
|
||||
.leaflet-popup-close-button:hover {
|
||||
color: #ffffff !important;
|
||||
background: rgba(255, 255, 255, 0.3) !important;
|
||||
}
|
||||
|
||||
/* ==========================================
|
||||
DASHBOARD STATISTIK (RIGHT SIDEBAR)
|
||||
========================================== */
|
||||
.dashboard-sidebar {
|
||||
position: fixed;
|
||||
top: 56px;
|
||||
right: -340px;
|
||||
width: 330px;
|
||||
height: calc(100vh - 56px);
|
||||
background: rgba(13, 20, 36, 0.97);
|
||||
backdrop-filter: blur(16px);
|
||||
-webkit-backdrop-filter: blur(16px);
|
||||
border-left: 1px solid rgba(255, 255, 255, 0.08);
|
||||
z-index: 1040;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
transition: right 0.32s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
box-shadow: -4px 0 32px rgba(0, 0, 0, 0.4);
|
||||
color: #e2e8f0;
|
||||
}
|
||||
|
||||
.dashboard-sidebar.open {
|
||||
right: 0;
|
||||
}
|
||||
|
||||
.dashboard-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 16px;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.07);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.dashboard-title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.dashboard-title-icon {
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
background: linear-gradient(135deg, #10b981, #059669);
|
||||
border-radius: 9px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.dashboard-title-icon svg {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.dashboard-title-text {
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
color: #f1f5f9;
|
||||
}
|
||||
|
||||
.dashboard-title-sub {
|
||||
font-size: 11px;
|
||||
color: #64748b;
|
||||
margin-top: 1px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
max-width: 180px;
|
||||
}
|
||||
|
||||
.dashboard-close {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
background: rgba(255, 255, 255, 0.06);
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
border-radius: 7px;
|
||||
color: #94a3b8;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
transition: all 0.15s;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.dashboard-close:hover {
|
||||
background: rgba(255, 255, 255, 0.12);
|
||||
color: #f1f5f9;
|
||||
}
|
||||
|
||||
.dashboard-close svg {
|
||||
width: 13px;
|
||||
height: 13px;
|
||||
}
|
||||
|
||||
.dashboard-body {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding: 16px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
/* Stats Grid cards */
|
||||
.stats-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.stat-card {
|
||||
background: rgba(255, 255, 255, 0.03);
|
||||
border: 1px solid rgba(255, 255, 255, 0.06);
|
||||
border-radius: 8px;
|
||||
padding: 10px 6px;
|
||||
text-align: center;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.stat-card:hover {
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
}
|
||||
|
||||
.stat-num {
|
||||
font-size: 18px;
|
||||
font-weight: 700;
|
||||
color: #e2e8f0;
|
||||
font-family: var(--font-mono);
|
||||
}
|
||||
|
||||
.stat-label {
|
||||
font-size: 9px;
|
||||
color: #64748b;
|
||||
margin-top: 4px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.2px;
|
||||
}
|
||||
|
||||
.stat-card.stat-success {
|
||||
border-color: rgba(16, 185, 129, 0.2);
|
||||
background: rgba(16, 185, 129, 0.03);
|
||||
}
|
||||
.stat-card.stat-success .stat-num {
|
||||
color: #10b981;
|
||||
}
|
||||
|
||||
.stat-card.stat-danger {
|
||||
border-color: rgba(239, 68, 68, 0.2);
|
||||
background: rgba(239, 68, 68, 0.03);
|
||||
}
|
||||
.stat-card.stat-danger .stat-num {
|
||||
color: #ef4444;
|
||||
}
|
||||
|
||||
/* Chart Section */
|
||||
.chart-section {
|
||||
background: rgba(255, 255, 255, 0.02);
|
||||
border: 1px solid rgba(255, 255, 255, 0.06);
|
||||
border-radius: 10px;
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
.chart-title {
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
color: #cbd5e1;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
/* Families List Section */
|
||||
.families-section {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 200px;
|
||||
}
|
||||
|
||||
.families-title {
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
color: #cbd5e1;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.families-list {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
border: 1px solid rgba(255, 255, 255, 0.06);
|
||||
border-radius: 8px;
|
||||
background: rgba(0, 0, 0, 0.15);
|
||||
max-height: 250px;
|
||||
}
|
||||
|
||||
.family-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 10px 12px;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
|
||||
cursor: pointer;
|
||||
transition: background 0.15s;
|
||||
}
|
||||
|
||||
.family-item:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.family-item:hover {
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
}
|
||||
|
||||
.family-details {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
min-width: 0;
|
||||
flex: 1;
|
||||
padding-right: 8px;
|
||||
}
|
||||
|
||||
.family-name {
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
color: #f1f5f9;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.family-address {
|
||||
font-size: 10px;
|
||||
color: #64748b;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.family-badge {
|
||||
font-size: 8.5px;
|
||||
font-weight: 700;
|
||||
padding: 2px 6px;
|
||||
border-radius: 12px;
|
||||
text-transform: uppercase;
|
||||
white-space: nowrap;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.family-badge.badge-success {
|
||||
background: rgba(16, 185, 129, 0.15);
|
||||
color: #34d399;
|
||||
}
|
||||
|
||||
.family-badge.badge-danger {
|
||||
background: rgba(239, 68, 68, 0.15);
|
||||
color: #f87171;
|
||||
}
|
||||
|
||||
.families-empty {
|
||||
padding: 20px;
|
||||
text-align: center;
|
||||
color: #64748b;
|
||||
font-size: 11.5px;
|
||||
}
|
||||
|
||||
/* ==========================================
|
||||
MARKER CLUSTER CUSTOM STYLING
|
||||
========================================== */
|
||||
.marker-cluster-small {
|
||||
background-color: rgba(59, 130, 246, 0.4) !important;
|
||||
}
|
||||
.marker-cluster-small div {
|
||||
background-color: rgba(37, 99, 235, 0.95) !important;
|
||||
color: white !important;
|
||||
font-weight: 700 !important;
|
||||
}
|
||||
|
||||
.marker-cluster-medium {
|
||||
background-color: rgba(37, 99, 235, 0.4) !important;
|
||||
}
|
||||
.marker-cluster-medium div {
|
||||
background-color: rgba(29, 78, 216, 0.95) !important;
|
||||
color: white !important;
|
||||
font-weight: 700 !important;
|
||||
}
|
||||
|
||||
.marker-cluster-large {
|
||||
background-color: rgba(30, 58, 138, 0.4) !important;
|
||||
}
|
||||
.marker-cluster-large div {
|
||||
background-color: rgba(30, 64, 175, 0.95) !important;
|
||||
color: white !important;
|
||||
font-weight: 700 !important;
|
||||
}
|
||||
|
||||
.marker-cluster div {
|
||||
font-family: var(--font-mono) !important;
|
||||
font-size: 12px !important;
|
||||
box-shadow: 0 0 10px rgba(37, 99, 235, 0.5) !important;
|
||||
}
|
||||
Reference in New Issue
Block a user