/* Search Modal Styles */
#searchModal .modal-content {
  border: none;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

#searchModal .modal-header {
  padding: 1.5rem 1.5rem 0.5rem;
}

#searchModal .modal-body {
  padding: 0 1.5rem;
}

#searchModal .modal-footer {
  padding: 1rem 1.5rem;
  background-color: #f8f9fa !important;
}

.search-result-item {
  transition: all 0.3s ease;
  border-radius: 12px;
  padding: 1rem;
  margin: 0.5rem 0;
  border: 1px solid var(--border);
  background: white;
}

.search-result-item:hover {
  background-color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
  text-decoration: none;
  color: inherit;
}

.tool-icon-sm {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.search-result-item mark {
  background-color: #fff3cd !important;
  color: #856404;
  padding: 0 2px;
  border-radius: 3px;
  font-weight: 500;
}

#searchInput {
  border-color: var(--border);
  font-size: 1rem;
}

#searchInput:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.15);
}

#searchInput::placeholder {
  color: #6c757d;
}

/* Loading animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-result-item {
  animation: fadeInUp 0.3s ease;
}

/* No results state */
.no-results {
  padding: 3rem 1rem;
  text-align: center;
}

.no-results i {
  font-size: 3rem;
  color: var(--gray);
  margin-bottom: 1rem;
}

/* Empty state */
.empty-state {
  padding: 3rem 1rem;
  text-align: center;
}

.empty-state i {
  font-size: 3rem;
  color: var(--primary-light);
  margin-bottom: 1rem;
  opacity: 0.7;
}

/* Ensure proper spacing for badges */
.search-result-badges {
  gap: 0.25rem;
}

.search-result-badges .badge {
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
}

/* Category badge */
.category-badge {
  background: linear-gradient(
    135deg,
    var(--primary-light),
    var(--primary)
  ) !important;
  color: white !important;
  border: none !important;
}

/* Featured tool indicator */
.featured-tool-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--primary-light);
  color: white;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 0.6rem;
  font-weight: 600;
}

.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1055;
}

.toast {
  background: white;
  border-radius: 8px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--success);
}
.bi {
  pointer-events: none;
}
