/* Custom CSS untuk Gradient Warna Menu (Hijau) */
.menu-gradient-active {
  background-image: linear-gradient(to right, #3a9e3a, #2d7f2d);
  color: white;
  box-shadow: 0 4px 6px rgba(45, 127, 45, 0.3);
}
.menu-gradient-hover {
  color: #4a5568;
}
.menu-gradient-hover:hover {
  background-color: #f0f9f0;
  color: #2d7f2d;
}
/* Style untuk tombol Pengaturan Akun */
.account-gradient {
  background-image: linear-gradient(to right, #3a9e3a, #2d7f2d);
  color: white;
  box-shadow: 0 4px 6px rgba(45, 127, 45, 0.3);
}
/* Custom scrollbar */
.custom-scrollbar::-webkit-scrollbar {
  width: 8px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: #f1f5f9;
}
/* Hover card yang lebih halus */
.card-hover-effect: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);
}

/* Animasi tambahan */
.floating-animation {
  animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

.pulse-animation {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(58, 158, 58, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(58, 158, 58, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(58, 158, 58, 0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Custom progress bar */
.progress-bar {
  height: 6px;
  border-radius: 3px;
  background-color: #e2e8f0;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(to right, #3a9e3a, #2d7f2d);
  transition: width 0.5s ease-in-out;
}

/* Glassmorphism effect */
.glass-effect {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Notifikasi dropdown */
.notification-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  width: 360px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  margin-top: 10px;
}

.notification-dropdown.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

.notification-item {
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.2s;
}

.notification-item:hover {
  background-color: #f8fafc;
}

.notification-item:last-child {
  border-bottom: none;
}

/* Tambahan: Pastikan body tidak memiliki scrollbar saat loading/mobile menu aktif */
.no-scroll {
  overflow: hidden;
}

/* MOBILE SIDEBAR STYLES */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 40;
  display: none;
}

.mobile-menu-overlay.active {
  display: block;
}

.mobile-sidebar {
  position: fixed;
  top: 0;
  left: -100%; /* Sembunyikan di luar layar */
  width: 280px;
  height: 100%;
  background: white;
  z-index: 50;
  transition: left 0.3s ease; /* Transisi saat muncul */
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
}

.mobile-sidebar.active {
  left: 0; /* Geser masuk */
}

/* Hamburger Menu Icon (Animasi) */
.hamburger-menu {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
}

.hamburger-menu span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: #4a5568;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Modern Filter Styles */
.filter-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 280px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  z-index: 900;
  margin-top: 10px;
  padding: 1rem;
  display: none;
}

.filter-dropdown .filter-option {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
  color: #4a5568;
  font-size: 0.875rem; /* text-sm */
}

.filter-dropdown .filter-option:hover {
  background-color: #f0f9f0; /* primary-50 */
  color: #2d7f2d; /* primary-600 */
}

.filter-dropdown .filter-option.active {
  background-color: #dcf2dc; /* primary-100 */
  color: #256425; /* primary-700 */
  font-weight: 600;
}

.filter-dropdown .filter-option i {
  margin-right: 10px;
  width: 1rem;
}

.filter-dropdown.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}
