:root {
  --ink: #0b1220;
  --ink-soft: #233044;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.08);
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --brand: #0f766e;
  --brand-2: #0ea5e9;
  --shadow-sm: 0 10px 28px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 20px 50px rgba(15, 23, 42, 0.12);
  --radius: 16px;
}

* { box-sizing: border-box; }

body.admin-body {
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, sans-serif;
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(14, 165, 233, 0.12), transparent 55%),
    radial-gradient(900px 500px at 95% 0%, rgba(15, 118, 110, 0.12), transparent 55%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 50%, #f8fafc 100%);
  color: var(--ink);
  min-height: 100vh;
}

.admin-shell {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  color: #e2e8f0;
  padding: 22px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  box-shadow: 8px 0 26px rgba(15, 23, 42, 0.18);
}

.admin-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  background: #fff;
}

.brand-title {
  font-weight: 700;
  font-size: 0.98rem;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: rgba(226, 232, 240, 0.7);
}

.admin-sidebar a {
  color: rgba(226, 232, 240, 0.8);
  text-decoration: none;
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.92rem;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.admin-sidebar .section-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 18px 8px 8px;
  color: rgba(226, 232, 240, 0.6);
}

.sidebar-divider {
  border: none;
  height: 1px;
  background: rgba(226, 232, 240, 0.12);
  margin: 16px 0;
}

.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.topbar-title {
  font-family: "Space Grotesk", "Manrope", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.topbar-subtitle {
  font-size: 0.85rem;
  color: var(--muted);
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.admin-user .avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.admin-name {
  font-weight: 700;
  font-size: 0.9rem;
}

.admin-role {
  font-size: 0.75rem;
  color: var(--muted);
}

.main-content {
  padding: 24px 28px 40px;
}

.dashboard-header h2 {
  font-family: "Space Grotesk", "Manrope", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.list-scroll {
  max-height: 220px;
  overflow-y: auto;
}

.list-scroll::-webkit-scrollbar {
  width: 6px;
}

.list-scroll::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.2);
  border-radius: 999px;
}

.list-scroll::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.06);
}

.item-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.badge-pending {
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.status-aktif {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.status-menunggu {
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.status-nonaktif {
  background: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.2);
}

.badge-new {
  background: rgba(37, 99, 235, 0.15);
  color: #1d4ed8;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.card,
.table,
.alert,
.form-control,
.form-select,
.btn {
  border-radius: 14px;
}

.card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.table thead th {
  background: #f1f5f9;
  color: var(--ink);
  font-weight: 700;
}

.btn-primary,
.btn-success {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border: none;
}

.btn-primary:hover,
.btn-success:hover {
  filter: brightness(1.05);
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(14, 165, 233, 0.6);
  box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.15);
}

@media (max-width: 1200px) {
  .admin-sidebar {
    width: 230px;
  }
}

@media (max-width: 992px) {
  .admin-shell {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }
  .admin-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
