/* style.css - Simple & Clean */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Arial, sans-serif; background: #f0f2f5; color: #222; font-size: 14px; }
a { color: #07213D; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Navbar */
.navbar { background: #07213D; color: #fff; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; height: 56px; position: sticky; top: 0; z-index: 100; }
.navbar .brand { font-size: 16px; font-weight: bold; color: #EEBF63; }
.navbar .brand small { display: block; font-size: 11px; color: rgba(255,255,255,0.6); font-weight: normal; }
.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.85); padding: 6px 14px; border-radius: 4px; font-size: 13px; }
.nav-links a:hover, .nav-links a.active { color: #EEBF63; background: rgba(238,191,99,0.12); text-decoration: none; }
.hamburger { display: none; cursor: pointer; background: none; border: none; padding: 6px; flex-direction: column; gap: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; }

/* Layout */
.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.page-wrap { padding: 20px 16px; max-width: 1100px; margin: 0 auto; }

/* Page Header */
.page-header { background: #07213D; color: #fff; padding: 20px 16px; }
.page-header-inner { max-width: 1100px; margin: 0 auto; }
.page-header h1 { font-size: 20px; margin-bottom: 4px; }
.page-header p { color: rgba(255,255,255,0.65); font-size: 13px; }

/* Hero */
.hero { background: linear-gradient(135deg, #07213D 0%, #0d3660 100%); padding: 28px 16px 36px; color: #fff; }
.hero-inner { max-width: 1100px; margin: 0 auto; }
.hero h1 { font-size: 22px; font-weight: bold; margin-bottom: 6px; }
.hero h1 span { color: #EEBF63; }
.hero p { color: rgba(255,255,255,0.7); font-size: 13px; margin-bottom: 16px; }
.hero-search { display: flex; gap: 8px; max-width: 480px; }
.hero-search input { flex: 1; padding: 9px 14px; border: none; border-radius: 4px; font-size: 14px; outline: none; }
.hero-search button { padding: 9px 18px; background: #EEBF63; color: #07213D; border: none; border-radius: 4px; font-weight: bold; cursor: pointer; font-size: 13px; }
.hero-search button:hover { background: #d4a843; }

/* Stats */
.stats-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin: -20px 16px 0; max-width: 1100px; margin-left: auto; margin-right: auto; position: relative; z-index: 2; padding: 0 16px; }
.stat-card { background: #fff; border-radius: 6px; padding: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); border-top: 3px solid #EEBF63; }
.stat-card .num { font-size: 28px; font-weight: bold; color: #07213D; }
.stat-card .lbl { font-size: 11px; color: #666; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 2px; }

/* Card */
.card { background: #fff; border-radius: 6px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); overflow: hidden; margin-bottom: 16px; }
.card-head { padding: 14px 16px; border-bottom: 1px solid #e5e7eb; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.card-head h2 { font-size: 15px; color: #07213D; }
.card-body { padding: 16px; }

/* Table */
.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 580px; }
thead th { background: #07213D; color: #fff; padding: 10px 12px; text-align: left; font-size: 12px; white-space: nowrap; }
tbody tr { border-bottom: 1px solid #f0f0f0; }
tbody tr:hover { background: #fafbfc; }
tbody td { padding: 10px 12px; font-size: 13px; vertical-align: middle; }
td.nip { font-family: monospace; font-size: 12px; color: #555; }

/* Badge */
.badge { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: bold; }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-danger  { background: #fee2e2; color: #991b1b; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-secondary { background: #f3f4f6; color: #374151; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 5px; padding: 7px 14px; border: none; border-radius: 4px; font-size: 13px; font-weight: bold; cursor: pointer; text-decoration: none; transition: 0.15s; }
.btn:hover { text-decoration: none; opacity: 0.88; }
.btn-primary { background: #EEBF63; color: #07213D; }
.btn-primary:hover { background: #d4a843; opacity: 1; }
.btn-secondary { background: #07213D; color: #fff; }
.btn-secondary:hover { background: #0d3660; opacity: 1; }
.btn-danger { background: #dc2626; color: #fff; }
.btn-success { background: #16a34a; color: #fff; }
.btn-outline { background: #fff; border: 1px solid #07213D; color: #07213D; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-link { background: none; color: #07213D; padding: 4px 8px; font-weight: normal; }

/* Alert */
.alert { padding: 10px 14px; border-radius: 4px; margin-bottom: 14px; font-size: 13px; }
.alert-success { background: #d1fae5; color: #065f46; border-left: 3px solid #16a34a; }
.alert-danger   { background: #fee2e2; color: #991b1b; border-left: 3px solid #dc2626; }
.alert-info     { background: #dbeafe; color: #1e40af; border-left: 3px solid #3b82f6; }
.alert-warning  { background: #fef3c7; color: #92400e; border-left: 3px solid #f59e0b; }

/* Form */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; font-weight: bold; margin-bottom: 5px; color: #374151; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 4px; font-size: 14px; font-family: Arial, sans-serif;
    background: #fff; outline: none; transition: 0.15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: #07213D; box-shadow: 0 0 0 2px rgba(7,33,61,0.1); }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-help { font-size: 11px; color: #6b7280; margin-top: 3px; }

/* Admin layout */
.admin-wrap { display: flex; min-height: calc(100vh - 56px); }
.sidebar { width: 220px; background: #07213D; color: #fff; flex-shrink: 0; padding: 16px 0; }
.sidebar-title { padding: 8px 16px 12px; font-size: 11px; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.08em; }
.sidebar a { display: flex; align-items: center; gap: 8px; padding: 9px 16px; color: rgba(255,255,255,0.75); font-size: 13px; transition: 0.15s; }
.sidebar a:hover, .sidebar a.active { background: rgba(238,191,99,0.15); color: #EEBF63; text-decoration: none; }
.admin-content { flex: 1; padding: 20px; overflow-x: hidden; }
.admin-content h2 { font-size: 18px; color: #07213D; margin-bottom: 16px; }

/* Dashboard cards */
.dash-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 20px; }
.dash-card { background: #fff; border-radius: 6px; padding: 16px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); border-left: 4px solid #EEBF63; }
.dash-card .num { font-size: 26px; font-weight: bold; color: #07213D; }
.dash-card .lbl { font-size: 12px; color: #666; }

/* Saldo bar */
.saldo-bar { display: flex; align-items: center; gap: 8px; min-width: 100px; }
.saldo-track { flex: 1; height: 6px; background: #e5e7eb; border-radius: 3px; overflow: hidden; }
.saldo-fill { height: 100%; background: #EEBF63; border-radius: 3px; }
.saldo-fill.low { background: #dc2626; }
.saldo-val { font-size: 12px; font-weight: bold; color: #07213D; white-space: nowrap; }

/* Profile detail */
.detail-grid { display: grid; grid-template-columns: 280px 1fr; gap: 16px; align-items: start; }
.profile-box { background: #fff; border-radius: 6px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); overflow: hidden; }
.profile-top { background: #07213D; padding: 20px 16px; text-align: center; }
.avatar { width: 64px; height: 64px; background: #EEBF63; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: bold; color: #07213D; margin: 0 auto 10px; }
.profile-top h2 { color: #fff; font-size: 15px; }
.profile-top .nip { color: rgba(255,255,255,0.55); font-size: 11px; font-family: monospace; }
.profile-rows { padding: 12px 16px; }
.prow { display: flex; padding: 7px 0; border-bottom: 1px solid #f3f4f6; font-size: 13px; gap: 10px; }
.prow:last-child { border: none; }
.prow .lbl { color: #6b7280; width: 100px; flex-shrink: 0; }
.prow .val { font-weight: bold; color: #07213D; }
.saldo-boxes { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 16px; }
.saldo-box { background: #fff; border-radius: 6px; padding: 14px; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,0.08); border-bottom: 3px solid #EEBF63; }
.saldo-box .num { font-size: 28px; font-weight: bold; color: #07213D; }
.saldo-box .lbl { font-size: 11px; color: #666; text-transform: uppercase; margin-top: 2px; }

/* Peraturan */
.reg-list { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 12px; }
.reg-card { background: #fff; border-radius: 6px; padding: 16px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); border-left: 4px solid #EEBF63; }
.reg-card h3 { font-size: 14px; color: #07213D; margin-bottom: 6px; }
.reg-card p { font-size: 12px; color: #555; margin-bottom: 10px; }
.reg-card .meta { font-size: 11px; color: #9ca3af; }

/* Footer */
.footer { background: #07213D; color: rgba(255,255,255,0.6); padding: 20px 16px; text-align: center; font-size: 12px; margin-top: 30px; }

/* Breadcrumb */
.breadcrumb { background: #fff; padding: 8px 16px; font-size: 12px; border-bottom: 1px solid #e5e7eb; }
.breadcrumb-inner { max-width: 1100px; margin: 0 auto; }
.breadcrumb a { color: #07213D; font-weight: bold; }
.breadcrumb span { color: #9ca3af; margin: 0 6px; }

/* Search inline */
.search-inline { display: flex; gap: 6px; align-items: center; }
.search-inline input { padding: 6px 12px; border: 1px solid #d1d5db; border-radius: 4px; font-size: 13px; width: 220px; outline: none; }
.search-inline input:focus { border-color: #07213D; }

/* Login page */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #07213D; }
.login-box { background: #fff; border-radius: 8px; padding: 32px 28px; width: 100%; max-width: 360px; box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.login-box .logo { text-align: center; margin-bottom: 20px; }
.login-box .logo h2 { color: #07213D; font-size: 17px; }
.login-box .logo p { color: #6b7280; font-size: 12px; }

/* Pagination */
.pagination { display: flex; gap: 4px; padding: 14px; justify-content: center; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 5px 10px; border: 1px solid #d1d5db; border-radius: 4px; font-size: 12px; color: #07213D; background: #fff; }
.pagination a:hover, .pagination .cur { background: #07213D; color: #fff; border-color: #07213D; text-decoration: none; }

/* Empty */
.empty { text-align: center; padding: 32px; color: #9ca3af; font-size: 13px; }

/* Mobile */
@media (max-width: 768px) {
    .nav-links { display: none; position: fixed; top: 56px; left: 0; right: 0; background: #041628; flex-direction: column; padding: 8px; z-index: 99; }
    .nav-links.open { display: flex; }
    .hamburger { display: flex; }
    .stats-row { grid-template-columns: 1fr 1fr; margin: -16px 8px 0; padding: 0 8px; }
    .hero { padding: 20px 12px 28px; }
    .hero-search { flex-direction: column; }
    .detail-grid { grid-template-columns: 1fr; }
    .saldo-boxes { grid-template-columns: repeat(3,1fr); }
    .dash-grid { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .admin-wrap { flex-direction: column; }
    .sidebar { width: 100%; padding: 8px 0; }
    .sidebar a { padding: 7px 16px; }
    .admin-content { padding: 12px; }
    .reg-list { grid-template-columns: 1fr; }
    .page-wrap { padding: 14px 10px; }
}

@media (max-width: 480px) {
    .stats-row { grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 8px; }
    .saldo-boxes { gap: 6px; }
    .saldo-box .num { font-size: 22px; }
    .dash-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
}
