body {
  font-family: system-ui, -apple-system, sans-serif;
}

/* Homepage Filter Tabs */
.homepage-filter-tab {
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  color: #9ca3af; /* text-gray-400 */
  transition: all 0.2s ease-in-out;
}
.homepage-filter-tab:hover {
  color: #e5e7eb; /* text-gray-200 */
  background-color: rgba(255, 255, 255, 0.05);
}
.homepage-filter-tab.active {
  color: #22d3ee; /* text-cyan-400 */
  border-bottom-color: #22d3ee; /* border-cyan-400 */
  font-weight: 600;
}

/* Utility class to hide scrollbars */
.no-scrollbar {
  /* Hide scrollbar for Firefox */
  scrollbar-width: none;
  /* Hide scrollbar for IE, Edge */
  -ms-overflow-style: none;
}
/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Watchlist Modal Filter Tabs */
.modal-filter-tab {
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  color: #9ca3af; /* text-gray-400 */
  transition: all 0.2s ease-in-out;
  white-space: nowrap;
  flex-shrink: 0;
}
.modal-filter-tab:hover {
  color: #e5e7eb; /* text-gray-200 */
}

/* Default active tab (applies to 'All') */
.modal-filter-tab.active {
  color: #22d3ee; /* text-cyan-400 */
  border-bottom-color: #22d3ee; /* border-cyan-400 */
  font-weight: 600;
}

/* Specific active tab color overrides */
.modal-filter-tab[data-filter="watching"].active {
  color: #60a5fa; /* text-blue-400 */
  border-bottom-color: #60a5fa;
}
.modal-filter-tab[data-filter="planning"].active {
  color: #facc15; /* text-yellow-400 */
  border-bottom-color: #facc15;
}
.modal-filter-tab[data-filter="completed"].active {
  color: #4ade80; /* text-green-400 */
  border-bottom-color: #4ade80;
}
.modal-filter-tab[data-filter="dropped"].active {
  color: #f87171; /* text-red-400 */
  border-bottom-color: #f87171;
}

/* Watchlist Modal Sticky Category Headers */
.status-category h3 {
  position: sticky;
  top: -1px; /* Adjust slightly to account for the border */
  background-color: #1f2937; /* bg-gray-800, ensure this matches the modal's background */
  z-index: 10;
}

/* Watchlist Stats Legend Styling */
#watchlist-stats-legend {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

#watchlist-stats-legend span {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: #9ca3af; /* text-gray-400 */
  white-space: nowrap;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  background-color: rgba(31, 41, 55, 0.5); /* bg-gray-800/50 */
  transition: all 0.2s ease-in-out;
}

#watchlist-stats-legend span:hover {
  background-color: rgba(31, 41, 55, 0.8); /* bg-gray-800/80 */
  color: #e5e7eb; /* text-gray-200 */
}

#watchlist-stats-legend span::before {
  content: "■";
  font-size: 1rem;
  line-height: 1;
}

/* Legend color indicators */
#watchlist-stats-legend span.legend-watching::before {
  color: #60a5fa; /* blue-400 - Watching */
}

#watchlist-stats-legend span.legend-completed::before {
  color: #4ade80; /* green-400 - Completed */
}

#watchlist-stats-legend span.legend-planning::before {
  color: #facc15; /* yellow-400 - Planning */
}

#watchlist-stats-legend span.legend-dropped::before {
  color: #f87171; /* red-400 - Dropped */
}

/* Responsive: Adjust on smaller screens */
@media (max-width: 640px) {
  #watchlist-stats-legend {
    gap: 0.5rem;
  }
  
  #watchlist-stats-legend span {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
    gap: 0.25rem;
  }
  
  #watchlist-stats-legend span::before {
    font-size: 0.875rem;
  }
}

/* Search Input Styling */
#watchlist-search-input {
  font-size: 0.875rem;
}

#watchlist-search-input::placeholder {
  color: #6b7280; /* text-gray-500 */
}

/* Watchlist Item Hover Effects */
.watchlist-item-container {
  position: relative;
}

.watchlist-item-link {
  text-decoration: none;
}

/* Smooth transitions for all interactive elements */
button {
  transition: all 0.2s ease-in-out;
}

/* Custom scrollbar for watchlist container */
#watchlist-modal-container::-webkit-scrollbar {
  width: 8px;
}

#watchlist-modal-container::-webkit-scrollbar-track {
  background: rgba(31, 41, 55, 0.5);
  border-radius: 4px;
}

#watchlist-modal-container::-webkit-scrollbar-thumb {
  background: #4b5563; /* gray-600 */
  border-radius: 4px;
}

#watchlist-modal-container::-webkit-scrollbar-thumb:hover {
  background: #6b7280; /* gray-500 */
}