/* ===== ADMIN MODERN ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* { box-sizing: border-box; }
body.admin-v2 {
  font-family: 'Inter', sans-serif;
  background: #f1f5f9;
  min-height: 100vh;
  display: flex;
}

/* ── SIDEBAR ── */
.admin-sidebar {
  width: 240px;
  min-height: 100vh;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  position: fixed;
  top: 0; left: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  transition: transform .3s;
}
.sidebar-brand {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: #fff;
}
.sidebar-brand-logo {
  height: 50px; object-fit: contain;
  max-width: 100%;
}
.sidebar-brand-text {
  font-size: .72rem;
  color: rgba(255,255,255,.45);
  letter-spacing: .5px;
  margin-top: 2px;
}
.sidebar-nav { flex: 1; padding: 12px 0; overflow-y: auto; }
.sidebar-section {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  padding: 12px 20px 4px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all .2s;
}
.sidebar-link:hover {
  color: #fff;
  background: rgba(255,255,255,.06);
  border-left-color: rgba(255,255,255,.3);
}
.sidebar-link.active {
  color: #fff;
  background: rgba(59,130,246,.2);
  border-left-color: #3b82f6;
}
.sidebar-link i { font-size: 1rem; width: 20px; text-align: center; }
.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.sidebar-user {
  display: flex; align-items: center; gap: 10px;
}
.sidebar-user-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff; font-weight: 700; font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sidebar-user-name { font-size: .8rem; font-weight: 600; color: #fff; line-height: 1.2; }
.sidebar-user-role { font-size: .68rem; color: rgba(255,255,255,.4); }

/* ── MAIN CONTENT ── */
.admin-main {
  margin-left: 240px;
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── TOPBAR ── */
.admin-topbar {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.topbar-title { font-size: 1rem; font-weight: 700; color: #1e293b; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  display: flex; align-items: center; justify-content: center;
  color: #64748b; cursor: pointer;
  transition: background .2s;
}
.topbar-btn:hover { background: #e2e8f0; color: #1e293b; }

/* ── PAGE CONTENT ── */
.admin-content { padding: 24px; flex: 1; }

/* ── STAT CARDS ── */
.stat-card-v2 {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  border: 1px solid #e2e8f0;
  transition: transform .2s, box-shadow .2s;
}
.stat-card-v2:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.stat-icon-v2 {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 12px;
}
.stat-value { font-size: 1.8rem; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: .78rem; color: #94a3b8; font-weight: 500; }

/* ── CARD ── */
.admin-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}
.admin-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
  display: flex; align-items: center; justify-content: space-between;
}
.admin-card-title { font-size: .9rem; font-weight: 700; color: #1e293b; }

/* ── TABLE ── */
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .6px;
  color: #94a3b8; padding: 10px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  font-size: .875rem; color: #334155;
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #f8fafc; }

/* ── BADGE ── */
.badge-status {
  font-size: .7rem; font-weight: 600;
  padding: 3px 10px; border-radius: 20px;
  display: inline-block;
}
.badge-aktif { background: #dcfce7; color: #16a34a; }
.badge-nonaktif { background: #fef9c3; color: #ca8a04; }
.badge-selesai { background: #f1f5f9; color: #64748b; }

/* ── MOBILE TOGGLE ── */
.sidebar-toggle {
  display: none;
  background: none; border: none;
  font-size: 1.3rem; color: #64748b; cursor: pointer;
}
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 199;
}

@media (max-width: 991px) {
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .sidebar-toggle { display: block; }
  .sidebar-overlay.show { display: block; }
}

/* ── ADMIN LOGIN ── */
.login-v2 {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #1d4ed8 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.login-card-v2 {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  width: 100%; max-width: 400px;
  box-shadow: 0 24px 60px rgba(0,0,0,.3);
}
.login-logo-wrap {
  text-align: center; margin-bottom: 28px;
}
.login-logo-wrap img { height: 60px; object-fit: contain; }
.login-title { font-size: 1.3rem; font-weight: 800; color: #1e293b; margin-bottom: 4px; }
.login-sub { font-size: .82rem; color: #94a3b8; }
.login-input-group {
  position: relative; margin-bottom: 16px;
}
.login-input-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: #94a3b8; font-size: 1rem; z-index: 2;
}
.login-input {
  width: 100%; padding: 12px 14px 12px 42px;
  border: 1.5px solid #e2e8f0; border-radius: 10px;
  font-size: .9rem; outline: none;
  transition: border-color .2s;
  font-family: 'Inter', sans-serif;
}
.login-input:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.1); }
.login-eye {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: #94a3b8; cursor: pointer; font-size: 1rem;
}
.login-btn {
  width: 100%; padding: 13px;
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  color: #fff; border: none; border-radius: 10px;
  font-size: .95rem; font-weight: 700;
  cursor: pointer; transition: opacity .2s;
  font-family: 'Inter', sans-serif;
  margin-top: 8px;
}
.login-btn:hover { opacity: .9; }
