:root {
  --siperi-primary: #1e4d8c;
  --siperi-primary-dark: #163a6b;
  --siperi-accent: #0ea5a4;
  --siperi-accent-light: #5eead4;
  --siperi-surface: #f4f7fb;
  --siperi-card-shadow: 0 0.25rem 1.25rem rgba(30, 77, 140, 0.08);
  --siperi-radius: 0.75rem;
}

body {
  font-family: "Plus Jakarta Sans", "Nunito", -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--siperi-surface);
}

.bg-gradient-primary,
.sidebar.bg-gradient-primary {
  background: linear-gradient(160deg, var(--siperi-primary-dark) 0%, var(--siperi-primary) 45%, var(--siperi-accent) 100%) !important;
  background-size: 200% 200%;
}

.sidebar .nav-item .nav-link {
  border-radius: 0.5rem;
  margin: 0.15rem 0.75rem;
  width: calc(100% - 1.5rem);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar .nav-item .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.sidebar .nav-item .nav-link.active {
  background-color: rgba(255, 255, 255, 0.18);
  font-weight: 600;
}

.sidebar-brand {
  padding: 1.25rem 1rem;
}

.sidebar-brand-icon {
  transform: none !important;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 0.65rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem;
  overflow: hidden;
}

.sidebar-brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.sidebar-heading {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  opacity: 0.75;
}

.topbar {
  border-bottom: 1px solid rgba(30, 77, 140, 0.08) !important;
  box-shadow: var(--siperi-card-shadow) !important;
}

.topbar .navbar-nav .nav-link {
  color: #4b5563;
}

.role-badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(30, 77, 140, 0.08);
  color: var(--siperi-primary);
}

.page-heading {
  margin-bottom: 1.5rem;
}

.page-heading h1 {
  color: #1f2937;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-heading .subtitle {
  color: #6b7280;
  font-size: 0.925rem;
}

.card {
  border: none;
  border-radius: var(--siperi-radius);
  box-shadow: var(--siperi-card-shadow);
}

.card-header {
  background: #fff;
  border-bottom: 1px solid rgba(30, 77, 140, 0.08);
  border-radius: var(--siperi-radius) var(--siperi-radius) 0 0 !important;
}

.card-header h6 {
  color: var(--siperi-primary);
  font-weight: 700;
}

.stat-card {
  border-left: 0 !important;
  overflow: hidden;
  position: relative;
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--stat-accent, var(--siperi-primary));
}

.stat-card .stat-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: rgba(30, 77, 140, 0.08);
  color: var(--stat-accent, var(--siperi-primary));
}

.stat-card.stat-primary { --stat-accent: #1e4d8c; }
.stat-card.stat-secondary { --stat-accent: #64748b; }
.stat-card.stat-warning { --stat-accent: #d97706; }
.stat-card.stat-success { --stat-accent: #059669; }
.stat-card.stat-info { --stat-accent: #0891b2; }

.stat-card.stat-primary .stat-icon { background: rgba(30, 77, 140, 0.1); }
.stat-card.stat-secondary .stat-icon { background: rgba(100, 116, 139, 0.1); }
.stat-card.stat-warning .stat-icon { background: rgba(217, 119, 6, 0.1); }
.stat-card.stat-success .stat-icon { background: rgba(5, 150, 105, 0.1); }
.stat-card.stat-info .stat-icon { background: rgba(8, 145, 178, 0.1); }

.table thead th {
  border-top: none;
  border-bottom-width: 1px;
  background: #f8fafc;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.table-hover tbody tr:hover {
  background-color: rgba(30, 77, 140, 0.03);
}

.table td {
  vertical-align: middle;
}

.btn-primary {
  background: linear-gradient(135deg, var(--siperi-primary) 0%, #2563eb 100%);
  border: none;
  box-shadow: 0 0.35rem 0.85rem rgba(30, 77, 140, 0.25);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, var(--siperi-primary-dark) 0%, var(--siperi-primary) 100%);
  box-shadow: 0 0.45rem 1rem rgba(30, 77, 140, 0.3);
}

.form-control:focus,
.custom-select:focus {
  border-color: rgba(30, 77, 140, 0.45);
  box-shadow: 0 0 0 0.2rem rgba(30, 77, 140, 0.12);
}

.alert {
  border: none;
  border-radius: 0.65rem;
  box-shadow: var(--siperi-card-shadow);
}

.alert-dismissible .close {
  padding: 0.85rem 1.15rem;
}

.badge-status {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.4em 0.75em;
  border-radius: 999px;
  text-transform: capitalize;
}

.badge-status-draft { background: #e2e8f0; color: #475569; }
.badge-status-perbaikan { background: #fef3c7; color: #b45309; }
.badge-status-dikirim { background: #dbeafe; color: #1d4ed8; }
.badge-status-diverifikasi { background: #cffafe; color: #0e7490; }
.badge-status-disetujui { background: #d1fae5; color: #047857; }

.badge-tahap {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35em 0.65em;
  border-radius: 0.4rem;
}

.progress-thin {
  height: 0.55rem;
  border-radius: 999px;
  background: #e5e7eb;
}

.progress-thin .progress-bar {
  border-radius: 999px;
}

.landing-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--siperi-primary-dark) 0%, var(--siperi-primary) 50%, var(--siperi-accent) 100%);
  padding: 4.5rem 0 5rem;
}

.landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.08) 0%, transparent 35%);
  pointer-events: none;
}

.landing-hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.landing-hero h1 {
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.landing-hero p.lead {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  max-width: 38rem;
}

.landing-stat {
  background: #fff;
  border-radius: var(--siperi-radius);
  box-shadow: var(--siperi-card-shadow);
  padding: 1.25rem;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.75rem 1.75rem rgba(30, 77, 140, 0.12);
}

.landing-stat .icon-wrap {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.landing-feature {
  background: #fff;
  border-radius: var(--siperi-radius);
  box-shadow: var(--siperi-card-shadow);
  padding: 1.5rem;
  height: 100%;
}

.landing-feature .feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 77, 140, 0.08);
  color: var(--siperi-primary);
  margin-bottom: 0.85rem;
}

.landing-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.landing-steps li {
  position: relative;
  padding-left: 2.75rem;
  margin-bottom: 1rem;
  color: #4b5563;
}

.landing-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  background: rgba(30, 77, 140, 0.1);
  color: var(--siperi-primary);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-footer {
  background: #fff;
  border-top: 1px solid rgba(30, 77, 140, 0.08);
  padding: 1.5rem 0;
  color: #6b7280;
  font-size: 0.875rem;
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--siperi-primary-dark) 0%, var(--siperi-primary) 55%, var(--siperi-accent) 100%);
  padding: 2rem 0;
}

.login-card {
  border-radius: 1rem;
  overflow: hidden;
}

.login-visual {
  background: linear-gradient(160deg, rgba(22, 58, 107, 0.95) 0%, rgba(14, 165, 164, 0.85) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 2.5rem;
  min-height: 100%;
}

.login-visual .visual-icon {
  width: 6rem;
  height: 6rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.login-brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.login-visual h2 {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.login-visual p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
}

.login-form-wrap {
  padding: 2.5rem 2rem;
}

.input-icon-group {
  position: relative;
}

.input-icon-group .input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  z-index: 2;
}

.input-icon-group .form-control {
  padding-left: 2.75rem;
  border-radius: 0.65rem;
  height: calc(1.5em + 1.15rem + 2px);
}

.btn-login {
  border-radius: 0.65rem;
  padding: 0.75rem 1rem;
  font-weight: 600;
}

.chart-wrap {
  position: relative;
  height: 280px;
}

.detail-label {
  color: #6b7280;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}

.detail-value {
  color: #1f2937;
  margin-bottom: 1rem;
}

.empty-state {
  padding: 2.5rem 1rem;
  text-align: center;
  color: #94a3b8;
}

.empty-state i {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  opacity: 0.6;
}

.sticky-footer {
  border-top: 1px solid rgba(30, 77, 140, 0.08);
}

@media (max-width: 767.98px) {
  .landing-hero {
    padding: 3rem 0 3.5rem;
  }

  .login-form-wrap {
    padding: 2rem 1.25rem;
  }
}

.panduan-dash-card {
  border-left: 4px solid var(--siperi-primary);
}

.panduan-dash-card .btn-download-panduan {
  font-weight: 600;
}
