/* Custom scrollbar for better appearance */
::-webkit-scrollbar {
  width: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: #10b981;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #059669;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus styles for accessibility */
*:focus-visible {
  outline: 2px solid #10b981;
  outline-offset: 2px;
}

/* Smooth transitions */
.transition-all {
  transition: all 0.3s ease-in-out;
}

/* Gradient background */
.bg-gradient-posyandu {
  background: linear-gradient(
    135deg,
    #ecfdf5 0%,
    #d1fae5 25%,
    #a7f3d0 50%,
    #6ee7b7 75%,
    #34d399 100%
  );
}

/* Card hover effects */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Animation for scroll reveal */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Sidebar animation */
.sidebar-item {
  transition: all 0.3s ease;
}

.sidebar-item:hover {
  background: rgba(16, 185, 129, 0.1);
  border-left: 4px solid #10b981;
}

.sidebar-item.active {
  background: rgba(16, 185, 129, 0.15);
  border-left: 4px solid #10b981;
  color: #065f46;
}
