/* Custom scrollbar for category menu */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Smooth scrolling */
.smooth-scroll {
    scroll-behavior: smooth;
}

/* Gradient fade for scroll indicators */
.fade-left {
    background: linear-gradient(to right, white, transparent);
    transition: opacity 0.3s ease;
}

.fade-right {
    background: linear-gradient(to left, white, transparent);
    transition: opacity 0.3s ease;
}

/* Fixed header styles */
header {
    transition: all 0.3s ease;
    will-change: transform;
}

/* Header spacer to prevent content overlap */
#header-spacer {
    transition: height 0.3s ease;
}

/* Header shadow effects */
header.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

header.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Ensure header stays on top */
header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 50 !important;
}

/* Sticky header animation (legacy support) */
.sticky-header {
    transition: all 0.3s ease;
}

.sticky-header.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Scroll navigation buttons */
.scroll-btn {
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.scroll-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Category item hover effect */
.category-item {
    transition: all 0.2s ease;
    position: relative;
}

.category-item:hover {
    transform: translateY(-1px);
}

.category-item.active::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #0284c7;
    border-radius: 1px;
}

/* Dragging cursor */
.dragging {
    cursor: grabbing !important;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
}

.drag-cursor {
    cursor: grab;
}

/* Dark mode styles */
.dark {
    color-scheme: dark;
}

.dark body {
    background-color: #1a1a1a;
    color: #f3f4f6;
}

.dark .bg-white {
    background-color: #1a1a1a;
}

.dark .text-gray-800 {
    color: #f3f4f6;
}

.dark .text-gray-600 {
    color: #d1d5db;
}

.dark .border-gray-200 {
    border-color: #374151;
}

.dark .shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3),
        0 4px 6px -2px rgba(0, 0, 0, 0.2);
}

.dark .fade-left {
    background: linear-gradient(to right, #1a1a1a, transparent);
}

.dark .fade-right {
    background: linear-gradient(to left, #1a1a1a, transparent);
}

.dark .scroll-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

