menambahkan fitur statistik pada sidebar dan memindahkan tombol login dari bawah sidebar ke header sidebar

This commit is contained in:
powji17
2026-06-12 15:51:04 +07:00
parent 04e4529195
commit 21307a323e
3 changed files with 217 additions and 23 deletions
+112 -16
View File
@@ -24,6 +24,12 @@ html, body {
box-shadow: 2px 0 12px rgba(0,0,0,0.10);
z-index: 1000;
overflow-y: auto;
scrollbar-width: none; /* Firefox */
-ms-overflow-style: none; /* IE/Edge */
}
#sidebar::-webkit-scrollbar {
display: none; /* Chrome/Safari */
}
/* Header sidebar */
@@ -250,26 +256,22 @@ html, body {
.btn-login:hover { background: #253d6e; }
.btn-logout {
.btn-logout-header {
color: white;
opacity: 0.7;
text-decoration: none;
font-size: 16px;
padding: 4px 6px;
border-radius: 6px;
transition: opacity 0.2s, background 0.2s;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
padding: 11px;
background: #fdecea;
color: #c0392b;
border-radius: 10px;
text-decoration: none;
font-size: 14px;
font-weight: 600;
border: none;
cursor: pointer;
transition: background 0.2s;
width: 100%;
margin-top: auto;
}
.btn-logout:hover { background: #f5b7b1; }
.btn-logout-header:hover {
opacity: 1;
background: rgba(255,255,255,0.15);
}
/* ===== MAP CONTAINER ===== */
#map-container {
@@ -376,4 +378,98 @@ html, body {
background: linear-gradient(to right, #3498db, #f1c40f, #e67e22, #e74c3c);
display: inline-block;
flex-shrink: 0;
}
/* ===== SIDEBAR STATS ===== */
.sidebar-stats {
background: #f8fafc;
border-bottom: 1px solid #e8edf2;
padding: 14px 16px;
display: flex;
flex-direction: column;
gap: 8px;
}
.stat-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
}
.stat-label {
font-size: 12px;
color: #666;
display: flex;
align-items: center;
gap: 6px;
}
.stat-label i {
color: #1B2A4A;
font-size: 12px;
width: 14px;
text-align: center;
}
.stat-dot {
width: 10px;
height: 10px;
border-radius: 50%;
display: inline-block;
flex-shrink: 0;
}
.stat-value {
font-size: 15px;
font-weight: 700;
color: #1B2A4A;
min-width: 28px;
text-align: right;
}
.stat-value.green { color: #27ae60; }
.stat-value.red { color: #e74c3c; }
.stat-divider {
height: 1px;
background: #e8edf2;
margin: 2px 0;
}
/* Progress bar */
.stat-progress-wrap {
display: flex;
align-items: center;
gap: 8px;
margin-top: 2px;
}
.stat-progress-bar {
flex: 1;
height: 6px;
background: #e8edf2;
border-radius: 20px;
overflow: hidden;
}
.stat-progress-fill {
height: 100%;
border-radius: 20px;
background: #27ae60;
transition: width 0.5s ease, background 0.5s ease;
}
.stat-persen {
font-size: 12px;
font-weight: 700;
color: #1B2A4A;
min-width: 36px;
text-align: right;
}
.stat-persen-label {
font-size: 11px;
color: #aab4c0;
white-space: nowrap;
}