/**
 * UKPJ Disdikbud Karawang - Modern Design System 2026
 * Clean, Simple, Professional & User-Friendly
 */

:root {
  --primary: #0d3858;
  --primary-hover: #08263d;
  --primary-light: #eef6fc;
  --primary-glow: rgba(13, 56, 88, 0.12);
  
  --accent: #0284c7;
  --accent-light: #e0f2fe;
  --accent-hover: #0369a1;
  
  --emerald: #059669;
  --emerald-light: #ecfdf5;
  --emerald-border: #a7f3d0;
  
  --amber: #d97706;
  --amber-light: #fffbeb;
  --amber-border: #fde68a;
  
  --rose: #e11d48;
  --rose-light: #fff1f2;
  --rose-border: #fecdd3;
  
  --indigo: #4f46e5;
  --indigo-light: #eef2ff;
  --indigo-border: #c7d2fe;
  
  --ink: #0f172a;
  --ink-secondary: #334155;
  --muted: #64748b;
  --subtle: #94a3b8;
  
  --canvas: #f8fafc;
  --card-bg: #ffffff;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 9999px;
  
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.07), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 28px -6px rgba(15, 23, 42, 0.09), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 35px -8px rgba(15, 23, 42, 0.12), 0 6px 14px -3px rgba(15, 23, 42, 0.06);
  
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Plus Jakarta Sans', 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--canvas);
  background-image: 
    radial-gradient(at 0% 0%, rgba(2, 132, 199, 0.04) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(13, 56, 88, 0.05) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(5, 150, 105, 0.03) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(1.85rem, 3.2vw, 2.75rem); }
h2 { font-size: clamp(1.35rem, 2vw, 1.75rem); }
h3 { font-size: 1.15rem; }
p { color: var(--ink-secondary); }
small { font-size: 0.8125rem; color: var(--muted); }
a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-hover); }

/* Layout Shell */
.app-container {
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

main {
  flex: 1 0 auto;
}

/* Modern Sticky Navbar */
.nav-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  transition: var(--transition);
}

.nav-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.agency-logo {
  height: 42px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.brand:hover .agency-logo {
  transform: scale(1.02);
}

.brand-divider {
  width: 1px;
  height: 30px;
  background: var(--line-strong);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  color: var(--primary);
  line-height: 1.15;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-tag {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Nav Menu & Actions */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
  font-weight: 700;
}

.nav-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #f1f5f9;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-secondary);
}

.nav-user-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.25;
  transition: var(--transition);
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(13, 56, 88, 0.2);
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(13, 56, 88, 0.3);
}

.btn-secondary {
  background: #ffffff;
  color: var(--ink-secondary);
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: var(--subtle);
  color: var(--ink);
}

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

.btn-outline:hover {
  background: var(--primary-light);
}

.btn-success {
  background: var(--emerald);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.2);
}

.btn-success:hover {
  background: #047857;
  color: #ffffff;
}

.btn-danger {
  background: var(--rose);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(225, 29, 72, 0.2);
}

.btn-danger:hover {
  background: #be123c;
  color: #ffffff;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8125rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 24px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-full {
  width: 100%;
}

.link-button {
  background: none;
  border: 0;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.link-button:hover {
  color: var(--rose);
  background: var(--rose-light);
}

/* Badges & Status Pills */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.2;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge-dot.pulse {
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.badge-emerald, .status-disetujui, .status-pill.ok {
  background: var(--emerald-light);
  color: var(--emerald);
  border: 1px solid var(--emerald-border);
}

.badge-amber, .status-menunggu-persetujuan, .status-pill {
  background: var(--amber-light);
  color: var(--amber);
  border: 1px solid var(--amber-border);
}

.badge-indigo, .status-revisi {
  background: var(--indigo-light);
  color: var(--indigo);
  border: 1px solid var(--indigo-border);
}

.badge-rose, .status-ditolak, .status-pill.bad {
  background: var(--rose-light);
  color: var(--rose);
  border: 1px solid var(--rose-border);
}

.badge-blue {
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid #bae6fd;
}

.badge-gray {
  background: #f1f5f9;
  color: var(--muted);
  border: 1px solid var(--line);
}

/* Alerts / Notifications */
.alert-wrapper {
  max-width: 1180px;
  margin: 20px auto 0;
  padding: 0 24px;
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  line-height: 1.5;
  box-shadow: var(--shadow-sm);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.alert.success {
  background: var(--emerald-light);
  border: 1px solid var(--emerald-border);
  color: #065f46;
}

.alert.error {
  background: var(--rose-light);
  border: 1px solid var(--rose-border);
  color: #9f1239;
}

.alert.info {
  background: var(--accent-light);
  border: 1px solid #bae6fd;
  color: #0369a1;
}

.alert-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
}

/* Cards & Panels */
.card, .panel {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.panel-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.panel-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* Page Headers */
.page-header {
  padding: 40px 0 28px;
}

.page-header.compact {
  padding: 32px 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.page-header h1 {
  margin-bottom: 8px;
}

.page-header p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 650px;
}

/* Hero Section (Public Home) */
.hero-section {
  padding: 56px 0 44px;
  text-align: center;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xs);
  margin-bottom: 24px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-secondary);
}

.hero-title {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--primary);
  margin-bottom: 18px;
}

.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

/* Lookup / Search Card */
.lookup-card-modern {
  max-width: 640px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  text-align: left;
  position: relative;
  overflow: hidden;
}

.lookup-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 100%);
}

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

.lookup-card-header h2 {
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.lookup-card-header p {
  font-size: 0.9rem;
  color: var(--muted);
}

.search-box-group {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.input-with-icon {
  position: relative;
  flex: 1;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--subtle);
  pointer-events: none;
  display: grid;
  place-items: center;
}

.input-with-icon input {
  padding-left: 44px;
}

/* Form Controls */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
select,
textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  background: #ffffff;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  line-height: 1.4;
  transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

input::placeholder,
textarea::placeholder {
  color: var(--subtle);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.form-label span.req {
  color: var(--rose);
}

.form-hint {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 6px;
}

/* Feature / Step Cards */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 44px 0 80px;
}

.step-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.step-badge {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-light);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.step-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: grid;
  place-items: center;
}

.step-card h3 {
  font-size: 1.15rem;
  margin-top: 4px;
}

.step-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Public Form Layout */
.form-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 0 70px;
}

.form-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 22px;
  padding: 6px 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xs);
}

.form-back-link:hover {
  color: var(--primary);
  border-color: var(--subtle);
  transform: translateX(-2px);
}

.form-grid-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  align-items: start;
}

/* Profile Card */
.profile-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 96px;
}

.profile-avatar-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}

.profile-avatar {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  box-shadow: 0 4px 10px rgba(13, 56, 88, 0.2);
}

.profile-name-group strong {
  display: block;
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.3;
}

.profile-name-group span {
  font-size: 0.8125rem;
  color: var(--emerald);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.profile-fields-list {
  display: grid;
  gap: 16px;
}

.profile-field-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-field-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.profile-field-val {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  word-break: break-word;
}

.profile-notice {
  background: #f8fafc;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 22px;
}

/* Radio Selection Cards */
.radio-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.radio-card-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-secondary);
}

.radio-card-label:hover {
  background: #f8fafc;
  border-color: var(--subtle);
}

.radio-card-label input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  margin: 0;
  cursor: pointer;
}

.radio-card-label:has(input[type="radio"]:checked) {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

/* Modern File Upload Dropzone */
.file-upload-zone {
  position: relative;
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  background: #fcfdfe;
  transition: var(--transition);
  cursor: pointer;
}

.file-upload-zone:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}

.file-upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.file-upload-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-light);
  color: var(--accent);
  display: grid;
  place-items: center;
}

.file-upload-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}

.file-upload-subtitle {
  font-size: 0.8rem;
  color: var(--muted);
}

.file-selected-name {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  background: #ffffff;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
  margin-top: 6px;
}

/* Conditional Accordion / Sub-form */
.conditional-box {
  display: none;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-top: 14px;
  margin-bottom: 20px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.conditional-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

/* Detail Timeline & Status Tracker */
.detail-tracker-card {
  max-width: 820px;
  margin: 0 auto 50px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.detail-tracker-header {
  padding: 28px 32px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.detail-tracker-body {
  padding: 32px;
}

.timeline-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin-bottom: 34px;
  padding: 0 10px;
}

.timeline-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 40px;
  right: 40px;
  height: 2px;
  background: var(--line-strong);
  z-index: 1;
}

.timeline-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.timeline-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--line-strong);
  color: var(--muted);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
}

.timeline-step.active .timeline-icon {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.timeline-step.completed .timeline-icon {
  border-color: var(--emerald);
  background: var(--emerald);
  color: #ffffff;
}

.timeline-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

.timeline-step.active .timeline-label,
.timeline-step.completed .timeline-label {
  color: var(--ink);
}

/* Data Key-Value Grid */
.summary-data-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  background: #f8fafc;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}

.summary-data-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.summary-data-item label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.summary-data-item strong {
  font-size: 0.95rem;
  color: var(--ink);
}

/* Admin Dashboard KPI Stats */
.stats-grid-modern {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card-modern {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
}

.stat-card-modern:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.stat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.stat-icon-wrapper {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
}

.stat-label-modern {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-number-modern {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.03em;
}

/* Admin Form Setting Box */
.settings-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.settings-inner-layout {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 28px;
  align-items: center;
}

.settings-status-info h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.settings-status-info p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.settings-form-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8fafc;
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}

/* Modern Data Table */
.table-card-wrapper {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 24px;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-modern {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.table-modern th {
  background: #f8fafc;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.table-modern td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-secondary);
  vertical-align: middle;
}

.table-modern tbody tr:last-child td {
  border-bottom: none;
}

.table-modern tbody tr {
  transition: background-color 0.15s ease;
}

.table-modern tbody tr:hover {
  background-color: #fcfdfd;
}

.table-user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.table-avatar-sm {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.table-user-text strong {
  display: block;
  font-size: 0.9rem;
  color: var(--ink);
  font-weight: 700;
}

.table-user-text small {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
}

/* Filter Toolbar */
.filter-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.filter-input-wrap {
  flex: 1;
  min-width: 260px;
  max-width: 440px;
}

.filter-select-wrap {
  width: 220px;
}

/* PDF Preview Frame Container */
.pdf-preview-container {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #f1f5f9;
  box-shadow: var(--shadow-xs);
}

.pdf-preview-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.pdf-preview-toolbar strong {
  font-size: 0.875rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Authentication Page (Admin Login) */
.auth-page-wrapper {
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 38px 34px;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}

.auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-icon-badge {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: var(--primary-light);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
}

.auth-header h1 {
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.auth-header p {
  font-size: 0.88rem;
  color: var(--muted);
}

/* Footer */
footer {
  background: #ffffff;
  border-top: 1px solid var(--line);
  padding: 24px 0;
  margin-top: 50px;
  color: var(--muted);
  font-size: 0.8125rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 16px;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .stats-grid-modern {
    grid-template-columns: repeat(3, 1fr);
  }
  .form-grid-layout {
    grid-template-columns: 1fr;
  }
  .profile-card {
    position: static;
  }
  .settings-inner-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .nav-inner {
    height: 64px;
  }
  .agency-logo {
    height: 34px;
    max-width: 140px;
  }
  .brand-title {
    font-size: 0.82rem;
  }
  .brand-subtitle {
    display: none;
  }
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-bottom: 50px;
  }
  .stats-grid-modern {
    grid-template-columns: repeat(2, 1fr);
  }
  .search-box-group {
    flex-direction: column;
  }
  .radio-cards-grid {
    grid-template-columns: 1fr;
  }
  .summary-data-grid {
    grid-template-columns: 1fr;
  }
  .timeline-steps {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .timeline-steps::before {
    display: none;
  }
  .timeline-step {
    flex-direction: row;
    gap: 14px;
  }
  .filter-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-input-wrap, .filter-select-wrap {
    width: 100%;
    max-width: none;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .app-container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .card, .panel, .lookup-card-modern, .auth-card {
    padding: 20px;
  }
  .hero-section {
    padding: 36px 0 24px;
  }
  .hero-title {
    font-size: 1.85rem;
  }
}
