794 lines
15 KiB
CSS
794 lines
15 KiB
CSS
:root {
|
|
--bg: #eef3f8;
|
|
--panel: rgba(255, 255, 255, .92);
|
|
--panel-strong: #ffffff;
|
|
--line: #d7e0ea;
|
|
--line-strong: #bcc9d7;
|
|
--text: #0f172a;
|
|
--muted: #5b6b82;
|
|
--muted-2: #7d8ca2;
|
|
--accent: #165dff;
|
|
--accent-2: #0ea5e9;
|
|
--accent-soft: #eaf1ff;
|
|
--shadow: 0 12px 36px rgba(15, 23, 42, .12);
|
|
--shadow-soft: 0 8px 18px rgba(15, 23, 42, .08);
|
|
--radius: 18px;
|
|
--radius-sm: 12px;
|
|
--font: 'Inter', sans-serif;
|
|
--font-head: 'Space Grotesk', sans-serif;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html,
|
|
body {
|
|
height: 100%;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
font-family: var(--font);
|
|
color: var(--text);
|
|
background:
|
|
radial-gradient(circle at top left, rgba(22, 93, 255, .12), transparent 32%),
|
|
radial-gradient(circle at right center, rgba(14, 165, 233, .10), transparent 28%),
|
|
linear-gradient(180deg, #f6f9fc 0%, var(--bg) 100%);
|
|
}
|
|
|
|
button,
|
|
input,
|
|
select,
|
|
textarea {
|
|
font: inherit;
|
|
}
|
|
|
|
button {
|
|
cursor: pointer;
|
|
}
|
|
|
|
#app {
|
|
height: 100%;
|
|
display: grid;
|
|
grid-template-rows: 64px 1fr;
|
|
}
|
|
|
|
.nav-tabs {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.header-search {
|
|
position: relative;
|
|
width: min(500px, 100%);
|
|
flex: 1 1 360px;
|
|
max-width: 500px;
|
|
z-index: 4001;
|
|
}
|
|
|
|
#search-input {
|
|
width: 100%;
|
|
border: none;
|
|
outline: none;
|
|
background: transparent;
|
|
color: var(--text);
|
|
font-size: 12px;
|
|
}
|
|
|
|
#search-input::placeholder {
|
|
color: var(--muted-2);
|
|
}
|
|
|
|
.nav-tab {
|
|
border: 1px solid transparent;
|
|
background: transparent;
|
|
color: var(--muted);
|
|
border-radius: 999px;
|
|
padding: 9px 14px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
transition: all .16s ease;
|
|
}
|
|
|
|
.nav-tab:hover {
|
|
background: #f3f7fb;
|
|
color: var(--text);
|
|
}
|
|
|
|
.nav-tab.active {
|
|
background: var(--accent-soft);
|
|
color: var(--accent);
|
|
border-color: #cfe0ff;
|
|
box-shadow: 0 0 0 1px rgba(22, 93, 255, .04) inset;
|
|
}
|
|
|
|
.header-right {
|
|
margin-left: auto;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.coord-display,
|
|
.status-pill {
|
|
border: 1px solid var(--line);
|
|
background: rgba(255, 255, 255, .86);
|
|
box-shadow: var(--shadow-soft);
|
|
border-radius: 999px;
|
|
padding: 8px 12px;
|
|
font-size: 11px;
|
|
color: var(--muted);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.coord-display {
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
|
}
|
|
|
|
.status-pill strong {
|
|
color: var(--text);
|
|
}
|
|
|
|
#main {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) 362px;
|
|
min-height: 0;
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
#instruction-banner {
|
|
position: absolute;
|
|
left: 50%;
|
|
transform: translateX(-50%) translateY(-8px);
|
|
top: 18px;
|
|
z-index: 5000;
|
|
background: rgba(15, 23, 42, .92);
|
|
color: #fff;
|
|
padding: 10px 14px;
|
|
border-radius: 999px;
|
|
font-size: 12px;
|
|
box-shadow: var(--shadow);
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
transition: all .18s ease;
|
|
}
|
|
|
|
#instruction-banner.show {
|
|
opacity: 1;
|
|
transform: translateX(-50%) translateY(0);
|
|
}
|
|
|
|
#panel {
|
|
min-width: 0;
|
|
background: var(--panel);
|
|
border-left: 1px solid rgba(215, 224, 234, .95);
|
|
box-shadow: -1px 0 0 rgba(255, 255, 255, .75) inset;
|
|
display: grid;
|
|
grid-template-rows: auto 1fr;
|
|
min-height: 0;
|
|
}
|
|
|
|
#panel-head {
|
|
padding: 16px 16px 12px;
|
|
border-bottom: 1px solid var(--line);
|
|
background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .82));
|
|
}
|
|
|
|
#panel-head h2 {
|
|
margin: 0 0 8px;
|
|
font-family: var(--font-head);
|
|
letter-spacing: -.04em;
|
|
font-size: 17px;
|
|
}
|
|
|
|
.panel-meta {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
font-size: 11px;
|
|
color: var(--muted);
|
|
}
|
|
|
|
#panel-body {
|
|
min-height: 0;
|
|
overflow: auto;
|
|
padding: 14px;
|
|
background: linear-gradient(180deg, rgba(247, 250, 253, .8), rgba(242, 246, 250, .88));
|
|
}
|
|
|
|
#panel-body::-webkit-scrollbar {
|
|
width: 10px;
|
|
}
|
|
|
|
#panel-body::-webkit-scrollbar-thumb {
|
|
background: #c7d3e0;
|
|
border-radius: 999px;
|
|
border: 2px solid transparent;
|
|
background-clip: padding-box;
|
|
}
|
|
|
|
.data-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
border: 1px solid var(--line);
|
|
background: var(--panel-strong);
|
|
border-radius: var(--radius-sm);
|
|
box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
|
|
}
|
|
|
|
.data-item:hover {
|
|
border-color: #bcd0ff;
|
|
box-shadow: 0 10px 20px rgba(22, 93, 255, .08);
|
|
}
|
|
|
|
.data-list {
|
|
display: grid;
|
|
gap: 8px;
|
|
}
|
|
|
|
.data-item {
|
|
padding: 10px 11px;
|
|
transition: all .16s ease;
|
|
}
|
|
|
|
.item-icon {
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 10px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: #f3f7fb;
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.item-info {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.item-name {
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
color: var(--text);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.item-sub {
|
|
font-size: 10px;
|
|
color: var(--muted);
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.item-badge {
|
|
font-size: 9px;
|
|
font-weight: 800;
|
|
text-transform: uppercase;
|
|
letter-spacing: .04em;
|
|
border-radius: 999px;
|
|
padding: 4px 8px;
|
|
border: 1px solid transparent;
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.loading {
|
|
padding: 14px;
|
|
border: 1px dashed #cbd6e3;
|
|
border-radius: var(--radius-sm);
|
|
background: rgba(255, 255, 255, .7);
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
text-align: center;
|
|
}
|
|
|
|
.spinner {
|
|
display: inline-block;
|
|
width: 12px;
|
|
height: 12px;
|
|
border: 2px solid rgba(22, 93, 255, .18);
|
|
border-top-color: var(--accent);
|
|
border-radius: 50%;
|
|
animation: spin .8s linear infinite;
|
|
margin-right: 8px;
|
|
vertical-align: -2px;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
#modal-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
display: none;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: rgba(15, 23, 42, .42);
|
|
z-index: 6000;
|
|
padding: 18px;
|
|
}
|
|
|
|
#modal-overlay.open {
|
|
display: flex;
|
|
}
|
|
|
|
#modal {
|
|
width: min(720px, 100%);
|
|
max-height: min(90vh, 860px);
|
|
background: var(--panel-strong);
|
|
border-radius: 24px;
|
|
box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
|
|
overflow: hidden;
|
|
display: grid;
|
|
grid-template-rows: auto 1fr auto;
|
|
}
|
|
|
|
#modal-body {
|
|
padding: 18px 20px;
|
|
overflow: auto;
|
|
background: #fbfcfe;
|
|
}
|
|
|
|
#modal-footer {
|
|
padding: 14px 20px 18px;
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 10px;
|
|
border-top: 1px solid var(--line);
|
|
background: #fff;
|
|
}
|
|
|
|
.popup-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.popup-drag-hint,
|
|
.proximity-info {
|
|
margin-top: 10px;
|
|
padding: 10px 12px;
|
|
border-radius: 12px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.popup-drag-hint {
|
|
background: #f3f7fb;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.proximity-info.dalam {
|
|
background: #e6f8ec;
|
|
color: #15803d;
|
|
}
|
|
|
|
.proximity-info.luar {
|
|
background: #feecec;
|
|
color: #dc2626;
|
|
}
|
|
|
|
#toast-container {
|
|
position: fixed;
|
|
right: 18px;
|
|
bottom: 18px;
|
|
display: grid;
|
|
gap: 10px;
|
|
z-index: 3000;
|
|
}
|
|
|
|
@keyframes toast-in {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(8px);
|
|
}
|
|
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 1100px) {
|
|
#main {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
#panel {
|
|
grid-template-rows: auto 360px;
|
|
border-left: none;
|
|
border-top: 1px solid var(--line);
|
|
}
|
|
}
|
|
|
|
.admin-only, .petugas-only, .write-only {
|
|
display: none !important;
|
|
}
|
|
|
|
body.role-admin .admin-only,
|
|
body.role-admin .write-only {
|
|
display: inline-flex !important;
|
|
}
|
|
|
|
body.role-admin button.admin-only,
|
|
body.role-admin button.write-only {
|
|
display: block !important;
|
|
}
|
|
|
|
body.role-petugas_lapangan .petugas-only,
|
|
body.role-petugas_lapangan .write-only {
|
|
display: inline-flex !important;
|
|
}
|
|
|
|
body.role-petugas_lapangan button.petugas-only,
|
|
body.role-petugas_lapangan button.write-only {
|
|
display: block !important;
|
|
}
|
|
|
|
/* Auth hide/show — body hidden until auth confirmed, prevents flash */
|
|
body:not(.login-body) {
|
|
visibility: hidden;
|
|
opacity: 0;
|
|
transition: opacity 0.2s ease;
|
|
}
|
|
body.auth-loaded {
|
|
visibility: visible;
|
|
opacity: 1;
|
|
}
|
|
/* Login page is always visible */
|
|
body.login-body {
|
|
visibility: visible !important;
|
|
opacity: 1 !important;
|
|
}
|
|
|
|
/* ==========================================================================
|
|
SIDEBAR LAYOUT STYLING
|
|
========================================================================== */
|
|
.user-profile {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.user-avatar {
|
|
width: 36px;
|
|
height: 36px;
|
|
background: #1e293b;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.user-info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.user-name {
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
color: #fff;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.user-role-badge {
|
|
font-size: 9px;
|
|
font-weight: 800;
|
|
letter-spacing: .04em;
|
|
text-transform: uppercase;
|
|
color: #38bdf8;
|
|
background: rgba(56, 189, 248, 0.1);
|
|
padding: 2px 6px;
|
|
border-radius: 999px;
|
|
align-self: flex-start;
|
|
}
|
|
|
|
/* Main content area — always offset by sidebar width */
|
|
.main-content-area {
|
|
margin-left: 260px;
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
/* Map page: full-screen layout (header + map filling remaining height) */
|
|
body.page-map .main-content-area {
|
|
height: 100vh;
|
|
overflow: hidden;
|
|
}
|
|
|
|
body.page-map .main-content-area #app {
|
|
height: 100%;
|
|
display: grid;
|
|
grid-template-rows: 64px 1fr;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Dashboard / other pages: scrollable */
|
|
body.page-dashboard .main-content-area {
|
|
overflow-y: auto;
|
|
background: none;
|
|
}
|
|
|
|
/* Content padding for all dashboard-style pages */
|
|
.dashboard-content {
|
|
padding: 32px 36px;
|
|
max-width: 1400px;
|
|
}
|
|
|
|
/* ==========================================================================
|
|
LOGIN PAGE STYLING
|
|
========================================================================== */
|
|
.login-body {
|
|
margin: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 100vh;
|
|
background:
|
|
radial-gradient(circle at top left, rgba(22, 93, 255, .15), transparent 35%),
|
|
radial-gradient(circle at bottom right, rgba(14, 165, 233, .12), transparent 35%),
|
|
linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
|
|
color: #f8fafc;
|
|
overflow-y: auto;
|
|
font-family: 'Inter', sans-serif;
|
|
display: flex !important; /* Force override body display */
|
|
}
|
|
|
|
.login-container {
|
|
width: min(440px, 90%);
|
|
padding: 40px;
|
|
background: rgba(15, 23, 42, 0.6);
|
|
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
border-radius: 24px;
|
|
backdrop-filter: blur(20px);
|
|
box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
|
|
animation: login-fade-in 0.5s cubic-bezier(0.16, 1, 0.3, 1);
|
|
}
|
|
|
|
@keyframes login-fade-in {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(20px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.login-header {
|
|
text-align: center;
|
|
margin-bottom: 32px;
|
|
}
|
|
|
|
.login-logo {
|
|
font-size: 40px;
|
|
margin-bottom: 12px;
|
|
display: inline-block;
|
|
animation: float 3s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes float {
|
|
0%, 100% { transform: translateY(0); }
|
|
50% { transform: translateY(-6px); }
|
|
}
|
|
|
|
.login-header h1 {
|
|
font-family: var(--font-head);
|
|
font-size: 24px;
|
|
font-weight: 700;
|
|
letter-spacing: -.03em;
|
|
margin: 0 0 6px;
|
|
color: #fff;
|
|
}
|
|
|
|
.login-header p {
|
|
font-size: 13px;
|
|
color: #94a3b8;
|
|
margin: 0;
|
|
}
|
|
|
|
.login-error {
|
|
background: rgba(239, 68, 68, 0.1);
|
|
border: 1px solid rgba(239, 68, 68, 0.2);
|
|
color: #fca5a5;
|
|
border-radius: 12px;
|
|
padding: 12px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
margin-bottom: 20px;
|
|
display: none;
|
|
}
|
|
|
|
.login-hint-card {
|
|
margin-top: 30px;
|
|
background: rgba(255, 255, 255, 0.03);
|
|
border: 1px solid rgba(255, 255, 255, 0.05);
|
|
border-radius: 14px;
|
|
padding: 14px;
|
|
font-size: 11px;
|
|
color: #94a3b8;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.login-hint-title {
|
|
color: #38bdf8;
|
|
font-weight: 700;
|
|
margin-bottom: 6px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
.login-hint-card ul {
|
|
margin: 0;
|
|
padding-left: 16px;
|
|
}
|
|
|
|
.login-hint-card li {
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.login-hint-card strong {
|
|
color: #f1f5f9;
|
|
}
|
|
|
|
/* ==========================================================================
|
|
DASHBOARD PAGE STYLING
|
|
========================================================================== */
|
|
.stats-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
|
|
gap: 20px;
|
|
margin-bottom: 36px;
|
|
}
|
|
|
|
.stat-icon {
|
|
width: 52px;
|
|
height: 52px;
|
|
border-radius: 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 24px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.stat-icon.purple { background: #faf5ff; color: #7c3aed; }
|
|
.stat-icon.green { background: #f0fdf4; color: #16a34a; }
|
|
.stat-icon.orange { background: #fffbeb; color: #d97706; }
|
|
.stat-icon.blue { background: #eff6ff; color: #1d4ed8; }
|
|
.stat-icon.rose { background: #fff1f2; color: #e11d48; }
|
|
|
|
.stat-details {
|
|
min-width: 0;
|
|
}
|
|
|
|
.stat-label {
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
color: #64748b;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.stat-val {
|
|
font-family: var(--font-head);
|
|
font-size: 24px;
|
|
font-weight: 700;
|
|
color: #0f172a;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.stat-sub {
|
|
font-size: 11px;
|
|
color: #64748b;
|
|
margin-top: 4px;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
/* Visualization (Charts) Grid */
|
|
.chart-card {
|
|
background: #fff;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 20px;
|
|
padding: 24px;
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
|
|
}
|
|
|
|
.chart-title {
|
|
font-family: var(--font-head);
|
|
font-size: 16px;
|
|
font-weight: 700;
|
|
color: #0f172a;
|
|
margin: 0 0 20px;
|
|
}
|
|
|
|
.chart-container {
|
|
position: relative;
|
|
height: 280px;
|
|
width: 100%;
|
|
}
|
|
|
|
/* Data Tables Section Grid */
|
|
.tables-grid {
|
|
display: grid;
|
|
grid-template-columns: 1.4fr 1fr;
|
|
gap: 24px;
|
|
}
|
|
|
|
@media (max-width: 1024px) {
|
|
.tables-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
.db-table-wrapper {
|
|
overflow-x: auto;
|
|
border-radius: 12px;
|
|
border: 1px solid #f1f5f9;
|
|
}
|
|
|
|
.db-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
text-align: left;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.db-table th {
|
|
background: #f8fafc;
|
|
color: #475569;
|
|
font-weight: 700;
|
|
padding: 12px 16px;
|
|
border-bottom: 1px solid #e2e8f0;
|
|
}
|
|
|
|
.db-table td {
|
|
padding: 12px 16px;
|
|
border-bottom: 1px solid #f1f5f9;
|
|
color: #334155;
|
|
}
|
|
|
|
.db-table tr:last-child td {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.db-table tr:hover td {
|
|
background: #f8fafc;
|
|
}
|
|
|
|
.db-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
font-size: 10px;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
padding: 3px 8px;
|
|
border-radius: 999px;
|
|
}
|
|
|
|
.db-badge.pemberdayaan { background: #eff6ff; color: #1e40af; }
|
|
.db-badge.konsumtif { background: #fffbeb; color: #92400e; }
|
|
.db-badge.dalam { background: #f0fdf4; color: #166534; }
|
|
.db-badge.luar { background: #fff1f2; color: #9f1239; }
|
|
|
|
/* Responsive adjustments for sidebar */
|