/* Custom CSS for NestedPick Pro */
/* Enhanced styles beyond Tailwind utilities */

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar for dropdown */
.nested-dropdown-menu::-webkit-scrollbar {
    width: 8px;
}

.nested-dropdown-menu::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 4px;
}

.nested-dropdown-menu::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #a855f7, #ec4899);
    border-radius: 4px;
}

.nested-dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #9333ea, #db2777);
}

/* Animation keyframes */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(236, 72, 153, 0.4);
    }
}

/* Dropdown animations */
.dropdown-enter {
    animation: slideDown 0.2s ease-out forwards;
}

/* Glow effect for active states */
.glow-purple {
    animation: pulse-glow 3s ease-in-out infinite;
}

/* JSON syntax highlighting colors */
.json-key {
    color: #a855f7;
}

.json-string {
    color: #4ade80;
}

.json-number {
    color: #fbbf24;
}

.json-boolean {
    color: #f472b6;
}

.json-null {
    color: #9ca3af;
}

/* Hover lift effect */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Glass morphism variants */
.glass-light {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
}

/* Tree connector lines */
.tree-connector {
    position: relative;
}

.tree-connector::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, rgba(168, 85, 247, 0.3), transparent);
}

.tree-connector::after {
    content: '';
    position: absolute;
    left: -12px;
    top: 14px;
    width: 10px;
    height: 2px;
    background: rgba(168, 85, 247, 0.3);
    border-radius: 0 2px 2px 0;
}

/* Focus ring customization */
.focus-ring:focus {
    outline: none;
    ring: 2px;
    ring-offset: 2px;
    ring-color: #a855f7;
    ring-offset-color: #0f172a;
}

/* Selection highlight */
::selection {
    background: rgba(168, 85, 247, 0.3);
    color: white;
}

/* Prevent text selection on dropdown items */
.no-select {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}