/* Panel admin — tema Emerald (mengikuti desain aplikasi versi 3) */
:root {
  --bg-grad: linear-gradient(165deg, #0F6B4F 0%, #0A4A37 38%, #062A20 72%, #031510 100%);
  --card: rgba(3, 20, 15, 0.45);
  --card-strong: rgba(3, 20, 15, 0.7);
  --line: rgba(167, 224, 198, 0.14);
  --line-strong: rgba(167, 224, 198, 0.26);
  --text: #F3F1EC;
  --muted: #A9C7BA;
  --gold: #E3B66B;
  --gold-ink: #1A1408;
  --mint: #7FE0B8;
  --coral: #F2A38A;
  --radius: 18px;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--text);
  background: #031510 var(--bg-grad) fixed;
  font-size: 14px;
  line-height: 1.5;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: #F0CC8E; }
h1, h2, h3 { margin: 0; letter-spacing: -0.3px; }
h1 { font-size: 24px; font-weight: 700; }
h2 { font-size: 17px; font-weight: 600; }

/* Layout */
.shell { display: flex; flex-wrap: wrap; min-height: 100vh; }
.sidebar {
  flex: 1 1 220px; max-width: 260px; padding: 28px 18px;
  border-right: 1px solid var(--line); background: rgba(3, 21, 16, 0.55);
  display: flex; flex-direction: column; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; padding: 0 8px; }
.brand-mark { width: 34px; height: 34px; border-radius: 11px; background: var(--gold); color: var(--gold-ink); display: grid; place-items: center; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--muted); font-weight: 500; }
.nav a:hover { background: rgba(167, 224, 198, 0.08); color: var(--text); }
.nav a.active { background: rgba(227, 182, 107, 0.14); color: var(--gold); font-weight: 600; }
.nav svg { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding: 0 8px; color: var(--muted); font-size: 12px; }
.content { flex: 999 1 560px; min-width: 0; padding: 32px clamp(16px, 4vw, 44px) 48px; display: flex; flex-direction: column; gap: 24px; }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.page-head p { margin: 4px 0 0; color: var(--muted); }

/* Kartu & statistik */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 12px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-label { font-size: 11px; letter-spacing: 0.8px; color: var(--muted); text-transform: uppercase; }
.stat-value { font-size: 30px; font-weight: 700; letter-spacing: -0.8px; line-height: 1.1; }
.stat-sub { font-size: 12px; color: var(--muted); }
.stat.gold { background: rgba(227, 182, 107, 0.1); border-color: rgba(227, 182, 107, 0.35); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }

/* Tabel */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th { text-align: left; font-size: 11px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); }
td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
.who { display: flex; align-items: center; gap: 12px; }
.who small { display: block; color: var(--muted); font-size: 12px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-strong); background: rgba(167, 224, 198, 0.12); flex-shrink: 0; display: grid; place-items: center; font-weight: 700; color: var(--gold); }
.avatar.lg { width: 96px; height: 96px; font-size: 32px; }
.muted { color: var(--muted); }

/* Pill status */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.pill.active, .pill.approved { color: var(--mint); background: rgba(127, 224, 184, 0.12); }
.pill.pending, .pill.head { color: var(--gold); background: rgba(227, 182, 107, 0.14); }
.pill.suspended, .pill.rejected, .pill.revoked { color: var(--coral); background: rgba(242, 163, 138, 0.14); }
.pill.neutral, .pill.released { color: var(--muted); background: rgba(167, 224, 198, 0.1); }

/* Form & tombol */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--card); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.btn:hover { border-color: var(--gold); color: var(--text); }
.btn.primary { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.btn.primary:hover { background: #F0CC8E; }
.btn.danger { color: var(--coral); border-color: rgba(242, 163, 138, 0.4); }
.btn.sm { height: 34px; padding: 0 12px; font-size: 12px; border-radius: 10px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.input, select.input { height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--card-strong); color: var(--text); font: inherit; min-width: 0; }
.input::placeholder { color: #8FB0A2; }
.input:focus, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.field { display: flex; flex-direction: column; }
.inline-form { display: inline; }

/* Notifikasi */
.alert { padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(127, 224, 184, 0.35); background: rgba(127, 224, 184, 0.1); color: var(--mint); }
.alert.error { border-color: rgba(242, 163, 138, 0.4); background: rgba(242, 163, 138, 0.1); color: var(--coral); }
.empty { padding: 28px; text-align: center; color: var(--muted); }

/* Detail */
.profile { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-top: 4px; }
.kv div span { display: block; font-size: 11px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--muted); }
.child-block { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.child-block:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }

/* Pagination bawaan Laravel */
nav[role="navigation"] { margin-top: 16px; }
nav[role="navigation"] svg { width: 16px; height: 16px; }
nav[role="navigation"] a, nav[role="navigation"] span[aria-current] span, nav[role="navigation"] span[aria-disabled] span { color: var(--muted); }

/* Login */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 18px; padding: 32px; }

@media (max-width: 720px) {
  .sidebar { max-width: none; flex-basis: 100%; border-right: none; border-bottom: 1px solid var(--line); padding: 16px; gap: 14px; }
  .nav { flex-direction: row; flex-wrap: wrap; }
  .sidebar-foot { display: none; }
}

/* Pagination (resources/views/admin/_pagination.blade.php) */
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.page-btn { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-strong); color: var(--text); font-weight: 600; font-size: 13px; }
.page-btn:hover { border-color: var(--gold); color: var(--text); }
.page-btn.disabled { color: var(--muted); opacity: 0.5; }
.page-info { color: var(--muted); font-size: 13px; }
