/* admin/admin.css — Panel Admin LPK Hoshizora Gakuin
   Menggunakan variabel global dari ../style.css (--green, --green-pale, dst.) */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.admin-body {
  font-family: var(--font-body, 'Inter', system-ui, sans-serif);
  background: var(--gray-50, #f7f8fa);
  color: var(--text, #1f2937);
  min-height: 100vh;
}
/* ===== Layout ===== */
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 260px;
  background: var(--green-dark, #0f3d2e);
  color: #e8f5ee;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.admin-brand {
  padding: 22px 22px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.admin-brand .brand-title {
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  font-weight: 800; font-size: 1.05rem; letter-spacing: .3px;
  color: #fff;
}
.admin-brand .brand-sub {
  font-size: .78rem; opacity: .7; margin-top: 2px;
}
.admin-nav { padding: 14px 10px; flex: 1; overflow-y: auto; }
.admin-nav .nav-label {
  text-transform: uppercase; font-size: .68rem; letter-spacing: .12em;
  color: rgba(255,255,255,0.45); padding: 14px 12px 8px;
}
.admin-nav a, .admin-nav .nav-disabled {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  color: #d4ead9; text-decoration: none; font-size: .92rem;
  margin: 2px 0; transition: background .15s, color .15s;
}
.admin-nav a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.admin-nav a.active {
  background: var(--green, #1f8a5b);
  color: #fff; font-weight: 600;
  box-shadow: 0 4px 14px -6px rgba(0,0,0,.5);
}
.admin-nav .nav-disabled {
  color: rgba(255,255,255,0.4); cursor: not-allowed;
  justify-content: space-between;
}
.admin-nav .nav-disabled .soon {
  font-size: .65rem; background: rgba(255,255,255,0.1);
  padding: 2px 8px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .08em;
}
.admin-nav .ico { width: 18px; height: 18px; display: inline-block; opacity: .85; }
.admin-sidebar-footer {
  padding: 14px 18px; border-top: 1px solid rgba(255,255,255,0.08);
  font-size: .78rem; opacity: .7;
}
.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px; background: #fff;
  border-bottom: 1px solid var(--gray-100, #eef0f3);
  position: sticky; top: 0; z-index: 10;
}
.admin-topbar h1 {
  margin: 0; font-family: var(--font-heading, sans-serif);
  font-size: 1.15rem; font-weight: 700;
}
.admin-topbar .crumbs {
  font-size: .78rem; color: var(--muted, #6b7280); margin-top: 2px;
}
.admin-topbar .user-chip {
  display: flex; align-items: center; gap: 10px;
  background: var(--green-pale, #e8f5ee);
  color: var(--green-dark, #0f3d2e);
  padding: 6px 12px; border-radius: 999px;
  font-size: .85rem; font-weight: 600;
}
.admin-topbar .user-chip .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green, #1f8a5b);
}
.admin-content { padding: 26px 28px 60px; }
/* ===== Flash ===== */
.flash {
  padding: 12px 16px; border-radius: 10px; margin-bottom: 18px;
  font-size: .9rem; border: 1px solid;
}
.flash.success { background: #ecfdf3; border-color: #bbf3cf; color: #065f46; }
.flash.error   { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.flash.info    { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
/* ===== Stat cards ===== */
.stat-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 16px; margin-bottom: 24px;
}
.stat-card {
  background: #fff; border-radius: var(--radius-md, 14px);
  padding: 18px 18px 16px;
  border: 1px solid var(--gray-100, #eef0f3);
  box-shadow: 0 1px 0 rgba(15,23,42,0.02);
  position: relative; overflow: hidden;
}
.stat-card .label {
  font-size: .78rem; color: var(--muted, #6b7280);
  text-transform: uppercase; letter-spacing: .08em;
}
.stat-card .value {
  font-family: var(--font-heading, sans-serif);
  font-size: 1.85rem; font-weight: 800; margin-top: 6px;
  color: var(--green-dark, #0f3d2e);
}
.stat-card .sub { font-size: .78rem; color: var(--muted, #6b7280); margin-top: 4px; }
.stat-card .accent {
  position: absolute; right: -12px; top: -12px;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--green-pale, #e8f5ee);
  opacity: .9;
}
.stat-card.green .accent  { background: #d1fae5; }
.stat-card.yellow .accent { background: #fef3c7; }
.stat-card.red .accent    { background: #fee2e2; }
.stat-card.blue .accent   { background: #dbeafe; }
/* ===== Toolbar & filter ===== */
.panel {
  background: #fff; border: 1px solid var(--gray-100, #eef0f3);
  border-radius: var(--radius-md, 14px);
  box-shadow: 0 1px 0 rgba(15,23,42,0.02);
}
.panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--gray-100, #eef0f3);
  gap: 12px; flex-wrap: wrap;
}
.panel-header h2 {
  margin: 0; font-family: var(--font-heading, sans-serif);
  font-size: 1.02rem; font-weight: 700;
}
.toolbar {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
}
.toolbar input[type="text"],
.toolbar select {
  height: 38px; padding: 0 12px;
  border: 1px solid var(--gray-200, #e5e7eb);
  border-radius: 10px; font-size: .9rem;
  background: #fff; color: var(--text);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.toolbar input[type="text"]:focus,
.toolbar select:focus {
  border-color: var(--green, #1f8a5b);
  box-shadow: 0 0 0 3px rgba(31,138,91,0.15);
}
.toolbar .search { min-width: 240px; }
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 14px; border-radius: 10px;
  border: 1px solid transparent; cursor: pointer;
  font-size: .88rem; font-weight: 600;
  text-decoration: none; transition: all .15s;
}
.btn-primary { background: var(--green, #1f8a5b); color: #fff; }
.btn-primary:hover { background: var(--green-dark, #0f3d2e); }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--gray-200,#e5e7eb); }
.btn-ghost:hover { background: var(--gray-50,#f7f8fa); }
.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-sm { height: 30px; padding: 0 10px; font-size: .78rem; border-radius: 8px; }
/* ===== Table ===== */
.table-wrap { overflow-x: auto; }
.table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  font-size: .9rem;
}
.table th, .table td {
  padding: 12px 14px; text-align: left;
  border-bottom: 1px solid var(--gray-100, #eef0f3);
  vertical-align: middle;
}
.table thead th {
  background: var(--gray-50, #f7f8fa);
  font-weight: 600; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted, #6b7280);
  position: sticky; top: 0;
}
.table tbody tr:hover { background: #fafbfc; }
.table .reg-no {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .82rem; color: var(--green-dark, #0f3d2e); font-weight: 700;
}
.table .nama-cell { font-weight: 600; color: var(--text); }
.table .email-cell { font-size: .82rem; color: var(--muted, #6b7280); }
/* Status badges */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  border: 1px solid transparent;
}
.badge.menunggu     { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.badge.diverifikasi { background: #dbeafe; color: #1e40af; border-color: #bfdbfe; }
.badge.diterima     { background: #d1fae5; color: #065f46; border-color: #a7f3d0; }
.badge.ditolak      { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
.empty-state {
  padding: 50px 20px; text-align: center; color: var(--muted, #6b7280);
}
.empty-state .icon { font-size: 2.4rem; margin-bottom: 8px; }
/* Pagination */
.pagination {
  display: flex; gap: 6px; justify-content: flex-end;
  padding: 14px 18px; flex-wrap: wrap;
}
.pagination a, .pagination span {
  min-width: 34px; height: 34px; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; font-size: .85rem; font-weight: 600;
  text-decoration: none; color: var(--text);
  border: 1px solid var(--gray-200, #e5e7eb); background: #fff;
}
.pagination a:hover { background: var(--gray-50, #f7f8fa); }
.pagination .current {
  background: var(--green, #1f8a5b); color: #fff; border-color: var(--green, #1f8a5b);
}
.pagination .disabled { opacity: .4; cursor: not-allowed; }
/* ===== Modal ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,0.5);
  display: none; align-items: center; justify-content: center;
  z-index: 100; padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
  background: #fff; border-radius: var(--radius-md, 14px);
  width: 100%; max-width: 520px; overflow: hidden;
  box-shadow: 0 20px 60px -10px rgba(0,0,0,.3);
  animation: modalIn .2s ease;
}
@keyframes modalIn {
  from { transform: translateY(10px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.modal-header {
  padding: 16px 20px; border-bottom: 1px solid var(--gray-100, #eef0f3);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-header h3 {
  margin: 0; font-family: var(--font-heading, sans-serif);
  font-size: 1.02rem;
}
.modal-close {
  background: none; border: none; cursor: pointer;
  font-size: 1.4rem; color: var(--muted, #6b7280); line-height: 1;
}
.modal-body { padding: 18px 20px; }
.modal-footer {
  padding: 14px 20px; border-top: 1px solid var(--gray-100, #eef0f3);
  display: flex; gap: 10px; justify-content: flex-end;
}
.form-row { margin-bottom: 14px; }
.form-row label {
  display: block; font-size: .82rem; font-weight: 600;
  margin-bottom: 6px; color: var(--text);
}
.form-row select, .form-row textarea, .form-row input {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--gray-200, #e5e7eb);
  border-radius: 10px; font-size: .9rem; font-family: inherit;
  outline: none;
}
.form-row textarea { min-height: 90px; resize: vertical; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 6px 14px; font-size: .88rem; }
.kv .k { color: var(--muted,#6b7280); }
/* ===== Responsive ===== */
@media (max-width: 992px) {
  .admin-sidebar {
    position: fixed; left: -260px; top: 0; height: 100vh;
    transition: left .25s ease; z-index: 50;
  }
  .admin-sidebar.open { left: 0; }
  .admin-main { width: 100%; }
  .topbar-toggle { display: inline-flex !important; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .admin-content { padding: 18px 14px 40px; }
  .admin-topbar { padding: 12px 14px; }
  .stat-grid { grid-template-columns: 1fr; gap: 12px; }
  .toolbar .search { min-width: 100%; }
  .panel-header { flex-direction: column; align-items: stretch; }
}
.topbar-toggle {
  display: none; background: none; border: 1px solid var(--gray-200,#e5e7eb);
  width: 38px; height: 38px; border-radius: 10px;
  align-items: center; justify-content: center; cursor: pointer;
}

.admin-nav .nav-logout {
  color: #ffd9d9;
  margin-top: 4px;
}
.admin-nav .nav-logout:hover {
  background: rgba(220, 38, 38, 0.18);
  color: #fff;
}

/* ===== Kartu user di sidebar ===== */
.admin-user-card {
  display: flex; align-items: center; gap: 10px;
  margin: 8px 12px; padding: 10px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
}
.admin-user-card .avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--green, #1f8a5b); color: #fff;
  font-weight: 700; font-size: .95rem;
}
.admin-user-card .nama { color: #fff; font-size: .9rem; font-weight: 600; line-height: 1.1; }
.admin-user-card .role { color: rgba(255,255,255,0.6); font-size: .72rem; margin-top: 2px; }

/* ===== Halaman Login ===== */
body.login-body {
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(31,138,91,0.18), transparent 60%),
    radial-gradient(900px 500px at 110% 110%, rgba(15,61,46,0.25), transparent 60%),
    var(--gray-50, #f4f7f5);
}
.login-wrap {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 28px 16px;
}
.login-card {
  width: 100%; max-width: 420px;
  background: #fff;
  border: 1px solid var(--gray-100, #eef0f3);
  border-radius: 18px;
  padding: 32px 28px 26px;
  box-shadow:
    0 1px 2px rgba(15,61,46,0.04),
    0 20px 50px -24px rgba(15,61,46,0.25);
}
.login-brand {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 22px;
}
.login-logo {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--green, #1f8a5b), var(--green-dark, #0f3d2e));
  color: #fff; font-weight: 800; font-size: 1.25rem;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  box-shadow: 0 8px 20px -8px rgba(31,138,91,.6);
}
.login-title {
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  font-weight: 800; font-size: 1.05rem; color: var(--green-dark, #0f3d2e);
  letter-spacing: .2px;
}
.login-sub {
  font-size: .78rem; color: var(--text-soft, #6b7280); margin-top: 2px;
}
.login-heading {
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  font-size: 1.4rem; margin: 6px 0 4px; color: var(--green-dark, #0f3d2e);
}
.login-lead {
  color: var(--text-soft, #6b7280); font-size: .9rem; margin: 0 0 20px;
}
.login-alert {
  background: #fef2f2; color: #b91c1c;
  border: 1px solid #fecaca;
  padding: 10px 12px; border-radius: 10px;
  font-size: .88rem; margin-bottom: 14px;
}
.login-form { display: flex; flex-direction: column; gap: 14px; }
.login-field { display: flex; flex-direction: column; gap: 6px; }
.login-field label {
  font-size: .82rem; font-weight: 600; color: var(--green-dark, #0f3d2e);
}
.login-field input {
  height: 44px; padding: 0 14px;
  border: 1px solid var(--gray-100, #e5e7eb);
  border-radius: 10px;
  font-size: .95rem; color: var(--text, #1f2937);
  background: #fafafa;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.login-field input:focus {
  outline: none; background: #fff;
  border-color: var(--green, #1f8a5b);
  box-shadow: 0 0 0 4px rgba(31,138,91,0.12);
}
.login-submit {
  height: 46px; margin-top: 4px;
  font-weight: 700; font-size: .95rem; letter-spacing: .2px;
  background: var(--green, #1f8a5b); color: #fff;
  border: none; border-radius: 10px; cursor: pointer;
  box-shadow: 0 10px 22px -10px rgba(31,138,91,.65);
  transition: background .15s, transform .05s;
}
.login-submit:hover { background: var(--green-dark, #186a47); }
.login-submit:active { transform: translateY(1px); }
.login-footer {
  margin-top: 18px; text-align: center; font-size: .85rem;
}
.login-footer a {
  color: var(--green, #1f8a5b); text-decoration: none; font-weight: 600;
}
.login-footer a:hover { text-decoration: underline; }
.login-tagline {
  margin-top: 18px;
  color: var(--text-soft, #6b7280);
  font-size: .78rem; text-align: center;
}



