@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --color-forest-dark: #012019;
  --color-forest-medium: #0A362C;
  --color-emerald-accent: #10B981;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: #f8fafc;
  color: #1e293b;
  overflow-x: hidden;
}

/* Custom Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #10b981;
}

/* Animations and Transitions */
.transition-sidebar {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glow-emerald {
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.glow-emerald:hover {
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.3);
}

/* Custom Card Styling */
.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(241, 245, 249, 0.8);
}

/* Shimmer animation for stats load */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.shimmer {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Custom active sidebar menu indicator */
.nav-active-indicator {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: #10b981;
  border-radius: 0 4px 4px 0;
}

/* Hide scrollbars but keep functionality */
.scrollbar-none::-webkit-scrollbar {
  display: none;
}
.scrollbar-none {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* Responsive Table Cards on Mobile */
@media (max-width: 768px) {
  table.table-responsive thead {
    display: none;
  }
  
  table.table-responsive tr {
    display: block;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    margin-bottom: 14px;
    padding: 12px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  }
  
  table.table-responsive td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    padding: 10px 4px !important;
    text-align: right;
    white-space: normal !important;
    font-size: 0.85rem;
  }
  
  table.table-responsive td:last-child {
    border-bottom: none;
    justify-content: center;
    padding-top: 14px !important;
  }
  
  table.table-responsive td::before {
    content: attr(data-label);
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    margin-right: 16px;
    text-align: left;
    flex-shrink: 0;
  }

  /* tabelIuran Mobile Optimizations */
  #tabelIuran td::before {
    display: none;
  }
  #tabelIuran td {
    justify-content: flex-start;
    text-align: left;
  }
  #tabelIuran td:last-child {
    justify-content: flex-start;
    padding-top: 10px !important;
  }
}

/* Air Split Panel: Stack vertically on tablet and smaller screens */
@media (max-width: 1150px) {
  .air-split-panel {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .air-split-right {
    width: 100% !important;
    position: static !important;
  }
  .air-split-left {
    width: 100% !important;
    max-height: none !important;
  }
}

/* Air Split Panel Styles */
.master-air-warga-row {
  transition: all 0.15s ease;
}
.master-air-warga-row:active {
  transform: scale(0.99);
}

/* Smooth scrolling for warga list */
#masterAirWargaList {
  scroll-behavior: smooth;
}
#masterAirWargaList::-webkit-scrollbar {
  width: 4px;
}
#masterAirWargaList::-webkit-scrollbar-track {
  background: transparent;
}
#masterAirWargaList::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
#masterAirWargaList::-webkit-scrollbar-thumb:hover {
  background: #10b981;
}
