:root {
  --lb-primary: #8b5cf6;
  --lb-primary-hover: #7c3aed;
  --lb-bg: #f9fafb;
  --lb-surface: #ffffff;
  --lb-border: #e2e8f0;
  --lb-text-main: #1e293b;
  --lb-text-muted: #64748b;
  --lb-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --lb-shadow-hover: 0 10px 15px -3px rgba(139, 92, 246, 0.15);
  --lb-radius: 12px;
}

.lb-app {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  background: var(--lb-bg);
  border-radius: 16px;
}

/* Controls: Input & Toggle */
.lb-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.lb-input-wrapper {
  width: 100%;
  max-width: 800px;
}

#lb-input {
  width: 100%;
  padding: 1.25rem 1.5rem;
  font-size: 1.25rem;
  text-align: center;
  background: var(--lb-surface);
  border: 2px solid var(--lb-border);
  border-radius: 50px; /* Fully rounded like a pill */
  color: var(--lb-text-main);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  transition: all 0.2s ease;
  box-sizing: border-box;
}

#lb-input:focus {
  outline: none;
  border-color: var(--lb-primary);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

.lb-toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: var(--lb-text-muted);
  font-size: 0.875rem;
}

/* Switch styling */
.lb-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.lb-switch input { opacity: 0; width: 0; height: 0; }
.lb-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #cbd5e1;
  transition: .3s;
  border-radius: 24px;
}
.lb-slider:before {
  position: absolute;
  content: "";
  height: 18px; width: 18px;
  left: 3px; bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}
.lb-switch input:checked + .lb-slider { background-color: var(--lb-primary); }
.lb-switch input:checked + .lb-slider:before { transform: translateX(20px); }

/* Category Navigation */
.lb-nav-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  position: relative;
}

.lb-nav-arrow {
  background: var(--lb-surface);
  border: 1px solid var(--lb-border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--lb-text-muted);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
  flex-shrink: 0;
  z-index: 2;
}
.lb-nav-arrow:hover {
  color: var(--lb-primary);
  border-color: var(--lb-primary);
}

.lb-nav-scroll {
  overflow-x: auto;
  scrollbar-width: none; /* Hide scrollbar for cleaner look */
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  flex-grow: 1;
}
.lb-nav-scroll::-webkit-scrollbar { display: none; }

.lb-nav {
  display: flex;
  gap: 0.75rem;
  width: max-content;
  padding: 0.25rem 0;
}

.lb-cat-link {
  background: var(--lb-surface);
  color: var(--lb-text-main);
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  border: 1px solid var(--lb-border);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}
.lb-cat-link:hover {
  border-color: var(--lb-primary);
  color: var(--lb-primary);
}
.lb-cat-link.active {
  background: var(--lb-primary);
  color: white;
  border-color: var(--lb-primary);
}
.lb-cat-fav {
  padding: 0.6rem 1rem;
}

/* Grid Design */
.lb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.lb-item {
  background: var(--lb-surface);
  border-radius: var(--lb-radius);
  border: 1px solid transparent;
  padding: 1.5rem 1rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--lb-shadow);
  transition: all 0.2s ease;
  position: relative;
  min-height: 120px;
}

.lb-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--lb-shadow-hover);
  border-color: var(--lb-border);
}

.lb-item-text {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--lb-text-main);
  word-break: break-all;
}

.lb-item-label {
  position: absolute;
  bottom: 0.75rem;
  left: 1rem;
  font-size: 0.75rem;
  color: var(--lb-primary);
  font-weight: 600;
}

/* Right side action container (Trending + Copy Icon) */
.lb-item-actions {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lb-item-icon {
  color: #cbd5e1;
  transition: color 0.2s ease;
  display: flex;
}
.lb-item:hover .lb-item-icon {
  color: var(--lb-primary);
}

.lb-trending {
  background: #fff3cd;
  color: #856404;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

/* Load More Button */
.lb-load-more-container {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}
.lb-load-more-btn {
  background: var(--lb-primary);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}
.lb-load-more-btn:hover {
  background: var(--lb-primary-hover);
}

/* Toast */
.lb-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #10b981;
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 9999;
}
.lb-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@media (max-width: 600px) {
  .lb-grid { grid-template-columns: 1fr; }
  .lb-nav-arrow { display: none; /* Hide arrows on very small mobile to rely on touch swipe */ }
}
.lb-heart{
    font-size:22px;
    cursor:pointer;
    color:#bdbdbd;
    margin-right:10px;
    transition:0.2s;
    user-select:none;
}

.lb-heart:hover{
    transform:scale(1.2);
}

.lb-heart.active{
    color:#ff3b30;
}
