@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* shadcn/ui "new-york" slate theme tokens (light + dark) */
:root {
  --sc-background: 0 0% 100%;
  --sc-foreground: 222.2 84% 4.9%;
  --sc-card: 0 0% 100%;
  --sc-card-foreground: 222.2 84% 4.9%;
  --sc-popover: 0 0% 100%;
  --sc-popover-foreground: 222.2 84% 4.9%;
  --sc-primary: 221.2 83.2% 53.3%;
  --sc-primary-foreground: 210 40% 98%;
  --sc-secondary: 210 40% 96.1%;
  --sc-secondary-foreground: 222.2 47.4% 11.2%;
  --sc-muted: 210 40% 96.1%;
  --sc-muted-foreground: 215.4 16.3% 46.9%;
  --sc-accent: 210 40% 96.1%;
  --sc-accent-foreground: 222.2 47.4% 11.2%;
  --sc-destructive: 0 84.2% 60.2%;
  --sc-destructive-foreground: 210 40% 98%;
  --sc-border: 214.3 31.8% 91.4%;
  --sc-input: 214.3 31.8% 91.4%;
  --sc-ring: 221.2 83.2% 53.3%;
  --sc-radius: 0.625rem;
}
.dark {
  --sc-background: 222.2 84% 4.9%;
  --sc-foreground: 210 40% 98%;
  --sc-card: 222.2 84% 4.9%;
  --sc-card-foreground: 210 40% 98%;
  --sc-popover: 222.2 84% 4.9%;
  --sc-popover-foreground: 210 40% 98%;
  --sc-primary: 217.2 91.2% 59.8%;
  --sc-primary-foreground: 222.2 47.4% 11.2%;
  --sc-secondary: 217.2 32.6% 17.5%;
  --sc-secondary-foreground: 210 40% 98%;
  --sc-muted: 217.2 32.6% 17.5%;
  --sc-muted-foreground: 215 20.2% 65.1%;
  --sc-accent: 217.2 32.6% 17.5%;
  --sc-accent-foreground: 210 40% 98%;
  --sc-destructive: 0 62.8% 50.6%;
  --sc-destructive-foreground: 210 40% 98%;
  --sc-border: 217.2 32.6% 17.5%;
  --sc-input: 217.2 32.6% 17.5%;
  --sc-ring: 224.3 76.3% 48%;
}

body.sc-theme {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  background-color: hsl(var(--sc-background));
  color: hsl(var(--sc-foreground));
  -webkit-font-smoothing: antialiased;
  display: block; /* timpa display:flex body dashboard elegant.css untuk halaman publik */
  height: auto;
  overflow: auto;
  overflow-x: hidden;
}

/* ---------- Button (shadcn) ---------- */
.sc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  white-space: nowrap; border-radius: calc(var(--sc-radius) - 2px);
  font-size: 0.875rem; font-weight: 500; line-height: 1;
  height: 2.5rem; padding: 0 1rem;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s;
}
.sc-btn:focus-visible { outline: none; box-shadow: 0 0 0 2px hsl(var(--sc-background)), 0 0 0 4px hsl(var(--sc-ring)); }
.sc-btn:disabled { opacity: .5; pointer-events: none; }
.sc-btn-default { background: hsl(var(--sc-primary)); color: hsl(var(--sc-primary-foreground)); }
.sc-btn-default:hover { background: hsl(var(--sc-primary) / .9); }
.sc-btn-secondary { background: hsl(var(--sc-secondary)); color: hsl(var(--sc-secondary-foreground)); }
.sc-btn-secondary:hover { background: hsl(var(--sc-secondary) / .8); }
.sc-btn-outline { border-color: hsl(var(--sc-input)); background: hsl(var(--sc-background)); color: hsl(var(--sc-foreground)); }
.sc-btn-outline:hover { background: hsl(var(--sc-accent)); color: hsl(var(--sc-accent-foreground)); }
.sc-btn-ghost { background: transparent; color: hsl(var(--sc-foreground)); }
.sc-btn-ghost:hover { background: hsl(var(--sc-accent)); color: hsl(var(--sc-accent-foreground)); }
.sc-btn-destructive { background: hsl(var(--sc-destructive)); color: hsl(var(--sc-destructive-foreground)); }
.sc-btn-destructive:hover { background: hsl(var(--sc-destructive) / .9); }
.sc-btn-sm { height: 2.25rem; padding: 0 0.75rem; font-size: 0.8125rem; border-radius: calc(var(--sc-radius) - 4px); }
.sc-btn-lg { height: 2.75rem; padding: 0 2rem; }
.sc-btn-icon { height: 2.5rem; width: 2.5rem; padding: 0; }

/* ---------- Card ---------- */
.sc-card {
  background: hsl(var(--sc-card)); color: hsl(var(--sc-card-foreground));
  border: 1px solid hsl(var(--sc-border)); border-radius: var(--sc-radius);
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}
.sc-card-header { padding: 1.5rem 1.5rem 0; }
.sc-card-title { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.sc-card-desc { font-size: 0.875rem; color: hsl(var(--sc-muted-foreground)); margin: 0.25rem 0 0; }
.sc-card-content { padding: 1.5rem; }
.sc-card-footer { padding: 0 1.5rem 1.5rem; display: flex; align-items: center; gap: .5rem; }

/* ---------- Form ---------- */
.sc-label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.5rem; }
.sc-input, .sc-textarea, .sc-select {
  width: 100%; border-radius: calc(var(--sc-radius) - 2px);
  border: 1px solid hsl(var(--sc-input)); background: hsl(var(--sc-background));
  padding: 0.5rem 0.75rem; font-size: 0.875rem; color: hsl(var(--sc-foreground));
  transition: box-shadow .15s, border-color .15s;
}
.sc-input { height: 2.5rem; }
.sc-textarea { min-height: 5rem; resize: vertical; }
.sc-input::placeholder, .sc-textarea::placeholder { color: hsl(var(--sc-muted-foreground)); }
.sc-input:focus, .sc-textarea:focus, .sc-select:focus {
  outline: none; border-color: hsl(var(--sc-ring));
  box-shadow: 0 0 0 2px hsl(var(--sc-background)), 0 0 0 4px hsl(var(--sc-ring) / .3);
}
.sc-field-error { font-size: 0.8rem; color: hsl(var(--sc-destructive)); margin-top: 0.3rem; }
.sc-hint { font-size: 0.78rem; color: hsl(var(--sc-muted-foreground)); margin-top: 0.3rem; }

/* ---------- Badge ---------- */
.sc-badge {
  display: inline-flex; align-items: center; gap: 0.25rem;
  border-radius: 9999px; border: 1px solid transparent;
  padding: 0.2rem 0.65rem; font-size: 0.72rem; font-weight: 600; line-height: 1.2;
  white-space: nowrap;
}
.sc-badge-default { background: hsl(var(--sc-primary)); color: hsl(var(--sc-primary-foreground)); }
.sc-badge-secondary { background: hsl(var(--sc-secondary)); color: hsl(var(--sc-secondary-foreground)); }
.sc-badge-outline { border-color: hsl(var(--sc-border)); color: hsl(var(--sc-foreground)); }
.sc-badge-success { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.dark .sc-badge-success { background: rgba(34,197,94,.15); color: #4ade80; border-color: rgba(34,197,94,.3); }
.sc-badge-warning { background: #fef9c3; color: #854d0e; border-color: #fde68a; }
.dark .sc-badge-warning { background: rgba(234,179,8,.15); color: #facc15; border-color: rgba(234,179,8,.3); }
.sc-badge-danger { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
.dark .sc-badge-danger { background: rgba(239,68,68,.15); color: #f87171; border-color: rgba(239,68,68,.3); }
.sc-badge-info { background: #e0f2fe; color: #0c4a6e; border-color: #bae6fd; }
.dark .sc-badge-info { background: rgba(56,189,248,.15); color: #38bdf8; border-color: rgba(56,189,248,.3); }

/* ---------- Alert ---------- */
.sc-alert {
  display: flex; gap: 0.75rem; align-items: flex-start;
  border: 1px solid hsl(var(--sc-border)); border-radius: var(--sc-radius);
  padding: 0.9rem 1rem; font-size: 0.875rem;
}
.sc-alert-success { background: rgba(34,197,94,.08); border-color: rgba(34,197,94,.3); color: #166534; }
.dark .sc-alert-success { color: #4ade80; }
.sc-alert-warning { background: rgba(234,179,8,.08); border-color: rgba(234,179,8,.3); color: #854d0e; }
.dark .sc-alert-warning { color: #facc15; }
.sc-alert-danger { background: rgba(239,68,68,.08); border-color: rgba(239,68,68,.3); color: #991b1b; }
.dark .sc-alert-danger { color: #f87171; }
.sc-alert-info { background: rgba(59,130,246,.08); border-color: rgba(59,130,246,.3); color: #1d4ed8; }
.dark .sc-alert-info { color: #60a5fa; }

/* ---------- Table ---------- */
.sc-table-wrap { border: 1px solid hsl(var(--sc-border)); border-radius: var(--sc-radius); overflow: hidden; background: hsl(var(--sc-card)); }
.sc-table-scroll { overflow-x: auto; }
table.sc-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.sc-table thead th {
  text-align: left; font-weight: 500; color: hsl(var(--sc-muted-foreground));
  padding: 0.75rem 1rem; border-bottom: 1px solid hsl(var(--sc-border));
  background: hsl(var(--sc-muted) / .5); white-space: nowrap; font-size: 0.78rem;
}
.sc-table tbody td { padding: 0.9rem 1rem; border-bottom: 1px solid hsl(var(--sc-border)); vertical-align: middle; }
.sc-table tbody tr:last-child td { border-bottom: none; }
.sc-table tbody tr:hover td { background: hsl(var(--sc-muted) / .5); }

/* ---------- Avatar ---------- */
.sc-avatar {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 2.25rem; height: 2.25rem; border-radius: 9999px;
  background: hsl(var(--sc-primary)); color: hsl(var(--sc-primary-foreground));
  font-size: 0.85rem; font-weight: 600;
}

/* ---------- Sidebar nav (panel shell) ---------- */
.sc-nav-link {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.55rem 0.75rem; border-radius: calc(var(--sc-radius) - 2px);
  font-size: 0.875rem; font-weight: 500; color: hsl(var(--sc-muted-foreground));
  text-decoration: none; transition: background-color .15s, color .15s;
}
.sc-nav-link:hover { background: hsl(var(--sc-accent)); color: hsl(var(--sc-accent-foreground)); }
.sc-nav-link.active { background: hsl(var(--sc-accent)); color: hsl(var(--sc-foreground)); }
.sc-nav-link svg.lucide { width: 1.05rem; height: 1.05rem; flex-shrink: 0; }
.sc-nav-group-label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: hsl(var(--sc-muted-foreground)); padding: 1rem 0.75rem 0.35rem; }

/* Legacy dashboard menus: plain <a> inside panel nav auto-styled */
#sc-sidebar nav > a {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.55rem 0.75rem; border-radius: calc(var(--sc-radius) - 2px);
  font-size: 0.875rem; font-weight: 500; color: hsl(var(--sc-muted-foreground));
  text-decoration: none; transition: background-color .15s, color .15s;
}
#sc-sidebar nav > a:hover { background: hsl(var(--sc-accent)); color: hsl(var(--sc-accent-foreground)); }
#sc-sidebar nav > a.active { background: hsl(var(--sc-accent)); color: hsl(var(--sc-foreground)); }

/* ---------- Gelembung jumbotron melayang ---------- */
@keyframes sc-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(14px, -26px) scale(1.06); }
}
@keyframes sc-float-slow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, 18px) scale(0.94); }
}
.sc-blob { animation: sc-float 7s ease-in-out infinite; will-change: transform; }
.sc-blob-slow { animation: sc-float-slow 11s ease-in-out infinite; will-change: transform; }
@media (prefers-reduced-motion: reduce) {
  .sc-blob, .sc-blob-slow { animation: none; }
}

/* Lucide sizing helper */
.lucide { stroke-width: 2; }

/* ---------- Legacy public helpers (hk-*) — dipakai halaman jobs/packages lama ---------- */
.hk-hero {
  background: linear-gradient(135deg, hsl(var(--sc-primary)) 0%, #7c3aed 100%);
  color: #fff; padding: 4rem 2rem; text-align: center;
}
.hk-hero h1 { font-size: 2.5rem; font-weight: 800; margin: 0 0 1rem; letter-spacing: -0.02em; }
.hk-hero p { font-size: 1.15rem; opacity: .9; max-width: 600px; margin: 0 auto 2rem; }
.hk-search-box {
  max-width: 650px; margin: 0 auto; display: flex; gap: 0.5rem;
  background: #fff; border-radius: 12px; padding: 0.5rem;
  box-shadow: 0 8px 30px rgba(0,0,0,.15);
}
.hk-search-box input {
  flex: 1; border: none; padding: 0.75rem 1rem; font-size: 0.95rem;
  outline: none; border-radius: 8px; color: #333; background: #fff;
}
.hk-search-box button {
  padding: 0.75rem 1.5rem; border: none; background: hsl(var(--sc-primary));
  color: #fff; border-radius: 8px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.hk-section { max-width: 72rem; margin: 0 auto; padding: 3rem 1rem; }
.hk-section-title { font-size: 1.5rem; font-weight: 700; margin: 0 0 1.5rem; letter-spacing: -0.01em; }
@media (max-width: 768px) {
  .hk-hero { padding: 2.5rem 1rem; }
  .hk-hero h1 { font-size: 1.75rem; }
  .hk-search-box { flex-direction: column; }
  .hk-search-box button { width: 100%; }
}
