/*=================================================================*/
/*                      BUMBLE CATEGORY TREE                    
/*=================================================================*/
.bumble-category-tree {
  --primary-color: #FE4F70;
  --secondary-color: #203656;
  --background-color: #fff;
  --border-color: #ebebeb;
  --hover-color: rgba(254, 79, 112, 0.05);
  --text-color: #6c6c6c;
  --font-family: "Roboto", sans-serif;
  --transition-speed: 0.3s;
  --border-radius: 10px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  
  list-style: none;
  padding-left: 0;
  margin: 0;
  font-family: var(--font-family);
}

.bumble-category-item {
  margin-bottom: 6px;
  position: relative;
}

.bumble-category-entry {
  display: flex;
  align-items: center;
  background: var(--background-color);
  padding: 12px 16px;
  border-radius: var(--border-radius);
  transition: all var(--transition-speed) ease-in-out;
  /*box-shadow: var(--box-shadow);*/
  position: relative;
  cursor: pointer;
  border: 1px solid hsl(0deg 0% 0% / 3%);
}

.bumble-category-entry:hover {
  background: var(--hover-color);
  /*transform: translateY(-2px);*/
  /*box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);*/
}

.bumble-category-link {
  color: var(--secondary-color);
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 500;
  flex-grow: 1;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: color var(--transition-speed) ease;
}

.bumble-category-link:hover {
  color: var(--primary-color);
}

.bumble-category-count {
  font-size: 12px;
  color: #888;
  background: #f5f5f5;
  padding: 3px 8px;
  border-radius: 20px;
  margin-left: 8px;
}

.bumble-category-toggle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f9f9f9;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-speed) ease;
  flex-shrink: 0;
}

.bumble-category-toggle::after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  transform: rotate(-45deg);
  transition: transform var(--transition-speed) ease;
}

.bumble-category-entry.bumble-category-open .bumble-category-toggle::after {
  transform: rotate(45deg);
}

.bumble-category-children {
  margin-left: 28px;
  padding-left: 16px;
  border-left: 2px solid var(--border-color);
  display: none;
  position: relative;
}

/* Fixed the spacing issue - adding margin-top to first child */
.bumble-category-children .bumble-category-item:first-child {
  margin-top: 8px;
}

/* Improved the connector line design - making it softer */
.bumble-category-children::before {
  content: "";
  position: absolute;
  left: 0;
  top: -8px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border-color), transparent);
}

.bumble-category-entry.bumble-category-open + .bumble-category-children {
  display: block;
  animation: bumbleSlideDown 0.3s ease;
}

/* Scrollable container for large trees */
.bumble-category-scroll-container {
  max-height: 500px;
  overflow-y: auto;
  scroll-behavior: smooth;
  padding-right: 8px;
  margin-right: -8px;
  position: relative;
}

/* Webkit Scroll Styling */
.bumble-category-scroll-container::-webkit-scrollbar {
  width: 6px;
}

.bumble-category-scroll-container::-webkit-scrollbar-thumb {
  background-color: var(--primary-color);
  border-radius: 3px;
}

.bumble-category-scroll-container::-webkit-scrollbar-track {
  background-color: #f1f1f1;
  border-radius: 3px;
}

/* Responsive styles */
@media (max-width: 768px) {
  .bumble-category-entry {
    padding: 10px 12px;
  }
  
  .bumble-category-link {
    font-size: 14px;
  }
  
  .bumble-category-children {
    margin-left: 20px;
    padding-left: 12px;
  }
  
  .bumble-category-scroll-container {
    max-height: 400px;
  }
}

.bumble-category-link.bumble-category-current {
  font-weight: 700;
  color: var(--primary-color);
}

.bumble-category-link.bumble-category-parent {
  font-weight: 600;
  color: var(--primary-color);
}

.bumble-category-entry.bumble-category-selected,
.bumble-category-entry:hover {
  background: var(--hover-color);
}

/* Adding styles for selected category - only what was requested */
.bumble-category-entry.bumble-category-selected {
  border-left: 3px solid var(--primary-color);
}

/* Animations */
@keyframes bumbleSlideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Search improvements */
.bumble-category-search-container {
  position: relative;
  margin-bottom: 1.5rem;
  padding: 0 10px;
}

.bumble-category-search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

/* Keeping the input styling as requested - round and beautiful */
.bumble-category-search-input {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  border: 1px solid #e1e1e1;
  border-radius: 30px; /* Making it fully rounded for a modern look */
  font-size: 0.95rem;
  font-family: "Roboto", sans-serif;
  transition: all 0.3s ease;
  background-color: #fff;
  color: #333;
}

.bumble-category-search-input:focus {
  outline: none;
  border-color: #FE4F70;
  box-shadow: 0 0 0 3px rgba(254, 79, 112, 0.15);
}

.bumble-category-search-input::placeholder {
  color: #aaa;
  font-style: italic;
}

.bumble-category-search-clear {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: #aaa;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  z-index: 2;
}

.bumble-category-search-clear:hover {
  background-color: #f0f0f0;
  color: #FE4F70;
}

.bumble-category-search-results-container {
  margin-top: 0.5rem;
  border: 1px solid #e1e1e1;
  border-radius: 4px;
  max-height: 350px;
  overflow-y: auto;
  background: white;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  z-index: 1000;
  position: absolute;
  width: calc(100% - 20px);
  left: 10px;
}

.bumble-category-search-result-item {
  border-bottom: 1px solid #f0f0f0;
}

.bumble-category-search-result-item:last-child {
  border-bottom: none;
}

.bumble-category-search-result-link {
  display: block;
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.bumble-category-search-result-link:hover {
  background-color: #fdf6f8;
}

.bumble-category-search-result-name {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #222;
  font-size: 1rem;
  line-height: 1.3;
}

.bumble-category-search-result-path {
  font-size: 0.85rem;
  color: #777;
  line-height: 1.4;
}

.bumble-category-search-result-path .category-breadcrumb-item {
  display: inline;
  font-weight: 400;
}

.bumble-category-search-result-path .category-breadcrumb-item:first-child {
  font-weight: 500;
}

.bumble-category-search-result-path .category-breadcrumb-separator {
  color: #ccc;
  margin: 0 0.3rem;
  font-weight: 300;
}

.bumble-search-highlight {
  background-color: #FE4F70;
  color: white;
  padding: 0.15rem 0.3rem;
  border-radius: 3px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

/* Add subtle glow effect */
.bumble-search-highlight::selection {
  background: rgba(254, 79, 112, 0.8);
  color: white;
}

.bumble-search-highlight::-moz-selection {
  background: rgba(254, 79, 112, 0.8);
  color: white;
}

/* Restoring the original search result styles */
.bumble-category-search-loading,
.bumble-category-search-no-results,
.bumble-category-search-error {
  padding: 1.5rem;
  text-align: center;
  color: #666;
  font-style: normal;
  font-size: 0.95rem;
}

.bumble-category-search-loading {
  color: #FE4F70;
  font-weight: 500;
}

.bumble-category-search-no-results:before,
.bumble-category-search-error:before {
  content: "🔍";
  display: block;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.bumble-category-search-no-results:before {
  content: "😔";
}

.bumble-category-search-error:before {
  content: "⚠️";
}

.bumble-search-results-header {
  padding: 0.75rem 1.25rem;
  background-color: #f8f9fa;
  border-bottom: 1px solid #eaeaea;
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .bumble-category-search-container {
    padding: 0;
    margin-bottom: 1rem;
  }

  .bumble-category-search-results-container {
    left: 0;
    width: 100%;
  }
}

/* Scrollbar styling */
.bumble-category-search-results-container::-webkit-scrollbar {
  width: 6px;
}

.bumble-category-search-results-container::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.bumble-category-search-results-container::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.bumble-category-search-results-container::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}