/* Animasi Munculnya Modal */
.animate-fade-in-up {
  animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Modal Body Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

/* Pastikan Header Modal Tetap di Atas */
.modal-header-sticky {
  position: sticky;
  top: 0;
  background-color: white;
  z-index: 50;
  border-bottom: 1px solid #f1f5f9;
}

/* Mengatur aspek rasio spesifik per platform */
.ratio-youtube {
  aspect-ratio: 16 / 9; /* Standar YouTube */
}

.ratio-instagram {
  aspect-ratio: 1 / 1; /* Standar IG Feed */
}

.ratio-tiktok {
  aspect-ratio: 9 / 16; /* Standar TikTok Portrait */
}

/* Memastikan gambar selalu penuh di dalam kontainer */
#feed-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
}

#feed-container {
  width: 100%;
  height: auto;
  transition: all 0.3s ease;
}

/* Biar scroll preview di dashboard mulus */
body::-webkit-scrollbar {
  display: none;
}

/* Custom Scrollbar buat Sidebar */
.custom-scrollbar::-webkit-scrollbar {
  width: 5px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background-color: #e2e8f0; /* Warna abu muda */
  border-radius: 20px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background-color: #cbd5e1; /* Warna agak gelap pas di-hover */
}

.dot-indicator {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
  flex-shrink: 0; /* Mencegah jadi sosis */
}

.dot-indicator.active-dot {
  background-color: rgba(255, 255, 255, 1);
  transform: scale(1.4);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}
.dot-indicator:hover {
  @apply bg-white/70 scale-125;
}
.active-dot {
  @apply bg-white/90 scale-125 shadow-lg;
}
