/*
  File admin-system.css
  Tujuan:
  - Menyediakan tampilan profesional dan responsif untuk login serta dashboard admin.
*/
:root {
  --ink: #1b1b18;
  --muted: #6b695f;
  --line: #e7e2d7;
  --paper: #ffffff;
  --canvas: #f5f3ee;
  --gold: #c58a13;
  --gold-dark: #8a5a00;
  --green: #246b49;
  --red: #b42318;
  --radius: 8px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
.login-body { min-height: 100vh; display: grid; place-items: center; padding: 28px; }
.login-shell { width: min(980px, 100%); display: grid; grid-template-columns: 1.1fr .9fr; background: var(--paper); box-shadow: 0 24px 70px rgba(30,25,15,.14); }
.login-brand { min-height: 570px; padding: 64px; color: #fff; background: linear-gradient(rgba(18,16,12,.78), rgba(18,16,12,.9)), url("assets/hero-honey-family.png") center/cover; }
.login-brand img { width: 82px; height: 82px; object-fit: contain; background: #fff; border-radius: var(--radius); }
.login-brand h1 { max-width: 520px; margin: 80px 0 18px; font-size: clamp(2.1rem, 4vw, 3.7rem); line-height: 1.04; }
.login-brand p { max-width: 500px; color: #e7e2d7; line-height: 1.7; }
.login-panel { align-self: center; padding: 54px; }
.login-panel h2 { margin: 8px 0; font-size: 2rem; }
.login-panel > p { color: var(--muted); }
.eyebrow { color: var(--gold); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.stack-form { display: grid; gap: 18px; margin: 28px 0; }
label { display: grid; gap: 7px; color: #45433c; font-size: .86rem; font-weight: 700; }
input, select, textarea { width: 100%; padding: 11px 12px; color: var(--ink); background: #fff; border: 1px solid #d8d2c5; border-radius: 6px; }
textarea { min-height: 78px; resize: vertical; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 15px; border: 0; border-radius: 6px; cursor: pointer; font-weight: 800; text-decoration: none; }
.btn.primary { color: #fff; background: var(--ink); }
.btn.gold { color: #201804; background: #efb52f; }
.btn.green { color: #fff; background: var(--green); }
.btn.red { color: #fff; background: var(--red); }
.btn.light { color: var(--ink); background: #f0ede6; }
.btn.small { min-height: 34px; padding: 7px 10px; font-size: .78rem; }
.text-link { color: var(--gold-dark); font-weight: 700; }
.alert { margin: 18px 0; padding: 12px 14px; border-radius: 6px; font-weight: 700; }
.alert.success { color: var(--green); background: #e7f4ec; }
.alert.error { color: var(--red); background: #fff0ef; }
.admin-layout { min-height: 100vh; display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 26px 20px; color: #fff; background: #1d1b17; }
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding-bottom: 24px; border-bottom: 1px solid #3c3932; }
.sidebar-brand img { width: 46px; height: 46px; object-fit: contain; background: #fff; border-radius: 6px; }
.sidebar-brand strong { display: block; }
.sidebar-brand small { color: #aaa59a; }
.sidebar nav { display: grid; gap: 5px; margin-top: 25px; }
.sidebar nav a { padding: 11px 12px; color: #d8d4cb; border-radius: 6px; text-decoration: none; font-weight: 650; }
.sidebar nav a:hover { color: #fff; background: #34312b; }
.sidebar .logout { position: absolute; right: 20px; bottom: 25px; left: 20px; }
.admin-main { min-width: 0; padding: 34px; }
.page-header { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.page-header h1 { margin: 5px 0 0; font-size: clamp(1.8rem, 3vw, 2.7rem); }
.page-header p { margin: 5px 0 0; color: var(--muted); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 24px; }
.stat-card, .panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(37,31,20,.05); }
.stat-card { padding: 20px; }
.stat-card span { color: var(--muted); font-size: .76rem; font-weight: 800; text-transform: uppercase; }
.stat-card strong { display: block; margin-top: 9px; font-size: 1.7rem; }
.panel { margin-bottom: 22px; padding: 22px; scroll-margin-top: 20px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.panel-head h2 { margin: 0; font-size: 1.2rem; }
.panel-head p { margin: 5px 0 0; color: var(--muted); font-size: .9rem; }
.form-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 13px; }
.form-grid .wide { grid-column: span 2; }
.action-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 940px; border-collapse: collapse; }
th, td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: .72rem; text-transform: uppercase; }
td { font-size: .88rem; }
.badge { display: inline-flex; padding: 5px 8px; border-radius: 999px; font-size: .72rem; font-weight: 800; }
.badge.aktif, .badge.berhasil, .badge.tervalidasi, .badge.dibayar { color: var(--green); background: #e7f4ec; }
.badge.baru, .badge.prospek, .badge.menunggu { color: var(--gold-dark); background: #fff3d1; }
.badge.nonaktif, .badge.dibatalkan, .badge.ditolak { color: var(--red); background: #fff0ef; }
.inline-form { display: flex; flex-wrap: wrap; gap: 7px; min-width: 250px; }
.inline-form input, .inline-form select { width: auto; min-width: 105px; }
.money { white-space: nowrap; font-weight: 800; }
.muted { color: var(--muted); }
.empty { padding: 34px; color: var(--muted); text-align: center; }
@media (max-width: 1080px) {
  .stats-grid, .form-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .login-shell, .admin-layout { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .login-panel { padding: 35px 25px; }
  .sidebar { position: relative; height: auto; }
  .sidebar nav { grid-template-columns: repeat(2,1fr); }
  .sidebar .logout { position: static; margin-top: 20px; }
  .admin-main { padding: 22px 14px; }
  .page-header { align-items: flex-start; flex-direction: column; }
  .stats-grid, .form-grid { grid-template-columns: 1fr; }
  .form-grid .wide { grid-column: auto; }
}
