/* AI Content ko laagi smooth scrolling styles */

.smooth-scroll {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: y proximity; /* Flexibility ko saath scroll snapping lai enable garcha */
  overscroll-behavior: contain; /* Container ko top/bottom ma puugda page scrolling lai rokcha */
}

/* Modern scrollbar styling */
.smooth-scroll::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.smooth-scroll::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 10px;
}

.smooth-scroll::-webkit-scrollbar-thumb {
  background-color: rgba(156, 163, 175, 0.3);
  border-radius: 10px;
  transition: background-color 0.3s ease;
}

.smooth-scroll::-webkit-scrollbar-thumb:hover {
  background-color: rgba(156, 163, 175, 0.5);
}

/* Firefox ko laagi */
.smooth-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(156, 163, 175, 0.3) transparent;
}

/* Touch devices haru ko laagi additional improvements */
@media (pointer: coarse) {
  .smooth-scroll {
    -webkit-overflow-scrolling: touch;
    scroll-padding: 1rem;
  }
}

/* Content lai container bhitra ramro sanga bharne */
.ai-markdown-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

/* Scroll garda last elements haru purai dekhiyos bhanne ko laagi bottom padding add garne */
.ai-markdown-content .prose {
  padding-bottom: 2rem;
}

/* Mobile ma scrollbar lukaune tara functionality kayam rakhne */
@media (max-width: 640px) {
  .smooth-scroll::-webkit-scrollbar {
    width: 4px;
  }
}
