Files
Webgis-Poverty/css/pages/manajemen_akun.css
T
2026-06-11 01:50:37 +07:00

434 lines
11 KiB
CSS

/* ==================== PAGE-SPECIFIC STYLES ==================== */
.page-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 32px;
gap: 16px;
flex-wrap: wrap;
}
.page-title-group h1 {
font-family: var(--font-head);
font-size: 26px;
font-weight: 800;
letter-spacing: -.04em;
margin: 0 0 4px;
color: #0f172a;
}
.page-title-group p {
margin: 0;
font-size: 13px;
color: #64748b;
}
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }
/* RI Card Grid */
.ri-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
gap: 20px;
margin-bottom: 40px;
}
.ri-card {
background: #fff;
border: 1px solid #e2e8f0;
border-radius: 20px;
padding: 0;
overflow: hidden;
box-shadow: 0 1px 4px rgba(0,0,0,.04);
transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
cursor: pointer;
position: relative;
}
.ri-card:hover {
transform: translateY(-4px);
box-shadow: 0 16px 36px rgba(15,23,42,.10);
border-color: #cbd5e1;
}
.ri-card-header {
padding: 20px 20px 0;
display: flex;
align-items: flex-start;
gap: 14px;
}
.ri-avatar {
width: 48px;
height: 48px;
border-radius: 14px;
display: flex;
align-items: center;
justify-content: center;
font-size: 22px;
flex-shrink: 0;
background: linear-gradient(135deg, #fef3c7, #fde68a);
}
.ri-card-meta { flex: 1; min-width: 0; }
.ri-card-name {
font-family: var(--font-head);
font-size: 16px;
font-weight: 700;
color: #0f172a;
margin: 0 0 4px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.ri-card-type {
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: .05em;
color: #f59e0b;
background: #fffbeb;
border: 1px solid #fef3c7;
border-radius: 999px;
padding: 2px 8px;
display: inline-block;
}
/* Account status badge */
.ri-account-status {
position: absolute;
top: 16px;
right: 16px;
font-size: 10px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: .04em;
padding: 3px 8px;
border-radius: 999px;
}
.ri-account-status.active {
background: #f0fdf4;
color: #15803d;
border: 1px solid #bbf7d0;
}
.ri-account-status.inactive {
background: #f8fafc;
color: #94a3b8;
border: 1px solid #e2e8f0;
}
/* Stats row in card */
.ri-card-stats {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 0;
margin: 16px 20px 0;
background: #f8fafc;
border-radius: 14px;
overflow: hidden;
border: 1px solid #f1f5f9;
}
.stat-mini {
padding: 12px 8px;
text-align: center;
border-right: 1px solid #f1f5f9;
}
.stat-mini:last-child { border-right: none; }
.stat-mini-val {
font-family: var(--font-head);
font-size: 18px;
font-weight: 700;
color: #0f172a;
line-height: 1;
}
.stat-mini-label {
font-size: 9px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: .04em;
color: #94a3b8;
margin-top: 4px;
}
/* Account info row */
.ri-card-account {
display: flex;
align-items: center;
gap: 8px;
margin: 12px 20px 0;
padding: 10px 12px;
background: #f8fafc;
border-radius: 10px;
font-size: 12px;
color: #475569;
}
.ri-card-account .username {
font-weight: 700;
color: #1e293b;
font-family: 'ui-monospace', monospace;
font-size: 11px;
}
.ri-card-account .no-account {
color: #94a3b8;
font-style: italic;
}
/* Card footer */
.ri-card-footer {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
padding: 12px 20px 20px;
}
.ri-card-alamat {
font-size: 11px;
color: #94a3b8;
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.ri-card-actions { display: flex; gap: 6px; flex-shrink: 0; }
.btn-icon {
width: 32px;
height: 32px;
border-radius: 9px;
border: 1px solid #e2e8f0;
background: #fff;
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 14px;
cursor: pointer;
transition: all .15s ease;
}
.btn-icon:hover { border-color: var(--accent); background: var(--accent-soft); }
.btn-icon.danger:hover { border-color: #ef4444; background: #fef2f2; }
/* Empty state */
.empty-state {
text-align: center;
padding: 60px 24px;
color: #94a3b8;
grid-column: 1 / -1;
}
.empty-state-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { font-family: var(--font-head); color: #475569; margin: 0 0 8px; }
.empty-state p { font-size: 13px; margin: 0; }
/* Search & filter bar */
.filter-bar {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 24px;
flex-wrap: wrap;
}
.filter-search {
flex: 1;
min-width: 220px;
position: relative;
}
.filter-search input {
width: 100%;
border: 1px solid #e2e8f0;
border-radius: 12px;
padding: 10px 14px 10px 38px;
font-size: 13px;
outline: none;
background: #fff;
transition: all .15s ease;
font-family: var(--font);
color: #0f172a;
}
.filter-search input:focus { border-color: #8eb3ff; box-shadow: 0 0 0 4px rgba(22,93,255,.08); }
.filter-search-icon {
position: absolute;
left: 12px;
top: 50%;
transform: translateY(-50%);
color: #94a3b8;
font-size: 15px;
pointer-events: none;
}
.filter-select {
border: 1px solid #e2e8f0;
border-radius: 12px;
padding: 10px 14px;
font-size: 13px;
outline: none;
background: #fff;
cursor: pointer;
font-family: var(--font);
color: #0f172a;
}
.filter-select:focus { border-color: #8eb3ff; }
.filter-count {
font-size: 12px;
font-weight: 600;
color: #64748b;
white-space: nowrap;
}
/* Detail panel (drawer) */
.detail-overlay {
position: fixed;
inset: 0;
background: rgba(15,23,42,.45);
z-index: 7000;
display: none;
backdrop-filter: blur(4px);
}
.detail-overlay.open { display: flex; align-items: center; justify-content: flex-end; }
.detail-drawer {
width: min(520px, 100%);
height: 100vh;
background: #fff;
overflow-y: auto;
box-shadow: -24px 0 60px rgba(15,23,42,.18);
animation: drawer-in .25s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes drawer-in {
from { transform: translateX(40px); opacity: 0; }
to { transform: translateX(0); opacity: 1; }
}
.drawer-head {
padding: 24px;
border-bottom: 1px solid #f1f5f9;
position: sticky;
top: 0;
background: #fff;
z-index: 10;
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.drawer-head h2 {
font-family: var(--font-head);
font-size: 18px;
font-weight: 700;
margin: 0;
color: #0f172a;
}
.drawer-close {
width: 34px;
height: 34px;
border-radius: 10px;
border: 1px solid #e2e8f0;
background: #fff;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
font-size: 16px;
transition: all .15s;
}
.drawer-close:hover { background: #f1f5f9; }
.drawer-body { padding: 24px; }
/* KPI row in drawer */
.kpi-row {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 12px;
margin-bottom: 24px;
}
.kpi-box {
background: #f8fafc;
border: 1px solid #f1f5f9;
border-radius: 14px;
padding: 16px;
text-align: center;
}
.kpi-val {
font-family: var(--font-head);
font-size: 22px;
font-weight: 700;
color: #0f172a;
}
.kpi-label { font-size: 11px; font-weight: 600; color: #94a3b8; text-transform: uppercase; letter-spacing: .04em; margin-top: 4px; }
.kpi-val.accent { color: var(--accent); }
.kpi-val.green { color: #15803d; }
/* Section heading */
.section-heading {
font-size: 11px;
font-weight: 800;
text-transform: uppercase;
letter-spacing: .08em;
color: #94a3b8;
margin: 24px 0 12px;
}
/* Info row */
.info-row {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 0;
border-bottom: 1px solid #f8fafc;
font-size: 13px;
}
.info-row:last-child { border-bottom: none; }
.info-label { color: #64748b; }
.info-val { font-weight: 600; color: #0f172a; text-align: right; }
/* Log list in drawer */
.log-list { display: grid; gap: 8px; }
.log-entry {
display: flex;
align-items: center;
gap: 12px;
padding: 10px 12px;
background: #f8fafc;
border: 1px solid #f1f5f9;
border-radius: 12px;
}
.log-type-dot {
width: 8px;
height: 8px;
border-radius: 50%;
flex-shrink: 0;
}
.log-type-dot.pem { background: #2563eb; }
.log-type-dot.kon { background: #f59e0b; }
.log-entry-info { flex: 1; min-width: 0; }
.log-entry-name { font-size: 12px; font-weight: 700; color: #0f172a; }
.log-entry-detail { font-size: 11px; color: #64748b; margin-top: 2px; }
.log-entry-date { font-size: 10px; color: #94a3b8; white-space: nowrap; }
/* Password reset form */
.reset-form {
display: flex;
gap: 8px;
align-items: flex-end;
margin-top: 8px;
}
.reset-form input {
flex: 1;
border: 1px solid #e2e8f0;
border-radius: 10px;
padding: 9px 12px;
font-size: 12px;
outline: none;
font-family: var(--font);
transition: all .14s;
}
.reset-form input:focus { border-color: #8eb3ff; box-shadow: 0 0 0 3px rgba(22,93,255,.08); }
/* Btn variants */
.btn-sm-outline {
padding: 7px 12px;
border: 1px solid #e2e8f0;
border-radius: 10px;
background: #fff;
font-size: 11px;
font-weight: 700;
color: #475569;
cursor: pointer;
transition: all .15s;
}
.btn-sm-outline:hover { border-color: var(--accent); color: var(--accent); }
.loading-spinner-wrap { text-align: center; padding: 60px; color: #94a3b8; }
/* Modal for password reset */
.modal-sm {
width: min(420px, 100%);
}