.node-circle {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.node-text {
    font-family: 'Kanit', sans-serif;
    font-weight: 600;
    pointer-events: none;
    transition: all 0.3s ease;
}

.edge-line {
    stroke: #cbd5e1;
    stroke-width: 2;
    transition: all 0.3s ease;
}

.node-operand {
    fill: #3b82f6;
}

.node-operator {
    fill: #10b981;
}

.node-processing {
    fill: #f59e0b;
    filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.4));
}

.node-highlight {
    stroke: #3b82f6;
    stroke-width: 4;
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

#treeSvgWrapper svg {
    display: block;
    margin: auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}