body {
  background-color: #f8fafc;
  font-family: "Inter", sans-serif;
  color: #64748b;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
  color: #1f2937;
}

/* Navbar Custom Styles */
#navbar {
  transition:
    background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
#nav-container {
  transition: height 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-indicator {
  width: 0;
  transition: width 0.25s ease-out;
}
.nav-active {
  color: #006b54 !important;
  font-weight: 600 !important;
}
.nav-active .nav-indicator {
  width: 20px;
}

/* Hero Animation Background */
.hero-bg {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.hero-circle {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(0, 107, 84, 0.03) 0%,
    rgba(200, 155, 60, 0.03) 100%
  );
  z-index: 0;
  filter: blur(40px);
}
.circle-1 {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -150px;
}
.circle-2 {
  width: 400px;
  height: 400px;
  bottom: 100px;
  left: -150px;
}

/* Cards & Containers */
.data-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  border: 1px solid #f1f5f9;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}
.data-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
.card-animated-border {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 4px;
  background-color: #006b54;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.data-card:hover .card-animated-border {
  width: 100%;
}

/* Iframe Styles for Kurva S */
.iframe-wrapper iframe {
  width: 100%;
  border: none;
  border-radius: 12px;
  background-color: #f8fafc;
}

/* Native Accordion Styles */
details > summary {
  list-style: none;
}
details > summary::-webkit-details-marker {
  display: none;
}

/* Table Styles */
.table-container {
  overflow-x: auto;
}
.table-rekening th {
  background-color: #f8fafc;
  color: #475569;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 12px 16px;
  border-bottom: 2px solid #e2e8f0;
}
.table-rekening td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #1f2937;
  font-size: 0.875rem;
}
.table-rekening tr:last-child td {
  border-bottom: none;
}
.table-rekening tr:hover td {
  background-color: #f8fafc;
}

/* Utility */
.section-padding {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

/* State Messages & Skeletons */
.state-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  color: #64748b;
}

.skeleton-bg {
  background: #f6f7f8;
  background-image: linear-gradient(
    to right,
    #f6f7f8 0%,
    #edeef1 20%,
    #f6f7f8 40%,
    #f6f7f8 100%
  );
  background-repeat: no-repeat;
  background-size: 1000px 100%;
}

/* SVG Donut Animation */
.donut-ring {
  stroke: #f1f5f9;
}
.donut-segment {
  transition: stroke-dasharray 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Flow connection lines for Perangkat Daerah Summary */
.flow-line {
  position: absolute;
  top: 50%;
  right: -1.5rem;
  width: 1.5rem;
  height: 2px;
  background-color: #e2e8f0;
  z-index: 0;
  transform: translateY(-50%);
}
.flow-line::after {
  content: "";
  position: absolute;
  right: -4px;
  top: -4px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent transparent #e2e8f0;
}
@media (max-width: 1024px) {
  .flow-line {
    display: none;
  }
}
/* PHASE 3: KEUANGAN + KINERJA ROUTER */
[data-page-view][hidden] {
  display: none !important;
}

/* PHASE 6: CSP HARDENING */
.hero-illustration-shadow {
  filter: drop-shadow(0 25px 35px rgba(0, 107, 84, 0.15));
}

.curve-frame {
  height: 600px;
}

.kinerja-auto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .kinerja-auto-grid {
    gap: 1rem;
  }
}

.kinerja-section-gap > * + * {
  margin-top: 1.5rem;
}