:root {
  --cp-primary: #1d4ed8;
  --cp-primary-600: #1e40af;
  --cp-bg: #f5f7fb;
  --cp-card: #ffffff;
  --cp-border: #e2e8f0;
  --cp-muted: #64748b;
  --cp-danger: #dc2626;
  --cp-success: #16a34a;
}

body.admin-body {
  background: var(--cp-bg);
  color: #111827;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.admin-card {
  border-radius: 12px;
  border: 1px solid var(--cp-border);
  background: var(--cp-card);
}

.admin-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: #1f2937;
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #ffffff;
  border-bottom: 1px solid var(--cp-border);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.admin-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1d4ed8, #38bdf8);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.admin-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #334155;
}

.admin-main {
  padding: 32px 0 48px;
}

.admin-section {
  margin-bottom: 32px;
}

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section-header h4 {
  font-weight: 700;
  margin: 0;
}

.section-header p {
  margin: 4px 0 0;
  color: var(--cp-muted);
  font-size: 0.9rem;
}

.admin-table thead th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  border-bottom: 1px solid var(--cp-border);
}

.admin-table tbody tr {
  transition: background 0.2s ease;
}

.admin-table tbody tr:hover {
  background: #f8fafc;
}

.admin-table td {
  vertical-align: middle;
  padding-top: 14px;
  padding-bottom: 14px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-active {
  background: #dcfce7;
  color: #166534;
}

.status-suspended {
  background: #fee2e2;
  color: #991b1b;
}

.status-inactive {
  background: #e2e8f0;
  color: #475569;
}

.badge-pill {
  border-radius: 999px;
  font-weight: 600;
}

.action-menu-btn {
  border: 1px solid var(--cp-border);
  background: #fff;
  color: #475569;
}

.action-menu-btn:hover {
  border-color: #cbd5f5;
  color: #1d4ed8;
}

.modal-subtitle {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: var(--cp-muted);
}

.form-label {
  font-size: 0.8rem;
  color: #475569;
}

.form-control,
.form-select {
  min-height: 44px;
  border-radius: 12px;
  border-color: var(--cp-border);
}

.form-control:focus,
.form-select:focus {
  box-shadow: 0 0 0 0.2rem rgba(29, 78, 216, 0.15);
  border-color: var(--cp-primary);
}

.form-section {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--cp-border);
}

.form-section h6 {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 12px;
}

.btn-primary {
  background: var(--cp-primary);
  border-color: var(--cp-primary);
}

.btn-primary:hover {
  background: var(--cp-primary-600);
  border-color: var(--cp-primary-600);
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--cp-muted);
  padding: 32px 0 12px;
}

.empty-state i {
  font-size: 2rem;
}

.admin-skeleton {
  display: none;
  margin-top: 12px;
}

.admin-skeleton .skeleton-row {
  height: 16px;
  border-radius: 8px;
  background: linear-gradient(90deg, #e5e7eb 25%, #f1f5f9 50%, #e5e7eb 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  margin-bottom: 12px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.toast {
  border-radius: 12px;
}

@media (max-width: 768px) {
  .admin-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .admin-header-right {
    width: 100%;
    justify-content: space-between;
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
