/* Utility to hide scrollbars for cleaner UI */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* Sidebar transition effects */
#logo-sidebar {
  transition: width 0.3s ease-in-out;
}

.ml-64,
.ml-16 {
  transition: margin-left 0.3s ease-in-out;
}

/* Sidebar text and logo opacity transition */
.sidebar-text,
#sidebar-logo-img,
.sidebar-signin {
  transition: opacity 0.2s ease-in-out;
}

/* Filters section positioning */
#filters-section {
  position: relative;
}

/* Desktop filter popups styling */
#filters-section [id$="-popup"] {
  position: fixed !important;
  z-index: 9999 !important;
  display: none !important;
}

#filters-section [id$="-popup"]:not(.hidden) {
  display: block !important;
}

/* Nested popups positioning */
#people-popup [id$="-popup"] {
  position: absolute !important;
}

/* Mobile filter dropdown adjustments */
#mobile-filters-dropdown [id$="-popup"] {
  position: relative !important;
  width: 100% !important;
  left: auto !important;
  right: auto !important;
  display: none !important;
}

#mobile-filters-dropdown [id$="-popup"]:not(.hidden) {
  display: block !important;
}

.mobile-filter-popup {
  width: 100%;
  box-sizing: border-box;
  position: relative !important;
}

/* Remove default clear button in search inputs */
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

/* Navigation item hover and active effects */
.nav-item {
  position: relative;
  padding-bottom: 5px;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.nav-item:hover,
.nav-item.active {
  border-bottom-color: white;
}

/* "More" button hover and active effects */
#more-btn {
  position: relative;
  padding-bottom: 8px;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

#more-btn:hover,
#more-btn.active {
  border-bottom-color: white;
}

/* Prevent body scrolling when modal is active */
body.no-scroll {
  overflow: hidden;
}

/* Scrollable dropdowns on mobile */
.mobile-dropdown-scroll {
  overflow-y: auto;
  max-height: calc(100vh - 200px);
}

/* Image card hover effect */
.image-card {
  transition: transform 0.2s ease;
}

.image-card:hover {
  transform: translateY(-2px);
}

/* Button hover animations */
.action-buttons button,
.discover-btn {
  transition: all 0.2s ease;
}

.action-buttons button:hover,
.discover-btn:hover {
  transform: scale(1.05);
}

/* Notification slide-in animation */
.notification-enter {
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Smooth scrolling for tags container */
#tags-container {
  scroll-behavior: smooth;
}

/* Arrow button styling */
#tags-scroll-left,
#tags-scroll-right {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

#tags-scroll-left:hover,
#tags-scroll-right:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}